@itwin/itwinui-css 0.63.1 → 1.0.0-dev.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.
Files changed (244) hide show
  1. package/README.md +1 -4
  2. package/css/alert.css +291 -173
  3. package/css/all.css +4355 -6315
  4. package/css/anchor.css +3 -7
  5. package/css/avatar.css +226 -0
  6. package/css/backdrop.css +6 -4
  7. package/css/badge.css +8 -8
  8. package/css/blockquote.css +6 -9
  9. package/css/breadcrumbs.css +94 -156
  10. package/css/button.css +258 -365
  11. package/css/carousel.css +20 -26
  12. package/css/checkbox.css +152 -0
  13. package/css/code.css +14 -23
  14. package/css/color-picker.css +36 -77
  15. package/css/date-picker.css +59 -147
  16. package/css/dialog.css +25 -29
  17. package/css/expandable-block.css +36 -80
  18. package/css/fieldset.css +7 -12
  19. package/css/file-upload.css +15 -44
  20. package/css/footer.css +11 -19
  21. package/css/global.css +49 -671
  22. package/css/header.css +324 -408
  23. package/css/information-panel.css +39 -47
  24. package/css/input.css +170 -0
  25. package/css/keyboard.css +6 -10
  26. package/css/location-marker.css +32 -29
  27. package/css/menu.css +41 -43
  28. package/css/non-ideal-state.css +12 -12
  29. package/css/progress-indicator.css +37 -127
  30. package/css/radio-tile.css +70 -88
  31. package/css/radio.css +159 -0
  32. package/css/select.css +239 -0
  33. package/css/side-navigation.css +33 -57
  34. package/css/skip-to-content.css +11 -14
  35. package/css/slider.css +35 -67
  36. package/css/stepper.css +141 -0
  37. package/css/surface.css +2 -3
  38. package/css/table.css +362 -431
  39. package/css/tabs.css +58 -93
  40. package/css/tag.css +27 -46
  41. package/css/text.css +24 -26
  42. package/css/tile.css +200 -293
  43. package/css/time-picker.css +16 -26
  44. package/css/{toast-notification.css → toast.css} +50 -90
  45. package/css/toggle-switch.css +33 -80
  46. package/css/tooltip.css +6 -9
  47. package/css/tree.css +25 -49
  48. package/css/utils.css +683 -0
  49. package/css/workflow-diagram.css +67 -0
  50. package/package.json +7 -10
  51. package/css/icon.css +0 -177
  52. package/css/inputs.css +0 -1339
  53. package/css/notification-marker.css +0 -293
  54. package/css/popover.css +0 -14
  55. package/css/reset-global-styles.css +0 -50
  56. package/css/user-icon.css +0 -246
  57. package/css/wizard.css +0 -190
  58. package/scss/alert/alert.scss +0 -83
  59. package/scss/alert/classes.scss +0 -13
  60. package/scss/alert/index.scss +0 -3
  61. package/scss/anchor/anchor.scss +0 -3
  62. package/scss/anchor/classes.scss +0 -11
  63. package/scss/anchor/index.scss +0 -3
  64. package/scss/backdrop/backdrop.scss +0 -27
  65. package/scss/backdrop/classes.scss +0 -7
  66. package/scss/backdrop/index.scss +0 -3
  67. package/scss/badge/badge.scss +0 -32
  68. package/scss/badge/classes.scss +0 -7
  69. package/scss/badge/index.scss +0 -3
  70. package/scss/blockquote/blockquote.scss +0 -31
  71. package/scss/blockquote/classes.scss +0 -7
  72. package/scss/blockquote/index.scss +0 -3
  73. package/scss/breadcrumbs/breadcrumbs.scss +0 -124
  74. package/scss/breadcrumbs/classes.scss +0 -31
  75. package/scss/breadcrumbs/index.scss +0 -3
  76. package/scss/button/borderless.scss +0 -48
  77. package/scss/button/button-group.scss +0 -110
  78. package/scss/button/button-icon.scss +0 -12
  79. package/scss/button/button.scss +0 -97
  80. package/scss/button/classes.scss +0 -70
  81. package/scss/button/cta.scss +0 -31
  82. package/scss/button/default.scss +0 -59
  83. package/scss/button/disabled.scss +0 -13
  84. package/scss/button/high-visibility.scss +0 -31
  85. package/scss/button/idea.scss +0 -10
  86. package/scss/button/index.scss +0 -12
  87. package/scss/button/split-menu.scss +0 -66
  88. package/scss/carousel/carousel.scss +0 -124
  89. package/scss/carousel/classes.scss +0 -15
  90. package/scss/carousel/index.scss +0 -3
  91. package/scss/classes.scss +0 -48
  92. package/scss/code/classes.scss +0 -11
  93. package/scss/code/code.scss +0 -18
  94. package/scss/code/codeblock.scss +0 -74
  95. package/scss/code/index.scss +0 -4
  96. package/scss/color-picker/classes.scss +0 -43
  97. package/scss/color-picker/color-picker.scss +0 -274
  98. package/scss/color-picker/index.scss +0 -3
  99. package/scss/date-picker/classes.scss +0 -47
  100. package/scss/date-picker/date-picker.scss +0 -280
  101. package/scss/date-picker/index.scss +0 -3
  102. package/scss/dialog/classes.scss +0 -48
  103. package/scss/dialog/dialog.scss +0 -185
  104. package/scss/dialog/index.scss +0 -3
  105. package/scss/expandable-block/block.scss +0 -193
  106. package/scss/expandable-block/classes.scss +0 -7
  107. package/scss/expandable-block/index.scss +0 -3
  108. package/scss/fieldset/classes.scss +0 -7
  109. package/scss/fieldset/fieldset.scss +0 -35
  110. package/scss/fieldset/index.scss +0 -3
  111. package/scss/file-upload/classes.scss +0 -7
  112. package/scss/file-upload/file-upload.scss +0 -90
  113. package/scss/file-upload/index.scss +0 -3
  114. package/scss/footer/classes.scss +0 -23
  115. package/scss/footer/footer.scss +0 -62
  116. package/scss/footer/index.scss +0 -3
  117. package/scss/header/classes.scss +0 -11
  118. package/scss/header/header.scss +0 -443
  119. package/scss/header/index.scss +0 -3
  120. package/scss/icon/classes.scss +0 -27
  121. package/scss/icon/index.scss +0 -4
  122. package/scss/icon/mixins.scss +0 -78
  123. package/scss/icon/variables.scss +0 -14
  124. package/scss/index.scss +0 -46
  125. package/scss/information-panel/classes.scss +0 -27
  126. package/scss/information-panel/index.scss +0 -3
  127. package/scss/information-panel/information-panel.scss +0 -233
  128. package/scss/inputs/checkbox-radio.scss +0 -73
  129. package/scss/inputs/checkbox.scss +0 -106
  130. package/scss/inputs/classes.scss +0 -87
  131. package/scss/inputs/index.scss +0 -10
  132. package/scss/inputs/input-with-icon.scss +0 -36
  133. package/scss/inputs/input.scss +0 -80
  134. package/scss/inputs/labeled-inputs.scss +0 -382
  135. package/scss/inputs/radio.scss +0 -18
  136. package/scss/inputs/select.scss +0 -132
  137. package/scss/inputs/textarea.scss +0 -14
  138. package/scss/keyboard/classes.scss +0 -7
  139. package/scss/keyboard/index.scss +0 -3
  140. package/scss/keyboard/keyboard.scss +0 -33
  141. package/scss/location-marker/classes.scss +0 -15
  142. package/scss/location-marker/data-rich.scss +0 -58
  143. package/scss/location-marker/default.scss +0 -21
  144. package/scss/location-marker/index.scss +0 -6
  145. package/scss/location-marker/location-marker.scss +0 -13
  146. package/scss/location-marker/me.scss +0 -36
  147. package/scss/menu/classes.scss +0 -21
  148. package/scss/menu/index.scss +0 -3
  149. package/scss/menu/menu.scss +0 -205
  150. package/scss/non-ideal-state/classes.scss +0 -7
  151. package/scss/non-ideal-state/index.scss +0 -3
  152. package/scss/non-ideal-state/non-ideal-state.scss +0 -55
  153. package/scss/notification-marker/classes.scss +0 -9
  154. package/scss/notification-marker/index.scss +0 -3
  155. package/scss/notification-marker/notification-marker.scss +0 -63
  156. package/scss/popover/classes.scss +0 -7
  157. package/scss/popover/index.scss +0 -3
  158. package/scss/popover/popover.scss +0 -22
  159. package/scss/progress-indicator/classes.scss +0 -35
  160. package/scss/progress-indicator/index.scss +0 -5
  161. package/scss/progress-indicator/linear.scss +0 -126
  162. package/scss/progress-indicator/overlay.scss +0 -57
  163. package/scss/progress-indicator/radial.scss +0 -243
  164. package/scss/radio-tile/classes.scss +0 -31
  165. package/scss/radio-tile/index.scss +0 -3
  166. package/scss/radio-tile/radio-tile.scss +0 -209
  167. package/scss/reset-global-styles.scss +0 -33
  168. package/scss/side-navigation/classes.scss +0 -15
  169. package/scss/side-navigation/index.scss +0 -3
  170. package/scss/side-navigation/side-navigation.scss +0 -210
  171. package/scss/skip-to-content/classes.scss +0 -7
  172. package/scss/skip-to-content/index.scss +0 -3
  173. package/scss/skip-to-content/skip-to-content.scss +0 -41
  174. package/scss/slider/classes.scss +0 -40
  175. package/scss/slider/index.scss +0 -3
  176. package/scss/slider/slider.scss +0 -256
  177. package/scss/style/anchor.scss +0 -82
  178. package/scss/style/baseline.scss +0 -4
  179. package/scss/style/color.scss +0 -39
  180. package/scss/style/elevation.scss +0 -11
  181. package/scss/style/global.scss +0 -70
  182. package/scss/style/index.scss +0 -11
  183. package/scss/style/mixins.scss +0 -188
  184. package/scss/style/ripple.scss +0 -18
  185. package/scss/style/space.scss +0 -11
  186. package/scss/style/speed.scss +0 -8
  187. package/scss/style/theme.scss +0 -482
  188. package/scss/style/typography.scss +0 -54
  189. package/scss/style/variables.scss +0 -21
  190. package/scss/surface/classes.scss +0 -7
  191. package/scss/surface/index.scss +0 -3
  192. package/scss/surface/surface.scss +0 -18
  193. package/scss/table/classes.scss +0 -63
  194. package/scss/table/column-filter.scss +0 -37
  195. package/scss/table/condensed.scss +0 -15
  196. package/scss/table/extra-condensed.scss +0 -19
  197. package/scss/table/index.scss +0 -7
  198. package/scss/table/paginator.scss +0 -87
  199. package/scss/table/table.scss +0 -558
  200. package/scss/table/variables.scss +0 -10
  201. package/scss/tabs/borderless.scss +0 -71
  202. package/scss/tabs/classes.scss +0 -44
  203. package/scss/tabs/default.scss +0 -110
  204. package/scss/tabs/index.scss +0 -6
  205. package/scss/tabs/pill.scss +0 -48
  206. package/scss/tabs/tabs.scss +0 -220
  207. package/scss/tag/classes.scss +0 -29
  208. package/scss/tag/index.scss +0 -3
  209. package/scss/tag/tag.scss +0 -99
  210. package/scss/text/classes.scss +0 -40
  211. package/scss/text/index.scss +0 -5
  212. package/scss/text/mixins.scss +0 -42
  213. package/scss/text/muted.scss +0 -9
  214. package/scss/text/skeleton.scss +0 -46
  215. package/scss/tile/classes.scss +0 -51
  216. package/scss/tile/index.scss +0 -3
  217. package/scss/tile/tile.scss +0 -370
  218. package/scss/time-picker/classes.scss +0 -16
  219. package/scss/time-picker/index.scss +0 -3
  220. package/scss/time-picker/time-picker.scss +0 -72
  221. package/scss/toast-notification/categories.scss +0 -26
  222. package/scss/toast-notification/classes.scss +0 -98
  223. package/scss/toast-notification/index.scss +0 -4
  224. package/scss/toast-notification/toast.scss +0 -79
  225. package/scss/toggle-switch/classes.scss +0 -11
  226. package/scss/toggle-switch/index.scss +0 -3
  227. package/scss/toggle-switch/toggle-switch.scss +0 -222
  228. package/scss/tooltip/classes.scss +0 -24
  229. package/scss/tooltip/index.scss +0 -3
  230. package/scss/tooltip/tooltip.scss +0 -41
  231. package/scss/tree/classes.scss +0 -19
  232. package/scss/tree/index.scss +0 -3
  233. package/scss/tree/tree.scss +0 -138
  234. package/scss/user-icon/classes.scss +0 -27
  235. package/scss/user-icon/index.scss +0 -4
  236. package/scss/user-icon/sizes.scss +0 -22
  237. package/scss/user-icon/user-icon.scss +0 -250
  238. package/scss/variables.scss +0 -3
  239. package/scss/wizard/classes.scss +0 -27
  240. package/scss/wizard/index.scss +0 -5
  241. package/scss/wizard/long.scss +0 -19
  242. package/scss/wizard/wizard.scss +0 -160
  243. package/scss/wizard/workflow.scss +0 -43
  244. package/src/index.scss +0 -46
@@ -1,210 +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 '../icon/index';
5
- @import '../text/index';
6
-
7
- @mixin iui-side-navigation {
8
- display: inline-flex;
9
- flex: 0 0 auto;
10
- flex-direction: column;
11
- height: 100%;
12
- @media (prefers-reduced-motion: no-preference) {
13
- transition: max-width $iui-speed-fast ease-out;
14
- }
15
- @include themed {
16
- background-color: t(iui-color-background-3);
17
- border-right: 1px solid t(iui-color-background-border);
18
- }
19
-
20
- > .iui-sidenav-content {
21
- display: flex;
22
- flex-direction: column;
23
- flex-grow: 1;
24
- width: 100%;
25
-
26
- > .iui-top,
27
- > .iui-bottom {
28
- flex-grow: 1;
29
- display: flex;
30
- flex-direction: column;
31
- }
32
-
33
- > .iui-top {
34
- .iui-sidenav-button:first-of-type {
35
- border-top: none;
36
- }
37
-
38
- .iui-sidenav-button:not(:last-of-type) {
39
- border-bottom: none;
40
- }
41
- }
42
-
43
- > .iui-bottom {
44
- justify-content: flex-end;
45
-
46
- .iui-sidenav-button {
47
- border-bottom: none;
48
- }
49
- }
50
-
51
- + .iui-sidenav-button.iui-expand {
52
- border: none;
53
- @include themed {
54
- border-top: 1px solid t(iui-color-background-border);
55
- }
56
- }
57
- }
58
-
59
- &.iui-collapsed {
60
- min-width: $iui-icons-large * 3;
61
- max-width: $iui-icons-large * 3;
62
-
63
- // iPhone notch support
64
- @supports (min-width: unquote('max(0px)')) {
65
- min-width: unquote('max(#{$iui-icons-large} * 3, #{$iui-icons-large} * 3 + env(safe-area-inset-left))');
66
- max-width: unquote('max(#{$iui-icons-large} * 3, #{$iui-icons-large} * 3 + env(safe-area-inset-left))');
67
- }
68
- }
69
-
70
- &.iui-expanded,
71
- > .iui-sidenav-content {
72
- max-width: $iui-3xl * 3;
73
-
74
- > .iui-sidenav-button.iui-expand > .iui-button-icon {
75
- transform: scaleX(-1);
76
- }
77
- }
78
-
79
- .iui-sidenav-button {
80
- gap: $iui-icons-large;
81
- border-radius: 0;
82
- border-left: none;
83
- border-right: none;
84
- overflow: hidden;
85
- justify-content: flex-start;
86
-
87
- // Adds stripe to the right of active button
88
- --_iui-button-active-stripe-inset: 0 0 0 calc(100% - #{$iui-xxs});
89
-
90
- &:not(.iui-expand) {
91
- height: $iui-baseline * 5;
92
- // iPhone notch support
93
- @supports (padding: unquote('max(0px)')) {
94
- padding-left: unquote('max(#{$iui-icons-large}, #{$iui-icons-large} + env(safe-area-inset-left))');
95
- }
96
- }
97
-
98
- > .iui-button-label {
99
- white-space: nowrap;
100
- overflow: hidden;
101
- text-overflow: ellipsis;
102
- }
103
-
104
- &,
105
- &:hover,
106
- &[disabled] {
107
- @include themed {
108
- border-color: t(iui-color-background-border);
109
- }
110
- }
111
-
112
- > .iui-button-icon:not(.iui-user-icon) {
113
- width: $iui-icons-large;
114
- height: $iui-icons-large;
115
- flex-shrink: 0;
116
- }
117
-
118
- &.iui-submenu-open .iui-button-icon {
119
- @include themed {
120
- fill: t(iui-color-foreground-primary);
121
- }
122
- }
123
-
124
- &[disabled],
125
- &:disabled {
126
- @include themed {
127
- background-color: t(iui-color-background-2);
128
- }
129
- }
130
-
131
- &.iui-expand {
132
- height: $iui-line-height;
133
- justify-content: center;
134
- border: none;
135
- @include themed {
136
- border-bottom: 1px solid t(iui-color-background-border);
137
- }
138
-
139
- > .iui-button-icon {
140
- @include iui-icons-small;
141
- @media (prefers-reduced-motion: no-preference) {
142
- transition: transform $iui-speed ease-out;
143
- }
144
- }
145
- }
146
- }
147
- }
148
-
149
- @mixin iui-side-navigation-submenu {
150
- min-width: $iui-3xl * 2;
151
- max-width: 50vw;
152
- height: 100%;
153
- box-sizing: border-box;
154
- overflow-x: hidden;
155
- overflow-y: auto;
156
- overflow-y: overlay;
157
- resize: horizontal;
158
- @include themed {
159
- background-color: t(iui-color-background-1);
160
- border-right: 1px solid t(iui-color-background-border);
161
- }
162
-
163
- @include iui-transition-group;
164
-
165
- &.iui-enter-active,
166
- &.iui-exit-active {
167
- display: flex;
168
- }
169
-
170
- &-content {
171
- padding: 0 $iui-sm $iui-baseline;
172
- flex-shrink: 0;
173
- box-sizing: border-box;
174
- }
175
-
176
- &-header {
177
- height: $iui-baseline * 5;
178
- display: flex;
179
- align-items: center;
180
- justify-content: space-between;
181
-
182
- &-label {
183
- @include iui-text(title);
184
- display: flex;
185
- align-items: center;
186
- overflow: hidden;
187
-
188
- .iui-button {
189
- flex-shrink: 0;
190
- }
191
-
192
- > * {
193
- white-space: nowrap;
194
- overflow: hidden;
195
- text-overflow: ellipsis;
196
- }
197
- }
198
-
199
- &-actions {
200
- flex-shrink: 0;
201
- margin-left: $iui-s;
202
- }
203
- }
204
- }
205
-
206
- @mixin iui-side-navigation-wrapper {
207
- display: flex;
208
- position: relative;
209
- height: 100%;
210
- }
@@ -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,41 +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
-
5
- @mixin iui-skip-to-content-link {
6
- @include iui-blur($opacity: 3);
7
- @include iui-focus($offset: 2px, $thickness: 2px);
8
- @include themed {
9
- color: t(iui-color-foreground-accessory);
10
- }
11
- border-radius: $iui-border-radius-round;
12
- text-decoration: none;
13
- user-select: none;
14
- padding: ($iui-baseline * 0.75) $iui-m;
15
- position: fixed;
16
- text-align: center;
17
- left: 50%;
18
- top: $iui-baseline * 2;
19
- opacity: 0;
20
- z-index: 99;
21
- transform: translateX(-50%) translateY(-170%);
22
- transition: background-color $iui-speed-fast ease-in-out;
23
- @media (prefers-reduced-motion: no-preference) {
24
- transition: opacity $iui-speed-slow ease-in-out, background-color $iui-speed-slow ease-in-out,
25
- transform $iui-speed-slow ease-in-out, box-shadow $iui-speed-slow ease-in-out;
26
- }
27
-
28
- &:hover {
29
- @include iui-blur($opacity: 2);
30
- }
31
-
32
- &:focus {
33
- opacity: 1;
34
- transform: translateX(-50%) translateY(0);
35
- box-shadow: $iui-elevation-16;
36
- @media (prefers-reduced-motion: no-preference) {
37
- transition: opacity $iui-speed-instant ease-in-out, background-color $iui-speed-fast ease-in-out,
38
- transform $iui-speed-fast ease-in-out, box-shadow $iui-speed-fast ease-in-out;
39
- }
40
- }
41
- }
@@ -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 './index';
4
-
5
- .iui-slider-horizontal {
6
- @include iui-slider-horizontal;
7
- }
8
-
9
- .iui-slider-vertical {
10
- @include iui-slider-vertical;
11
- }
12
-
13
- .iui-slider-component-container {
14
- @include iui-slider-component-container;
15
- }
16
-
17
- .iui-slider-container {
18
- @include iui-slider-container;
19
- }
20
-
21
- .iui-slider-ticks {
22
- @include iui-slider-ticks;
23
- }
24
-
25
- .iui-slider-rail {
26
- @include iui-slider-rail;
27
- }
28
-
29
- .iui-slider-thumb {
30
- @include iui-slider-thumb;
31
- }
32
-
33
- .iui-slider-track {
34
- @include iui-slider-track;
35
- }
36
-
37
- .iui-slider-min,
38
- .iui-slider-max {
39
- @include iui-slider-endpoints;
40
- }
@@ -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';
@@ -1,256 +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 '../icon/index';
5
-
6
- $thumb-height: $iui-m; // 16px
7
- $track-height: $iui-xs; // 4px
8
- $tick-height: $iui-baseline; // 11px
9
-
10
- @mixin iui-slider-component-container {
11
- display: flex;
12
-
13
- &.iui-disabled {
14
- @include iui-slider-disabled;
15
- }
16
- }
17
-
18
- @mixin iui-slider-endpoints {
19
- user-select: all;
20
-
21
- svg {
22
- @include iui-icons-default;
23
- margin-top: $iui-xs;
24
- }
25
- }
26
-
27
- @mixin iui-slider-container {
28
- position: relative;
29
- flex-grow: 1;
30
- cursor: pointer;
31
- touch-action: pan-y;
32
-
33
- &.iui-grabbing {
34
- cursor: grabbing;
35
- }
36
- }
37
-
38
- @mixin iui-slider-rail {
39
- position: absolute;
40
- @include themed {
41
- background-color: t(iui-color-background-border);
42
- }
43
- @media (forced-colors: active) {
44
- background-color: CanvasText;
45
- }
46
- }
47
-
48
- @mixin iui-slider-thumb {
49
- position: absolute;
50
- height: $thumb-height;
51
- width: $thumb-height;
52
- border-radius: 100%;
53
- z-index: 1;
54
- cursor: grab;
55
- @include iui-focus($thickness: 2px);
56
- @include themed {
57
- background: t(iui-color-background-1);
58
- border: 1px solid t(iui-color-background-border);
59
- }
60
- @media (forced-colors: active) {
61
- background: Canvas;
62
- border: 1px solid CanvasText;
63
- }
64
-
65
- &:active {
66
- cursor: grabbing;
67
- }
68
- }
69
-
70
- @mixin iui-slider-track {
71
- pointer-events: none;
72
- position: absolute;
73
- top: $iui-sm;
74
- @include themed {
75
- background-color: t(iui-color-foreground-primary);
76
- }
77
- @media (forced-colors: active) {
78
- background-color: Highlight;
79
- }
80
- }
81
-
82
- @mixin iui-slider-ticks {
83
- position: relative;
84
- display: flex;
85
- pointer-events: none;
86
- justify-content: space-between;
87
- user-select: none;
88
-
89
- .iui-slider-tick {
90
- position: relative;
91
- display: flex;
92
- pointer-events: none;
93
- justify-content: center;
94
- align-items: center;
95
-
96
- &::before {
97
- @include themed {
98
- background-color: t(iui-color-background-4);
99
- }
100
- @media (forced-colors: active) {
101
- background-color: CanvasText;
102
- }
103
- }
104
- }
105
- }
106
-
107
- @mixin iui-slider-disabled {
108
- cursor: not-allowed;
109
-
110
- .iui-slider-container {
111
- cursor: not-allowed;
112
- pointer-events: none;
113
- }
114
-
115
- .iui-slider-thumb {
116
- cursor: not-allowed;
117
- @include themed {
118
- background-color: t(iui-color-background-4);
119
- border-color: t(iui-color-background-4);
120
- }
121
- @media (forced-colors: active) {
122
- background-color: GrayText;
123
- border-color: GrayText;
124
- }
125
- }
126
-
127
- .iui-slider-track {
128
- @include themed {
129
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
130
- }
131
- @media (forced-colors: active) {
132
- background-color: GrayText;
133
- }
134
- }
135
-
136
- .iui-slider-min,
137
- .iui-slider-max,
138
- .iui-slider-tick {
139
- user-select: none;
140
- @include themed {
141
- color: t(iui-text-color-muted);
142
- }
143
- @media (forced-colors: active) {
144
- color: GrayText;
145
- }
146
- }
147
- }
148
-
149
- @mixin iui-slider-horizontal {
150
- min-height: $iui-baseline * 2;
151
-
152
- .iui-slider-rail {
153
- width: 100%;
154
- height: $track-height;
155
- top: $iui-sm;
156
- }
157
-
158
- .iui-slider-thumb {
159
- top: $track-height + 1; // position center of thumb in center of track
160
- transform: translateX(
161
- -50%
162
- ); // Adjust the left (set in code) by radius of thumb so thumb center is at value position
163
- }
164
-
165
- .iui-slider-track {
166
- height: $track-height;
167
- left: 0;
168
- }
169
-
170
- .iui-slider-ticks {
171
- padding-top: $iui-m;
172
-
173
- .iui-slider-tick {
174
- flex-direction: column;
175
- width: 1px;
176
-
177
- &::before {
178
- content: '';
179
- width: 1px;
180
- height: $tick-height;
181
- }
182
- }
183
- }
184
-
185
- .iui-slider-min,
186
- .iui-slider-max {
187
- margin-top: $iui-xxs;
188
- }
189
-
190
- .iui-slider-min {
191
- margin-right: $iui-sm;
192
- text-align: right;
193
- }
194
-
195
- .iui-slider-max {
196
- margin-left: $iui-sm;
197
- }
198
- }
199
-
200
- @mixin iui-slider-vertical {
201
- flex-direction: column-reverse;
202
- min-width: $iui-baseline * 2;
203
- height: 100%;
204
-
205
- .iui-slider-rail {
206
- width: $track-height;
207
- height: 100%;
208
- left: $iui-sm;
209
- }
210
-
211
- .iui-slider-thumb {
212
- transform: translateY(
213
- 50%
214
- ); // Adjust the bottom (set in code) by radius of thumb so thumb center is at value position
215
- left: $track-height + 1;
216
- }
217
-
218
- .iui-slider-track {
219
- width: $track-height;
220
- bottom: 0;
221
- left: $iui-sm;
222
- }
223
-
224
- .iui-slider-ticks {
225
- padding-left: $iui-m;
226
- flex-direction: column-reverse;
227
- align-items: flex-start;
228
- height: 100%;
229
-
230
- .iui-slider-tick {
231
- flex: row;
232
- height: 1px;
233
-
234
- &::before {
235
- content: '';
236
- width: $tick-height;
237
- height: 1px;
238
- margin-right: $tick-height * 1;
239
- }
240
- }
241
- }
242
-
243
- .iui-slider-min,
244
- .iui-slider-max {
245
- margin-left: $iui-xxs;
246
- text-align: center;
247
- }
248
-
249
- .iui-slider-min {
250
- margin-top: $iui-sm;
251
- }
252
-
253
- .iui-slider-max {
254
- margin-bottom: $iui-sm;
255
- }
256
- }
@@ -1,82 +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
- @mixin iui-anchor {
6
- @include iui-anchor-status('primary');
7
- border-radius: $iui-border-radius;
8
- box-sizing: border-box;
9
- cursor: pointer;
10
-
11
- @include iui-anchor-underline('on-hover');
12
-
13
- @media (prefers-contrast: more) {
14
- @include iui-anchor-underline('on-initial');
15
- }
16
-
17
- @at-root {
18
- .iui-theme-light &,
19
- .iui-theme-dark & {
20
- @include iui-anchor-underline('on-hover');
21
- }
22
- }
23
-
24
- @at-root {
25
- .iui-theme-light-hc &,
26
- .iui-theme-dark-hc & {
27
- @include iui-anchor-underline('on-initial');
28
- }
29
- }
30
- }
31
-
32
- @mixin iui-anchor-external {
33
- --_iui-anchor-external-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='m16 0v5.4l-1.9-2-8.4 8.4-1.5-1.5 8.3-8.4-1.9-1.9m5.4 16v-9h-1v8h-14v-14h8v-1h-9v16z' /></svg>");
34
-
35
- &::after {
36
- content: '';
37
- display: inline-block;
38
- width: 1.5ch;
39
- height: 1.5ch;
40
- margin-left: 0.5ch;
41
- vertical-align: -0.1ch;
42
- background-color: currentColor;
43
- mask: var(--_iui-anchor-external-svg);
44
- @media (forced-colors: active) {
45
- background-color: LinkText;
46
- }
47
- }
48
- }
49
-
50
- @mixin iui-anchor-status($status: primary) {
51
- @include iui-focus($color: var(--iui-color-foreground-#{$status}), $offset: 1px);
52
- @include themed {
53
- color: t(iui-color-foreground-#{$status});
54
- -webkit-tap-highlight-color: rgba(t(iui-color-foreground-#{$status}-rgb), t(iui-opacity-5));
55
- }
56
- @if $status != primary {
57
- @include iui-text-selection($status);
58
- }
59
-
60
- &:hover {
61
- @include themed {
62
- color: t(iui-color-foreground-#{$status}-overlay);
63
- }
64
- }
65
- }
66
-
67
- /// $behavior should be one of: 'on-hover' or 'on-initial'
68
- @mixin iui-anchor-underline($behavior: 'on-hover') {
69
- @if $behavior == 'on-hover' {
70
- text-decoration: none;
71
-
72
- &:hover {
73
- text-decoration: underline;
74
- }
75
- } @else {
76
- text-decoration: underline;
77
-
78
- &:hover {
79
- text-decoration: none;
80
- }
81
- }
82
- }
@@ -1,4 +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
- $iui-baseline: 11px;
4
- $iui-line-height: $iui-baseline * 2; /// 22px; /// ~1.618;
@@ -1,39 +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
- /// Data visualization colors:
4
- $iui-color-dataviz-skyblue: hsl(204, 77%, 67%);
5
- $iui-color-dataviz-celery: hsl(72, 51%, 56%);
6
- $iui-color-dataviz-froly: hsl(2, 90%, 70%);
7
- $iui-color-dataviz-steelblue: hsl(200, 41%, 46%);
8
- $iui-color-dataviz-sunglow: hsl(42, 100%, 60%);
9
- $iui-color-dataviz-seabuckthorn: hsl(29, 92%, 61%);
10
- $iui-color-dataviz-montecarlo: hsl(176, 43%, 62%);
11
- $iui-color-dataviz-poloblue: hsl(211, 44%, 67%);
12
- $iui-color-dataviz-bouquet: hsl(305, 19%, 55%);
13
- $iui-color-dataviz-ash: hsl(42, 15%, 75%);
14
- $iui-color-dataviz-oak: hsl(27, 32%, 49%);
15
-
16
- /// Soft background colors generated from dataviz colors:
17
- $iui-color-background-skyblue: hsl(197, 71%, 83%);
18
- $iui-color-background-celery: hsl(72, 51%, 66%);
19
- $iui-color-background-froly: hsl(2, 90%, 83%);
20
- $iui-color-background-steelblue: hsl(207, 44%, 73%);
21
- $iui-color-background-sunglow: hsl(42, 100%, 70%);
22
- $iui-color-background-seabuckthorn: hsl(29, 92%, 71%);
23
- $iui-color-background-montecarlo: hsl(176, 43%, 72%);
24
- $iui-color-background-poloblue: hsl(211, 44%, 77%);
25
- $iui-color-background-bouquet: hsl(305, 19%, 75%);
26
- $iui-color-background-ash: hsl(42, 15%, 85%);
27
- $iui-color-background-oak: hsl(27, 32%, 72%);
28
-
29
- /// System provided colors:
30
- $iui-color-system-red: #F00;
31
- $iui-color-system-burgundi: #900;
32
- $iui-color-system-orange: #F90;
33
- $iui-color-system-yellow: #FF0;
34
- $iui-color-system-green: #6C0;
35
- $iui-color-system-cyan: #0CF;
36
- $iui-color-system-blue: #03F;
37
- $iui-color-system-magenta: #C3F;
38
- $iui-color-system-turquoise: #6FC;
39
- $iui-color-system-gray: #999;
@@ -1,11 +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
- /// Elevations:
4
- $iui-elevation-color: hsla(200, 12%, 0%, 0.25);
5
-
6
- $iui-elevation-0: 0;
7
- $iui-elevation-2: 0 1px 5px $iui-elevation-color;
8
- $iui-elevation-4: 0 1px 10px $iui-elevation-color;
9
- $iui-elevation-8: 0 3px 14px $iui-elevation-color;
10
- $iui-elevation-16: 0 6px 30px $iui-elevation-color;
11
- $iui-elevation-24: 0 9px 46px $iui-elevation-color;