|
|
|
@ -13,11 +13,11 @@ |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
@import '~@angular/material/theming'; |
|
|
|
@use '~@angular/material' as mat; |
|
|
|
@import '~@mat-datetimepicker/core/datetimepicker/datetimepicker-theme.scss'; |
|
|
|
@import './scss/constants'; |
|
|
|
|
|
|
|
@include mat-core(); |
|
|
|
@include mat.core(); |
|
|
|
|
|
|
|
$tb-primary-color: #305680; |
|
|
|
$tb-secondary-color: #527dad; |
|
|
|
@ -41,39 +41,39 @@ $tb-mat-indigo: ( |
|
|
|
A400: #3d5afe, |
|
|
|
A700: #304ffe, |
|
|
|
contrast: ( |
|
|
|
50: $dark-primary-text, |
|
|
|
100: $dark-primary-text, |
|
|
|
200: $dark-primary-text, |
|
|
|
300: $light-primary-text, |
|
|
|
400: $light-primary-text, |
|
|
|
500: $light-primary-text, |
|
|
|
600: $light-primary-text, |
|
|
|
700: $light-primary-text, |
|
|
|
800: $light-primary-text, |
|
|
|
900: $light-primary-text, |
|
|
|
A100: $dark-primary-text, |
|
|
|
A200: $light-primary-text, |
|
|
|
A400: $light-primary-text, |
|
|
|
A700: $light-primary-text, |
|
|
|
50: rgba(black, 0.87), |
|
|
|
100: rgba(black, 0.87), |
|
|
|
200: rgba(black, 0.87), |
|
|
|
300: white, |
|
|
|
400: white, |
|
|
|
500: white, |
|
|
|
600: white, |
|
|
|
700: white, |
|
|
|
800: white, |
|
|
|
900: white, |
|
|
|
A100: rgba(black, 0.87), |
|
|
|
A200: white, |
|
|
|
A400: white, |
|
|
|
A700: white, |
|
|
|
) |
|
|
|
); |
|
|
|
|
|
|
|
$tb-primary: mat-palette($tb-mat-indigo); |
|
|
|
$tb-accent: mat-palette($mat-deep-orange); |
|
|
|
$tb-primary: mat.define-palette($tb-mat-indigo); |
|
|
|
$tb-accent: mat.define-palette(mat.$deep-orange-palette); |
|
|
|
|
|
|
|
$background: (background: map_get($mat-grey, 200)); |
|
|
|
$background: (background: map_get(mat.$grey-palette, 200)); |
|
|
|
|
|
|
|
$tb-theme-background: map_merge($mat-light-theme-background, $background); |
|
|
|
$tb-theme-background: map_merge(mat.$light-theme-background-palette, $background); |
|
|
|
|
|
|
|
$tb-mat-theme: mat-light-theme( |
|
|
|
$tb-mat-theme: mat.define-light-theme( |
|
|
|
$tb-primary, |
|
|
|
$tb-accent |
|
|
|
); |
|
|
|
|
|
|
|
$tb-theme: map_merge($tb-mat-theme, (background: $tb-theme-background)); |
|
|
|
|
|
|
|
$primary: mat-color($tb-primary); |
|
|
|
$accent: mat-color($tb-accent); |
|
|
|
$primary: mat.get-color-from-palette($tb-primary); |
|
|
|
$accent: mat.get-color-from-palette($tb-accent); |
|
|
|
|
|
|
|
$tb-dark-mat-indigo: ( |
|
|
|
50: #e8eaf6, |
|
|
|
@ -91,24 +91,24 @@ $tb-dark-mat-indigo: ( |
|
|
|
A400: #3d5afe, |
|
|
|
A700: #304ffe, |
|
|
|
contrast: ( |
|
|
|
50: $dark-primary-text, |
|
|
|
100: $dark-primary-text, |
|
|
|
200: $dark-primary-text, |
|
|
|
300: $dark-primary-text, |
|
|
|
400: $dark-primary-text, |
|
|
|
50: rgba(black, 0.87), |
|
|
|
100: rgba(black, 0.87), |
|
|
|
200: rgba(black, 0.87), |
|
|
|
300: rgba(black, 0.87), |
|
|
|
400: rgba(black, 0.87), |
|
|
|
500: map_get($tb-mat-indigo, 900), |
|
|
|
600: $light-primary-text, |
|
|
|
700: $light-primary-text, |
|
|
|
800: $light-primary-text, |
|
|
|
900: $light-primary-text, |
|
|
|
A100: $dark-primary-text, |
|
|
|
A200: $dark-primary-text, |
|
|
|
A400: $dark-primary-text, |
|
|
|
A700: $dark-primary-text, |
|
|
|
600: white, |
|
|
|
700: white, |
|
|
|
800: white, |
|
|
|
900: white, |
|
|
|
A100: rgba(black, 0.87), |
|
|
|
A200: rgba(black, 0.87), |
|
|
|
A400: rgba(black, 0.87), |
|
|
|
A700: rgba(black, 0.87), |
|
|
|
) |
|
|
|
); |
|
|
|
|
|
|
|
$tb-dark-primary: mat-palette($tb-dark-mat-indigo); |
|
|
|
$tb-dark-primary: mat.define-palette($tb-dark-mat-indigo); |
|
|
|
|
|
|
|
$tb-dark-theme-background: ( |
|
|
|
status-bar: black, |
|
|
|
@ -119,22 +119,22 @@ $tb-dark-theme-background: ( |
|
|
|
dialog: map_get($tb-dark-mat-indigo, 800), |
|
|
|
disabled-button: rgba(white, 0.12), |
|
|
|
raised-button: map-get($tb-dark-mat-indigo, 50), |
|
|
|
focused-button: $light-focused, |
|
|
|
focused-button: rgba(white, 0.12), |
|
|
|
selected-button: map_get($tb-dark-mat-indigo, 900), |
|
|
|
selected-disabled-button: map_get($tb-dark-mat-indigo, 800), |
|
|
|
disabled-button-toggle: black, |
|
|
|
unselected-chip: map_get($tb-dark-mat-indigo, 700), |
|
|
|
disabled-list-option: black, |
|
|
|
tooltip: map_get($mat-grey, 700), |
|
|
|
tooltip: map_get(mat.$grey-palette, 700), |
|
|
|
); |
|
|
|
|
|
|
|
@function get-tb-dark-theme($primary, $accent, $warn: mat-palette($mat-red)) { |
|
|
|
@function get-tb-dark-theme($primary, $accent, $warn: mat.define-palette(mat.$red-palette)) { |
|
|
|
@return ( |
|
|
|
primary: $primary, |
|
|
|
accent: $accent, |
|
|
|
warn: $warn, |
|
|
|
is-dark: true, |
|
|
|
foreground: $mat-dark-theme-foreground, |
|
|
|
foreground: mat.$dark-theme-foreground-palette, |
|
|
|
background: $tb-dark-theme-background, |
|
|
|
); |
|
|
|
} |
|
|
|
@ -153,8 +153,8 @@ $tb-dark-theme: get-tb-dark-theme( |
|
|
|
|
|
|
|
mat-fab-toolbar { |
|
|
|
.mat-fab-toolbar-background { |
|
|
|
background: mat-color($background, app-bar); |
|
|
|
color: mat-color($foreground, text); |
|
|
|
background: mat.get-color-from-palette($background, app-bar); |
|
|
|
color: mat.get-color-from-palette($foreground, text); |
|
|
|
} |
|
|
|
&.mat-primary { |
|
|
|
.mat-fab-toolbar-background { |
|
|
|
@ -175,8 +175,8 @@ $tb-dark-theme: get-tb-dark-theme( |
|
|
|
} |
|
|
|
|
|
|
|
@mixin _mat-toolbar-inverse-color($palette) { |
|
|
|
background: mat-color($palette, default-contrast); |
|
|
|
color: $dark-primary-text; |
|
|
|
background: mat.get-color-from-palette($palette, default-contrast); |
|
|
|
color: rgba(black, 0.87); |
|
|
|
} |
|
|
|
|
|
|
|
@mixin mat-fab-toolbar-inverse-theme($theme) { |
|
|
|
@ -188,8 +188,8 @@ $tb-dark-theme: get-tb-dark-theme( |
|
|
|
|
|
|
|
mat-fab-toolbar { |
|
|
|
.mat-fab-toolbar-background { |
|
|
|
background: mat-color($background, app-bar); |
|
|
|
color: mat-color($foreground, text); |
|
|
|
background: mat.get-color-from-palette($background, app-bar); |
|
|
|
color: mat.get-color-from-palette($foreground, text); |
|
|
|
} |
|
|
|
&.mat-primary { |
|
|
|
.mat-fab-toolbar-background { |
|
|
|
@ -201,15 +201,15 @@ $tb-dark-theme: get-tb-dark-theme( |
|
|
|
@include _mat-toolbar-inverse-color($primary); |
|
|
|
button.mat-icon-button { |
|
|
|
mat-icon { |
|
|
|
color: mat-color($primary); |
|
|
|
color: mat.get-color-from-palette($primary); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.mat-fab { |
|
|
|
&.mat-primary { |
|
|
|
background: mat-color($primary, default-contrast); |
|
|
|
color: mat-color($primary); |
|
|
|
background: mat.get-color-from-palette($primary, default-contrast); |
|
|
|
color: mat.get-color-from-palette($primary); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -221,7 +221,7 @@ $tb-dark-theme: get-tb-dark-theme( |
|
|
|
|
|
|
|
mat-toolbar{ |
|
|
|
&.mat-hue-3 { |
|
|
|
background-color: mat-color($primary, 'A100'); |
|
|
|
background-color: mat.get-color-from-palette($primary, 'A100'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -233,12 +233,12 @@ $tb-dark-theme: get-tb-dark-theme( |
|
|
|
} |
|
|
|
|
|
|
|
.tb-default { |
|
|
|
@include angular-material-theme($tb-theme); |
|
|
|
@include mat.all-component-themes($tb-theme); |
|
|
|
@include mat-datetimepicker-theme($tb-theme); |
|
|
|
@include tb-components-theme($tb-theme); |
|
|
|
} |
|
|
|
|
|
|
|
.tb-dark { |
|
|
|
@include angular-material-theme($tb-dark-theme); |
|
|
|
@include mat.all-component-themes($tb-dark-theme); |
|
|
|
} |
|
|
|
|
|
|
|
|