mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACS-4259] Updated CSS rules for DateTimePicker (#2986)
* Updated CSS rules for DateTimePicker to show which date is currently focused on when navigating using the keyboard. * [ACS-4259] Added variables for CSS colors * [ACS-4259] Updated CSS color variable names to be more generic and not include the colors themselves. * [ACS-4259] Added CSS variables for white background used in datetimepicker cell background * [ACS-4259] Resolved typo * [ACS-4259] Added CSS variables for datetimepicker cell selected background color and cell focus background color
This commit is contained in:
parent
910a6c27cb
commit
ce29b36605
@ -157,13 +157,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
.mat-datetimepicker-calendar-body-active .mat-datetimepicker-calendar-body-cell-content {
|
||||
outline: 2px solid var(--theme-datetimepicker-cell-focus-border);
|
||||
}
|
||||
|
||||
.mat-datetimepicker-calendar-body-active .mat-datetimepicker-calendar-body-cell-content:not(.mat-datetimepicker-calendar-body-selected) {
|
||||
background-color: white !important;
|
||||
outline: 2px solid var(--theme-blue-button-color);
|
||||
background-color: var(--theme-datetimepicker-cell-background) !important;
|
||||
}
|
||||
|
||||
.mat-datetimepicker-calendar-body-active .mat-datetimepicker-calendar-body-cell-content.mat-datetimepicker-calendar-body-selected {
|
||||
background-color: var(--theme-datetimepicker-cell-focus-background);
|
||||
color: var(--theme-datetimepicker-font-color);
|
||||
}
|
||||
|
||||
.mat-datetimepicker-calendar-body-cell-content.mat-datetimepicker-calendar-body-selected {
|
||||
background-color: #2254b2;
|
||||
background-color: var(--theme-datetimepicker-selected-date-background);
|
||||
}
|
||||
|
||||
.mat-expansion-panel .mat-expansion-panel-header {
|
||||
|
@ -41,6 +41,11 @@ $black-heading: #4e4c4c;
|
||||
$grey-dropdown-background: #eee;
|
||||
$grey-divider: rgba(0,0,0,.22);
|
||||
$pagination-background-color: #ffffff;
|
||||
$datetimepicker-font-color: rgba(black, 0.87);
|
||||
$datetimepicker-selected-date-background: #2254b2;
|
||||
$datetimepicker-cell-background-color: #ffffff;
|
||||
$datetimepicker-cell-focus-border-color: #1F74DB;
|
||||
$datetimepicker-cell-focus-background-color: rgba(33, 33, 33, 0.12);
|
||||
|
||||
$defaults: (
|
||||
--theme-primary-color: mat.get-color-from-palette($primary),
|
||||
@ -73,6 +78,11 @@ $defaults: (
|
||||
--theme-about-panel-border-color: $grey-background,
|
||||
--theme-about-panel-background-color: #ffffff,
|
||||
--theme-about-panel-title-color: #212121,
|
||||
--theme-datetimepicker-font-color: $datetimepicker-font-color,
|
||||
--theme-datetimepicker-selected-date-background: $datetimepicker-selected-date-background,
|
||||
--theme-datetimepicker-cell-background: $datetimepicker-cell-background-color,
|
||||
--theme-datetimepicker-cell-focus-border: $datetimepicker-cell-focus-border-color,
|
||||
--theme-datetimepicker-cell-focus-background: $datetimepicker-cell-focus-background-color
|
||||
);
|
||||
|
||||
// propagates SCSS variables into the CSS variables scope
|
||||
|
Loading…
x
Reference in New Issue
Block a user