Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
568 changes: 10 additions & 558 deletions nifi-frontend/src/main/frontend/libs/shared/src/assets/styles/_app.scss

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*!
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@use '@angular/material' as mat;

@mixin generate-material-theme() {
:root {
@include mat.button-overrides(
(
filled-container-shape: 4px,
filled-label-text-tracking: normal,
filled-label-text-weight: 400,
outlined-container-shape: 4px,
outlined-label-text-tracking: normal,
outlined-label-text-weight: 400,
outlined-horizontal-padding: 15px,
outlined-container-height: 32px,
text-container-shape: 4px,
text-label-text-tracking: normal,
text-label-text-weight: 400
)
);

.mdc-button:disabled {
pointer-events: auto;
cursor: not-allowed;
}

@include mat.icon-button-overrides(
(
state-layer-size: 36px,
icon-size: 14px
)
);

.mat-mdc-icon-button {
&.mat-mdc-button-base.mdc-icon-button {
padding: 0;
}
}

.primary-icon-button {
@include mat.icon-button-overrides(
(
icon-color: var(--md-ref-palette-primary-40)
)
);
}

.error-button {
@include mat.button-overrides(
(
filled-container-color: var(--md-ref-palette-error-40),
filled-label-text-color: var(--md-ref-palette-error-100)
)
);
}
}

.darkMode {
.primary-icon-button {
@include mat.icon-button-overrides(
(
icon-color: var(--md-ref-palette-primary-80)
)
);
}

.error-button {
@include mat.button-overrides(
(
filled-container-color: var(--md-ref-palette-error-50),
filled-label-text-color: var(--md-ref-palette-error-100)
)
);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*!
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@use '@angular/material' as mat;

@mixin generate-material-theme() {
:root {
@include mat.card-overrides(
(
title-text-size: 16px,
title-text-line-height: 20px,
title-text-weight: 600,
subtitle-text-size: 14px,
subtitle-text-line-height: 20px,
subtitle-text-tracking: normal,
subtitle-text-weight: 400
)
);

.mat-mdc-card-header-text {
width: 100%;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*!
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@use '@angular/material' as mat;

@mixin generate-material-theme() {
:root {
.tertiary-checkbox {
@include mat.checkbox-overrides(
(
selected-icon-color: var(--md-ref-palette-tertiary-40)
)
);
}
}

.darkMode {
.tertiary-checkbox {
@include mat.checkbox-overrides(
(
selected-icon-color: var(--md-ref-palette-tertiary-70)
)
);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*!
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@use '@angular/material' as mat;

@mixin generate-material-theme() {
:root {
mat-datepicker-toggle .mat-mdc-icon-button.mat-mdc-button-base.mdc-icon-button {
padding: 11px;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original _app.scss had an inline comment explaining this magic number: padding: 11px; //center the mat-icon-button inside the date picker form field. That comment was dropped during the move — please restore it so 11px doesn't read as an unexplained magic number.

}

.mat-datepicker-content {
box-shadow:
0px 2px 4px -1px rgba(0, 0, 0, 0.2),
0px 4px 5px 0px rgba(0, 0, 0, 0.14),
0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*!
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@use '@angular/material' as mat;

@mixin generate-material-theme() {
:root {
@include mat.dialog-overrides(
(
content-padding: 20px 24px,
headline-padding: 0 24px 9px,
container-shape: 6px
)
);

.dialog-tab-content,
.dialog-content {
height: 50vh;
}

.mat-mdc-dialog-actions {
border: none !important;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/*!
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@use '@angular/material' as mat;

@mixin generate-material-theme() {
:root {
.cdk-drop-list {
background: var(--mat-sys-surface-container-low);
}

.cdk-drag {
color: var(--mat-sys-on-surface);
background: var(--mat-sys-surface);
}

.cdk-drag-disabled {
cursor: not-allowed !important;
color: var(--nf-disabled);
background: var(--mat-sys-background) !important;
}

.cdk-drag-placeholder {
opacity: 0;
}

.cdk-drop-list-dragging {
cursor: grabbing;
background-color: var(--mat-sys-secondary) !important;
}

.cdk-drag:hover {
cursor: grab;
}

.cdk-list {
min-height: 34px;
border-radius: 4px;
overflow: hidden;
display: block;
user-select: none;
}

span.grip {
width: 12px;
height: 36px;
display: block;
line-height: 6px;
letter-spacing: 1px;
color: var(--mat-sys-on-surface);
}

.cdk-drag:hover {
span.grip::after {
content: '.. .. .. .. ..';
}
}

.cdk-drag-disabled {
font-style: italic;
}

.cdk-drag:hover {
span.grip::after {
content: '.. .. .. .. ..';
}
}
}

.darkMode {
.cdk-drop-list-dragging {
background-color: var(--mat-sys-secondary) !important;
}

.cdk-drop-list {
background: var(--mat-sys-surface-container-low);
}

.cdk-drag {
color: var(--mat-sys-on-surface);
background: var(--mat-sys-surface);
}

.cdk-drag-disabled {
color: var(--nf-disabled);
background: var(--mat-sys-background) !important;
}

span.grip {
color: var(--mat-sys-on-surface);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*!
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@use '@angular/material' as mat;

@mixin generate-material-theme() {
:root {
@include mat.expansion-overrides(
(
container-shape: 6px,
header-expanded-state-height: 50px
)
);

.mat-expansion-panel-body {
overflow-y: auto;
}

.mat-expansion-panel-header.mat-expanded {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

.mat-content.mat-content-hide-toggle {
margin-right: 0 !important;
height: 48px;
}
}
}
Loading
Loading