igniteui-angular 17.2.2 → 17.2.4
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/esm2022/lib/buttonGroup/buttonGroup.component.mjs +1 -5
- package/esm2022/lib/directives/for-of/for_of.directive.mjs +17 -12
- package/esm2022/lib/grids/common/crud.service.mjs +9 -6
- package/esm2022/lib/grids/grid-base.directive.mjs +20 -9
- package/esm2022/lib/grids/pivot-grid/pivot-header-row.component.mjs +2 -2
- package/esm2022/lib/navbar/navbar.component.mjs +3 -3
- package/esm2022/lib/navigation-drawer/navigation-drawer.component.mjs +2 -31
- package/fesm2022/igniteui-angular.mjs +47 -61
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/lib/core/styles/components/bottom-nav/_bottom-nav-component.scss +2 -0
- package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +107 -24
- package/lib/core/styles/components/button/_button-theme.scss +17 -3
- package/lib/core/styles/components/button-group/_button-group-theme.scss +6 -6
- package/lib/core/styles/components/navbar/_navbar-component.scss +4 -0
- package/lib/core/styles/components/navbar/_navbar-theme.scss +67 -26
- package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +43 -33
- package/lib/core/styles/components/switch/_switch-component.scss +12 -0
- package/lib/core/styles/components/switch/_switch-theme.scss +24 -18
- package/lib/core/styles/typography/_indigo.scss +10 -3
- package/lib/directives/for-of/for_of.directive.d.ts +2 -2
- package/lib/grids/grid-base.directive.d.ts +1 -1
- package/lib/navigation-drawer/navigation-drawer.component.d.ts +5 -5
- package/migrations/migration-collection.json +5 -0
- package/migrations/update-17_2_3/changes/theme-changes.json +17 -0
- package/migrations/update-17_2_3/index.d.ts +3 -0
- package/migrations/update-17_2_3/index.js +31 -0
- package/package.json +2 -2
- 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
|
@@ -62,10 +62,12 @@
|
|
|
62
62
|
|
|
63
63
|
[igxBottomNavHeaderIcon] {
|
|
64
64
|
@extend %igx-tab-icon !optional;
|
|
65
|
+
@extend %igx-tab-icon--disabled !optional;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
[igxBottomNavHeaderLabel] {
|
|
68
69
|
@extend %igx-tab-label !optional;
|
|
70
|
+
@extend %igx-tab-label--disabled !optional;
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
}
|
|
@@ -12,16 +12,19 @@
|
|
|
12
12
|
////
|
|
13
13
|
|
|
14
14
|
/// If only background color is specified,
|
|
15
|
-
/// the
|
|
15
|
+
/// the label and icon colors will be assigned automatically to a contrasting color.
|
|
16
16
|
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
17
17
|
/// @param {Map} $elevations [null] - The elevations (shadows) map to be used.
|
|
18
18
|
/// @param {Color} $background [null] - The background color used for the toast.
|
|
19
|
-
/// @param {Color} $
|
|
20
|
-
/// @param {Color} $
|
|
19
|
+
/// @param {Color} $label-color [null] - The label color used in idle state.
|
|
20
|
+
/// @param {Color} $icon-color [null] - The icon color used in idle state.
|
|
21
|
+
/// @param {Color} $label-selected-color [null] - The label color used in selected state.
|
|
22
|
+
/// @param {Color} $icon-selected-color [null] - The icon color used in selected state.
|
|
23
|
+
/// @param {Color} $icon-disabled-color [null] - The disabled color of the icon.
|
|
24
|
+
/// @param {Color} $label-disabled-color [null] - The disabled color of the label.
|
|
25
|
+
/// @param {Color} $border-color [null] - The border color of the bottom navigation.
|
|
21
26
|
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the bar.
|
|
22
|
-
///
|
|
23
27
|
/// @requires $light-material-schema
|
|
24
|
-
///
|
|
25
28
|
/// @example scss Set a custom background color
|
|
26
29
|
/// $my-bottom-nav-theme: bottom-nav-theme($background: black);
|
|
27
30
|
/// // Pass the theme to the css-vars() mixin
|
|
@@ -29,11 +32,15 @@
|
|
|
29
32
|
@function bottom-nav-theme(
|
|
30
33
|
$schema: $light-material-schema,
|
|
31
34
|
$elevations: null,
|
|
32
|
-
|
|
33
35
|
$background: null,
|
|
34
|
-
$
|
|
35
|
-
$
|
|
36
|
-
$
|
|
36
|
+
$icon-color: null,
|
|
37
|
+
$icon-selected-color: null,
|
|
38
|
+
$label-color: null,
|
|
39
|
+
$label-selected-color: null,
|
|
40
|
+
$icon-disabled-color: null,
|
|
41
|
+
$label-disabled-color: null,
|
|
42
|
+
$border-color: null,
|
|
43
|
+
$shadow: null,
|
|
37
44
|
) {
|
|
38
45
|
$name: 'igx-bottom-nav';
|
|
39
46
|
$bottom-nav-schema: ();
|
|
@@ -46,9 +53,41 @@
|
|
|
46
53
|
|
|
47
54
|
$theme: digest-schema($bottom-nav-schema);
|
|
48
55
|
|
|
49
|
-
|
|
56
|
+
$meta: map.get($theme, '_meta');
|
|
57
|
+
|
|
58
|
+
@if not($label-color) and $background {
|
|
59
|
+
@if meta.type-of($background) == 'color' {
|
|
60
|
+
$label-color: text-contrast($background);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@if not($icon-color) and $label-color {
|
|
65
|
+
@if meta.type-of($label-color) == 'color' {
|
|
66
|
+
$icon-color: $label-color;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@if not($icon-disabled-color) and $label-disabled-color {
|
|
71
|
+
@if meta.type-of($label-disabled-color) == 'color' {
|
|
72
|
+
$icon-disabled-color: $label-disabled-color;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@if not($label-disabled-color) and $icon-disabled-color {
|
|
77
|
+
@if meta.type-of($icon-disabled-color) == 'color' {
|
|
78
|
+
$label-disabled-color: $icon-disabled-color;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@if not($icon-selected-color) and $label-selected-color {
|
|
83
|
+
@if meta.type-of($background) == 'color' {
|
|
84
|
+
$icon-selected-color: $label-selected-color;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@if not($icon-color) and $background {
|
|
50
89
|
@if meta.type-of($background) == 'color' {
|
|
51
|
-
$
|
|
90
|
+
$icon-color: text-contrast($background);
|
|
52
91
|
}
|
|
53
92
|
}
|
|
54
93
|
|
|
@@ -60,9 +99,18 @@
|
|
|
60
99
|
@return extend($theme, (
|
|
61
100
|
name: $name,
|
|
62
101
|
background: $background,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
102
|
+
icon-color: $icon-color,
|
|
103
|
+
icon-selected-color: $icon-selected-color,
|
|
104
|
+
label-color: $label-color,
|
|
105
|
+
label-selected-color: $label-selected-color,
|
|
106
|
+
icon-disabled-color: $icon-disabled-color,
|
|
107
|
+
label-disabled-color: $label-disabled-color,
|
|
108
|
+
border-color: $border-color,
|
|
109
|
+
shadow: $shadow,
|
|
110
|
+
_meta: map.merge(if($meta, $meta, ()), (
|
|
111
|
+
variant: map.get($schema, '_meta', 'theme'),
|
|
112
|
+
theme-variant: map.get($schema, '_meta', 'variant')
|
|
113
|
+
)),
|
|
66
114
|
));
|
|
67
115
|
}
|
|
68
116
|
|
|
@@ -72,6 +120,7 @@
|
|
|
72
120
|
@mixin bottom-nav($theme) {
|
|
73
121
|
@include css-vars($theme);
|
|
74
122
|
|
|
123
|
+
$variant: map.get($theme, '_meta', 'variant');
|
|
75
124
|
$menu-height: rem(56px);
|
|
76
125
|
$item-min-width: rem(80px);
|
|
77
126
|
$item-max-width: rem(168px);
|
|
@@ -98,6 +147,7 @@
|
|
|
98
147
|
inset-inline-end: 0;
|
|
99
148
|
height: $menu-height;
|
|
100
149
|
background: var-get($theme, 'background');
|
|
150
|
+
border-top: rem(1px) solid var-get($theme, 'border-color');
|
|
101
151
|
overflow: hidden;
|
|
102
152
|
z-index: 8;
|
|
103
153
|
}
|
|
@@ -119,38 +169,46 @@
|
|
|
119
169
|
position: relative;
|
|
120
170
|
flex-flow: column nowrap;
|
|
121
171
|
flex: 1;
|
|
172
|
+
gap: rem(4px);
|
|
122
173
|
align-items: center;
|
|
123
174
|
justify-content: center;
|
|
124
175
|
min-width: $item-min-width;
|
|
125
176
|
max-width: $item-max-width;
|
|
126
177
|
height: 100%;
|
|
127
|
-
color: var-get($theme, 'idle-item-color');
|
|
128
178
|
cursor: pointer;
|
|
129
179
|
user-select: none;
|
|
130
180
|
overflow: hidden;
|
|
131
181
|
padding: $item-padding;
|
|
132
182
|
-webkit-tap-highlight-color: transparent;
|
|
133
183
|
outline-style: none;
|
|
184
|
+
color: var-get($theme, 'label-color');
|
|
134
185
|
|
|
135
186
|
igx-icon {
|
|
136
187
|
--component-size: 3;
|
|
188
|
+
|
|
189
|
+
@if $variant == 'indigo-design' {
|
|
190
|
+
--size: rem(16px);
|
|
191
|
+
}
|
|
137
192
|
}
|
|
138
193
|
}
|
|
139
194
|
|
|
140
195
|
%igx-bottom-nav-menu-item--disabled {
|
|
141
|
-
|
|
196
|
+
@if $variant != 'indigo-design' {
|
|
197
|
+
opacity: .5;
|
|
198
|
+
}
|
|
199
|
+
|
|
142
200
|
cursor: default;
|
|
143
201
|
pointer-events: none;
|
|
144
202
|
}
|
|
145
203
|
|
|
146
204
|
%igx-bottom-nav-menu-item--selected {
|
|
147
|
-
color: var-get($theme, 'active-item-color');
|
|
148
205
|
transition: color .15s $in-out-quad, opacity .25s $in-out-quad;
|
|
149
206
|
}
|
|
150
207
|
|
|
151
208
|
%igx-tab-label {
|
|
152
209
|
@include ellipsis();
|
|
153
|
-
|
|
210
|
+
|
|
211
|
+
color: var-get($theme, 'label-color');
|
|
154
212
|
max-width: 100%;
|
|
155
213
|
text-align: center;
|
|
156
214
|
transform: translateZ(0);
|
|
@@ -158,23 +216,48 @@
|
|
|
158
216
|
z-index: 1;
|
|
159
217
|
}
|
|
160
218
|
|
|
219
|
+
%igx-tab-label--disabled {
|
|
220
|
+
color: var-get($theme, 'label-disabled-color');
|
|
221
|
+
}
|
|
222
|
+
|
|
161
223
|
%igx-tab-icon {
|
|
162
224
|
display: flex;
|
|
163
225
|
position: relative;
|
|
164
226
|
justify-content: center;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
227
|
+
color: var-get($theme, 'icon-color');
|
|
228
|
+
|
|
229
|
+
@if $variant != 'indigo-design' {
|
|
230
|
+
padding: 0 rem(8px);
|
|
231
|
+
height: rem(24px);
|
|
232
|
+
transform: translateZ(0);
|
|
233
|
+
transition: transform .15s $in-out-quad;
|
|
234
|
+
}
|
|
235
|
+
|
|
169
236
|
z-index: 1;
|
|
170
237
|
}
|
|
171
238
|
|
|
239
|
+
%igx-tab-icon--disabled {
|
|
240
|
+
color: var-get($theme, 'icon-disabled-color');
|
|
241
|
+
}
|
|
242
|
+
|
|
172
243
|
%igx-tab-icon--selected {
|
|
173
|
-
|
|
244
|
+
color: var-get($theme, 'icon-selected-color');
|
|
245
|
+
|
|
246
|
+
inset-block-start: rem(-2px);
|
|
174
247
|
}
|
|
175
248
|
|
|
176
249
|
%igx-tab-label--selected {
|
|
177
|
-
|
|
250
|
+
color: var-get($theme, 'label-selected-color');
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@if $variant != 'indigo-design' {
|
|
254
|
+
%igx-tab-icon--selected {
|
|
255
|
+
transform: translateY(-2px);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
%igx-tab-label--selected {
|
|
259
|
+
transform: translateY(-2px) scale(1.166667);
|
|
260
|
+
}
|
|
178
261
|
}
|
|
179
262
|
}
|
|
180
263
|
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
$hover-background: null,
|
|
66
66
|
$hover-foreground: null,
|
|
67
67
|
|
|
68
|
-
$icon-color:
|
|
69
|
-
$icon-color-hover:
|
|
68
|
+
$icon-color: $foreground,
|
|
69
|
+
$icon-color-hover: $hover-foreground,
|
|
70
70
|
|
|
71
71
|
$focus-background: null,
|
|
72
72
|
$focus-foreground: null,
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
|
|
97
97
|
$disabled-background: null,
|
|
98
98
|
$disabled-foreground: null,
|
|
99
|
-
$disabled-icon-color:
|
|
99
|
+
$disabled-icon-color: $disabled-foreground,
|
|
100
100
|
$disabled-border-color: null,
|
|
101
101
|
$size: null,
|
|
102
102
|
) {
|
|
@@ -139,6 +139,12 @@
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
@if not($icon-color-hover) and $hover-foreground {
|
|
143
|
+
@if meta.type-of($hover-background) == 'color' {
|
|
144
|
+
$icon-color-hover: $hover-foreground;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
142
148
|
@if not($focus-background) and $background {
|
|
143
149
|
$focus-background: color.scale($background, $lightness: 5%);
|
|
144
150
|
}
|
|
@@ -761,6 +767,10 @@
|
|
|
761
767
|
background: var-get($contained-theme, 'active-background');
|
|
762
768
|
border-color: var-get($contained-theme, 'active-border-color');
|
|
763
769
|
box-shadow: var-get($contained-theme, 'hover-shadow');
|
|
770
|
+
|
|
771
|
+
igx-icon {
|
|
772
|
+
color: var-get($contained-theme, 'active-foreground');
|
|
773
|
+
}
|
|
764
774
|
}
|
|
765
775
|
|
|
766
776
|
@if ($variant == 'indigo-design') {
|
|
@@ -898,6 +908,10 @@
|
|
|
898
908
|
border-color: var-get($fab-theme, 'active-border-color');
|
|
899
909
|
box-shadow: var-get($fab-theme, 'focus-shadow');
|
|
900
910
|
|
|
911
|
+
igx-icon {
|
|
912
|
+
color: var-get($fab-theme, 'active-foreground');
|
|
913
|
+
}
|
|
914
|
+
|
|
901
915
|
@if ($variant == 'indigo-design') {
|
|
902
916
|
igx-icon {
|
|
903
917
|
color: var-get($outlined-theme, 'icon-color-hover');
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
$shadow: null,
|
|
74
74
|
|
|
75
75
|
$item-text-color: null,
|
|
76
|
-
$item-icon-color:
|
|
76
|
+
$item-icon-color: $item-text-color,
|
|
77
77
|
$item-background: null,
|
|
78
78
|
$item-border-color: null,
|
|
79
79
|
|
|
80
80
|
$item-hover-text-color: null,
|
|
81
|
-
$item-hover-icon-color:
|
|
81
|
+
$item-hover-icon-color: $item-hover-text-color,
|
|
82
82
|
$item-hover-background: null,
|
|
83
83
|
$item-hover-border-color: null,
|
|
84
84
|
|
|
@@ -95,19 +95,19 @@
|
|
|
95
95
|
$item-disabled-border: null,
|
|
96
96
|
|
|
97
97
|
$item-selected-text-color: null,
|
|
98
|
-
$item-selected-icon-color:
|
|
98
|
+
$item-selected-icon-color: $item-selected-text-color,
|
|
99
99
|
$item-selected-background: null,
|
|
100
100
|
$item-selected-border-color: null,
|
|
101
101
|
|
|
102
102
|
$item-selected-hover-text-color: null,
|
|
103
|
-
$item-selected-hover-icon-color:
|
|
103
|
+
$item-selected-hover-icon-color: $item-selected-hover-text-color,
|
|
104
104
|
$item-selected-hover-background: null,
|
|
105
105
|
$item-selected-hover-border-color: null,
|
|
106
106
|
$item-selected-focus-background: null,
|
|
107
107
|
$item-selected-focus-hover-background: null,
|
|
108
108
|
|
|
109
109
|
$disabled-selected-text-color: null,
|
|
110
|
-
$disabled-selected-icon-color:
|
|
110
|
+
$disabled-selected-icon-color: $disabled-selected-text-color,
|
|
111
111
|
$disabled-selected-background: null,
|
|
112
112
|
$disabled-selected-border-color: null,
|
|
113
113
|
) {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
|
|
141
141
|
@if not($item-selected-background) and $item-background {
|
|
142
142
|
@if meta.type-of($item-background) == 'color' {
|
|
143
|
-
$item-selected-
|
|
143
|
+
$item-selected-background: text-contrast($item-background);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
14
14
|
/// @param {Map} $elevations [null] - The elevations (shadows) map to be used.
|
|
15
|
-
///
|
|
16
15
|
/// @param {Color} $background [null] - The navbar background color.
|
|
17
16
|
/// @param {Color} $text-color [null] - The navbar text color.
|
|
17
|
+
/// @param {Color} $border-color [null] - The navbar border color.
|
|
18
18
|
/// @param {box-shadow} $shadow [null] - The shadow of the navbar.
|
|
19
19
|
/// @param {Color} $idle-icon-color [null] - The navbar idle icon color.
|
|
20
20
|
/// @param {Color} $hover-icon-color [null] - The navbar hover icon color.
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
@function navbar-theme(
|
|
28
28
|
$schema: $light-material-schema,
|
|
29
29
|
$elevations: null,
|
|
30
|
-
|
|
31
30
|
$background: null,
|
|
31
|
+
$border-color: null,
|
|
32
32
|
$text-color: null,
|
|
33
33
|
$shadow: null,
|
|
34
34
|
$idle-icon-color: null,
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
@return extend($theme, (
|
|
72
72
|
name: $name,
|
|
73
73
|
background: $background,
|
|
74
|
+
border-color: $border-color,
|
|
74
75
|
text-color: $text-color,
|
|
75
76
|
idle-icon-color: $idle-icon-color,
|
|
76
77
|
hover-icon-color: $hover-icon-color,
|
|
@@ -91,14 +92,13 @@
|
|
|
91
92
|
$navbar-padding: rem(16px);
|
|
92
93
|
$navbar-title-fz: rem(18px, 16px);
|
|
93
94
|
$navbar-title-lh: rem(18px, 16px);
|
|
94
|
-
$navbar-title-margin: 0;
|
|
95
95
|
|
|
96
96
|
%igx-navbar-display {
|
|
97
97
|
display: flex;
|
|
98
98
|
position: relative;
|
|
99
99
|
flex-flow: row nowrap;
|
|
100
100
|
align-items: center;
|
|
101
|
-
|
|
101
|
+
gap: rem(16px);
|
|
102
102
|
width: 100%;
|
|
103
103
|
min-height: rem(56px);
|
|
104
104
|
max-height: rem(128px);
|
|
@@ -108,9 +108,27 @@
|
|
|
108
108
|
box-shadow: var-get($theme, 'shadow');
|
|
109
109
|
z-index: 4;
|
|
110
110
|
overflow: hidden;
|
|
111
|
+
border-bottom: rem(1px) solid var-get($theme, 'border-color');
|
|
112
|
+
|
|
113
|
+
igx-avatar,
|
|
114
|
+
igx-input-group,
|
|
115
|
+
[igxIconButton],
|
|
116
|
+
igc-avatar,
|
|
117
|
+
igc-input,
|
|
118
|
+
igc-icon-button {
|
|
119
|
+
--ig-size: 1;
|
|
120
|
+
}
|
|
111
121
|
|
|
112
|
-
|
|
113
|
-
|
|
122
|
+
[igxButton],
|
|
123
|
+
igc-button {
|
|
124
|
+
--ig-size: 2;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@if $variant == 'indigo-design' {
|
|
128
|
+
igc-icon-button,
|
|
129
|
+
[igxIconButton] {
|
|
130
|
+
--ig-size: 2;
|
|
131
|
+
}
|
|
114
132
|
}
|
|
115
133
|
}
|
|
116
134
|
|
|
@@ -121,47 +139,70 @@
|
|
|
121
139
|
|
|
122
140
|
%igx-navbar-title {
|
|
123
141
|
@include line-clamp(4, true, true);
|
|
124
|
-
margin:
|
|
142
|
+
margin: 0;
|
|
125
143
|
flex-grow: 1;
|
|
126
144
|
user-select: text;
|
|
127
145
|
display: flex;
|
|
128
146
|
flex-direction: row;
|
|
129
147
|
}
|
|
130
148
|
|
|
131
|
-
%igx-navbar-
|
|
132
|
-
|
|
133
|
-
|
|
149
|
+
%igx-navbar-left {
|
|
150
|
+
&:not(:empty) {
|
|
151
|
+
@if $variant != 'indigo-design' {
|
|
152
|
+
margin-inline-end: rem(16px)
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
134
156
|
|
|
135
|
-
|
|
136
|
-
|
|
157
|
+
%igx-navbar-middle {
|
|
158
|
+
flex-grow: 1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
%igx-navbar-right {
|
|
162
|
+
gap: if($variant == 'indigo-design', rem(8px), rem(16px));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
%igx-navbar-left,
|
|
166
|
+
%igx-navbar-right {
|
|
167
|
+
&:empty {
|
|
168
|
+
display: none;
|
|
137
169
|
}
|
|
138
170
|
}
|
|
139
171
|
|
|
140
|
-
%igx-navbar-
|
|
141
|
-
%igx-navbar-
|
|
172
|
+
%igx-navbar-left,
|
|
173
|
+
%igx-navbar-middle,
|
|
174
|
+
%igx-navbar-right {
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
|
|
142
178
|
igx-icon,
|
|
143
|
-
|
|
179
|
+
igc-icon {
|
|
144
180
|
--component-size: 3;
|
|
145
|
-
|
|
146
181
|
cursor: pointer;
|
|
147
|
-
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
> igx-icon,
|
|
185
|
+
> igc-icon {
|
|
148
186
|
transition: color .15s $out-quad;
|
|
187
|
+
color: var-get($theme, 'idle-icon-color');
|
|
149
188
|
|
|
150
189
|
&:hover {
|
|
151
190
|
color: var-get($theme, 'hover-icon-color');
|
|
152
191
|
}
|
|
192
|
+
|
|
193
|
+
user-select: none;
|
|
153
194
|
}
|
|
154
|
-
}
|
|
155
195
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
196
|
+
@if $variant == 'indigo-design' {
|
|
197
|
+
igx-icon,
|
|
198
|
+
igc-icon {
|
|
199
|
+
--component-size: 2;
|
|
161
200
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
201
|
+
padding: rem(6px);
|
|
202
|
+
width: auto;
|
|
203
|
+
height: auto;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
165
206
|
}
|
|
166
207
|
|
|
167
208
|
igx-navbar-action,
|
|
@@ -141,26 +141,36 @@
|
|
|
141
141
|
@mixin navdrawer($theme) {
|
|
142
142
|
@include css-vars($theme);
|
|
143
143
|
|
|
144
|
-
$drawer-icon-size: rem(24px);
|
|
145
144
|
$drawer-item-margin: rem(8px);
|
|
146
|
-
$text-side-padding: rem(8px);
|
|
147
145
|
$drawer-item-min-h: auto;
|
|
148
146
|
$drawer-item-max-h: rem(48px);
|
|
149
147
|
$drawer-item-min-w: rem(32px);
|
|
150
148
|
|
|
151
149
|
$variant: map.get($theme, '_meta', 'variant');
|
|
152
150
|
|
|
151
|
+
$drawer-width: rem(240px);
|
|
152
|
+
$drawer-mini-width: map.get((
|
|
153
|
+
material: rem(68px),
|
|
154
|
+
fluent: rem(68px),
|
|
155
|
+
bootstrap: rem(68px),
|
|
156
|
+
indigo-design: rem(48px)
|
|
157
|
+
), $variant);
|
|
158
|
+
|
|
153
159
|
%navdrawer-display {
|
|
154
160
|
transition: flex-basis;
|
|
155
161
|
transition-duration: .3s;
|
|
156
162
|
transition-timing-function: $out-quad;
|
|
157
163
|
flex-shrink: 0;
|
|
164
|
+
flex-basis: $drawer-width;
|
|
165
|
+
|
|
166
|
+
&:has(.igx-nav-drawer__aside--mini) {
|
|
167
|
+
flex-basis: $drawer-mini-width;
|
|
168
|
+
}
|
|
158
169
|
}
|
|
159
170
|
|
|
160
171
|
%aside {
|
|
161
172
|
position: fixed;
|
|
162
173
|
height: 100%;
|
|
163
|
-
max-width: 90%;
|
|
164
174
|
min-height: 100%;
|
|
165
175
|
overflow-x: hidden;
|
|
166
176
|
background: var-get($theme, 'background');
|
|
@@ -173,6 +183,11 @@
|
|
|
173
183
|
box-shadow: var-get($theme, 'shadow');
|
|
174
184
|
border-inline-end: rem(1px) solid var-get($theme, 'border-color');
|
|
175
185
|
border-radius: var-get($theme, 'border-radius');
|
|
186
|
+
|
|
187
|
+
@if $variant == 'indigo-design' {
|
|
188
|
+
transition: padding, width, transform;
|
|
189
|
+
padding: rem(8px);
|
|
190
|
+
}
|
|
176
191
|
}
|
|
177
192
|
|
|
178
193
|
%aside-panning {
|
|
@@ -211,6 +226,10 @@
|
|
|
211
226
|
}
|
|
212
227
|
|
|
213
228
|
box-shadow: none;
|
|
229
|
+
|
|
230
|
+
@if $variant == 'indigo-design' {
|
|
231
|
+
padding: 0;
|
|
232
|
+
}
|
|
214
233
|
}
|
|
215
234
|
|
|
216
235
|
%aside--right {
|
|
@@ -221,16 +240,11 @@
|
|
|
221
240
|
}
|
|
222
241
|
|
|
223
242
|
%aside--mini {
|
|
224
|
-
width:
|
|
243
|
+
width: $drawer-mini-width;
|
|
225
244
|
transition-duration: .2s, .2s;
|
|
226
245
|
|
|
227
246
|
%item {
|
|
228
247
|
justify-content: center;
|
|
229
|
-
@if $variant == 'indigo-design' {
|
|
230
|
-
max-width: rem(32px);
|
|
231
|
-
// important is needed to override the typography margins
|
|
232
|
-
margin: rem(14px) auto !important;
|
|
233
|
-
}
|
|
234
248
|
|
|
235
249
|
igx-icon {
|
|
236
250
|
margin-inline-start: 0;
|
|
@@ -239,7 +253,7 @@
|
|
|
239
253
|
}
|
|
240
254
|
|
|
241
255
|
%aside--normal {
|
|
242
|
-
width:
|
|
256
|
+
width: $drawer-width;
|
|
243
257
|
transition-duration: .3s, .3s;
|
|
244
258
|
}
|
|
245
259
|
|
|
@@ -283,19 +297,6 @@
|
|
|
283
297
|
color: var-get($theme, 'item-text-color');
|
|
284
298
|
max-height: $drawer-item-max-h;
|
|
285
299
|
min-width: $drawer-item-min-w;
|
|
286
|
-
|
|
287
|
-
@if $variant != 'indigo-design' {
|
|
288
|
-
// important is needed to override the typography margins
|
|
289
|
-
margin: $drawer-item-margin !important;
|
|
290
|
-
padding: rem(12px) rem(8px);
|
|
291
|
-
gap: rem(32px);
|
|
292
|
-
} @else {
|
|
293
|
-
// important is needed to override the typography margins
|
|
294
|
-
margin: rem(15px) $drawer-item-margin !important;
|
|
295
|
-
padding: rem(4px);
|
|
296
|
-
gap: calc(rem(32px) - #{$text-side-padding});
|
|
297
|
-
}
|
|
298
|
-
|
|
299
300
|
cursor: pointer;
|
|
300
301
|
user-select: none;
|
|
301
302
|
outline: transparent;
|
|
@@ -306,18 +307,26 @@
|
|
|
306
307
|
border: none;
|
|
307
308
|
justify-content: flex-start;
|
|
308
309
|
|
|
310
|
+
@if $variant != 'indigo-design' {
|
|
311
|
+
// important is needed to override the typography margins
|
|
312
|
+
margin: $drawer-item-margin !important;
|
|
313
|
+
padding: rem(12px) rem(8px);
|
|
314
|
+
gap: rem(32px);
|
|
315
|
+
} @else {
|
|
316
|
+
// important is needed to override the typography margins
|
|
317
|
+
margin: 0 !important;
|
|
318
|
+
margin-block-end: rem(4px) !important;
|
|
319
|
+
padding: rem(8px) rem(16px);
|
|
320
|
+
gap: rem(16px);
|
|
321
|
+
width: 100%;
|
|
322
|
+
}
|
|
323
|
+
|
|
309
324
|
igx-icon {
|
|
310
325
|
--component-size: 3;
|
|
311
|
-
|
|
312
326
|
color: var-get($theme, 'item-icon-color');
|
|
313
|
-
@if $variant == 'indigo-design' {
|
|
314
|
-
margin-inline-start: rem(4px);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
327
|
|
|
318
|
-
span {
|
|
319
328
|
@if $variant == 'indigo-design' {
|
|
320
|
-
|
|
329
|
+
--component-size: 2;
|
|
321
330
|
}
|
|
322
331
|
}
|
|
323
332
|
|
|
@@ -375,9 +384,6 @@
|
|
|
375
384
|
box-shadow: none;
|
|
376
385
|
|
|
377
386
|
igx-icon {
|
|
378
|
-
width: var(--igx-icon-size, #{$drawer-icon-size});
|
|
379
|
-
height: var(--igx-icon-size, #{$drawer-icon-size});
|
|
380
|
-
font-size: var(--igx-icon-size, #{$drawer-icon-size});
|
|
381
387
|
margin: 0;
|
|
382
388
|
}
|
|
383
389
|
|
|
@@ -394,6 +400,10 @@
|
|
|
394
400
|
padding: rem(12px) rem(16px);
|
|
395
401
|
white-space: nowrap;
|
|
396
402
|
color: var-get($theme, 'item-header-text-color');
|
|
403
|
+
|
|
404
|
+
@if $variant == 'indigo-design' {
|
|
405
|
+
padding-block: rem(8px);
|
|
406
|
+
}
|
|
397
407
|
}
|
|
398
408
|
|
|
399
409
|
%style-dummy {
|