@itwin/itwinui-css 0.59.2 → 1.0.0-dev.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.
Files changed (202) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +1 -4
  3. package/css/alert.css +273 -139
  4. package/css/all.css +4046 -4967
  5. package/css/anchor.css +1 -5
  6. package/css/{user-icon.css → avatar.css} +51 -71
  7. package/css/backdrop.css +24 -0
  8. package/css/badge.css +2 -2
  9. package/css/blockquote.css +1 -4
  10. package/css/breadcrumbs.css +64 -137
  11. package/css/button.css +264 -349
  12. package/css/carousel.css +8 -16
  13. package/css/checkbox.css +149 -0
  14. package/css/code.css +5 -13
  15. package/css/color-picker.css +6 -44
  16. package/css/date-picker.css +6 -65
  17. package/css/dialog.css +63 -101
  18. package/css/expandable-block.css +1 -32
  19. package/css/fieldset.css +2 -7
  20. package/css/file-upload.css +0 -15
  21. package/css/footer.css +1 -9
  22. package/css/global.css +8 -63
  23. package/css/header.css +312 -398
  24. package/css/icon.css +0 -30
  25. package/css/information-panel.css +1 -15
  26. package/css/input.css +162 -0
  27. package/css/keyboard.css +2 -6
  28. package/css/location-marker.css +1 -12
  29. package/css/menu.css +1 -17
  30. package/css/progress-indicator.css +1 -93
  31. package/css/radio-tile.css +38 -65
  32. package/css/radio.css +156 -0
  33. package/css/select.css +230 -0
  34. package/css/side-navigation.css +5 -20
  35. package/css/skip-to-content.css +0 -3
  36. package/css/slider.css +2 -14
  37. package/css/stepper.css +141 -0
  38. package/css/surface.css +0 -1
  39. package/css/table.css +252 -339
  40. package/css/tabs.css +26 -65
  41. package/css/tag.css +7 -32
  42. package/css/text.css +1 -3
  43. package/css/textarea.css +96 -0
  44. package/css/tile.css +169 -155
  45. package/css/time-picker.css +2 -14
  46. package/css/{toast-notification.css → toast.css} +3 -45
  47. package/css/toggle-switch.css +13 -60
  48. package/css/tooltip.css +1 -4
  49. package/css/tree.css +0 -14
  50. package/css/utils.css +609 -0
  51. package/css/workflow-diagram.css +67 -0
  52. package/package.json +11 -7
  53. package/scss/alert/alert.scss +50 -44
  54. package/scss/alert/classes.scss +24 -4
  55. package/scss/anchor/anchor.scss +76 -1
  56. package/scss/{user-icon/sizes.scss → avatar/avatar-sizes.scss} +6 -5
  57. package/scss/{user-icon/user-icon.scss → avatar/avatar.scss} +35 -70
  58. package/scss/avatar/classes.scss +27 -0
  59. package/scss/{user-icon → avatar}/index.scss +1 -2
  60. package/scss/backdrop/backdrop.scss +27 -0
  61. package/scss/backdrop/classes.scss +7 -0
  62. package/scss/backdrop/index.scss +3 -0
  63. package/scss/badge/badge.scss +4 -2
  64. package/scss/blockquote/blockquote.scss +4 -9
  65. package/scss/breadcrumbs/breadcrumbs.scss +13 -18
  66. package/scss/button/borderless.scss +20 -32
  67. package/scss/button/button-group.scss +15 -7
  68. package/scss/button/button.scss +64 -42
  69. package/scss/button/classes.scss +47 -37
  70. package/scss/button/default.scss +33 -41
  71. package/scss/button/idea.scss +4 -2
  72. package/scss/button/index.scss +3 -6
  73. package/scss/button/split-button.scss +45 -0
  74. package/scss/button/variant.scss +44 -0
  75. package/scss/carousel/carousel.scss +12 -23
  76. package/scss/{inputs → checkbox}/checkbox.scss +50 -2
  77. package/scss/checkbox/classes.scss +7 -0
  78. package/scss/checkbox/index.scss +3 -0
  79. package/scss/classes.scss +11 -6
  80. package/scss/code/code.scss +3 -5
  81. package/scss/code/codeblock.scss +7 -21
  82. package/scss/color-picker/color-picker.scss +32 -61
  83. package/scss/date-picker/date-picker.scss +21 -55
  84. package/scss/dialog/classes.scss +7 -6
  85. package/scss/dialog/dialog.scss +95 -130
  86. package/scss/expandable-block/block.scss +22 -50
  87. package/scss/fieldset/fieldset.scss +6 -12
  88. package/scss/file-upload/file-upload.scss +13 -23
  89. package/scss/footer/footer.scss +5 -15
  90. package/scss/header/classes.scss +70 -2
  91. package/scss/header/header-buttons.scss +316 -0
  92. package/scss/header/header.scss +40 -408
  93. package/scss/header/index.scss +1 -0
  94. package/scss/icon/{mixins.scss → icon.scss} +5 -15
  95. package/scss/icon/index.scss +1 -2
  96. package/scss/index.scss +11 -6
  97. package/scss/information-panel/information-panel.scss +8 -26
  98. package/scss/input/classes.scss +15 -0
  99. package/scss/input/index.scss +4 -0
  100. package/scss/{inputs → input}/input-with-icon.scss +1 -0
  101. package/scss/{inputs → input}/input.scss +15 -25
  102. package/scss/keyboard/keyboard.scss +5 -9
  103. package/scss/location-marker/data-rich.scss +5 -14
  104. package/scss/location-marker/default.scss +1 -3
  105. package/scss/location-marker/location-marker.scss +1 -3
  106. package/scss/location-marker/me.scss +7 -14
  107. package/scss/menu/menu.scss +16 -36
  108. package/scss/non-ideal-state/non-ideal-state.scss +2 -1
  109. package/scss/progress-indicator/classes.scss +0 -4
  110. package/scss/progress-indicator/linear.scss +9 -27
  111. package/scss/progress-indicator/overlay.scss +4 -10
  112. package/scss/progress-indicator/radial.scss +10 -98
  113. package/scss/radio/classes.scss +7 -0
  114. package/scss/radio/index.scss +3 -0
  115. package/scss/{inputs → radio}/radio.scss +1 -1
  116. package/scss/radio-tile/radio-tile.scss +41 -83
  117. package/scss/select/classes.scss +27 -0
  118. package/scss/select/index.scss +3 -0
  119. package/scss/select/select.scss +124 -0
  120. package/scss/side-navigation/side-navigation.scss +26 -34
  121. package/scss/skip-to-content/skip-to-content.scss +2 -3
  122. package/scss/slider/slider.scss +12 -23
  123. package/scss/stepper/classes.scss +32 -0
  124. package/scss/stepper/index.scss +3 -0
  125. package/scss/stepper/stepper.scss +151 -0
  126. package/scss/style/{variables.scss → global-variables.scss} +4 -2
  127. package/scss/style/global.scss +9 -10
  128. package/scss/{icon/variables.scss → style/icon-sizes.scss} +1 -1
  129. package/scss/style/index.scss +6 -6
  130. package/scss/style/theme.scss +0 -39
  131. package/scss/style/typography.scss +5 -4
  132. package/scss/surface/surface.scss +0 -1
  133. package/scss/table/classes.scss +24 -23
  134. package/scss/table/column-filter.scss +2 -5
  135. package/scss/table/index.scss +1 -2
  136. package/scss/table/paginator.scss +22 -30
  137. package/scss/table/sizes.scss +31 -0
  138. package/scss/table/{variables.scss → table-densities.scss} +2 -1
  139. package/scss/table/table.scss +156 -228
  140. package/scss/tabs/borderless.scss +9 -22
  141. package/scss/tabs/classes.scss +4 -0
  142. package/scss/tabs/default.scss +11 -25
  143. package/scss/tabs/pill.scss +5 -15
  144. package/scss/tabs/tabs.scss +30 -57
  145. package/scss/tag/classes.scss +1 -0
  146. package/scss/tag/tag.scss +11 -21
  147. package/scss/text/mixins.scss +1 -0
  148. package/scss/text/muted.scss +2 -4
  149. package/scss/text/skeleton.scss +8 -11
  150. package/scss/textarea/classes.scss +7 -0
  151. package/scss/textarea/index.scss +3 -0
  152. package/scss/{inputs → textarea}/textarea.scss +2 -1
  153. package/scss/tile/classes.scss +14 -2
  154. package/scss/tile/tile.scss +99 -80
  155. package/scss/time-picker/time-picker.scss +8 -17
  156. package/scss/{toast-notification → toast}/categories.scss +3 -7
  157. package/scss/{toast-notification → toast}/classes.scss +0 -0
  158. package/scss/{toast-notification → toast}/index.scss +0 -0
  159. package/scss/{toast-notification → toast}/toast.scss +7 -16
  160. package/scss/toggle-switch/toggle-switch.scss +11 -30
  161. package/scss/tooltip/tooltip.scss +4 -5
  162. package/scss/tree/tree.scss +10 -22
  163. package/scss/utils/classes.scss +6 -0
  164. package/scss/utils/index.scss +6 -0
  165. package/scss/{inputs → utils/input-container}/classes.scss +0 -28
  166. package/scss/utils/input-container/index.scss +3 -0
  167. package/scss/{inputs/labeled-inputs.scss → utils/input-container/input-container.scss} +16 -113
  168. package/scss/{style → utils}/mixins.scss +26 -43
  169. package/scss/{notification-marker → utils/notification-marker}/classes.scss +0 -0
  170. package/scss/{notification-marker → utils/notification-marker}/index.scss +0 -0
  171. package/scss/{notification-marker → utils/notification-marker}/notification-marker.scss +11 -19
  172. package/scss/{popover → utils/popover}/classes.scss +0 -0
  173. package/scss/{popover → utils/popover}/index.scss +0 -0
  174. package/scss/{popover → utils/popover}/popover.scss +0 -1
  175. package/scss/workflow-diagram/classes.scss +15 -0
  176. package/scss/workflow-diagram/index.scss +3 -0
  177. package/scss/workflow-diagram/workflow-diagram.scss +64 -0
  178. package/src/index.scss +11 -6
  179. package/css/inputs.css +0 -1143
  180. package/css/notification-marker.css +0 -293
  181. package/css/popover.css +0 -14
  182. package/css/reset-global-styles.css +0 -50
  183. package/css/wizard.css +0 -190
  184. package/scss/button/button-icon.scss +0 -12
  185. package/scss/button/cta.scss +0 -31
  186. package/scss/button/disabled.scss +0 -13
  187. package/scss/button/high-visibility.scss +0 -31
  188. package/scss/button/split-menu.scss +0 -66
  189. package/scss/inputs/checkbox-radio.scss +0 -73
  190. package/scss/inputs/index.scss +0 -10
  191. package/scss/inputs/select.scss +0 -66
  192. package/scss/reset-global-styles.scss +0 -33
  193. package/scss/style/anchor.scss +0 -82
  194. package/scss/style/ripple.scss +0 -18
  195. package/scss/table/condensed.scss +0 -15
  196. package/scss/table/extra-condensed.scss +0 -19
  197. package/scss/user-icon/classes.scss +0 -27
  198. package/scss/wizard/classes.scss +0 -27
  199. package/scss/wizard/index.scss +0 -5
  200. package/scss/wizard/long.scss +0 -19
  201. package/scss/wizard/wizard.scss +0 -160
  202. package/scss/wizard/workflow.scss +0 -43
@@ -1,73 +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-inputs-checkbox-radio {
6
- @include iui-reset;
7
- display: flex;
8
- align-items: center;
9
- font-size: $iui-font-size;
10
- width: fit-content;
11
- user-select: none;
12
- position: relative;
13
- cursor: pointer;
14
- @include themed {
15
- color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
16
- }
17
-
18
- gap: $iui-s;
19
-
20
- // #region flex gap fallback
21
- > * + * {
22
- margin-left: $iui-s;
23
- @supports (gap: $iui-s) {
24
- margin-left: 0;
25
- }
26
- }
27
- // #endregion
28
-
29
- &.iui-loading {
30
- cursor: wait;
31
- color: var(--iui-text-color-muted);
32
- }
33
-
34
- > .iui-checkbox-label,
35
- > .iui-radio-label {
36
- display: flex;
37
- align-items: center;
38
-
39
- svg {
40
- width: $iui-icons-default;
41
- height: $iui-icons-default;
42
- vertical-align: middle;
43
- fill: currentColor;
44
- }
45
- }
46
-
47
- &.iui-disabled {
48
- cursor: not-allowed;
49
- color: var(--iui-text-color-muted);
50
-
51
- svg {
52
- fill: var(--iui-icons-color-actionable-disabled);
53
- }
54
- }
55
-
56
- &.iui-positive {
57
- @include themed {
58
- color: t(iui-color-foreground-positive);
59
- }
60
- }
61
-
62
- &.iui-warning {
63
- @include themed {
64
- color: t(iui-color-foreground-warning);
65
- }
66
- }
67
-
68
- &.iui-negative {
69
- @include themed {
70
- color: t(iui-color-foreground-negative);
71
- }
72
- }
73
- }
@@ -1,10 +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 './labeled-inputs';
4
- @import './input';
5
- @import './input-with-icon';
6
- @import './textarea';
7
- @import './select';
8
- @import './checkbox-radio';
9
- @import './checkbox';
10
- @import './radio';
@@ -1,66 +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
-
6
- @mixin iui-select-button {
7
- @include iui-focus($offset: -2px, $thickness: 2px);
8
- width: 100%;
9
- margin: 0;
10
- border-radius: $iui-border-radius;
11
- box-sizing: border-box;
12
- padding: $iui-component-padding-vertical $iui-component-padding-horizontal;
13
- min-height: $iui-component-height;
14
- transition: border-color $iui-speed-fast ease-out;
15
-
16
- display: flex;
17
- align-items: center;
18
- user-select: none;
19
- position: relative;
20
- overflow: hidden;
21
-
22
- @include themed {
23
- color: t(iui-text-color);
24
- background-color: t(iui-color-background-1);
25
- border: 1px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
26
- }
27
-
28
- &.iui-small {
29
- padding-top: $iui-component-padding-vertical-small;
30
- padding-bottom: $iui-component-padding-vertical-small;
31
- min-height: $iui-component-height-small;
32
- }
33
-
34
- &.iui-large {
35
- padding-top: $iui-component-padding-vertical-large;
36
- padding-bottom: $iui-component-padding-vertical-large;
37
- min-height: $iui-component-height-large;
38
- font-size: $iui-font-size-leading;
39
- }
40
-
41
- &.iui-disabled {
42
- @include themed {
43
- background-color: t(iui-color-background-disabled);
44
- border-color: t(iui-color-background-disabled);
45
- }
46
- --_hover-color: var(--iui-color-background-disabled);
47
- cursor: not-allowed;
48
- }
49
-
50
- .iui-icon {
51
- @include iui-menu-icon;
52
- fill: currentColor;
53
- }
54
-
55
- .iui-content {
56
- overflow: hidden;
57
- white-space: nowrap;
58
- text-overflow: ellipsis;
59
- }
60
-
61
- &.iui-placeholder {
62
- @include themed {
63
- color: t(iui-text-color-placeholder);
64
- }
65
- }
66
- }
@@ -1,33 +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 './text/mixins';
5
-
6
- html,
7
- body {
8
- @include iui-font-family;
9
- @include iui-text(body);
10
- }
11
-
12
- b,
13
- strong {
14
- font-weight: $iui-font-weight-bold;
15
- }
16
-
17
- caption,
18
- small {
19
- @include iui-text(small);
20
- }
21
-
22
- p {
23
- margin-bottom: $iui-line-height;
24
- }
25
-
26
- h1,
27
- h2,
28
- h3,
29
- h4,
30
- h5,
31
- h6 {
32
- @include iui-text(body);
33
- }
@@ -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,18 +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 './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 $iui-speed-instant;
17
- }
18
- }
@@ -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 '../style/index';
4
- @import './variables';
5
-
6
- @mixin iui-table-condensed {
7
- .iui-table-header .iui-cell,
8
- .iui-paginator {
9
- min-height: $iui-baseline * 4;
10
- }
11
-
12
- .iui-row .iui-cell {
13
- min-height: $iui-baseline * 4 + 2px;
14
- }
15
- }
@@ -1,19 +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 './variables';
5
-
6
- @mixin iui-table-extra-condensed {
7
- .iui-table-header .iui-cell,
8
- .iui-paginator {
9
- min-height: $iui-baseline * 3;
10
- }
11
-
12
- .iui-row .iui-cell {
13
- min-height: $iui-baseline * 3 + 2px;
14
- }
15
-
16
- .iui-table-header .iui-cell {
17
- padding-block: $iui-baseline * 0.25;
18
- }
19
- }
@@ -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-user-icon {
6
- @include iui-user-icon;
7
-
8
- &#{&} {
9
- @include iui-user-icon-size;
10
- }
11
-
12
- &.iui-small {
13
- @include iui-user-icon-size($size: $iui-icons-large, $font-size: $iui-font-size-small);
14
- }
15
-
16
- &.iui-large {
17
- @include iui-user-icon-size($size: $iui-icons-xxl, $font-size: $iui-font-size-subheading);
18
- }
19
-
20
- &.iui-x-large {
21
- @include iui-user-icon-size($size: $iui-icons-3xl, $font-size: $iui-font-size-title);
22
- }
23
- }
24
-
25
- .iui-user-icon-list {
26
- @include iui-user-icon-list;
27
- }
@@ -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-wizard {
6
- @include iui-wizard;
7
-
8
- &.iui-long {
9
- @include iui-wizard-long;
10
- }
11
-
12
- &.iui-workflow {
13
- @include iui-wizard-workflow;
14
- }
15
- }
16
-
17
- .iui-wizard-step {
18
- @include iui-wizard-step;
19
- }
20
-
21
- .iui-wizard-track-content {
22
- @include iui-wizard-track-content;
23
- }
24
-
25
- .iui-wizard-step-name {
26
- @include iui-wizard-step-name;
27
- }
@@ -1,5 +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 './wizard';
4
- @import './long';
5
- @import './workflow';
@@ -1,19 +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-wizard-long {
6
- .iui-wizard-steps-label {
7
- display: block;
8
- font-size: $iui-font-size-subheading;
9
- text-align: center;
10
- }
11
-
12
- .iui-steps-count {
13
- user-select: none;
14
- margin-right: $iui-s;
15
- @include themed {
16
- color: t(iui-text-color-muted);
17
- }
18
- }
19
- }
@@ -1,160 +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 '../text/index';
5
-
6
- @mixin iui-wizard {
7
- @include iui-reset;
8
-
9
- > ol {
10
- @include iui-reset;
11
- display: flex;
12
- justify-content: space-around;
13
- align-items: flex-start;
14
- width: 100%;
15
- margin-bottom: $iui-baseline * 0.5;
16
- }
17
- }
18
-
19
- @mixin iui-wizard-step {
20
- flex: 1;
21
- align-items: center;
22
- display: flex;
23
- flex-direction: column;
24
- @include iui-text(small);
25
- @include themed {
26
- color: t(iui-color-background-positive);
27
- }
28
-
29
- // Completed steps
30
- .iui-wizard-circle {
31
- align-items: center;
32
- border-radius: 50%;
33
- display: flex;
34
- width: $iui-l;
35
- height: $iui-l;
36
- justify-content: center;
37
- overflow-wrap: break-word;
38
- user-select: none;
39
- transition: background-color $iui-speed-fast ease-out, border-color $iui-speed-fast ease-out,
40
- color $iui-speed-fast ease-out;
41
- @include themed {
42
- border: 1px solid t(iui-color-foreground-positive);
43
- background-color: t(iui-color-background-1);
44
- color: t(iui-color-foreground-positive);
45
- }
46
- }
47
-
48
- // Current step
49
- &.iui-current {
50
- font-weight: $iui-font-weight-semibold;
51
-
52
- .iui-wizard-step-name {
53
- @include themed {
54
- color: t(iui-color-foreground-positive);
55
- }
56
- }
57
-
58
- .iui-wizard-circle {
59
- @include themed {
60
- color: t(iui-color-foreground-accessory);
61
- border-color: t(iui-color-background-positive);
62
- background-color: t(iui-color-background-positive);
63
- }
64
- }
65
-
66
- .iui-wizard-track-content::after {
67
- @include themed {
68
- background-color: t(iui-color-background-5);
69
- }
70
- }
71
- }
72
-
73
- // Future steps
74
- &.iui-current ~ & {
75
- .iui-wizard-circle {
76
- @include themed {
77
- border: 1px solid t(iui-color-background-border);
78
- background-color: t(iui-color-background-1);
79
- color: t(iui-text-color-muted);
80
- }
81
- }
82
-
83
- .iui-wizard-step-name {
84
- @include themed {
85
- color: t(iui-text-color-muted);
86
- }
87
- }
88
-
89
- .iui-wizard-track-content::before,
90
- &:not(:last-of-type) .iui-wizard-track-content::after {
91
- @include themed {
92
- background-color: t(iui-color-background-5);
93
- }
94
- }
95
- }
96
-
97
- // Clickable steps
98
- &.iui-clickable {
99
- .iui-wizard-circle {
100
- cursor: pointer;
101
- @media (prefers-reduced-motion: no-preference) {
102
- transition: background-color $iui-speed-fast ease-out;
103
- }
104
-
105
- &:hover {
106
- @include themed {
107
- color: t(iui-color-foreground-accessory);
108
- border: 1px solid t(iui-color-background-positive);
109
- background-color: t(iui-color-background-positive);
110
- }
111
- }
112
- }
113
-
114
- &:focus {
115
- outline: 0;
116
-
117
- .iui-wizard-circle {
118
- @include themed {
119
- outline: 2px solid t(iui-color-foreground-positive);
120
- }
121
- outline-offset: -1px;
122
- }
123
- }
124
-
125
- &:focus:not(:focus-visible) {
126
- .iui-wizard-circle {
127
- outline: none;
128
- }
129
- }
130
- }
131
-
132
- &:first-of-type .iui-wizard-track-content::before,
133
- &:last-of-type .iui-wizard-track-content::after {
134
- background-color: transparent;
135
- }
136
- }
137
-
138
- @mixin iui-wizard-track-content {
139
- display: flex;
140
- align-items: center;
141
- width: 100%;
142
-
143
- &::before,
144
- &::after {
145
- content: '';
146
- height: $iui-xxs;
147
- flex: 1 2 auto;
148
- @include themed {
149
- background-color: t(iui-color-foreground-positive);
150
- }
151
- }
152
- }
153
-
154
- @mixin iui-wizard-step-name {
155
- text-align: center;
156
- user-select: all;
157
- @include themed {
158
- color: t(iui-color-foreground-positive);
159
- }
160
- }
@@ -1,43 +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-wizard-workflow {
6
- > ol {
7
- align-items: center;
8
- }
9
-
10
- .iui-wizard-step {
11
- .iui-wizard-circle {
12
- padding-left: $iui-m;
13
- padding-right: $iui-m;
14
- height: 100%;
15
- width: auto;
16
- border-radius: 0;
17
- font-weight: $iui-font-weight-normal;
18
- text-align: center;
19
- @include themed {
20
- background-color: t(iui-color-background-positive);
21
- border-color: t(iui-color-background-positive);
22
- color: t(iui-color-foreground-accessory);
23
- }
24
- }
25
-
26
- &:first-of-type .iui-wizard-circle,
27
- &:last-of-type .iui-wizard-circle {
28
- border-radius: $iui-sm;
29
- @include themed {
30
- background-color: t(iui-color-background-1);
31
- border-color: t(iui-color-foreground-positive);
32
- color: t(iui-color-foreground-positive);
33
- }
34
- }
35
- }
36
-
37
- .iui-wizard-track-content::before,
38
- .iui-wizard-track-content::after {
39
- @include themed {
40
- background-color: t(iui-color-foreground-positive);
41
- }
42
- }
43
- }