igniteui-theming 21.0.2 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sass/themes/components/_index.scss +2 -0
- package/sass/themes/components/action-strip/_action-strip-theme.scss +68 -0
- package/sass/themes/components/badge/_badge-theme.scss +7 -2
- package/sass/themes/components/button/_contained-button-theme.scss +25 -25
- package/sass/themes/components/button/_fab-button-theme.scss +26 -26
- package/sass/themes/components/button/_flat-button-theme.scss +7 -7
- package/sass/themes/components/button/_outlined-button-theme.scss +8 -8
- package/sass/themes/components/button-group/_button-group-theme.scss +6 -6
- package/sass/themes/components/calendar/_calendar-theme.scss +10 -10
- package/sass/themes/components/card/_card-theme.scss +2 -2
- package/sass/themes/components/carousel/_carousel-theme.scss +25 -14
- package/sass/themes/components/checkbox/_checkbox-theme.scss +7 -4
- package/sass/themes/components/chip/_chip-theme.scss +9 -9
- package/sass/themes/components/combo/_combo-theme.scss +1 -1
- package/sass/themes/components/expansion-panel/_expansion-panel-theme.scss +1 -1
- package/sass/themes/components/grid/_grid-theme.scss +7 -7
- package/sass/themes/components/grid/_index.scss +1 -0
- package/sass/themes/components/grid/_pivot-data-selector-theme.scss +36 -0
- package/sass/themes/components/icon-button/_contained-icon-button-theme.scss +8 -8
- package/sass/themes/components/icon-button/_flat-icon-button-theme.scss +2 -2
- package/sass/themes/components/icon-button/_outlined-icon-button-theme.scss +3 -3
- package/sass/themes/components/input/_file-input-theme.scss +150 -0
- package/sass/themes/components/input/_input-theme.scss +4 -4
- package/sass/themes/components/list/_list-theme.scss +1 -1
- package/sass/themes/components/navbar/_navbar-theme.scss +1 -1
- package/sass/themes/components/navdrawer/_navdrawer-theme.scss +2 -2
- package/sass/themes/components/query-builder/_query-builder-theme.scss +3 -3
- package/sass/themes/components/radio/_radio-theme.scss +4 -4
- package/sass/themes/components/select/_select-theme.scss +1 -1
- package/sass/themes/components/slider/_slider-theme.scss +5 -5
- package/sass/themes/components/splitter/_splitter-theme.scss +1 -1
- package/sass/themes/components/stepper/_stepper-theme.scss +9 -9
- package/sass/themes/components/switch/_switch-theme.scss +14 -14
- package/sass/themes/components/tabs/_tabs-theme.scss +5 -5
- package/sass/themes/components/tree/_tree-theme.scss +4 -4
- package/sass/themes/schemas/components/dark/_badge.scss +16 -7
- package/sass/themes/schemas/components/light/_badge.scss +88 -13
- package/sass/themes/schemas/components/light/_carousel.scss +8 -0
- package/sass/themes/schemas/components/light/_checkbox.scss +4 -0
- package/sass/themes/schemas/components/light/_date-range-picker.scss +38 -0
- package/tailwind/utilities/bootstrap.css +1 -1
- package/tailwind/utilities/fluent.css +1 -1
- package/tailwind/utilities/indigo.css +1 -1
- package/tailwind/utilities/material.css +1 -1
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@forward 'action-strip/action-strip-theme';
|
|
1
2
|
@forward 'avatar/avatar-theme';
|
|
2
3
|
@forward 'badge/badge-theme';
|
|
3
4
|
@forward 'banner/banner-theme';
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
@forward 'icon/icon-theme';
|
|
23
24
|
@forward 'icon-button/icon-button-theme';
|
|
24
25
|
@forward 'input/input-theme';
|
|
26
|
+
@forward 'input/file-input-theme';
|
|
25
27
|
@forward 'label/label-theme';
|
|
26
28
|
@forward 'list/list-theme';
|
|
27
29
|
@forward 'navbar/navbar-theme';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../config';
|
|
3
|
+
@use '../../functions' as *;
|
|
4
|
+
@use '../../schemas/' as *;
|
|
5
|
+
@use '../../../utils/map' as *;
|
|
6
|
+
@use '../../../color/functions' as *;
|
|
7
|
+
|
|
8
|
+
////
|
|
9
|
+
/// @group themes
|
|
10
|
+
/// @package theming
|
|
11
|
+
/// @access public
|
|
12
|
+
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
13
|
+
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
14
|
+
////
|
|
15
|
+
|
|
16
|
+
/// If only background color is specified, text/icon color will be assigned automatically to a contrasting color.
|
|
17
|
+
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
18
|
+
///
|
|
19
|
+
/// @param {Color} $icon-color [null] - The color used for the actions icons.
|
|
20
|
+
/// @param {Color} $background [null] - The color used for the action strip component content background.
|
|
21
|
+
/// @param {Color} $actions-background [null] - The color used for the actions background.
|
|
22
|
+
/// @param {Color} $delete-action [null] - The color used for the delete icon in action strip component.
|
|
23
|
+
/// @param {List} $actions-border-radius [null] - The border radius used for actions container inside action strip component.
|
|
24
|
+
///
|
|
25
|
+
/// @example scss Change the background and icon colors in action strip
|
|
26
|
+
/// $my-action-strip-theme: action-strip-theme($background: black);
|
|
27
|
+
/// // Pass the theme to the css-vars() mixin
|
|
28
|
+
/// @include css-vars($my-action-strip-theme);
|
|
29
|
+
@function action-strip-theme(
|
|
30
|
+
$schema: $light-material-schema,
|
|
31
|
+
|
|
32
|
+
$background: null,
|
|
33
|
+
$actions-background: null,
|
|
34
|
+
$icon-color: null,
|
|
35
|
+
$delete-action: null,
|
|
36
|
+
$actions-border-radius: null
|
|
37
|
+
) {
|
|
38
|
+
$name: 'igx-action-strip';
|
|
39
|
+
$action-strip-schema: ();
|
|
40
|
+
|
|
41
|
+
@if map.has-key($schema, 'action-strip') {
|
|
42
|
+
$action-strip-schema: map.get($schema, 'action-strip');
|
|
43
|
+
} @else {
|
|
44
|
+
$action-strip-schema: $schema;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$theme: digest-schema($action-strip-schema);
|
|
48
|
+
|
|
49
|
+
@if not($icon-color) and $actions-background {
|
|
50
|
+
$icon-color: adaptive-contrast(var(--actions-background));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@if not($actions-border-radius) {
|
|
54
|
+
$actions-border-radius: map.get($theme, 'actions-border-radius');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@return extend(
|
|
58
|
+
$theme,
|
|
59
|
+
(
|
|
60
|
+
name: $name,
|
|
61
|
+
background: $background,
|
|
62
|
+
actions-background: $actions-background,
|
|
63
|
+
icon-color: $icon-color,
|
|
64
|
+
delete-action: $delete-action,
|
|
65
|
+
actions-border-radius: $actions-border-radius,
|
|
66
|
+
)
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
/// @param {Color} $background-color [null] - The background color used.
|
|
25
25
|
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the badge.
|
|
26
26
|
/// @param {Number} $border-radius [null] - The border radius used for badge component.
|
|
27
|
-
///
|
|
27
|
+
/// @param {Number} $size [null] - The size of the badge component.
|
|
28
|
+
/// @param {Number} $dot-size [null] - The size of the dot type badge.
|
|
28
29
|
/// @requires $light-material-schema
|
|
29
30
|
///
|
|
30
31
|
/// @example scss Change the text and icon colors in a badge
|
|
@@ -41,7 +42,9 @@
|
|
|
41
42
|
$border-radius: null,
|
|
42
43
|
|
|
43
44
|
$background-color: null,
|
|
44
|
-
$shadow: null
|
|
45
|
+
$shadow: null,
|
|
46
|
+
$size: null,
|
|
47
|
+
$dot-size: null
|
|
45
48
|
) {
|
|
46
49
|
$name: #{config.variable-prefix() + '-' + 'badge'};
|
|
47
50
|
$selector: #{config.element-prefix() + '-' + 'badge'};
|
|
@@ -79,6 +82,8 @@
|
|
|
79
82
|
border-radius: $border-radius,
|
|
80
83
|
background-color: $background-color,
|
|
81
84
|
shadow: $shadow,
|
|
85
|
+
size: $size,
|
|
86
|
+
dot-size: $dot-size,
|
|
82
87
|
)
|
|
83
88
|
);
|
|
84
89
|
}
|
|
@@ -154,24 +154,8 @@
|
|
|
154
154
|
$icon-color: adaptive-contrast(var(--background));
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
@if $
|
|
158
|
-
|
|
159
|
-
$hover-background: hsl(from var(--background) h s calc(l * 1.08));
|
|
160
|
-
}
|
|
161
|
-
} @else {
|
|
162
|
-
@if not($hover-background) and $background {
|
|
163
|
-
$hover-background: hsl(from var(--background) h s calc(l * 1.05));
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@if $variant == 'indigo' {
|
|
168
|
-
@if not($focus-background) and $background {
|
|
169
|
-
$focus-background: var(--background);
|
|
170
|
-
}
|
|
171
|
-
} @else {
|
|
172
|
-
@if not($focus-background) and $background {
|
|
173
|
-
$focus-background: hsl(from var(--background) h s calc(l * 1.1));
|
|
174
|
-
}
|
|
157
|
+
@if not($hover-background) and $background {
|
|
158
|
+
$hover-background: dynamic-shade(var(--background));
|
|
175
159
|
}
|
|
176
160
|
|
|
177
161
|
@if not($hover-foreground) and $hover-background {
|
|
@@ -182,10 +166,6 @@
|
|
|
182
166
|
$icon-color-hover: adaptive-contrast(var(--hover-background));
|
|
183
167
|
}
|
|
184
168
|
|
|
185
|
-
@if not($focus-foreground) and $focus-background {
|
|
186
|
-
$focus-foreground: adaptive-contrast(var(--focus-background));
|
|
187
|
-
}
|
|
188
|
-
|
|
189
169
|
@if not($focus-hover-background) and $hover-background {
|
|
190
170
|
$focus-hover-background: var(--hover-background);
|
|
191
171
|
}
|
|
@@ -194,8 +174,28 @@
|
|
|
194
174
|
$focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
|
|
195
175
|
}
|
|
196
176
|
|
|
197
|
-
@if
|
|
198
|
-
$focus-
|
|
177
|
+
@if $variant != 'indigo' {
|
|
178
|
+
@if not($focus-background) and $background {
|
|
179
|
+
$focus-background: dynamic-shade(var(--background), $offset: 10);
|
|
180
|
+
}
|
|
181
|
+
} @else {
|
|
182
|
+
@if not($focus-background) and $focus-hover-background {
|
|
183
|
+
$focus-background: var(--focus-hover-background);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@if $variant == 'fluent' or $variant == 'indigo' {
|
|
188
|
+
@if not($focus-visible-background) and $background {
|
|
189
|
+
$focus-visible-background: var(--background);
|
|
190
|
+
}
|
|
191
|
+
} @else {
|
|
192
|
+
@if not($focus-visible-background) and $focus-background {
|
|
193
|
+
$focus-visible-background: var(--focus-background);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@if not($focus-foreground) and $focus-background {
|
|
198
|
+
$focus-foreground: adaptive-contrast(var(--focus-background));
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
@if not($focus-visible-foreground) and $focus-visible-background {
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
|
|
211
211
|
@if $variant == 'fluent' or $variant == 'bootstrap' {
|
|
212
212
|
@if not($active-background) and $background {
|
|
213
|
-
$active-background:
|
|
213
|
+
$active-background: dynamic-shade(var(--background), $offset: 10);
|
|
214
214
|
}
|
|
215
215
|
} @else if $variant == 'material' {
|
|
216
216
|
@if not($active-background) and $focus-background {
|
|
@@ -130,50 +130,50 @@
|
|
|
130
130
|
$icon-color: adaptive-contrast(var(--background));
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
@if $
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
@if not($hover-background) and $background {
|
|
134
|
+
$hover-background: dynamic-shade(var(--background));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@if not($hover-foreground) and $hover-background {
|
|
138
|
+
$hover-foreground: if($foreground, var(--foreground), adaptive-contrast(var(--hover-background)));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@if not($icon-color-hover) and $hover-background {
|
|
142
|
+
$icon-color-hover: if($icon-color, var(--icon-color), adaptive-contrast(var(--hover-background)));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@if not($focus-hover-background) and $hover-background {
|
|
146
|
+
$focus-hover-background: var(--hover-background);
|
|
141
147
|
}
|
|
142
148
|
|
|
143
149
|
@if $variant == 'indigo' {
|
|
144
|
-
@if not($focus-background) and $background {
|
|
145
|
-
$focus-background: var(--background);
|
|
150
|
+
@if not($focus-background) and $focus-hover-background {
|
|
151
|
+
$focus-background: var(--focus-hover-background);
|
|
146
152
|
}
|
|
147
153
|
} @else {
|
|
148
154
|
@if not($focus-background) and $background {
|
|
149
|
-
$focus-background:
|
|
155
|
+
$focus-background: dynamic-shade(var(--background), $offset: 10);
|
|
150
156
|
}
|
|
151
157
|
}
|
|
152
158
|
|
|
153
|
-
@if
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
@
|
|
158
|
-
|
|
159
|
+
@if $variant == 'fluent' {
|
|
160
|
+
@if not($focus-visible-background) and $background {
|
|
161
|
+
$focus-visible-background: var(--background);
|
|
162
|
+
}
|
|
163
|
+
} @else {
|
|
164
|
+
@if not($focus-visible-background) and $focus-background {
|
|
165
|
+
$focus-visible-background: var(--focus-background);
|
|
166
|
+
}
|
|
159
167
|
}
|
|
160
168
|
|
|
161
169
|
@if not($focus-foreground) and $focus-background {
|
|
162
170
|
$focus-foreground: if($foreground, var(--foreground), adaptive-contrast(var(--focus-background)));
|
|
163
171
|
}
|
|
164
172
|
|
|
165
|
-
@if not($focus-hover-background) and $hover-background {
|
|
166
|
-
$focus-hover-background: var(--hover-background);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
173
|
@if not($focus-hover-foreground) and $focus-hover-background {
|
|
170
174
|
$focus-hover-foreground: if($foreground, var(--foreground), adaptive-contrast(var(--focus-hover-background)));
|
|
171
175
|
}
|
|
172
176
|
|
|
173
|
-
@if not($focus-visible-background) and $focus-background {
|
|
174
|
-
$focus-visible-background: var(--focus-background);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
177
|
@if not($focus-visible-foreground) and $focus-visible-background {
|
|
178
178
|
$focus-visible-foreground: adaptive-contrast(var(--focus-visible-background));
|
|
179
179
|
}
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
|
|
187
187
|
@if $variant == 'fluent' or $variant == 'bootstrap' {
|
|
188
188
|
@if not($active-background) and $background {
|
|
189
|
-
$active-background:
|
|
189
|
+
$active-background: dynamic-shade(var(--background), $offset: 10);
|
|
190
190
|
}
|
|
191
191
|
} @else if $variant == 'material' {
|
|
192
192
|
@if not($active-background) and $focus-background {
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
|
|
232
232
|
@if $variant == 'bootstrap' or $variant == 'indigo' {
|
|
233
233
|
@if not($hover-foreground) and $foreground {
|
|
234
|
-
$hover-foreground:
|
|
234
|
+
$hover-foreground: dynamic-shade(var(--foreground));
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
@if not($icon-color-hover) and $hover-foreground {
|
|
@@ -240,16 +240,16 @@
|
|
|
240
240
|
|
|
241
241
|
@if $variant == 'bootstrap' {
|
|
242
242
|
@if not($focus-foreground) and $foreground {
|
|
243
|
-
$focus-foreground:
|
|
243
|
+
$focus-foreground: dynamic-shade(var(--foreground), $offset: 10);
|
|
244
244
|
}
|
|
245
245
|
} @else {
|
|
246
246
|
@if not($focus-foreground) and $foreground {
|
|
247
|
-
$focus-foreground:
|
|
247
|
+
$focus-foreground: dynamic-shade(var(--foreground));
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
@if not($focus-hover-foreground) and $foreground {
|
|
252
|
-
$focus-hover-foreground:
|
|
252
|
+
$focus-hover-foreground: dynamic-shade(var(--foreground));
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
@if not($focus-visible-foreground) and $foreground {
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
@if not($disabled-foreground) and $foreground {
|
|
260
|
-
$disabled-foreground:
|
|
260
|
+
$disabled-foreground: hsla(from (var(--foreground) h s l / 0.5));
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
@if not($disabled-icon-color) and $disabled-foreground {
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
|
|
267
267
|
@if $variant == 'bootstrap' {
|
|
268
268
|
@if not($active-foreground) and $foreground {
|
|
269
|
-
$active-foreground:
|
|
269
|
+
$active-foreground: dynamic-shade(var(--foreground), $offset: 10);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
@if not($shadow-color) and $focus-visible-foreground {
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
}
|
|
275
275
|
} @else {
|
|
276
276
|
@if not($active-foreground) and $foreground {
|
|
277
|
-
$active-foreground:
|
|
277
|
+
$active-foreground: dynamic-shade(var(--foreground));
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
@if not($shadow-color) and $focus-visible-foreground {
|
|
@@ -225,15 +225,15 @@
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
@if not($hover-foreground) and $foreground {
|
|
228
|
-
$hover-foreground:
|
|
228
|
+
$hover-foreground: dynamic-shade(var(--foreground));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
@if not($focus-foreground) and $foreground {
|
|
232
|
-
$focus-foreground:
|
|
232
|
+
$focus-foreground: dynamic-shade(var(--foreground));
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
@if not($focus-hover-foreground) and $foreground {
|
|
236
|
-
$focus-hover-foreground:
|
|
236
|
+
$focus-hover-foreground: dynamic-shade(var(--foreground));
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
@if not($focus-visible-foreground) and $foreground {
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
@if not($active-foreground) and $foreground {
|
|
244
|
-
$active-foreground:
|
|
244
|
+
$active-foreground: dynamic-shade(var(--foreground));
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
@if not($shadow-color) and $focus-visible-foreground {
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
@if not($focus-background) and $foreground {
|
|
262
|
-
$focus-background:
|
|
262
|
+
$focus-background: dynamic-shade(var(--foreground), $offset: 10);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
@if not($focus-foreground) and $focus-background {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
@if not($focus-hover-background) and $hover-background {
|
|
270
|
-
$focus-hover-background:
|
|
270
|
+
$focus-hover-background: dynamic-shade(var(--hover-background));
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
@if not($focus-hover-foreground) and $focus-hover-background {
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
@if not($active-background) and $foreground {
|
|
286
|
-
$active-background:
|
|
286
|
+
$active-background: dynamic-shade(var(--foreground), $offset: 10);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
@if not($active-foreground) and $active-background {
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
@if not($disabled-foreground) and $foreground {
|
|
294
|
-
$disabled-foreground:
|
|
294
|
+
$disabled-foreground: hsla(from (var(--foreground) h s l / 0.5));
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
@if not($disabled-icon-color) and $disabled-foreground {
|
|
@@ -127,15 +127,15 @@
|
|
|
127
127
|
|
|
128
128
|
// background colors
|
|
129
129
|
@if not($item-hover-background) and $item-background {
|
|
130
|
-
$item-hover-background:
|
|
130
|
+
$item-hover-background: dynamic-shade(var(--item-background));
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
@if not($item-selected-background) and $item-background {
|
|
134
|
-
$item-selected-background:
|
|
134
|
+
$item-selected-background: dynamic-shade(var(--item-background), $offset: 10);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
@if not($item-selected-hover-background) and $item-selected-background {
|
|
138
|
-
$item-selected-hover-background:
|
|
138
|
+
$item-selected-hover-background: dynamic-shade(var(--item-selected-background));
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
@if not($item-selected-focus-background) and $item-selected-background {
|
|
@@ -150,8 +150,8 @@
|
|
|
150
150
|
$item-focused-background: var(--item-hover-background);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
@if not($item-focused-hover-background) and $item-
|
|
154
|
-
$item-focused-hover-background:
|
|
153
|
+
@if not($item-focused-hover-background) and $item-focused-background {
|
|
154
|
+
$item-focused-hover-background: dynamic-shade(var(--item-focused-background));
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
@if not($disabled-background-color) and $item-background {
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
|
|
165
165
|
// border colors
|
|
166
166
|
@if not($item-border-color) and $item-background {
|
|
167
|
-
$item-border-color:
|
|
167
|
+
$item-border-color: dynamic-shade(var(--item-background), $offset: 7);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
@if not($item-hover-border-color) and $item-border-color {
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
|
|
438
438
|
// date start
|
|
439
439
|
@if not($date-hover-background) and $content-background {
|
|
440
|
-
$date-hover-background:
|
|
440
|
+
$date-hover-background: dynamic-shade(var(--content-background));
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
@if not($date-hover-foreground) and $date-hover-background {
|
|
@@ -473,11 +473,11 @@
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
@if not($date-current-hover-background) and $date-current-background {
|
|
476
|
-
$date-current-hover-background:
|
|
476
|
+
$date-current-hover-background: dynamic-shade(var(--date-current-background));
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
@if not($date-current-hover-border-color) and $date-current-border-color {
|
|
480
|
-
$date-current-hover-border-color:
|
|
480
|
+
$date-current-hover-border-color: dynamic-shade(var(--date-current-border-color));
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
@if not($date-current-focus-background) and $date-current-hover-background {
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
@if not($date-selected-hover-background) and $date-selected-background {
|
|
584
|
-
$date-selected-hover-background:
|
|
584
|
+
$date-selected-hover-background: dynamic-shade(var(--date-selected-background));
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
@if not($date-selected-current-hover-background) and $date-selected-hover-background {
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
}
|
|
688
688
|
|
|
689
689
|
@if not($date-special-hover-foreground) and $date-special-foreground {
|
|
690
|
-
$date-special-hover-foreground:
|
|
690
|
+
$date-special-hover-foreground: dynamic-shade(var(--date-special-foreground), $offset: 7);
|
|
691
691
|
}
|
|
692
692
|
|
|
693
693
|
@if not($date-special-hover-border-color) and $date-special-hover-foreground {
|
|
@@ -700,7 +700,7 @@
|
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
@if not($date-special-hover-foreground) and $date-special-foreground {
|
|
703
|
-
$date-special-hover-foreground:
|
|
703
|
+
$date-special-hover-foreground: dynamic-shade(var(--date-special-foreground), $offset: 7);
|
|
704
704
|
}
|
|
705
705
|
|
|
706
706
|
@if not($date-special-hover-background) and $date-hover-background {
|
|
@@ -750,7 +750,7 @@
|
|
|
750
750
|
}
|
|
751
751
|
|
|
752
752
|
@if not($ym-selected-hover-background) and $ym-selected-background {
|
|
753
|
-
$ym-selected-hover-background:
|
|
753
|
+
$ym-selected-hover-background: dynamic-shade(var(--ym-selected-background));
|
|
754
754
|
}
|
|
755
755
|
|
|
756
756
|
@if not($ym-current-background) and $date-current-background {
|
|
@@ -794,11 +794,11 @@
|
|
|
794
794
|
}
|
|
795
795
|
|
|
796
796
|
@if not($ym-current-hover-background) and $ym-current-background {
|
|
797
|
-
$ym-current-hover-background:
|
|
797
|
+
$ym-current-hover-background: dynamic-shade(var(--ym-current-background));
|
|
798
798
|
}
|
|
799
799
|
|
|
800
800
|
@if not($ym-selected-hover-background) and $ym-selected-background {
|
|
801
|
-
$ym-selected-hover-background: hsla(from var(--ym-selected-background) h s
|
|
801
|
+
$ym-selected-hover-background: hsla(from dynamic-shade(var(--ym-selected-background)) h s l / 0.5);
|
|
802
802
|
}
|
|
803
803
|
|
|
804
804
|
@if not($ym-selected-current-outline-color) and $ym-selected-current-foreground {
|
|
@@ -940,7 +940,7 @@
|
|
|
940
940
|
}
|
|
941
941
|
|
|
942
942
|
@if not($date-special-range-foreground) and $date-special-foreground {
|
|
943
|
-
$date-special-range-foreground:
|
|
943
|
+
$date-special-range-foreground: dynamic-shade(var(--date-special-foreground), $offset: 7);
|
|
944
944
|
}
|
|
945
945
|
|
|
946
946
|
@if not($date-special-range-border-color) and $date-special-range-foreground {
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
@if not($content-text-color) and $background {
|
|
70
|
-
$content-text-color:
|
|
70
|
+
$content-text-color: dynamic-shade(adaptive-contrast(var(--background)), $offset: 7);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
@if not($subtitle-text-color) and $background {
|
|
74
|
-
$subtitle-text-color:
|
|
74
|
+
$subtitle-text-color: dynamic-shade(adaptive-contrast(var(--background)), $offset: 7);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
@if not($resting-shadow) {
|
|
@@ -93,15 +93,15 @@
|
|
|
93
93
|
|
|
94
94
|
@if $variant == 'indigo' {
|
|
95
95
|
@if not($button-hover-background) and $button-background {
|
|
96
|
-
$button-hover-background:
|
|
96
|
+
$button-hover-background: dynamic-shade(var(--button-background));
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
@if not($button-border-color) and $button-background {
|
|
100
|
-
$button-border-color:
|
|
100
|
+
$button-border-color: dynamic-shade(var(--button-background));
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
@if not($button-hover-border-color) and $button-border-color {
|
|
104
|
-
$button-hover-border-color:
|
|
104
|
+
$button-hover-border-color: dynamic-shade(var(--button-border-color));
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
@if not($indicator-active-dot-color) and not($indicator-background) and $button-background {
|
|
@@ -138,24 +138,35 @@
|
|
|
138
138
|
$button-disabled-arrow-color: hsla(from adaptive-contrast(var(--button-disabled-background)) h s l / 0.4);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
@if not($indicator-dot-color) and $indicator-background {
|
|
142
|
-
$indicator-dot-color: hsla(from adaptive-contrast(var(--indicator-background)) h s l / 0.8);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
141
|
@if not($indicator-hover-dot-color) and $indicator-dot-color {
|
|
146
|
-
$indicator-hover-dot-color:
|
|
142
|
+
$indicator-hover-dot-color: dynamic-shade(var(--indicator-dot-color));
|
|
147
143
|
}
|
|
148
144
|
|
|
149
|
-
@if
|
|
150
|
-
$indicator-
|
|
151
|
-
|
|
145
|
+
@if $variant == 'indigo' {
|
|
146
|
+
@if not($indicator-dot-color) and $indicator-background {
|
|
147
|
+
$indicator-dot-color: hsla(from adaptive-contrast(var(--indicator-background)) h s l / 0.8);
|
|
148
|
+
}
|
|
152
149
|
|
|
153
|
-
|
|
154
|
-
|
|
150
|
+
@if not($indicator-hover-dot-color) and $indicator-dot-color {
|
|
151
|
+
$indicator-hover-dot-color: hsla(from var(--indicator-dot-color) h s l / 1);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@if not($indicator-border-color) and $indicator-dot-color {
|
|
155
|
+
$indicator-border-color: var(--indicator-dot-color);
|
|
156
|
+
}
|
|
157
|
+
} @else {
|
|
158
|
+
@if not($indicator-border-color) and $indicator-background {
|
|
159
|
+
$indicator-border-color: hsla(from adaptive-contrast(var(--indicator-background)) h s l / 0.8);
|
|
160
|
+
}
|
|
155
161
|
}
|
|
156
162
|
|
|
157
163
|
@if not($indicator-active-hover-dot-color) and $indicator-active-dot-color {
|
|
158
|
-
$indicator-active-hover-dot-color:
|
|
164
|
+
$indicator-active-hover-dot-color: dynamic-shade(var(--indicator-active-dot-color));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@if not($indicator-active-dot-color) and $indicator-background {
|
|
168
|
+
$indicator-active-dot-color: adaptive-contrast(var(--indicator-background));
|
|
169
|
+
$indicator-active-hover-dot-color: var(--indicator-active-dot-color);
|
|
159
170
|
}
|
|
160
171
|
|
|
161
172
|
@if not($indicator-active-border-color) and $indicator-active-dot-color {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
/// @param {Color} $fill-color-hover [null] - The checked border and fill colors on hover.
|
|
26
26
|
/// @param {Color} $tick-color [null] - The checked mark color.
|
|
27
27
|
/// @param {Color} $tick-color-hover [null] - The checked mark color on hover.
|
|
28
|
+
/// @param {Number} $tick-width [null] - The checked mark width.
|
|
28
29
|
/// @param {Color} $disabled-color [null] - The disabled border and fill colors.
|
|
29
30
|
/// @param {Color} $disabled-tick-color [null] - The checked mark color in disabled state.
|
|
30
31
|
/// @param {Color} $disabled-indeterminate-color [null] - The disabled border and fill colors in indeterminate state.
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
$fill-color-hover: null,
|
|
59
60
|
$tick-color: null,
|
|
60
61
|
$tick-color-hover: null,
|
|
62
|
+
$tick-width: null,
|
|
61
63
|
$disabled-color: null,
|
|
62
64
|
$disabled-tick-color: null,
|
|
63
65
|
$disabled-indeterminate-color: null,
|
|
@@ -84,11 +86,11 @@
|
|
|
84
86
|
$variant: map.get($theme, '_meta', 'theme');
|
|
85
87
|
|
|
86
88
|
@if not($empty-color-hover) and $empty-color {
|
|
87
|
-
$empty-color-hover:
|
|
89
|
+
$empty-color-hover: dynamic-shade(var(--empty-color));
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
@if not($fill-color-hover) and $fill-color {
|
|
91
|
-
$fill-color-hover:
|
|
93
|
+
$fill-color-hover: dynamic-shade(var(--fill-color));
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
@if not($tick-color) and $fill-color {
|
|
@@ -96,7 +98,7 @@
|
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
@if not($label-color-hover) and $label-color {
|
|
99
|
-
$label-color-hover:
|
|
101
|
+
$label-color-hover: dynamic-shade(var(--label-color));
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
@if not($focus-border-color) and $fill-color {
|
|
@@ -108,7 +110,7 @@
|
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
@if not($error-color-hover) and $error-color {
|
|
111
|
-
$error-color-hover:
|
|
113
|
+
$error-color-hover: dynamic-shade(var(--error-color));
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
@if not($focus-outline-color-error) and $error-color {
|
|
@@ -145,6 +147,7 @@
|
|
|
145
147
|
fill-color-hover: $fill-color-hover,
|
|
146
148
|
tick-color: $tick-color,
|
|
147
149
|
tick-color-hover: $tick-color-hover,
|
|
150
|
+
tick-width: $tick-width,
|
|
148
151
|
disabled-color: $disabled-color,
|
|
149
152
|
disabled-tick-color: $disabled-tick-color,
|
|
150
153
|
disabled-indeterminate-color: $disabled-indeterminate-color,
|