@itwin/itwinui-css 0.52.0 → 0.53.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/css/alert.css +44 -44
- package/css/all.css +1946 -1215
- package/css/badge.css +1 -1
- package/css/blockquote.css +2 -2
- package/css/breadcrumbs.css +12 -12
- package/css/button.css +37 -37
- package/css/carousel.css +24 -36
- package/css/code.css +5 -5
- package/css/color-picker.css +14 -10
- package/css/date-picker.css +402 -46
- package/css/expandable-block.css +19 -19
- package/css/fieldset.css +4 -4
- package/css/file-upload.css +11 -11
- package/css/footer.css +2 -2
- package/css/global.css +539 -208
- package/css/header.css +49 -38
- package/css/icon.css +24 -24
- package/css/information-panel.css +15 -8
- package/css/inputs.css +72 -72
- package/css/keyboard.css +4 -4
- package/css/location-marker.css +9 -9
- package/css/menu.css +25 -12
- package/css/modal.css +1 -1
- package/css/notification-marker.css +28 -28
- package/css/progress-indicator.css +32 -32
- package/css/side-navigation.css +18 -18
- package/css/skip-to-content.css +1 -1
- package/css/slider.css +13 -13
- package/css/surface.css +19 -0
- package/css/table.css +78 -74
- package/css/tabs.css +23 -23
- package/css/tag.css +4 -4
- package/css/text.css +1 -1
- package/css/tile.css +35 -35
- package/css/time-picker.css +15 -15
- package/css/toast-notification.css +34 -34
- package/css/tooltip.css +3 -1
- package/css/tree.css +7 -7
- package/css/user-icon.css +15 -16
- package/css/wizard.css +26 -26
- package/package.json +1 -1
- package/scss/carousel/carousel.scss +22 -28
- package/scss/classes.scss +1 -0
- package/scss/color-picker/color-picker.scss +2 -2
- package/scss/date-picker/classes.scss +20 -0
- package/scss/date-picker/date-picker.scss +194 -33
- package/scss/fieldset/fieldset.scss +1 -1
- package/scss/header/header.scss +15 -10
- package/scss/index.scss +1 -0
- package/scss/information-panel/information-panel.scss +10 -3
- package/scss/menu/classes.scss +2 -1
- package/scss/menu/menu.scss +8 -11
- package/scss/modal/modal.scss +2 -1
- package/scss/progress-indicator/linear.scss +1 -1
- package/scss/progress-indicator/radial.scss +1 -1
- package/scss/side-navigation/side-navigation.scss +5 -5
- package/scss/slider/slider.scss +2 -2
- package/scss/style/elevation.scss +5 -5
- package/scss/style/global.scss +32 -21
- package/scss/style/mixins.scss +1 -1
- package/scss/style/theme.scss +248 -65
- package/scss/surface/classes.scss +7 -0
- package/scss/surface/index.scss +3 -0
- package/scss/surface/surface.scss +18 -0
- package/scss/table/column-filter.scss +2 -2
- package/scss/table/table.scss +3 -3
- package/scss/tile/tile.scss +5 -5
- package/scss/time-picker/time-picker.scss +2 -2
- package/scss/tooltip/tooltip.scss +1 -0
- package/scss/wizard/wizard.scss +1 -1
package/scss/menu/classes.scss
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
2
|
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
3
|
@import './index';
|
|
4
|
+
@import '../surface/index';
|
|
4
5
|
|
|
5
6
|
.iui-menu {
|
|
6
|
-
@include iui-
|
|
7
|
+
@include iui-surface;
|
|
7
8
|
@include iui-list-menu;
|
|
8
9
|
}
|
|
9
10
|
|
package/scss/menu/menu.scss
CHANGED
|
@@ -5,16 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
$iui-active-outline: thin solid t(iui-color-foreground-primary);
|
|
7
7
|
|
|
8
|
-
@mixin iui-dropdown {
|
|
9
|
-
@include iui-reset;
|
|
10
|
-
box-shadow: $iui-elevation-2;
|
|
11
|
-
@include themed {
|
|
12
|
-
background-color: t(iui-color-background-1);
|
|
13
|
-
color: t(iui-text-color);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
8
|
@mixin iui-list-menu {
|
|
9
|
+
@include iui-reset;
|
|
18
10
|
list-style-type: none;
|
|
19
11
|
user-select: none;
|
|
20
12
|
width: 100%;
|
|
@@ -111,12 +103,17 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
|
|
|
111
103
|
&,
|
|
112
104
|
&:hover {
|
|
113
105
|
@include themed {
|
|
114
|
-
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-
|
|
106
|
+
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
|
|
107
|
+
color: t(iui-color-foreground-primary);
|
|
115
108
|
outline: $iui-active-outline;
|
|
116
109
|
outline-offset: -1px;
|
|
117
110
|
}
|
|
118
111
|
}
|
|
119
112
|
|
|
113
|
+
.iui-menu-description {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
}
|
|
116
|
+
|
|
120
117
|
> .iui-icon {
|
|
121
118
|
@include themed {
|
|
122
119
|
fill: t(iui-icons-color-primary);
|
|
@@ -163,7 +160,7 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
|
|
|
163
160
|
width: calc(100% - #{$iui-l});
|
|
164
161
|
margin: 1px auto;
|
|
165
162
|
@include themed {
|
|
166
|
-
background-color: t(iui-color-background-
|
|
163
|
+
background-color: t(iui-color-background-border);
|
|
167
164
|
}
|
|
168
165
|
}
|
|
169
166
|
|
package/scss/modal/modal.scss
CHANGED
|
@@ -125,7 +125,8 @@
|
|
|
125
125
|
> .iui-modal-dialog {
|
|
126
126
|
transform: translateY(100%);
|
|
127
127
|
@media (prefers-reduced-motion: no-preference) {
|
|
128
|
-
transition: visibility $iui-speed-instant linear $iui-speed, opacity $iui-speed-instant linear $iui-speed,
|
|
128
|
+
transition: visibility $iui-speed-instant linear $iui-speed, opacity $iui-speed-instant linear $iui-speed,
|
|
129
|
+
transform $iui-speed ease-in;
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
@include themed {
|
|
16
16
|
background-color: t(iui-color-background-3);
|
|
17
|
-
border-right: 1px solid t(iui-color-background-
|
|
17
|
+
border-right: 1px solid t(iui-color-background-border);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
> .iui-sidenav-content {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
+ .iui-sidenav-button.iui-expand {
|
|
52
52
|
border: none;
|
|
53
53
|
@include themed {
|
|
54
|
-
border-top: 1px solid t(iui-color-background-
|
|
54
|
+
border-top: 1px solid t(iui-color-background-border);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
&:hover,
|
|
106
106
|
&[disabled] {
|
|
107
107
|
@include themed {
|
|
108
|
-
border-color: t(iui-color-background-
|
|
108
|
+
border-color: t(iui-color-background-border);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
justify-content: center;
|
|
134
134
|
border: none;
|
|
135
135
|
@include themed {
|
|
136
|
-
border-bottom: 1px solid t(iui-color-background-
|
|
136
|
+
border-bottom: 1px solid t(iui-color-background-border);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
> .iui-button-icon {
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
resize: horizontal;
|
|
158
158
|
@include themed {
|
|
159
159
|
background-color: t(iui-color-background-1);
|
|
160
|
-
border-right: 1px solid t(iui-color-background-
|
|
160
|
+
border-right: 1px solid t(iui-color-background-border);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
@include iui-transition-group;
|
package/scss/slider/slider.scss
CHANGED
|
@@ -53,7 +53,7 @@ $tick-height: $iui-baseline; // 11px
|
|
|
53
53
|
height: $track-height;
|
|
54
54
|
top: $iui-sm;
|
|
55
55
|
@include themed {
|
|
56
|
-
background-color: t(iui-color-background-
|
|
56
|
+
background-color: t(iui-color-background-border);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -71,7 +71,7 @@ $tick-height: $iui-baseline; // 11px
|
|
|
71
71
|
@include iui-focus($thickness: 2px);
|
|
72
72
|
@include themed {
|
|
73
73
|
background: t(iui-color-background-1);
|
|
74
|
-
border: 1px solid t(iui-color-background-
|
|
74
|
+
border: 1px solid t(iui-color-background-border);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&:active {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/// Elevations:
|
|
4
4
|
|
|
5
5
|
$iui-elevation-0: 0;
|
|
6
|
-
$iui-elevation-2: 0 1px 5px
|
|
7
|
-
$iui-elevation-4: 0 1px 10px
|
|
8
|
-
$iui-elevation-8: 0 3px 14px
|
|
9
|
-
$iui-elevation-16: 0 6px 30px
|
|
10
|
-
$iui-elevation-24: 0 9px 46px
|
|
6
|
+
$iui-elevation-2: 0 1px 5px hsla(200, 12%, 0%, 0.25);
|
|
7
|
+
$iui-elevation-4: 0 1px 10px hsla(200, 12%, 0%, 0.25);
|
|
8
|
+
$iui-elevation-8: 0 3px 14px hsla(200, 12%, 0%, 0.25);
|
|
9
|
+
$iui-elevation-16: 0 6px 30px hsla(200, 12%, 0%, 0.25);
|
|
10
|
+
$iui-elevation-24: 0 9px 46px hsla(200, 12%, 0%, 0.25);
|
package/scss/style/global.scss
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
2
2
|
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
3
|
@import './index';
|
|
4
4
|
|
|
5
|
+
html {
|
|
6
|
+
@include theme-variables(light);
|
|
7
|
+
|
|
8
|
+
@media (prefers-color-scheme: dark) {
|
|
9
|
+
@include theme-variables(dark);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@media (prefers-color-scheme: light) and (prefers-contrast: more) {
|
|
13
|
+
@include theme-variables(light-hc);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
|
|
17
|
+
@include theme-variables(dark-hc);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.iui-theme-light {
|
|
21
|
+
@include theme-variables(light);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.iui-theme-dark {
|
|
25
|
+
@include theme-variables(dark);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.iui-theme-light-hc {
|
|
29
|
+
@include theme-variables(light-hc);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.iui-theme-dark-hc {
|
|
33
|
+
@include theme-variables(dark-hc);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
5
37
|
.iui-body {
|
|
6
38
|
@include themed {
|
|
7
39
|
background-color: t(iui-color-background-2);
|
|
@@ -31,24 +63,3 @@
|
|
|
31
63
|
// Scrollbar
|
|
32
64
|
@include iui-scrollbar;
|
|
33
65
|
}
|
|
34
|
-
|
|
35
|
-
html {
|
|
36
|
-
&,
|
|
37
|
-
&.iui-theme-light {
|
|
38
|
-
@include theme-variables(light);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&.iui-theme-dark {
|
|
42
|
-
@include theme-variables(dark);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@media (prefers-color-scheme: light) {
|
|
46
|
-
// fall back to default - light theme variables
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media (prefers-color-scheme: dark) {
|
|
50
|
-
&:not([class*='iui-theme-']) {
|
|
51
|
-
@include theme-variables(dark);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
package/scss/style/mixins.scss
CHANGED