@itwin/itwinui-css 0.32.0 → 0.33.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.
@@ -2,6 +2,7 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
4
  @import '../icon/index';
5
+ @import '../text/index';
5
6
 
6
7
  @mixin iui-side-navigation {
7
8
  display: inline-flex;
@@ -170,3 +171,57 @@
170
171
  }
171
172
  }
172
173
  }
174
+
175
+ @mixin iui-side-navigation-submenu {
176
+ min-width: $iui-3xl * 2;
177
+ width: $iui-3xl * 4;
178
+ max-width: 50vw;
179
+ height: 100%;
180
+ box-sizing: border-box;
181
+ padding: 0 $iui-sm $iui-baseline;
182
+ overflow-x: hidden;
183
+ overflow-y: auto;
184
+ overflow-y: overlay;
185
+ resize: horizontal;
186
+ @include themed {
187
+ background-color: t(iui-color-background-1);
188
+ border-right: 1px solid t(iui-color-background-5);
189
+ }
190
+
191
+ @include iui-transition-group;
192
+
193
+ &-header {
194
+ height: $iui-baseline * 5;
195
+ display: flex;
196
+ align-items: center;
197
+ justify-content: space-between;
198
+
199
+ &-label {
200
+ @include iui-text(title);
201
+ display: flex;
202
+ align-items: center;
203
+ overflow: hidden;
204
+
205
+ .iui-button {
206
+ flex-shrink: 0;
207
+ }
208
+
209
+ > * {
210
+ white-space: nowrap;
211
+ overflow: hidden;
212
+ text-overflow: ellipsis;
213
+ }
214
+
215
+ &-actions {
216
+ flex-shrink: 0;
217
+ margin-left: $iui-s;
218
+ }
219
+ }
220
+ }
221
+ }
222
+
223
+ @mixin iui-side-navigation-wrapper {
224
+ display: flex;
225
+ position: relative;
226
+ height: 100%;
227
+ }
@@ -155,7 +155,7 @@
155
155
  &.iui-enter-active,
156
156
  &.iui-exit-active {
157
157
  @media (prefers-reduced-motion: no-preference) {
158
- transition: opacity $iui-speed-fast ease-out, height $iui-speed-fast ease-out;
158
+ transition: opacity $iui-speed-fast ease-out, width $iui-speed-fast ease-out, height $iui-speed-fast ease-out;
159
159
  }
160
160
  }
161
161
  }
@@ -0,0 +1,18 @@
1
+ // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
+ // See LICENSE.md in the project root for license terms and full copyright notice.
3
+ @import './speed';
4
+
5
+ @mixin iui-ripple($hoverColor, $rippleColor) {
6
+ background-position: center;
7
+ transition: background $iui-speed ease-out;
8
+
9
+ &:hover {
10
+ background: $hoverColor radial-gradient(circle, transparent 1%, #{$hoverColor} 1%) center/15000%;
11
+ }
12
+
13
+ &:active {
14
+ background-color: $rippleColor;
15
+ background-size: 100%;
16
+ transition: background 0s;
17
+ }
18
+ }
@@ -5,3 +5,12 @@
5
5
  .iui-time-picker {
6
6
  @include iui-time-picker;
7
7
  }
8
+
9
+ .iui-time {
10
+ @include iui-time-picker-list;
11
+ }
12
+
13
+ .iui-period {
14
+ @include iui-time-picker-list;
15
+ @include iui-time-picker-period;
16
+ }
@@ -22,52 +22,53 @@
22
22
  &:first-child {
23
23
  box-shadow: $iui-elevation-2;
24
24
  }
25
+ }
25
26
 
26
- > .iui-time,
27
- > .iui-period {
28
- padding: $iui-baseline $iui-s;
29
- overflow-y: auto;
27
+ @mixin iui-time-picker-list {
28
+ padding: $iui-baseline $iui-s;
29
+ overflow-y: auto;
30
+ overflow-y: overlay;
31
+ scrollbar-width: none;
30
32
 
31
- &:not(:first-child) {
32
- @include themed {
33
- border-left: 1px solid t(iui-color-background-4);
34
- }
33
+ &:not(:first-child) {
34
+ @include themed {
35
+ border-left: 1px solid t(iui-color-background-4);
35
36
  }
37
+ }
36
38
 
37
- > ol {
38
- @include iui-reset;
39
- list-style: none;
39
+ > ol {
40
+ @include iui-reset;
41
+ list-style: none;
40
42
 
41
- > li {
42
- @include iui-focus;
43
- padding: $iui-baseline $iui-m;
44
- border-radius: $iui-border-radius;
43
+ > li {
44
+ @include iui-focus;
45
+ padding: round($iui-baseline * 0.5) $iui-m;
46
+ border-radius: $iui-border-radius;
45
47
 
46
- &:hover {
47
- cursor: pointer;
48
- @include themed {
49
- color: t(iui-color-foreground-primary);
50
- background-color: rgba(
51
- t(iui-color-foreground-primary-rgb),
52
- t(iui-opacity-6)
53
- );
54
- }
48
+ &:hover {
49
+ cursor: pointer;
50
+ @include themed {
51
+ color: t(iui-color-foreground-primary);
52
+ background-color: rgba(
53
+ t(iui-color-foreground-primary-rgb),
54
+ t(iui-opacity-6)
55
+ );
55
56
  }
57
+ }
56
58
 
57
- &.iui-selected {
58
- font-weight: $iui-font-weight-semibold;
59
- cursor: default;
60
- @include themed {
61
- background-color: t(iui-color-background-primary);
62
- color: t(iui-color-foreground-accessory);
63
- }
59
+ &.iui-selected {
60
+ font-weight: $iui-font-weight-semibold;
61
+ cursor: default;
62
+ @include themed {
63
+ background-color: t(iui-color-background-primary);
64
+ color: t(iui-color-foreground-accessory);
64
65
  }
65
66
  }
66
67
  }
67
68
  }
69
+ }
68
70
 
69
- > .iui-period {
70
- display: flex;
71
- align-items: center;
72
- }
73
- };
71
+ @mixin iui-time-picker-period {
72
+ display: flex;
73
+ align-items: center;
74
+ }