Skip to content

Commit

Permalink
Fix colours
Browse files Browse the repository at this point in the history
  • Loading branch information
BSekula committed Dec 8, 2023
1 parent b676529 commit a466d30
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
display: flex;

.adf-datatable-cell-badge {
color: var(--theme-contrast-gray);
color: var(--theme-secondary-text);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
text-align: center;
vertical-align: middle;
background: var(--theme-about-panel-border-color);
color: var(--theme-selected-text-color);
color: var(--theme-sidenav-user-menu-color);
border: none;
}
14 changes: 7 additions & 7 deletions projects/aca-content/src/lib/ui/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mat-toolbar {
}

.adf-name-location-cell-location.adf-datatable-cell-value {
color: var(--theme-contrast-gray);
color: var(--theme-secondary-text);
}

.mat-tab-list {
Expand All @@ -27,37 +27,37 @@ mat-toolbar {
.mat-checkbox-label,
mat-toolbar.mat-toolbar.mat-toolbar-multiple-row,
mat-toolbar.mat-toolbar.mat-toolbar-single-row {
color: var(--theme-contrast-gray);
color: var(--theme-secondary-text);
opacity: 1;
}

.adf-upload-dialog {
&__header,
&__content {
color: var(--theme-contrast-gray);
color: var(--theme-secondary-text);
}
}

.adf-version-list {
.adf-version-list-item {
&-comment,
&-date {
color: var(--theme-contrast-gray);
color: var(--theme-secondary-text);
opacity: 1;
}
}
}

.adf-property-field {
.adf-textitem-edit-icon.mat-icon {
color: var(--theme-contrast-gray);
color: var(--theme-secondary-text);
}
}

.adf-property-field.adf-card-textitem-field:hover .adf-property-clear-value {
color: var(--theme-contrast-gray);
color: var(--theme-secondary-text);
}

.adf-empty-content__icon {
color: var(--theme-contrast-gray);
color: var(--theme-secondary-text);
}
6 changes: 4 additions & 2 deletions projects/aca-content/src/lib/ui/variables/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $background: map-get($custom-theme, background);
$background-color: mat.get-color-from-palette($background, background);
$background-card-color: mat.get-color-from-palette($background, card);
$text-color: mat.get-color-from-palette($foreground, text);
$secondary-text: mat.get-color-from-palette($foreground, secondary-text);

// Custom variables - ACA specific styling:
$data-table-thumbnail-width: 35px;
Expand Down Expand Up @@ -39,14 +40,15 @@ $action-button-text-color: lighten($text-color, 35%);
$page-layout-header-background-color: $background-card-color;
$search-chip-icon-color: #757575;
$disabled-chip-background-color: #f5f5f5;
$contrast-gray: #646569;
$contrast-gray: mat.get-color-from-palette($foreground, 'secondary-tex');

// CSS Variables
$defaults: (
--theme-background-color: $background-color,
--theme-search-background-color: darken($background-color, 1),
--theme-text-color: mat.get-color-from-palette($foreground, text, 0.54),
--theme-sidenav-text-color: mat.get-color-from-palette($foreground, text),
--theme-sidenav-user-menu-color: mat.get-color-from-palette($foreground, text),
--theme-text-bold-color: mat.get-color-from-palette($foreground, text, 0.87),
--theme-title-color: mat.get-color-from-palette($foreground, text, 0.87),
--theme-text-disabled-color: mat.get-color-from-palette($foreground, text, 0.38),
Expand Down Expand Up @@ -83,7 +85,7 @@ $defaults: (
--theme-page-layout-header-background-color: $page-layout-header-background-color,
--theme-search-chip-icon-color: $search-chip-icon-color,
--theme-disabled-chip-background-color: $disabled-chip-background-color,
--theme-contrast-gray: $contrast-gray
--theme-secondary-text: $secondary-text
);

// propagates SCSS variables into the CSS variables scope
Expand Down

0 comments on commit a466d30

Please sign in to comment.