|
24 | 24 | background-color: $scrollbar-thumb;
|
25 | 25 | }
|
26 | 26 | }
|
| 27 | + |
| 28 | +/// Creates a global theme that can be used with light backgrounds. |
| 29 | +/// @param {Map} $palette - An igx-palette to be used by the global theme. |
| 30 | +/// @param {List} $exclude [( )] - A list of igx components to be excluded from the global theme styles. |
| 31 | +/// @param {Boolean} $legacy-support - Turn off support for IE11, allowing you to use css variables to style components. |
| 32 | +@mixin igx-light-square-theme( |
| 33 | + $palette, |
| 34 | + $exclude: (), |
| 35 | + $legacy-support: true |
| 36 | +) { |
| 37 | + $primary: igx-color($palette, 'primary'); |
| 38 | + $secondary: igx-color($palette, 'secondary'); |
| 39 | + $surface: igx-color($palette, 'surface'); |
| 40 | + |
| 41 | + @include igx-theme( |
| 42 | + $palette: igx-palette( |
| 43 | + $primary, |
| 44 | + $secondary, |
| 45 | + $surface: if($surface != #fff, $surface, #fff), |
| 46 | + $grays: #000 |
| 47 | + ), |
| 48 | + $schema: $light-square-schema, |
| 49 | + $legacy-support: $legacy-support, |
| 50 | + $exclude: $exclude |
| 51 | + ); |
| 52 | +} |
| 53 | + |
| 54 | +/// Creates a global theme that can be used with light backgrounds. |
| 55 | +/// @param {Map} $palette - An igx-palette to be used by the global theme. |
| 56 | +/// @param {List} $exclude [( )] - A list of igx components to be excluded from the global theme styles. |
| 57 | +/// @param {Boolean} $legacy-support - Turn off support for IE11, allowing you to use css variables to style components. |
| 58 | +@mixin igx-light-square-theme( |
| 59 | + $palette, |
| 60 | + $exclude: (), |
| 61 | + $legacy-support: true |
| 62 | +) { |
| 63 | + $primary: igx-color($palette, 'primary'); |
| 64 | + $secondary: igx-color($palette, 'secondary'); |
| 65 | + $surface: igx-color($palette, 'surface'); |
| 66 | + |
| 67 | + @include igx-theme( |
| 68 | + $palette: igx-palette( |
| 69 | + $primary, |
| 70 | + $secondary, |
| 71 | + $surface: if($surface != #fff, $surface, #fff), |
| 72 | + $grays: #000 |
| 73 | + ), |
| 74 | + $schema: $light-square-schema, |
| 75 | + $legacy-support: $legacy-support, |
| 76 | + $exclude: $exclude |
| 77 | + ); |
| 78 | +} |
0 commit comments