@itwin/itwinui-css 1.0.0-dev.0 → 1.0.0-dev.1

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.
Files changed (239) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/css/alert.css +16 -27
  3. package/css/all.css +723 -817
  4. package/css/avatar.css +1 -1
  5. package/css/blockquote.css +2 -2
  6. package/css/breadcrumbs.css +19 -13
  7. package/css/button.css +30 -56
  8. package/css/carousel.css +5 -4
  9. package/css/checkbox.css +10 -7
  10. package/css/code.css +1 -0
  11. package/css/color-picker.css +10 -10
  12. package/css/date-picker.css +1 -1
  13. package/css/dialog.css +12 -9
  14. package/css/expandable-block.css +8 -19
  15. package/css/fieldset.css +2 -2
  16. package/css/file-upload.css +11 -20
  17. package/css/footer.css +28 -28
  18. package/css/global.css +65 -65
  19. package/css/header.css +12 -6
  20. package/css/information-panel.css +12 -7
  21. package/css/input.css +18 -10
  22. package/css/location-marker.css +8 -2
  23. package/css/menu.css +14 -7
  24. package/css/non-ideal-state.css +5 -5
  25. package/css/progress-indicator.css +10 -6
  26. package/css/radio-tile.css +19 -10
  27. package/css/radio.css +10 -7
  28. package/css/select.css +25 -19
  29. package/css/side-navigation.css +14 -19
  30. package/css/skip-to-content.css +2 -2
  31. package/css/slider.css +108 -40
  32. package/css/stepper.css +4 -4
  33. package/css/table.css +28 -28
  34. package/css/tabs.css +17 -10
  35. package/css/tag.css +5 -5
  36. package/css/text.css +7 -7
  37. package/css/tile.css +45 -69
  38. package/css/time-picker.css +3 -3
  39. package/css/toast.css +13 -11
  40. package/css/toggle-switch.css +5 -5
  41. package/css/tree.css +13 -20
  42. package/css/utils.css +104 -44
  43. package/css/workflow-diagram.css +1 -1
  44. package/package.json +8 -11
  45. package/css/icon.css +0 -117
  46. package/css/textarea.css +0 -96
  47. package/scss/alert/alert.scss +0 -89
  48. package/scss/alert/classes.scss +0 -33
  49. package/scss/alert/index.scss +0 -3
  50. package/scss/anchor/anchor.scss +0 -78
  51. package/scss/anchor/classes.scss +0 -11
  52. package/scss/anchor/index.scss +0 -3
  53. package/scss/avatar/avatar-sizes.scss +0 -23
  54. package/scss/avatar/avatar.scss +0 -215
  55. package/scss/avatar/classes.scss +0 -27
  56. package/scss/avatar/index.scss +0 -3
  57. package/scss/backdrop/backdrop.scss +0 -27
  58. package/scss/backdrop/classes.scss +0 -7
  59. package/scss/backdrop/index.scss +0 -3
  60. package/scss/badge/badge.scss +0 -34
  61. package/scss/badge/classes.scss +0 -7
  62. package/scss/badge/index.scss +0 -3
  63. package/scss/blockquote/blockquote.scss +0 -26
  64. package/scss/blockquote/classes.scss +0 -7
  65. package/scss/blockquote/index.scss +0 -3
  66. package/scss/breadcrumbs/breadcrumbs.scss +0 -119
  67. package/scss/breadcrumbs/classes.scss +0 -31
  68. package/scss/breadcrumbs/index.scss +0 -3
  69. package/scss/button/borderless.scss +0 -36
  70. package/scss/button/button-group.scss +0 -118
  71. package/scss/button/button.scss +0 -119
  72. package/scss/button/classes.scss +0 -80
  73. package/scss/button/default.scss +0 -51
  74. package/scss/button/idea.scss +0 -12
  75. package/scss/button/index.scss +0 -9
  76. package/scss/button/split-button.scss +0 -45
  77. package/scss/button/variant.scss +0 -44
  78. package/scss/carousel/carousel.scss +0 -113
  79. package/scss/carousel/classes.scss +0 -15
  80. package/scss/carousel/index.scss +0 -3
  81. package/scss/checkbox/checkbox.scss +0 -154
  82. package/scss/checkbox/classes.scss +0 -7
  83. package/scss/checkbox/index.scss +0 -3
  84. package/scss/classes.scss +0 -52
  85. package/scss/code/classes.scss +0 -11
  86. package/scss/code/code.scss +0 -16
  87. package/scss/code/codeblock.scss +0 -59
  88. package/scss/code/index.scss +0 -4
  89. package/scss/color-picker/classes.scss +0 -43
  90. package/scss/color-picker/color-picker.scss +0 -241
  91. package/scss/color-picker/index.scss +0 -3
  92. package/scss/date-picker/classes.scss +0 -47
  93. package/scss/date-picker/date-picker.scss +0 -246
  94. package/scss/date-picker/index.scss +0 -3
  95. package/scss/dialog/classes.scss +0 -48
  96. package/scss/dialog/dialog.scss +0 -178
  97. package/scss/dialog/index.scss +0 -3
  98. package/scss/expandable-block/block.scss +0 -165
  99. package/scss/expandable-block/classes.scss +0 -7
  100. package/scss/expandable-block/index.scss +0 -3
  101. package/scss/fieldset/classes.scss +0 -7
  102. package/scss/fieldset/fieldset.scss +0 -29
  103. package/scss/fieldset/index.scss +0 -3
  104. package/scss/file-upload/classes.scss +0 -7
  105. package/scss/file-upload/file-upload.scss +0 -80
  106. package/scss/file-upload/index.scss +0 -3
  107. package/scss/footer/classes.scss +0 -7
  108. package/scss/footer/footer.scss +0 -55
  109. package/scss/footer/index.scss +0 -3
  110. package/scss/header/classes.scss +0 -79
  111. package/scss/header/header-buttons.scss +0 -316
  112. package/scss/header/header.scss +0 -75
  113. package/scss/header/index.scss +0 -4
  114. package/scss/icon/classes.scss +0 -27
  115. package/scss/icon/icon.scss +0 -65
  116. package/scss/icon/index.scss +0 -3
  117. package/scss/index.scss +0 -50
  118. package/scss/information-panel/classes.scss +0 -27
  119. package/scss/information-panel/index.scss +0 -3
  120. package/scss/information-panel/information-panel.scss +0 -215
  121. package/scss/input/classes.scss +0 -15
  122. package/scss/input/index.scss +0 -4
  123. package/scss/input/input-with-icon.scss +0 -37
  124. package/scss/input/input.scss +0 -70
  125. package/scss/keyboard/classes.scss +0 -7
  126. package/scss/keyboard/index.scss +0 -3
  127. package/scss/keyboard/keyboard.scss +0 -29
  128. package/scss/location-marker/classes.scss +0 -15
  129. package/scss/location-marker/data-rich.scss +0 -49
  130. package/scss/location-marker/default.scss +0 -19
  131. package/scss/location-marker/index.scss +0 -6
  132. package/scss/location-marker/location-marker.scss +0 -11
  133. package/scss/location-marker/me.scss +0 -29
  134. package/scss/menu/classes.scss +0 -21
  135. package/scss/menu/index.scss +0 -3
  136. package/scss/menu/menu.scss +0 -185
  137. package/scss/non-ideal-state/classes.scss +0 -7
  138. package/scss/non-ideal-state/index.scss +0 -3
  139. package/scss/non-ideal-state/non-ideal-state.scss +0 -56
  140. package/scss/progress-indicator/classes.scss +0 -31
  141. package/scss/progress-indicator/index.scss +0 -5
  142. package/scss/progress-indicator/linear.scss +0 -108
  143. package/scss/progress-indicator/overlay.scss +0 -51
  144. package/scss/progress-indicator/radial.scss +0 -155
  145. package/scss/radio/classes.scss +0 -7
  146. package/scss/radio/index.scss +0 -3
  147. package/scss/radio/radio.scss +0 -18
  148. package/scss/radio-tile/classes.scss +0 -31
  149. package/scss/radio-tile/index.scss +0 -3
  150. package/scss/radio-tile/radio-tile.scss +0 -167
  151. package/scss/select/classes.scss +0 -27
  152. package/scss/select/index.scss +0 -3
  153. package/scss/select/select.scss +0 -124
  154. package/scss/side-navigation/classes.scss +0 -15
  155. package/scss/side-navigation/index.scss +0 -3
  156. package/scss/side-navigation/side-navigation.scss +0 -202
  157. package/scss/skip-to-content/classes.scss +0 -7
  158. package/scss/skip-to-content/index.scss +0 -3
  159. package/scss/skip-to-content/skip-to-content.scss +0 -40
  160. package/scss/slider/classes.scss +0 -27
  161. package/scss/slider/index.scss +0 -3
  162. package/scss/slider/slider.scss +0 -135
  163. package/scss/stepper/classes.scss +0 -32
  164. package/scss/stepper/index.scss +0 -3
  165. package/scss/stepper/stepper.scss +0 -151
  166. package/scss/style/baseline.scss +0 -4
  167. package/scss/style/color.scss +0 -39
  168. package/scss/style/elevation.scss +0 -11
  169. package/scss/style/global-variables.scss +0 -23
  170. package/scss/style/global.scss +0 -69
  171. package/scss/style/icon-sizes.scss +0 -14
  172. package/scss/style/index.scss +0 -11
  173. package/scss/style/space.scss +0 -11
  174. package/scss/style/speed.scss +0 -8
  175. package/scss/style/theme.scss +0 -443
  176. package/scss/style/typography.scss +0 -55
  177. package/scss/surface/classes.scss +0 -7
  178. package/scss/surface/index.scss +0 -3
  179. package/scss/surface/surface.scss +0 -17
  180. package/scss/table/classes.scss +0 -64
  181. package/scss/table/column-filter.scss +0 -34
  182. package/scss/table/index.scss +0 -6
  183. package/scss/table/paginator.scss +0 -79
  184. package/scss/table/sizes.scss +0 -31
  185. package/scss/table/table-densities.scss +0 -11
  186. package/scss/table/table.scss +0 -482
  187. package/scss/tabs/borderless.scss +0 -59
  188. package/scss/tabs/classes.scss +0 -44
  189. package/scss/tabs/default.scss +0 -89
  190. package/scss/tabs/index.scss +0 -6
  191. package/scss/tabs/pill.scss +0 -38
  192. package/scss/tabs/tabs.scss +0 -192
  193. package/scss/tag/classes.scss +0 -30
  194. package/scss/tag/index.scss +0 -3
  195. package/scss/tag/tag.scss +0 -89
  196. package/scss/text/classes.scss +0 -40
  197. package/scss/text/index.scss +0 -5
  198. package/scss/text/mixins.scss +0 -43
  199. package/scss/text/muted.scss +0 -7
  200. package/scss/text/skeleton.scss +0 -43
  201. package/scss/textarea/classes.scss +0 -7
  202. package/scss/textarea/index.scss +0 -3
  203. package/scss/textarea/textarea.scss +0 -15
  204. package/scss/tile/classes.scss +0 -51
  205. package/scss/tile/index.scss +0 -3
  206. package/scss/tile/tile.scss +0 -340
  207. package/scss/time-picker/classes.scss +0 -16
  208. package/scss/time-picker/index.scss +0 -3
  209. package/scss/time-picker/time-picker.scss +0 -63
  210. package/scss/toast/categories.scss +0 -22
  211. package/scss/toast/classes.scss +0 -98
  212. package/scss/toast/index.scss +0 -4
  213. package/scss/toast/toast.scss +0 -70
  214. package/scss/toggle-switch/classes.scss +0 -11
  215. package/scss/toggle-switch/index.scss +0 -3
  216. package/scss/toggle-switch/toggle-switch.scss +0 -203
  217. package/scss/tooltip/classes.scss +0 -24
  218. package/scss/tooltip/index.scss +0 -3
  219. package/scss/tooltip/tooltip.scss +0 -40
  220. package/scss/tree/classes.scss +0 -19
  221. package/scss/tree/index.scss +0 -3
  222. package/scss/tree/tree.scss +0 -126
  223. package/scss/utils/classes.scss +0 -6
  224. package/scss/utils/index.scss +0 -6
  225. package/scss/utils/input-container/classes.scss +0 -39
  226. package/scss/utils/input-container/index.scss +0 -3
  227. package/scss/utils/input-container/input-container.scss +0 -285
  228. package/scss/utils/mixins.scss +0 -171
  229. package/scss/utils/notification-marker/classes.scss +0 -9
  230. package/scss/utils/notification-marker/index.scss +0 -3
  231. package/scss/utils/notification-marker/notification-marker.scss +0 -55
  232. package/scss/utils/popover/classes.scss +0 -7
  233. package/scss/utils/popover/index.scss +0 -3
  234. package/scss/utils/popover/popover.scss +0 -21
  235. package/scss/variables.scss +0 -3
  236. package/scss/workflow-diagram/classes.scss +0 -15
  237. package/scss/workflow-diagram/index.scss +0 -3
  238. package/scss/workflow-diagram/workflow-diagram.scss +0 -64
  239. package/src/index.scss +0 -50
@@ -1,167 +0,0 @@
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 '../style/index';
4
- @import '../utils/index';
5
-
6
- @mixin iui-radio-tile {
7
- cursor: pointer;
8
- -webkit-tap-highlight-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
9
- }
10
-
11
- @mixin iui-radio-tile-content {
12
- width: $iui-xl * 5;
13
- height: 100%;
14
- padding: $iui-s;
15
- position: relative;
16
- z-index: 1;
17
- outline: 1px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
18
- background-color: var(--iui-color-background-1);
19
- @media (prefers-reduced-motion: no-preference) {
20
- transition: outline-color $iui-speed-fast ease-out;
21
- }
22
-
23
- &:hover {
24
- z-index: 2;
25
- outline-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
26
-
27
- .iui-radio-tile-icon {
28
- fill: var(--iui-icons-color-actionable);
29
- @media (forced-colors: active) {
30
- fill: CanvasText;
31
- }
32
- }
33
- }
34
- }
35
-
36
- @mixin iui-radio-tile-container {
37
- display: inline-flex;
38
- flex-wrap: wrap;
39
- gap: 1px; // prevent overlapping from outline
40
- user-select: none;
41
- // Create stacking context
42
- position: relative;
43
- isolation: isolate;
44
- }
45
-
46
- @mixin iui-radio-tile-input {
47
- width: 0;
48
- height: 0;
49
- appearance: none;
50
- opacity: 0;
51
- position: absolute;
52
-
53
- &:checked + * {
54
- padding: $iui-s;
55
- z-index: 3;
56
- outline: $iui-xxs solid var(--iui-color-foreground-primary);
57
- outline-offset: -1px;
58
-
59
- @media (forced-colors: active) {
60
- outline-color: Highlight;
61
- }
62
-
63
- .iui-radio-tile-icon {
64
- fill: var(--iui-icons-color-primary);
65
- @media (forced-colors: active) {
66
- fill: Highlight;
67
- }
68
- }
69
-
70
- &::after {
71
- content: '';
72
- width: $iui-icons-default;
73
- height: $iui-icons-default;
74
- position: absolute;
75
- top: $iui-s;
76
- right: $iui-s;
77
- mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6,14L0,8l2-2l4,4l8-8l2,2L6,14z" /></svg>');
78
- background-color: var(--iui-color-foreground-primary);
79
- @media (forced-colors: active) {
80
- background-color: Highlight;
81
- }
82
- }
83
- }
84
-
85
- &:disabled + * {
86
- cursor: not-allowed;
87
- z-index: 0;
88
- outline-color: var(--iui-color-background-disabled);
89
- background-color: var(--iui-color-background-disabled);
90
-
91
- &::after {
92
- background-color: var(--iui-icons-color-actionable-disabled);
93
- @media (forced-colors: active) {
94
- background-color: GrayText;
95
- }
96
- }
97
-
98
- .iui-radio-tile-icon {
99
- filter: $iui-icons-color-multicolor-disabled;
100
- fill: var(--iui-icons-color-actionable-disabled);
101
- @media (forced-colors: active) {
102
- fill: GrayText;
103
- }
104
- }
105
-
106
- .iui-radio-tile-label {
107
- color: var(--iui-text-color-muted);
108
- }
109
-
110
- .iui-radio-tile-label,
111
- .iui-radio-tile-sublabel {
112
- @media (forced-colors: active) {
113
- color: GrayText;
114
- }
115
- }
116
- }
117
-
118
- &:disabled:checked + * {
119
- z-index: 3;
120
- outline: $iui-xxs solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
121
- @media (forced-colors: active) {
122
- outline-color: GrayText;
123
- }
124
- }
125
-
126
- @include focus-visible {
127
- + * { // outline for checkmark
128
- z-index: 2;
129
- outline-offset: -$iui-xxs;
130
- outline: 3px solid var(--iui-color-foreground-primary);
131
- @media (forced-colors: active) {
132
- outline-color: Highlight;
133
- }
134
- }
135
- }
136
- }
137
-
138
- @mixin iui-radio-tile-icon {
139
- width: $iui-icons-xl;
140
- height: $iui-icons-xl;
141
- display: block;
142
- margin: round($iui-baseline * 0.5) auto $iui-baseline;
143
- fill: var(--iui-icons-color);
144
- @media (prefers-reduced-motion: no-preference) {
145
- transition: fill $iui-speed-fast ease-out;
146
- }
147
- @media (forced-colors: active) {
148
- fill: CanvasText;
149
- }
150
- }
151
-
152
- @mixin iui-radio-tile-label {
153
- font-size: $iui-font-size;
154
- font-weight: $iui-font-weight-semibold;
155
- line-height: $iui-line-height;
156
- text-align: center;
157
- word-break: break-word;
158
- color: var(--iui-text-color);
159
- }
160
-
161
- @mixin iui-radio-tile-sublabel {
162
- font-size: $iui-font-size-small;
163
- line-height: round($iui-baseline * 1.375);
164
- text-align: center;
165
- word-break: break-word;
166
- color: var(--iui-text-color-muted);
167
- }
@@ -1,27 +0,0 @@
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 './index';
4
-
5
- .iui-select-button {
6
- @include iui-select-button;
7
- }
8
-
9
- .iui-select-tag-container {
10
- @include iui-select-tag-container;
11
- }
12
-
13
- .iui-select-tag {
14
- @include iui-select-tag;
15
- }
16
-
17
- .iui-select-tag-label {
18
- @include iui-select-tag-label;
19
- }
20
-
21
- .iui-select-tag-button {
22
- @include iui-select-tag-button;
23
- }
24
-
25
- .iui-select-tag-button-icon {
26
- @include iui-select-tag-button-icon;
27
- }
@@ -1,3 +0,0 @@
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 './select';
@@ -1,124 +0,0 @@
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 '../style/index';
4
- @import '../menu/index';
5
- @import '../utils/index';
6
- @import '../tag/index';
7
- @import '../button/index';
8
-
9
- @mixin iui-select-button {
10
- @include iui-focus($offset: -2px, $thickness: 2px);
11
- width: 100%;
12
- margin: 0;
13
- border-radius: $iui-border-radius;
14
- padding: $iui-component-padding-vertical $iui-component-padding-horizontal;
15
- min-height: $iui-component-height;
16
- transition: border-color $iui-speed-fast ease-out;
17
- display: flex;
18
- align-items: center;
19
- user-select: none;
20
- position: relative;
21
- overflow: hidden;
22
- color: var(--iui-text-color);
23
- background-color: var(--iui-color-background-1);
24
- border: 1px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
25
-
26
- &.iui-small {
27
- padding-top: $iui-component-padding-vertical-small;
28
- padding-bottom: $iui-component-padding-vertical-small;
29
- min-height: $iui-component-height-small;
30
- }
31
-
32
- &.iui-large {
33
- padding-top: $iui-component-padding-vertical-large;
34
- padding-bottom: $iui-component-padding-vertical-large;
35
- min-height: $iui-component-height-large;
36
- font-size: $iui-font-size-leading;
37
- }
38
-
39
- &.iui-disabled {
40
- background-color: var(--iui-color-background-disabled);
41
- border-color: var(--iui-color-background-disabled);
42
- --_hover-color: var(--iui-color-background-disabled);
43
- cursor: not-allowed;
44
- }
45
-
46
- .iui-icon {
47
- @include iui-menu-icon;
48
- fill: currentColor;
49
- }
50
-
51
- .iui-content {
52
- overflow: hidden;
53
- white-space: nowrap;
54
- text-overflow: ellipsis;
55
- }
56
-
57
- &.iui-placeholder {
58
- color: var(--iui-text-color-placeholder);
59
- }
60
- }
61
-
62
- @mixin iui-select-tag-container {
63
- position: absolute;
64
- // align wth Select's padding
65
- inset: 0 $iui-icons-default + $iui-l 0 $iui-sm;
66
- height: 100%;
67
- display: flex;
68
- align-items: center;
69
- gap: $iui-xs;
70
- overflow: hidden;
71
-
72
- > * + * {
73
- margin-left: $iui-xs;
74
- @supports (gap: $iui-xs) {
75
- margin-left: 0;
76
- }
77
- }
78
- }
79
-
80
- @mixin iui-select-tag {
81
- @include iui-tag;
82
- // Override hardcoded Tag margin
83
- margin-top: 0;
84
- margin-bottom: 0;
85
- display: inline-flex;
86
- align-items: center;
87
- height: 80%;
88
- max-height: $iui-baseline * 3;
89
- }
90
-
91
- @mixin iui-select-tag-label {
92
- @include iui-tag-label;
93
- display: inline-flex;
94
- align-items: center;
95
-
96
- @at-root .iui-select-button.iui-small & {
97
- font-size: $iui-font-size-small;
98
- line-height: floor($iui-baseline * 1.5);
99
- }
100
- }
101
-
102
- @mixin iui-select-tag-button {
103
- @include iui-button;
104
- @include iui-button-borderless;
105
- @include iui-tag-button;
106
- padding: 0 $iui-xs;
107
- height: 100%;
108
- aspect-ratio: 1 / 1;
109
-
110
- @at-root .iui-select-button.iui-small & {
111
- font-size: $iui-font-size-small;
112
- line-height: floor($iui-baseline * 1.5);
113
- }
114
- }
115
-
116
- @mixin iui-select-tag-button-icon {
117
- @include iui-button-icon;
118
- flex-shrink: 0;
119
-
120
- @at-root .iui-select-button.iui-small & {
121
- width: $iui-icons-small;
122
- height: $iui-icons-small;
123
- }
124
- }
@@ -1,15 +0,0 @@
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 './index';
4
-
5
- .iui-side-navigation {
6
- @include iui-side-navigation;
7
- }
8
-
9
- .iui-side-navigation-submenu {
10
- @include iui-side-navigation-submenu;
11
- }
12
-
13
- .iui-side-navigation-wrapper {
14
- @include iui-side-navigation-wrapper;
15
- }
@@ -1,3 +0,0 @@
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 './side-navigation';
@@ -1,202 +0,0 @@
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 '../style/index';
4
- @import '../utils/index';
5
- @import '../text/mixins';
6
- @import '../icon/index';
7
-
8
- @mixin iui-side-navigation {
9
- display: inline-flex;
10
- flex: 0 0 auto;
11
- flex-direction: column;
12
- height: 100%;
13
- background-color: var(--iui-color-background-3);
14
- border-right: 1px solid var(--iui-color-background-border);
15
- @media (prefers-reduced-motion: no-preference) {
16
- transition: max-width $iui-speed-fast ease-out;
17
- }
18
-
19
- > .iui-sidenav-content {
20
- display: flex;
21
- flex-direction: column;
22
- flex-grow: 1;
23
- width: 100%;
24
-
25
- > .iui-top,
26
- > .iui-bottom {
27
- flex-grow: 1;
28
- display: flex;
29
- flex-direction: column;
30
- }
31
-
32
- > .iui-top {
33
- .iui-sidenav-button:first-of-type {
34
- border-top: none;
35
- }
36
-
37
- .iui-sidenav-button:not(:last-of-type) {
38
- border-bottom: none;
39
- }
40
- }
41
-
42
- > .iui-bottom {
43
- justify-content: flex-end;
44
-
45
- .iui-sidenav-button {
46
- border-bottom: none;
47
- }
48
- }
49
-
50
- + .iui-sidenav-button.iui-expand {
51
- border: none;
52
- border-top: 1px solid var(--iui-color-background-border);
53
- }
54
- }
55
-
56
- &.iui-collapsed {
57
- box-sizing: content-box;
58
- min-width: $iui-icons-large + $iui-side-navigation-icon-margins * 2;
59
- max-width: $iui-icons-large + $iui-side-navigation-icon-margins * 2;
60
-
61
- // iPhone notch support
62
- @supports (min-width: unquote('max(0px)')) {
63
- min-width: unquote(
64
- 'max(#{$iui-icons-large} + #{$iui-side-navigation-icon-margins} * 2, #{$iui-icons-large} + #{$iui-side-navigation-icon-margins} * 2 + env(safe-area-inset-left))'
65
- );
66
- max-width: unquote(
67
- 'max(#{$iui-icons-large} + #{$iui-side-navigation-icon-margins} * 2, #{$iui-icons-large} + #{$iui-side-navigation-icon-margins} * 2 + env(safe-area-inset-left))'
68
- );
69
- }
70
- }
71
-
72
- &.iui-expanded,
73
- > .iui-sidenav-content {
74
- max-width: $iui-3xl * 3;
75
-
76
- > .iui-sidenav-button.iui-expand > .iui-button-icon {
77
- transform: scaleX(-1);
78
- }
79
- }
80
-
81
- .iui-sidenav-button {
82
- gap: $iui-side-navigation-icon-margins;
83
- border-radius: 0;
84
- border-left: none;
85
- border-right: none;
86
- overflow: hidden;
87
- justify-content: flex-start;
88
-
89
- // Adds stripe to the right of active button
90
- --_iui-button-active-stripe-inset: 0 0 0 calc(100% - #{$iui-xxs});
91
-
92
- &:not(.iui-expand) {
93
- height: $iui-baseline * 5;
94
- // iPhone notch support
95
- @supports (padding: unquote('max(0px)')) {
96
- padding-left: unquote(
97
- 'max(#{$iui-side-navigation-icon-margins}, #{$iui-side-navigation-icon-margins} + env(safe-area-inset-left))'
98
- );
99
- }
100
- }
101
-
102
- > span {
103
- white-space: nowrap;
104
- overflow: hidden;
105
- text-overflow: ellipsis;
106
- }
107
-
108
- &,
109
- &:hover,
110
- &[disabled] {
111
- border-color: var(--iui-color-background-border);
112
- }
113
-
114
- > .iui-button-icon:not(.iui-avatar) {
115
- width: $iui-icons-large;
116
- height: $iui-icons-large;
117
- flex-shrink: 0;
118
- }
119
-
120
- &.iui-submenu-open .iui-button-icon {
121
- fill: var(--iui-color-foreground-primary);
122
- }
123
-
124
- &[disabled],
125
- &:disabled {
126
- background-color: var(--iui-color-background-2);
127
- }
128
-
129
- &.iui-expand {
130
- height: $iui-line-height;
131
- justify-content: center;
132
- border: none;
133
- border-bottom: 1px solid var(--iui-color-background-border);
134
-
135
- > .iui-button-icon {
136
- @include iui-icons-small;
137
- @media (prefers-reduced-motion: no-preference) {
138
- transition: transform $iui-speed ease-out;
139
- }
140
- }
141
- }
142
- }
143
- }
144
-
145
- @mixin iui-side-navigation-submenu {
146
- min-width: $iui-3xl * 2;
147
- max-width: 50vw;
148
- height: 100%;
149
- overflow-x: hidden;
150
- overflow-y: auto;
151
- overflow-y: overlay;
152
- resize: horizontal;
153
- background-color: var(--iui-color-background-1);
154
- border-right: 1px solid var(--iui-color-background-border);
155
-
156
- @include iui-transition-group;
157
-
158
- &.iui-enter-active,
159
- &.iui-exit-active {
160
- display: flex;
161
- }
162
-
163
- &-content {
164
- padding: 0 $iui-sm $iui-baseline;
165
- flex-shrink: 0;
166
- }
167
-
168
- &-header {
169
- height: $iui-baseline * 5;
170
- display: flex;
171
- align-items: center;
172
- justify-content: space-between;
173
-
174
- &-label {
175
- @include iui-text(title);
176
- display: flex;
177
- align-items: center;
178
- overflow: hidden;
179
-
180
- .iui-button {
181
- flex-shrink: 0;
182
- }
183
-
184
- > * {
185
- white-space: nowrap;
186
- overflow: hidden;
187
- text-overflow: ellipsis;
188
- }
189
- }
190
-
191
- &-actions {
192
- flex-shrink: 0;
193
- margin-left: $iui-s;
194
- }
195
- }
196
- }
197
-
198
- @mixin iui-side-navigation-wrapper {
199
- display: flex;
200
- position: relative;
201
- height: 100%;
202
- }
@@ -1,7 +0,0 @@
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 './index';
4
-
5
- .iui-skip-to-content-link {
6
- @include iui-skip-to-content-link;
7
- }
@@ -1,3 +0,0 @@
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 './skip-to-content';
@@ -1,40 +0,0 @@
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 '../style/index';
4
- @import '../utils/index';
5
-
6
- @mixin iui-skip-to-content-link {
7
- @include iui-blur($opacity: 3);
8
- @include iui-focus($offset: 2px, $thickness: 2px);
9
- color: var(--iui-color-foreground-accessory);
10
- border-radius: $iui-border-radius-round;
11
- text-decoration: none;
12
- user-select: none;
13
- padding: ($iui-baseline * 0.75) $iui-m;
14
- position: fixed;
15
- text-align: center;
16
- left: 50%;
17
- top: $iui-baseline * 2;
18
- opacity: 0;
19
- z-index: 99;
20
- transform: translateX(-50%) translateY(-170%);
21
- transition: background-color $iui-speed-fast ease-in-out;
22
- @media (prefers-reduced-motion: no-preference) {
23
- transition: opacity $iui-speed-slow ease-in-out, background-color $iui-speed-slow ease-in-out,
24
- transform $iui-speed-slow ease-in-out, box-shadow $iui-speed-slow ease-in-out;
25
- }
26
-
27
- &:hover {
28
- @include iui-blur($opacity: 2);
29
- }
30
-
31
- &:focus {
32
- opacity: 1;
33
- transform: translateX(-50%) translateY(0);
34
- box-shadow: $iui-elevation-16;
35
- @media (prefers-reduced-motion: no-preference) {
36
- transition: opacity $iui-speed-instant ease-in-out, background-color $iui-speed-fast ease-in-out,
37
- transform $iui-speed-fast ease-in-out, box-shadow $iui-speed-fast ease-in-out;
38
- }
39
- }
40
- }
@@ -1,27 +0,0 @@
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 './index';
4
-
5
- .iui-slider-component-container {
6
- @include iui-slider-component-container;
7
- }
8
-
9
- .iui-slider-container {
10
- @include iui-slider-container;
11
- }
12
-
13
- .iui-slider-ticks {
14
- @include iui-slider-ticks;
15
- }
16
-
17
- .iui-slider-rail {
18
- @include iui-slider-rail;
19
- }
20
-
21
- .iui-slider-thumb {
22
- @include iui-slider-thumb;
23
- }
24
-
25
- .iui-slider-track {
26
- @include iui-slider-track;
27
- }
@@ -1,3 +0,0 @@
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 './slider';