igniteui-angular 20.0.0 → 20.0.2
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/fesm2022/igniteui-angular.mjs +9 -11
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/lib/core/styles/components/_common/_igx-vhelper.scss +1 -0
- package/lib/core/styles/components/action-strip/_action-strip-theme.scss +2 -7
- package/lib/core/styles/components/avatar/_avatar-theme.scss +7 -8
- package/lib/core/styles/components/badge/_badge-theme.scss +3 -8
- package/lib/core/styles/components/banner/_banner-theme.scss +6 -7
- package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +17 -28
- package/lib/core/styles/components/button/_button-theme.scss +219 -158
- package/lib/core/styles/components/button/_contained-button-theme.scss +302 -0
- package/lib/core/styles/components/button/_fab-button-theme.scss +296 -0
- package/lib/core/styles/components/button/_flat-button-theme.scss +356 -0
- package/lib/core/styles/components/button/_outlined-button-theme.scss +419 -0
- package/lib/core/styles/components/button-group/_button-group-theme.scss +113 -29
- package/lib/core/styles/components/calendar/_calendar-theme.scss +502 -112
- package/lib/core/styles/components/card/_card-theme.scss +5 -16
- package/lib/core/styles/components/carousel/_carousel-theme.scss +103 -23
- package/lib/core/styles/components/checkbox/_checkbox-component.scss +1 -1
- package/lib/core/styles/components/checkbox/_checkbox-theme.scss +63 -11
- package/lib/core/styles/components/chip/_chip-theme.scss +64 -47
- package/lib/core/styles/components/column-actions/_column-actions-theme.scss +2 -7
- package/lib/core/styles/components/combo/_combo-theme.scss +54 -12
- package/lib/core/styles/components/dialog/_dialog-theme.scss +9 -12
- package/lib/core/styles/components/divider/_divider-theme.scss +1 -6
- package/lib/core/styles/components/drop-down/_drop-down-theme.scss +52 -32
- package/lib/core/styles/components/expansion-panel/_expansion-panel-theme.scss +18 -13
- package/lib/core/styles/components/grid/_grid-theme.scss +115 -94
- package/lib/core/styles/components/grid/_pivot-data-selector-theme.scss +1 -6
- package/lib/core/styles/components/grid-summary/_grid-summary-theme.scss +12 -13
- package/lib/core/styles/components/grid-toolbar/_grid-toolbar-theme.scss +7 -12
- package/lib/core/styles/components/highlight/highlight-theme.scss +2 -3
- package/lib/core/styles/components/icon/_icon-theme.scss +0 -1
- package/lib/core/styles/components/icon-button/_contained-icon-button-theme.scss +196 -0
- package/lib/core/styles/components/icon-button/_flat-icon-button-theme.scss +188 -0
- package/lib/core/styles/components/icon-button/_icon-button-theme.scss +45 -32
- package/lib/core/styles/components/icon-button/_outlined-icon-button-theme.scss +232 -0
- package/lib/core/styles/components/input/_input-group-theme.scss +272 -21
- package/lib/core/styles/components/label/_label-theme.scss +2 -4
- package/lib/core/styles/components/list/_list-theme.scss +42 -66
- package/lib/core/styles/components/navbar/_navbar-theme.scss +25 -15
- package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +24 -22
- package/lib/core/styles/components/overlay/_overlay-theme.scss +0 -1
- package/lib/core/styles/components/paginator/_paginator-theme.scss +2 -7
- package/lib/core/styles/components/progress/circular/_circular-theme.scss +3 -8
- package/lib/core/styles/components/progress/linear/_linear-theme.scss +1 -6
- package/lib/core/styles/components/query-builder/_query-builder-theme.scss +28 -11
- package/lib/core/styles/components/radio/_radio-theme.scss +54 -10
- package/lib/core/styles/components/ripple/_ripple-theme.scss +0 -1
- package/lib/core/styles/components/scrollbar/scrollbar-theme.scss +0 -1
- package/lib/core/styles/components/select/_select-theme.scss +35 -7
- package/lib/core/styles/components/slider/_slider-theme.scss +92 -7
- package/lib/core/styles/components/snackbar/_snackbar-theme.scss +3 -8
- package/lib/core/styles/components/splitter/_splitter-theme.scss +15 -8
- package/lib/core/styles/components/stepper/_stepper-theme.scss +190 -22
- package/lib/core/styles/components/switch/_switch-theme.scss +112 -8
- package/lib/core/styles/components/tabs/_tabs-theme.scss +124 -56
- package/lib/core/styles/components/time-picker/_time-picker-theme.scss +35 -18
- package/lib/core/styles/components/toast/_toast-theme.scss +9 -10
- package/lib/core/styles/components/tooltip/_tooltip-theme.scss +2 -7
- package/lib/core/styles/components/tree/_tree-theme.scss +33 -10
- package/lib/core/styles/components/watermark/_watermark-theme.scss +0 -1
- package/lib/core/styles/themes/_core.scss +6 -0
- package/lib/core/styles/themes/generators/_base.scss +146 -58
- package/migrations/migration-collection.json +5 -0
- package/migrations/update-20_0_2/changes/theme-changes.json +11 -0
- package/migrations/update-20_0_2/index.d.ts +3 -0
- package/migrations/update-20_0_2/index.js +18 -0
- package/package.json +1 -1
- package/styles/igniteui-angular-dark.css +1 -1
- package/styles/igniteui-angular.css +1 -1
- package/styles/igniteui-bootstrap-dark.css +1 -1
- package/styles/igniteui-bootstrap-light.css +1 -1
- package/styles/igniteui-dark-green.css +1 -1
- package/styles/igniteui-fluent-dark-excel.css +1 -1
- package/styles/igniteui-fluent-dark-word.css +1 -1
- package/styles/igniteui-fluent-dark.css +1 -1
- package/styles/igniteui-fluent-light-excel.css +1 -1
- package/styles/igniteui-fluent-light-word.css +1 -1
- package/styles/igniteui-fluent-light.css +1 -1
- package/styles/igniteui-indigo-dark.css +1 -1
- package/styles/igniteui-indigo-light.css +1 -1
- package/styles/maps/igniteui-angular-dark.css.map +1 -1
- package/styles/maps/igniteui-angular.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
- package/styles/maps/igniteui-dark-green.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-light.css.map +1 -1
- package/styles/maps/igniteui-indigo-dark.css.map +1 -1
- package/styles/maps/igniteui-indigo-light.css.map +1 -1
|
@@ -94,160 +94,140 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
$theme: digest-schema($list-schema);
|
|
97
|
-
$
|
|
97
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
98
98
|
|
|
99
99
|
@if not($header-background) and $background {
|
|
100
|
-
$header-background:
|
|
100
|
+
$header-background: var(--background);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
@if not($header-background) and $item-background {
|
|
104
|
-
$header-background:
|
|
104
|
+
$header-background: var(--item-background);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
@if not($item-background) and $background {
|
|
108
|
-
$item-background:
|
|
108
|
+
$item-background: var(--background);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
@if not($background) and $item-background {
|
|
112
|
-
$background:
|
|
112
|
+
$background: var(--item-background);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
@if not($item-background-hover) and $item-background {
|
|
116
|
-
|
|
117
|
-
@if luminance($item-background) < .5 {
|
|
118
|
-
$item-background-hover: color.scale($item-background, $lightness: 8%);
|
|
119
|
-
} @else {
|
|
120
|
-
$item-background-hover: color.scale($item-background, $lightness: -8%);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
116
|
+
$item-background-hover: hsl(from var(--item-background) h s calc(l * 0.9));
|
|
123
117
|
}
|
|
124
118
|
|
|
125
|
-
@if not($item-background-active) and $item-background {
|
|
126
|
-
|
|
127
|
-
@if luminance($item-background) < .5 {
|
|
128
|
-
$item-background-active: color.scale($item-background, $lightness: 8%);
|
|
129
|
-
} @else {
|
|
130
|
-
$item-background-active: color.scale($item-background, $lightness: -8%);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
119
|
+
@if not($item-background-active) and $item-background-hover {
|
|
120
|
+
$item-background-active: var(--item-background-hover);
|
|
133
121
|
}
|
|
134
122
|
|
|
135
|
-
@if not($item-background-selected) and $item-background {
|
|
136
|
-
|
|
137
|
-
@if luminance($item-background) < .5 {
|
|
138
|
-
$item-background-selected: color.scale($item-background, $lightness: 8%);
|
|
139
|
-
} @else {
|
|
140
|
-
$item-background-selected: color.scale($item-background, $lightness: -8%);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
123
|
+
@if not($item-background-selected) and $item-background-active {
|
|
124
|
+
$item-background-selected: var(--item-background-active);
|
|
143
125
|
}
|
|
144
126
|
|
|
145
127
|
@if not($header-text-color) and $header-background {
|
|
146
|
-
$header-text-color:
|
|
128
|
+
$header-text-color: adaptive-contrast(var(--header-background));
|
|
147
129
|
}
|
|
148
130
|
|
|
149
131
|
@if not($item-text-color) and $item-background {
|
|
150
|
-
$item-text-color:
|
|
132
|
+
$item-text-color: adaptive-contrast(var(--item-background));
|
|
151
133
|
}
|
|
152
134
|
|
|
153
135
|
@if not($item-title-color) and $item-background {
|
|
154
|
-
$item-title-color:
|
|
136
|
+
$item-title-color: adaptive-contrast(var(--item-background));
|
|
155
137
|
}
|
|
156
138
|
|
|
157
139
|
@if not($item-action-color) and $item-background {
|
|
158
|
-
$item-action-color:
|
|
140
|
+
$item-action-color: adaptive-contrast(var(--item-background));
|
|
159
141
|
}
|
|
160
142
|
|
|
161
143
|
@if not($item-thumbnail-color) and $item-background {
|
|
162
|
-
$item-thumbnail-color:
|
|
144
|
+
$item-thumbnail-color: adaptive-contrast(var(--item-background));
|
|
163
145
|
}
|
|
164
146
|
|
|
165
147
|
@if not($item-subtitle-color) and $item-background {
|
|
166
|
-
|
|
167
|
-
$item-subtitle-color: rgba(text-contrast($item-background), .74);
|
|
168
|
-
}
|
|
148
|
+
$item-subtitle-color: hsla(from adaptive-contrast(var(--item-background)) h s l / .74);
|
|
169
149
|
}
|
|
170
150
|
|
|
171
151
|
@if not($item-subtitle-color) and $item-text-color {
|
|
172
|
-
$item-subtitle-color:
|
|
152
|
+
$item-subtitle-color: var(--item-text-color);
|
|
173
153
|
}
|
|
174
154
|
|
|
175
155
|
@if not($item-text-color-hover) and $item-background-hover {
|
|
176
|
-
$item-text-color-hover:
|
|
156
|
+
$item-text-color-hover: adaptive-contrast(var(--item-background-hover));
|
|
177
157
|
}
|
|
178
158
|
|
|
179
159
|
@if not($item-title-color-hover) and $item-background-hover {
|
|
180
|
-
$item-title-color-hover:
|
|
160
|
+
$item-title-color-hover: adaptive-contrast(var(--item-background-hover));
|
|
181
161
|
}
|
|
182
162
|
|
|
183
163
|
@if not($item-action-color-hover) and $item-background-hover {
|
|
184
|
-
$item-action-color-hover:
|
|
164
|
+
$item-action-color-hover: adaptive-contrast(var(--item-background-hover));
|
|
185
165
|
}
|
|
186
166
|
|
|
187
167
|
@if not($item-thumbnail-color-hover) and $item-background-hover {
|
|
188
|
-
$item-thumbnail-color-hover:
|
|
168
|
+
$item-thumbnail-color-hover: adaptive-contrast(var(--item-background-hover));
|
|
189
169
|
}
|
|
190
170
|
|
|
191
171
|
@if not($item-subtitle-color-hover) and $item-background-hover {
|
|
192
|
-
|
|
193
|
-
$item-subtitle-color-hover: rgba(text-contrast($item-background-hover), .74);
|
|
194
|
-
}
|
|
172
|
+
$item-subtitle-color-hover: hsla(from adaptive-contrast(var(--item-background-hover)) h s l / .74);
|
|
195
173
|
}
|
|
196
174
|
|
|
197
175
|
@if not($item-subtitle-color-hover) and $item-text-color-hover {
|
|
198
|
-
$item-subtitle-color-hover:
|
|
176
|
+
$item-subtitle-color-hover: var(--item-text-color-hover);
|
|
199
177
|
}
|
|
200
178
|
|
|
201
179
|
@if not($item-text-color-active) and $item-background-active {
|
|
202
|
-
$item-text-color-active:
|
|
180
|
+
$item-text-color-active: adaptive-contrast(var(--item-background-active));
|
|
203
181
|
}
|
|
204
182
|
|
|
205
183
|
@if not($item-text-color-selected) and $item-background-selected {
|
|
206
|
-
$item-text-color-selected:
|
|
184
|
+
$item-text-color-selected: adaptive-contrast(var(--item-background-selected));
|
|
207
185
|
}
|
|
208
186
|
|
|
209
187
|
@if not($item-title-color-active) and $item-background-active {
|
|
210
|
-
$item-title-color-active:
|
|
188
|
+
$item-title-color-active: adaptive-contrast(var(--item-background-active));
|
|
211
189
|
}
|
|
212
190
|
|
|
213
191
|
@if not($item-title-color-selected) and $item-background-selected {
|
|
214
|
-
$item-title-color-selected:
|
|
192
|
+
$item-title-color-selected: adaptive-contrast(var(--item-background-selected));
|
|
215
193
|
}
|
|
216
194
|
|
|
217
195
|
@if not($item-action-color-active) and $item-background-active {
|
|
218
|
-
$item-action-color-active:
|
|
196
|
+
$item-action-color-active: adaptive-contrast(var(--item-background-active));
|
|
219
197
|
}
|
|
220
198
|
|
|
221
199
|
@if not($item-action-color-selected) and $item-background-selected {
|
|
222
|
-
$item-action-color-selected:
|
|
200
|
+
$item-action-color-selected: adaptive-contrast(var(--item-background-selected));
|
|
223
201
|
}
|
|
224
202
|
|
|
225
203
|
@if not($item-thumbnail-color-active) and $item-background-active {
|
|
226
|
-
$item-thumbnail-color-active:
|
|
204
|
+
$item-thumbnail-color-active: adaptive-contrast(var(--item-background-active));
|
|
227
205
|
}
|
|
228
206
|
|
|
229
207
|
@if not($item-thumbnail-color-selected) and $item-background-selected {
|
|
230
|
-
$item-thumbnail-color-selected:
|
|
208
|
+
$item-thumbnail-color-selected: adaptive-contrast(var(--item-background-selected));
|
|
231
209
|
}
|
|
232
210
|
|
|
233
211
|
@if not($item-subtitle-color-active) and $item-background-active {
|
|
234
|
-
|
|
235
|
-
$item-subtitle-color-active: rgba(text-contrast($item-background-active), .74);
|
|
236
|
-
}
|
|
212
|
+
$item-subtitle-color-active: hsla(from adaptive-contrast(var(--item-background-active)) h s l / .74);
|
|
237
213
|
}
|
|
238
214
|
|
|
239
215
|
@if not($item-subtitle-color-selected) and $item-background-selected {
|
|
240
|
-
|
|
241
|
-
$item-subtitle-color-selected: rgba(text-contrast($item-background-selected), .74);
|
|
242
|
-
}
|
|
216
|
+
$item-subtitle-color-selected: hsla(from adaptive-contrast(var(--item-background-selected)) h s l / .74);
|
|
243
217
|
}
|
|
244
218
|
|
|
245
219
|
@if not($item-subtitle-color-active) and $item-text-color-active {
|
|
246
|
-
$item-subtitle-color-active:
|
|
220
|
+
$item-subtitle-color-active: var(--item-text-color-active);
|
|
247
221
|
}
|
|
248
222
|
|
|
249
223
|
@if not($item-subtitle-color-selected) and $item-text-color-selected {
|
|
250
|
-
$item-subtitle-color-selected:
|
|
224
|
+
$item-subtitle-color-selected: var(--item-text-color-selected);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@if $variant == 'fluent' or $variant == 'bootstrap'{
|
|
228
|
+
@if not($border-color) and $item-background {
|
|
229
|
+
$border-color: hsla(from adaptive-contrast(var(--item-background)) h s l / .15);
|
|
230
|
+
}
|
|
251
231
|
}
|
|
252
232
|
|
|
253
233
|
@return extend($theme, (
|
|
@@ -283,10 +263,6 @@
|
|
|
283
263
|
item-thumbnail-color-selected: $item-thumbnail-color-selected,
|
|
284
264
|
border-color: $border-color,
|
|
285
265
|
border-width: $border-width,
|
|
286
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
287
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
288
|
-
variant: map.get($schema, '_meta', 'theme')
|
|
289
|
-
)),
|
|
290
266
|
));
|
|
291
267
|
}
|
|
292
268
|
|
|
@@ -296,7 +272,7 @@
|
|
|
296
272
|
@mixin list($theme) {
|
|
297
273
|
@include css-vars($theme);
|
|
298
274
|
|
|
299
|
-
$variant: map.get($theme, '_meta', '
|
|
275
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
300
276
|
$bootstrap-theme: $variant == 'bootstrap';
|
|
301
277
|
|
|
302
278
|
$theme-padding-block-l: map.get((
|
|
@@ -43,18 +43,32 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
$theme: digest-schema($navbar-schema);
|
|
46
|
-
$
|
|
46
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
47
47
|
|
|
48
48
|
@if not($text-color) and $background {
|
|
49
|
-
$text-color:
|
|
49
|
+
$text-color: adaptive-contrast(var(--background));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@if not($hover-icon-color) and $idle-icon-color {
|
|
53
|
+
$hover-icon-color: hsl(from (var(--idle-icon-color)) h s calc(l * 1.1));
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
@if not($idle-icon-color) and $background {
|
|
53
|
-
$idle-icon-color:
|
|
57
|
+
$idle-icon-color: adaptive-contrast(var(--background));
|
|
54
58
|
}
|
|
55
59
|
|
|
56
|
-
@if
|
|
57
|
-
$
|
|
60
|
+
@if $variant == 'indigo' {
|
|
61
|
+
@if not($border-color) and $background {
|
|
62
|
+
$border-color: hsla(from adaptive-contrast(var(--background)) h s l / 0.3);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@if not($hover-icon-color) and $background {
|
|
66
|
+
$hover-icon-color: hsla(from adaptive-contrast(var(--background)) h s l / 0.7);
|
|
67
|
+
}
|
|
68
|
+
} @else {
|
|
69
|
+
@if not($hover-icon-color) and $background {
|
|
70
|
+
$hover-icon-color: adaptive-contrast(var(--background));
|
|
71
|
+
}
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
@if not($shadow) {
|
|
@@ -74,10 +88,6 @@
|
|
|
74
88
|
idle-icon-color: $idle-icon-color,
|
|
75
89
|
hover-icon-color: $hover-icon-color,
|
|
76
90
|
shadow: $shadow,
|
|
77
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
78
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
79
|
-
variant: map.get($schema, '_meta', 'theme')
|
|
80
|
-
)),
|
|
81
91
|
));
|
|
82
92
|
}
|
|
83
93
|
|
|
@@ -86,7 +96,7 @@
|
|
|
86
96
|
/// @param {Map} $theme - The theme used to style the component.
|
|
87
97
|
@mixin navbar($theme) {
|
|
88
98
|
@include css-vars($theme);
|
|
89
|
-
$variant: map.get($theme, '_meta', '
|
|
99
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
90
100
|
|
|
91
101
|
$navbar-padding: rem(16px);
|
|
92
102
|
$navbar-title-fz: rem(18px, 16px);
|
|
@@ -194,19 +204,19 @@
|
|
|
194
204
|
igx-icon,
|
|
195
205
|
igc-icon {
|
|
196
206
|
--component-size: 3;
|
|
207
|
+
|
|
197
208
|
cursor: pointer;
|
|
209
|
+
user-select: none;
|
|
210
|
+
transition: color .15s $out-quad;
|
|
198
211
|
}
|
|
199
212
|
|
|
200
|
-
>
|
|
201
|
-
>
|
|
202
|
-
transition: color .15s $out-quad;
|
|
213
|
+
>igx-icon,
|
|
214
|
+
>igc-icon {
|
|
203
215
|
color: var-get($theme, 'idle-icon-color');
|
|
204
216
|
|
|
205
217
|
&:hover {
|
|
206
218
|
color: var-get($theme, 'hover-icon-color');
|
|
207
219
|
}
|
|
208
|
-
|
|
209
|
-
user-select: none;
|
|
210
220
|
}
|
|
211
221
|
|
|
212
222
|
@if $variant == 'indigo' {
|
|
@@ -73,42 +73,48 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
$theme: digest-schema($navdrawer-schema);
|
|
76
|
-
$meta: map.get($theme, '_meta');
|
|
77
76
|
|
|
78
77
|
@if not($item-header-text-color) and $background {
|
|
79
|
-
$item-header-text-color:
|
|
78
|
+
$item-header-text-color: adaptive-contrast(var(--background));
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
@if not($item-text-color) and $background {
|
|
83
|
-
$item-text-color:
|
|
82
|
+
$item-text-color: adaptive-contrast(var(--background));
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
@if not($item-icon-color) and $background {
|
|
87
|
-
$item-icon-color:
|
|
86
|
+
$item-icon-color: adaptive-contrast(var(--background));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@if not($item-hover-background) and $background {
|
|
90
|
+
$item-hover-background: hsla(from adaptive-contrast(var(--background)) h s l / .08);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@if not($item-hover-text-color) and $background {
|
|
94
|
+
$item-hover-text-color: adaptive-contrast(var(--background));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@if not($item-hover-icon-color) and $background {
|
|
98
|
+
$item-hover-icon-color: adaptive-contrast(var(--background));
|
|
88
99
|
}
|
|
89
100
|
|
|
90
101
|
@if not($item-active-background) and $background {
|
|
91
|
-
|
|
92
|
-
$item-active-background: rgba(text-contrast($background), .24);
|
|
93
|
-
}
|
|
102
|
+
$item-active-background: hsla(from adaptive-contrast(var(--background)) h s l / .24);
|
|
94
103
|
}
|
|
95
104
|
|
|
96
105
|
@if not($item-active-text-color) and $item-active-background {
|
|
97
|
-
$item-active-text-color:
|
|
106
|
+
$item-active-text-color: adaptive-contrast(var(--item-active-background));
|
|
98
107
|
}
|
|
99
108
|
|
|
100
109
|
@if not($item-active-icon-color) and $item-active-background {
|
|
101
|
-
$item-active-icon-color:
|
|
110
|
+
$item-active-icon-color: adaptive-contrast(var(--item-active-background));
|
|
102
111
|
}
|
|
103
112
|
|
|
104
|
-
@if not($item-
|
|
105
|
-
|
|
106
|
-
$item-hover-background: rgba(text-contrast($background), .08);
|
|
107
|
-
}
|
|
113
|
+
@if not($item-disabled-text-color) and $background {
|
|
114
|
+
$item-disabled-text-color: hsla(from adaptive-contrast(var(--background)) h s l / .38);
|
|
108
115
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
$item-hover-text-color: text-contrast($background);
|
|
116
|
+
@if not($item-disabled-icon-color) and $background {
|
|
117
|
+
$item-disabled-icon-color: hsla(from adaptive-contrast(var(--background)) h s l / .38);
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
@if not($shadow) {
|
|
@@ -133,11 +139,7 @@
|
|
|
133
139
|
item-hover-icon-color: $item-hover-icon-color,
|
|
134
140
|
item-disabled-text-color:$item-disabled-text-color,
|
|
135
141
|
item-disabled-icon-color: $item-disabled-icon-color,
|
|
136
|
-
shadow: $shadow
|
|
137
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
138
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
139
|
-
variant: map.get($schema, '_meta', 'theme')
|
|
140
|
-
)),
|
|
142
|
+
shadow: $shadow
|
|
141
143
|
));
|
|
142
144
|
}
|
|
143
145
|
|
|
@@ -147,7 +149,7 @@
|
|
|
147
149
|
@mixin navdrawer($theme) {
|
|
148
150
|
@include css-vars($theme);
|
|
149
151
|
|
|
150
|
-
$variant: map.get($theme, '_meta', '
|
|
152
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
151
153
|
$drawer-icon-size: rem(24px);
|
|
152
154
|
|
|
153
155
|
$aside-padding: map.get((
|
|
@@ -38,10 +38,9 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
$theme: digest-schema($grid-paginator-schema);
|
|
41
|
-
$meta: map.get($theme, '_meta');
|
|
42
41
|
|
|
43
42
|
@if not($text-color) and $background-color {
|
|
44
|
-
$text-color:
|
|
43
|
+
$text-color: adaptive-contrast($background-color);
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
@return extend($theme, (
|
|
@@ -49,10 +48,6 @@
|
|
|
49
48
|
text-color: $text-color,
|
|
50
49
|
background-color: $background-color,
|
|
51
50
|
border-color: $border-color,
|
|
52
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
53
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
54
|
-
variant: map.get($schema, '_meta', 'theme')
|
|
55
|
-
)),
|
|
56
51
|
));
|
|
57
52
|
}
|
|
58
53
|
|
|
@@ -62,7 +57,7 @@
|
|
|
62
57
|
@mixin paginator($theme) {
|
|
63
58
|
@include css-vars($theme);
|
|
64
59
|
|
|
65
|
-
$variant: map.get($theme, '_meta', '
|
|
60
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
66
61
|
|
|
67
62
|
$paginator-padding-inline: (
|
|
68
63
|
comfortable: rem(24px),
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
$theme: digest-schema($circular-bar-schema);
|
|
49
|
-
$meta: map.get($theme, '_meta');
|
|
50
49
|
|
|
51
50
|
$fill-color-default-start: map.get($theme, 'fill-color-default');
|
|
52
51
|
$fill-color-default-end: map.get($theme, 'fill-color-default');
|
|
@@ -73,10 +72,6 @@
|
|
|
73
72
|
fill-color-success: $fill-color-success,
|
|
74
73
|
text-color: $text-color,
|
|
75
74
|
diameter: $diameter,
|
|
76
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
77
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
78
|
-
variant: map.get($schema, '_meta', 'theme')
|
|
79
|
-
)),
|
|
80
75
|
));
|
|
81
76
|
}
|
|
82
77
|
|
|
@@ -94,7 +89,7 @@
|
|
|
94
89
|
$diameter: calc(var(--circular-size) + var(--stroke-thickness));
|
|
95
90
|
$radius: calc(var(--circular-size) / 2 - var(--stroke-thickness) * .5);
|
|
96
91
|
$circumference: calc(#{$radius} * 2 * 3.1416);
|
|
97
|
-
$variant: map.get($theme, '_meta', '
|
|
92
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
98
93
|
|
|
99
94
|
%display-circular {
|
|
100
95
|
--circular-size: calc(#{var-get($theme, 'diameter')} - var(--stroke-thickness));
|
|
@@ -136,7 +131,7 @@
|
|
|
136
131
|
|
|
137
132
|
%outer {
|
|
138
133
|
stroke: var-get($theme, 'fill-color-default');
|
|
139
|
-
|
|
134
|
+
|
|
140
135
|
@if $variant != 'bootstrap' {
|
|
141
136
|
animation: igx-initial-dashoffset var(--_transition-duration) linear;
|
|
142
137
|
} @else {
|
|
@@ -313,7 +308,7 @@
|
|
|
313
308
|
%text--hidden {
|
|
314
309
|
visibility: hidden;
|
|
315
310
|
}
|
|
316
|
-
|
|
311
|
+
|
|
317
312
|
%gradient-start {
|
|
318
313
|
stop-color: var-get($theme, 'fill-color-default-end');
|
|
319
314
|
}
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
$linear-bar-schema: if(map.has-key($schema, 'linear-bar'), map.get($schema, 'linear-bar'), $schema);
|
|
53
53
|
|
|
54
54
|
$theme: digest-schema($linear-bar-schema);
|
|
55
|
-
$meta: map.get($theme, '_meta');
|
|
56
55
|
|
|
57
56
|
@if not($track-border-radius) {
|
|
58
57
|
$track-border-radius: map.get($theme, 'track-border-radius');
|
|
@@ -71,10 +70,6 @@
|
|
|
71
70
|
track-border-radius: $track-border-radius,
|
|
72
71
|
track-height: $track-height,
|
|
73
72
|
strip-size: $strip-size,
|
|
74
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
75
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
76
|
-
variant: map.get($schema, '_meta', 'theme')
|
|
77
|
-
)),
|
|
78
73
|
));
|
|
79
74
|
}
|
|
80
75
|
|
|
@@ -127,7 +122,7 @@ $easing-curves: (
|
|
|
127
122
|
@mixin progress-linear($theme) {
|
|
128
123
|
@include css-vars($theme);
|
|
129
124
|
|
|
130
|
-
$variant: map.get($theme, '_meta', '
|
|
125
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
131
126
|
|
|
132
127
|
%display-linear {
|
|
133
128
|
position: relative;
|
|
@@ -52,14 +52,36 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
$theme: digest-schema($query-builder-schema);
|
|
55
|
-
$
|
|
55
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
56
56
|
|
|
57
|
-
@if not($
|
|
58
|
-
$
|
|
57
|
+
@if not($label-foreground) and $background {
|
|
58
|
+
$label-foreground: hsla(from adaptive-contrast(var(--background)) h s l / 0.6);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
@if not($header-background) and $background {
|
|
62
|
-
$header-background:
|
|
62
|
+
$header-background: var(--background);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@if not($header-foreground) and $header-background {
|
|
66
|
+
$header-foreground: adaptive-contrast(var(--header-background));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@if not($subquery-header-background) and $header-background {
|
|
70
|
+
$subquery-header-background: hsl(from var(--header-background) h s calc(l * 0.9));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@if not($subquery-border-color) and $subquery-header-background {
|
|
74
|
+
$subquery-border-color: hsl(from var(--subquery-header-background) h s calc(l * 0.9));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@if not($separator-color) and $subquery-border-color {
|
|
78
|
+
$separator-color: hsl(from var(--subquery-border-color) h s calc(l * 0.9));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@if $variant == 'bootstrap' {
|
|
82
|
+
@if not($header-border) and $subquery-border-color {
|
|
83
|
+
$header-border: var(--subquery-border-color);
|
|
84
|
+
}
|
|
63
85
|
}
|
|
64
86
|
|
|
65
87
|
@return extend($theme, (
|
|
@@ -77,11 +99,6 @@
|
|
|
77
99
|
separator-color: $separator-color,
|
|
78
100
|
border-radius: $border-radius,
|
|
79
101
|
label-foreground: $label-foreground,
|
|
80
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
81
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
82
|
-
variant: map.get($schema, '_meta', 'theme'),
|
|
83
|
-
theme-variant: map.get($schema, '_meta', 'variant')
|
|
84
|
-
)),
|
|
85
102
|
));
|
|
86
103
|
}
|
|
87
104
|
|
|
@@ -98,8 +115,8 @@
|
|
|
98
115
|
@mixin query-builder($theme) {
|
|
99
116
|
@include css-vars($theme);
|
|
100
117
|
|
|
101
|
-
$variant: map.get($theme, '_meta', '
|
|
102
|
-
$theme-variant: map.get($theme, '_meta', '
|
|
118
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
119
|
+
$theme-variant: map.get($theme, '_meta', 'variant');
|
|
103
120
|
$bootstrap-theme: $variant == 'bootstrap';
|
|
104
121
|
$not-bootstrap-theme: not($bootstrap-theme);
|
|
105
122
|
|