@itwin/itwinui-css 0.63.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 (243) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -4
  3. package/css/alert.css +263 -145
  4. package/css/all.css +5470 -6944
  5. package/css/anchor.css +0 -4
  6. package/css/{user-icon.css → avatar.css} +52 -72
  7. package/css/badge.css +1 -1
  8. package/css/blockquote.css +2 -5
  9. package/css/breadcrumbs.css +68 -135
  10. package/css/button.css +237 -348
  11. package/css/carousel.css +10 -17
  12. package/css/checkbox.css +152 -0
  13. package/css/code.css +3 -10
  14. package/css/color-picker.css +9 -47
  15. package/css/date-picker.css +1 -60
  16. package/css/dialog.css +11 -13
  17. package/css/expandable-block.css +8 -55
  18. package/css/fieldset.css +2 -7
  19. package/css/file-upload.css +6 -36
  20. package/css/footer.css +2 -10
  21. package/css/global.css +73 -128
  22. package/css/header.css +318 -403
  23. package/css/information-panel.css +13 -22
  24. package/css/input.css +170 -0
  25. package/css/keyboard.css +1 -5
  26. package/css/location-marker.css +8 -13
  27. package/css/menu.css +14 -23
  28. package/css/non-ideal-state.css +5 -5
  29. package/css/progress-indicator.css +11 -99
  30. package/css/radio-tile.css +56 -74
  31. package/css/radio.css +159 -0
  32. package/css/select.css +236 -0
  33. package/css/side-navigation.css +15 -40
  34. package/css/skip-to-content.css +2 -5
  35. package/css/slider.css +11 -70
  36. package/css/stepper.css +141 -0
  37. package/css/surface.css +0 -1
  38. package/css/table.css +266 -353
  39. package/css/tabs.css +22 -58
  40. package/css/tag.css +8 -26
  41. package/css/text.css +7 -9
  42. package/css/tile.css +119 -231
  43. package/css/time-picker.css +3 -15
  44. package/css/{toast-notification.css → toast.css} +14 -54
  45. package/css/toggle-switch.css +17 -64
  46. package/css/tooltip.css +0 -3
  47. package/css/tree.css +9 -35
  48. package/css/utils.css +669 -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/wizard.css +0 -190
  57. package/scss/alert/alert.scss +0 -83
  58. package/scss/alert/classes.scss +0 -13
  59. package/scss/alert/index.scss +0 -3
  60. package/scss/anchor/anchor.scss +0 -3
  61. package/scss/anchor/classes.scss +0 -11
  62. package/scss/anchor/index.scss +0 -3
  63. package/scss/backdrop/backdrop.scss +0 -27
  64. package/scss/backdrop/classes.scss +0 -7
  65. package/scss/backdrop/index.scss +0 -3
  66. package/scss/badge/badge.scss +0 -32
  67. package/scss/badge/classes.scss +0 -7
  68. package/scss/badge/index.scss +0 -3
  69. package/scss/blockquote/blockquote.scss +0 -31
  70. package/scss/blockquote/classes.scss +0 -7
  71. package/scss/blockquote/index.scss +0 -3
  72. package/scss/breadcrumbs/breadcrumbs.scss +0 -124
  73. package/scss/breadcrumbs/classes.scss +0 -31
  74. package/scss/breadcrumbs/index.scss +0 -3
  75. package/scss/button/borderless.scss +0 -48
  76. package/scss/button/button-group.scss +0 -110
  77. package/scss/button/button-icon.scss +0 -12
  78. package/scss/button/button.scss +0 -97
  79. package/scss/button/classes.scss +0 -70
  80. package/scss/button/cta.scss +0 -31
  81. package/scss/button/default.scss +0 -59
  82. package/scss/button/disabled.scss +0 -13
  83. package/scss/button/high-visibility.scss +0 -31
  84. package/scss/button/idea.scss +0 -10
  85. package/scss/button/index.scss +0 -12
  86. package/scss/button/split-menu.scss +0 -66
  87. package/scss/carousel/carousel.scss +0 -124
  88. package/scss/carousel/classes.scss +0 -15
  89. package/scss/carousel/index.scss +0 -3
  90. package/scss/classes.scss +0 -48
  91. package/scss/code/classes.scss +0 -11
  92. package/scss/code/code.scss +0 -18
  93. package/scss/code/codeblock.scss +0 -73
  94. package/scss/code/index.scss +0 -4
  95. package/scss/color-picker/classes.scss +0 -43
  96. package/scss/color-picker/color-picker.scss +0 -274
  97. package/scss/color-picker/index.scss +0 -3
  98. package/scss/date-picker/classes.scss +0 -47
  99. package/scss/date-picker/date-picker.scss +0 -280
  100. package/scss/date-picker/index.scss +0 -3
  101. package/scss/dialog/classes.scss +0 -48
  102. package/scss/dialog/dialog.scss +0 -183
  103. package/scss/dialog/index.scss +0 -3
  104. package/scss/expandable-block/block.scss +0 -193
  105. package/scss/expandable-block/classes.scss +0 -7
  106. package/scss/expandable-block/index.scss +0 -3
  107. package/scss/fieldset/classes.scss +0 -7
  108. package/scss/fieldset/fieldset.scss +0 -35
  109. package/scss/fieldset/index.scss +0 -3
  110. package/scss/file-upload/classes.scss +0 -7
  111. package/scss/file-upload/file-upload.scss +0 -90
  112. package/scss/file-upload/index.scss +0 -3
  113. package/scss/footer/classes.scss +0 -23
  114. package/scss/footer/footer.scss +0 -62
  115. package/scss/footer/index.scss +0 -3
  116. package/scss/header/classes.scss +0 -11
  117. package/scss/header/header.scss +0 -443
  118. package/scss/header/index.scss +0 -3
  119. package/scss/icon/classes.scss +0 -27
  120. package/scss/icon/index.scss +0 -4
  121. package/scss/icon/mixins.scss +0 -78
  122. package/scss/icon/variables.scss +0 -14
  123. package/scss/index.scss +0 -46
  124. package/scss/information-panel/classes.scss +0 -27
  125. package/scss/information-panel/index.scss +0 -3
  126. package/scss/information-panel/information-panel.scss +0 -233
  127. package/scss/inputs/checkbox-radio.scss +0 -73
  128. package/scss/inputs/checkbox.scss +0 -106
  129. package/scss/inputs/classes.scss +0 -87
  130. package/scss/inputs/index.scss +0 -10
  131. package/scss/inputs/input-with-icon.scss +0 -36
  132. package/scss/inputs/input.scss +0 -80
  133. package/scss/inputs/labeled-inputs.scss +0 -382
  134. package/scss/inputs/radio.scss +0 -18
  135. package/scss/inputs/select.scss +0 -132
  136. package/scss/inputs/textarea.scss +0 -14
  137. package/scss/keyboard/classes.scss +0 -7
  138. package/scss/keyboard/index.scss +0 -3
  139. package/scss/keyboard/keyboard.scss +0 -33
  140. package/scss/location-marker/classes.scss +0 -15
  141. package/scss/location-marker/data-rich.scss +0 -58
  142. package/scss/location-marker/default.scss +0 -21
  143. package/scss/location-marker/index.scss +0 -6
  144. package/scss/location-marker/location-marker.scss +0 -13
  145. package/scss/location-marker/me.scss +0 -36
  146. package/scss/menu/classes.scss +0 -21
  147. package/scss/menu/index.scss +0 -3
  148. package/scss/menu/menu.scss +0 -205
  149. package/scss/non-ideal-state/classes.scss +0 -7
  150. package/scss/non-ideal-state/index.scss +0 -3
  151. package/scss/non-ideal-state/non-ideal-state.scss +0 -55
  152. package/scss/notification-marker/classes.scss +0 -9
  153. package/scss/notification-marker/index.scss +0 -3
  154. package/scss/notification-marker/notification-marker.scss +0 -63
  155. package/scss/popover/classes.scss +0 -7
  156. package/scss/popover/index.scss +0 -3
  157. package/scss/popover/popover.scss +0 -22
  158. package/scss/progress-indicator/classes.scss +0 -35
  159. package/scss/progress-indicator/index.scss +0 -5
  160. package/scss/progress-indicator/linear.scss +0 -126
  161. package/scss/progress-indicator/overlay.scss +0 -57
  162. package/scss/progress-indicator/radial.scss +0 -243
  163. package/scss/radio-tile/classes.scss +0 -31
  164. package/scss/radio-tile/index.scss +0 -3
  165. package/scss/radio-tile/radio-tile.scss +0 -209
  166. package/scss/reset-global-styles.scss +0 -33
  167. package/scss/side-navigation/classes.scss +0 -15
  168. package/scss/side-navigation/index.scss +0 -3
  169. package/scss/side-navigation/side-navigation.scss +0 -210
  170. package/scss/skip-to-content/classes.scss +0 -7
  171. package/scss/skip-to-content/index.scss +0 -3
  172. package/scss/skip-to-content/skip-to-content.scss +0 -41
  173. package/scss/slider/classes.scss +0 -40
  174. package/scss/slider/index.scss +0 -3
  175. package/scss/slider/slider.scss +0 -256
  176. package/scss/style/anchor.scss +0 -82
  177. package/scss/style/baseline.scss +0 -4
  178. package/scss/style/color.scss +0 -39
  179. package/scss/style/elevation.scss +0 -11
  180. package/scss/style/global.scss +0 -70
  181. package/scss/style/index.scss +0 -11
  182. package/scss/style/mixins.scss +0 -188
  183. package/scss/style/ripple.scss +0 -18
  184. package/scss/style/space.scss +0 -11
  185. package/scss/style/speed.scss +0 -8
  186. package/scss/style/theme.scss +0 -482
  187. package/scss/style/typography.scss +0 -54
  188. package/scss/style/variables.scss +0 -21
  189. package/scss/surface/classes.scss +0 -7
  190. package/scss/surface/index.scss +0 -3
  191. package/scss/surface/surface.scss +0 -18
  192. package/scss/table/classes.scss +0 -63
  193. package/scss/table/column-filter.scss +0 -37
  194. package/scss/table/condensed.scss +0 -15
  195. package/scss/table/extra-condensed.scss +0 -19
  196. package/scss/table/index.scss +0 -7
  197. package/scss/table/paginator.scss +0 -87
  198. package/scss/table/table.scss +0 -558
  199. package/scss/table/variables.scss +0 -10
  200. package/scss/tabs/borderless.scss +0 -71
  201. package/scss/tabs/classes.scss +0 -44
  202. package/scss/tabs/default.scss +0 -102
  203. package/scss/tabs/index.scss +0 -6
  204. package/scss/tabs/pill.scss +0 -48
  205. package/scss/tabs/tabs.scss +0 -220
  206. package/scss/tag/classes.scss +0 -29
  207. package/scss/tag/index.scss +0 -3
  208. package/scss/tag/tag.scss +0 -99
  209. package/scss/text/classes.scss +0 -40
  210. package/scss/text/index.scss +0 -5
  211. package/scss/text/mixins.scss +0 -42
  212. package/scss/text/muted.scss +0 -9
  213. package/scss/text/skeleton.scss +0 -46
  214. package/scss/tile/classes.scss +0 -51
  215. package/scss/tile/index.scss +0 -3
  216. package/scss/tile/tile.scss +0 -370
  217. package/scss/time-picker/classes.scss +0 -16
  218. package/scss/time-picker/index.scss +0 -3
  219. package/scss/time-picker/time-picker.scss +0 -72
  220. package/scss/toast-notification/categories.scss +0 -26
  221. package/scss/toast-notification/classes.scss +0 -98
  222. package/scss/toast-notification/index.scss +0 -4
  223. package/scss/toast-notification/toast.scss +0 -79
  224. package/scss/toggle-switch/classes.scss +0 -11
  225. package/scss/toggle-switch/index.scss +0 -3
  226. package/scss/toggle-switch/toggle-switch.scss +0 -222
  227. package/scss/tooltip/classes.scss +0 -24
  228. package/scss/tooltip/index.scss +0 -3
  229. package/scss/tooltip/tooltip.scss +0 -41
  230. package/scss/tree/classes.scss +0 -19
  231. package/scss/tree/index.scss +0 -3
  232. package/scss/tree/tree.scss +0 -138
  233. package/scss/user-icon/classes.scss +0 -27
  234. package/scss/user-icon/index.scss +0 -4
  235. package/scss/user-icon/sizes.scss +0 -22
  236. package/scss/user-icon/user-icon.scss +0 -250
  237. package/scss/variables.scss +0 -3
  238. package/scss/wizard/classes.scss +0 -27
  239. package/scss/wizard/index.scss +0 -5
  240. package/scss/wizard/long.scss +0 -19
  241. package/scss/wizard/wizard.scss +0 -160
  242. package/scss/wizard/workflow.scss +0 -43
  243. package/src/index.scss +0 -46
@@ -1,42 +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-text-block-spacing {
6
- padding: 0;
7
- margin: 0 0 $iui-line-height;
8
- }
9
-
10
- @mixin iui-text($type: body) {
11
- @include iui-reset;
12
-
13
- $sizes: (
14
- headline: $iui-font-size-headline,
15
- title: $iui-font-size-title,
16
- subheading: $iui-font-size-subheading,
17
- leading: $iui-font-size-leading,
18
- body: $iui-font-size,
19
- small: $iui-font-size-small,
20
- );
21
-
22
- $weights: (
23
- headline: $iui-font-weight-light,
24
- title: $iui-font-weight-light,
25
- subheading: $iui-font-weight-normal,
26
- leading: $iui-font-weight-normal,
27
- body: $iui-font-weight-normal,
28
- small: $iui-font-weight-normal,
29
- );
30
- $line-heights: (
31
- headline: 2 * $iui-line-height,
32
- title: 1.5 * $iui-line-height,
33
- subheading: 1.5 * $iui-line-height,
34
- leading: $iui-line-height,
35
- body: $iui-line-height,
36
- small: $iui-line-height,
37
- );
38
- $type: if(map-has-key($sizes, $type), $type, body);
39
- font-size: map-get($sizes, $type);
40
- font-weight: map-get($weights, $type);
41
- line-height: map-get($line-heights, $type);
42
- }
@@ -1,9 +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-text-muted {
6
- @include themed {
7
- color: t(iui-text-color-muted);
8
- }
9
- }
@@ -1,46 +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-text-skeleton {
6
- display: inline-block;
7
- user-select: none;
8
- color: transparent;
9
- border-radius: $iui-border-radius;
10
- cursor: progress;
11
-
12
- @include themed {
13
- background: linear-gradient(
14
- 292deg,
15
- t(iui-text-color-muted),
16
- t(iui-text-color-muted),
17
- t(iui-text-color-placeholder),
18
- t(iui-text-color-muted),
19
- t(iui-text-color-muted)
20
- );
21
- }
22
- background-size: 200% 100%;
23
-
24
- @media (forced-colors: active) {
25
- forced-color-adjust: none;
26
- background: linear-gradient(292deg, CanvasText, CanvasText, Canvas, CanvasText, CanvasText);
27
- }
28
-
29
- @media (prefers-reduced-motion: no-preference) {
30
- animation: skeleton-shimmer $iui-speed-slow linear infinite;
31
-
32
- @keyframes skeleton-shimmer {
33
- 0% {
34
- background-position: 200% 50%;
35
- }
36
-
37
- 50% {
38
- background-position: 100% 50%;
39
- }
40
-
41
- 100% {
42
- background-position: 0% 50%;
43
- }
44
- }
45
- }
46
- }
@@ -1,51 +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-tile {
6
- @include iui-tile;
7
-
8
- &.iui-positive {
9
- @include iui-tile-status(positive);
10
- }
11
-
12
- &.iui-warning {
13
- @include iui-tile-status(warning);
14
- }
15
-
16
- &.iui-negative {
17
- @include iui-tile-status(negative);
18
- }
19
- }
20
-
21
- .iui-tile-thumbnail-type-indicator {
22
- @include iui-tile-thumbnail-type-indicator;
23
- }
24
-
25
- .iui-tile-thumbnail-quick-action {
26
- @include iui-tile-thumbnail-quick-action;
27
- }
28
-
29
- .iui-tile-thumbnail-badge-container {
30
- @include iui-tile-thumbnail-badge;
31
- }
32
-
33
- .iui-tile-buttons {
34
- @include iui-tile-buttons;
35
- }
36
-
37
- .iui-tile-thumbnail {
38
- @include iui-tile-thumbnail;
39
- }
40
-
41
- .iui-tile-thumbnail-picture {
42
- @include iui-tile-thumbnail-picture;
43
- }
44
-
45
- .iui-tile-content {
46
- @include iui-tile-content;
47
- }
48
-
49
- .iui-tile-more-options {
50
- @include iui-tile-more-options;
51
- }
@@ -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 './tile';
@@ -1,370 +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 '../button/index';
5
- @import '../icon/index';
6
- @import '../surface/index';
7
-
8
- @mixin iui-tile {
9
- @include iui-reset;
10
- @include iui-surface;
11
- display: inline-flex;
12
- flex-direction: column;
13
- width: $iui-3xl * 3;
14
- backface-visibility: hidden;
15
-
16
- &:hover,
17
- &:focus-within {
18
- .iui-tile-more-options {
19
- @include visually-hidden-revert;
20
- position: absolute;
21
- }
22
-
23
- .iui-tile-metadata:not(:last-child) {
24
- width: calc(100% - #{$iui-xl});
25
- }
26
- }
27
-
28
- &.iui-new {
29
- .iui-tile-name,
30
- .iui-tile-description {
31
- font-weight: $iui-font-weight-semibold;
32
- }
33
- }
34
-
35
- &.iui-selected {
36
- @include iui-focus($offset: 0, $thickness: $iui-xs);
37
- @include themed() {
38
- outline: solid 2px t(iui-color-foreground-primary);
39
- background: linear-gradient(
40
- rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6)),
41
- rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6))
42
- ),
43
- linear-gradient(t(iui-color-background-1), t(iui-color-background-1));
44
- }
45
- }
46
-
47
- &.iui-actionable {
48
- @include iui-focus($offset: $iui-xxs, $thickness: $iui-xxs);
49
- cursor: pointer;
50
- transition: box-shadow $iui-speed-fast ease-in-out;
51
-
52
- &:hover {
53
- box-shadow: $iui-elevation-8;
54
- }
55
-
56
- &:hover,
57
- &:focus-within,
58
- &.iui-selected {
59
- .iui-tile-thumbnail-picture {
60
- transform: translateZ(0) scale(1.1);
61
- }
62
- }
63
- }
64
-
65
- &.iui-folder {
66
- display: inline-flex;
67
- flex-direction: row;
68
- flex-wrap: nowrap;
69
-
70
- .iui-tile-thumbnail {
71
- height: $iui-baseline * 10;
72
- flex: 1;
73
- border-bottom: none;
74
- @include themed() {
75
- border-right: 1px solid t(iui-color-background-border);
76
- }
77
- }
78
-
79
- .iui-tile-content {
80
- flex: 2;
81
- }
82
-
83
- .iui-tile-description {
84
- height: 100%;
85
- max-height: $iui-baseline * 4;
86
- margin-bottom: 0;
87
- -webkit-line-clamp: 2;
88
- }
89
- }
90
-
91
- //#region Statuses
92
- &.iui-progress {
93
- cursor: progress;
94
- font-style: italic;
95
- }
96
-
97
- &[aria-disabled='true'] {
98
- cursor: not-allowed;
99
-
100
- .iui-tile-name-label {
101
- color: var(--iui-text-color-muted);
102
- }
103
-
104
- .iui-thumbnail-icon,
105
- .iui-tile-thumbnail-picture {
106
- filter: grayscale(100%);
107
- }
108
-
109
- &:hover .iui-tile-thumbnail-picture,
110
- &:focus-within .iui-tile-thumbnail-picture {
111
- transform: none;
112
- }
113
-
114
- .iui-tile-more-options {
115
- display: none;
116
- }
117
- }
118
- //#endregion Statuses
119
- }
120
-
121
- @mixin iui-tile-content {
122
- padding: $iui-baseline $iui-sm;
123
- position: relative;
124
- display: flex;
125
- flex-direction: column;
126
- flex-grow: 2;
127
- min-width: 0;
128
-
129
- .iui-tile-name {
130
- display: flex;
131
- flex-shrink: 0;
132
- align-items: center;
133
- font-size: $iui-font-size-leading;
134
- user-select: all;
135
- margin-bottom: $iui-baseline * 0.5;
136
- @include themed() {
137
- color: t(iui-text-color);
138
- }
139
- }
140
-
141
- .iui-tile-status-icon {
142
- @include iui-icons-default;
143
- margin-right: $iui-s;
144
- flex-shrink: 0;
145
- }
146
-
147
- .iui-tile-name-label {
148
- overflow: hidden;
149
- white-space: nowrap;
150
- text-overflow: ellipsis;
151
- }
152
-
153
- .iui-tile-description {
154
- margin-bottom: $iui-baseline;
155
- font-size: $iui-font-size;
156
- height: 100%;
157
- max-height: $iui-baseline * 6;
158
- @include iui-line-clamp(3);
159
- @include themed() {
160
- color: t(iui-text-color-muted);
161
- }
162
- }
163
-
164
- .iui-tile-metadata {
165
- font-size: $iui-font-size-small;
166
- flex-shrink: 0;
167
- overflow: hidden;
168
- text-overflow: ellipsis;
169
- height: $iui-line-height;
170
- width: 100%;
171
- display: flex;
172
- align-items: center;
173
- margin-top: auto;
174
- @include themed() {
175
- color: t(iui-text-color-muted);
176
- }
177
-
178
- > svg,
179
- .iui-tile-metadata-icon {
180
- @include iui-icons-default;
181
- margin-right: $iui-s;
182
- flex-shrink: 0;
183
- }
184
-
185
- > * {
186
- white-space: nowrap;
187
- overflow: hidden;
188
- text-overflow: ellipsis;
189
- }
190
- }
191
- }
192
-
193
- @mixin iui-tile-thumbnail {
194
- width: 100%;
195
- height: $iui-baseline * 14;
196
- flex-shrink: 0;
197
- overflow: hidden;
198
- position: relative;
199
- display: flex;
200
- align-items: center;
201
- justify-content: center;
202
- @include themed() {
203
- background-color: t(iui-color-background-1-overlay);
204
- border-bottom: 1px solid t(iui-color-background-border);
205
- }
206
-
207
- .iui-thumbnail-icon {
208
- @include iui-icons-3xl;
209
- }
210
- }
211
-
212
- @mixin iui-tile-thumbnail-picture {
213
- width: 100%;
214
- height: 100%;
215
- position: absolute;
216
- top: 0;
217
- left: 0;
218
- @media (prefers-reduced-motion: no-preference) {
219
- transition: transform $iui-speed ease;
220
- }
221
- @at-root {
222
- div#{&} {
223
- background-position: center;
224
- background-size: cover;
225
- }
226
- }
227
-
228
- ~ .iui-thumbnail-icon {
229
- z-index: 1;
230
- cursor: pointer;
231
- @media (prefers-reduced-motion: no-preference) {
232
- transition: fill $iui-speed-fast ease;
233
- }
234
- @include themed() {
235
- fill: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-3));
236
- filter: drop-shadow(0 2px 1px rgba(0, 1, 5, t(iui-opacity-5)));
237
- }
238
-
239
- &:hover {
240
- @include themed() {
241
- fill: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-2));
242
- }
243
- }
244
- }
245
-
246
- ~ .iui-tile-thumbnail-type-indicator,
247
- ~ .iui-tile-thumbnail-quick-action {
248
- @include iui-blur($opacity: 5);
249
-
250
- > .iui-button-icon {
251
- @include themed() {
252
- fill: t(iui-color-foreground-accessory);
253
- filter: drop-shadow(0 2px 1px rgba(0, 0, 0, t(iui-opacity-5)));
254
- }
255
- }
256
-
257
- &:hover,
258
- &.iui-active:enabled,
259
- &.iui-active:enabled:hover,
260
- &.iui-active:active {
261
- @include themed() {
262
- background-color: rgba(0, 0, 0, t(iui-opacity-4));
263
- }
264
-
265
- .iui-button-icon {
266
- @include themed() {
267
- fill: t(iui-color-foreground-accessory);
268
- }
269
- }
270
- }
271
- }
272
- }
273
-
274
- @mixin iui-tile-thumbnail-type-indicator {
275
- @include iui-button-borderless;
276
- @include iui-button-size(small, borderless);
277
- position: absolute;
278
- border-radius: 50%;
279
- top: round($iui-baseline * 0.5);
280
- left: $iui-s;
281
- }
282
-
283
- @mixin iui-tile-thumbnail-quick-action {
284
- @include iui-button-borderless;
285
- @include iui-button-size(small, borderless);
286
- position: absolute;
287
- border-radius: 50%;
288
- top: round($iui-baseline * 0.5);
289
- right: $iui-s;
290
- }
291
-
292
- @mixin iui-tile-thumbnail-badge {
293
- position: absolute;
294
- bottom: round($iui-baseline * 0.5);
295
- width: calc(100% - 2 * #{$iui-sm});
296
- height: auto;
297
- right: $iui-sm;
298
- display: flex;
299
- justify-content: flex-end;
300
- overflow: hidden;
301
-
302
- > .iui-badge:not(:last-child) {
303
- margin-right: $iui-xs;
304
- }
305
- }
306
-
307
- @mixin iui-tile-buttons {
308
- display: flex;
309
- flex-shrink: 0;
310
- user-select: none;
311
- white-space: nowrap;
312
-
313
- > .iui-button {
314
- font-size: $iui-font-size;
315
- flex: 1;
316
- height: auto;
317
- padding: $iui-baseline $iui-sm;
318
- overflow: hidden;
319
- white-space: nowrap;
320
- text-overflow: ellipsis;
321
- text-align: center;
322
- margin: 0;
323
- border: initial;
324
- border-radius: 0;
325
-
326
- &,
327
- &:hover {
328
- @include themed() {
329
- border-top: 1px solid t(iui-color-background-border);
330
- border-color: t(iui-color-background-border);
331
- }
332
- }
333
- }
334
-
335
- > button:not(:last-child) {
336
- @include themed() {
337
- border-right: 1px solid t(iui-color-background-border);
338
- }
339
- }
340
- }
341
-
342
- @mixin iui-tile-more-options {
343
- position: absolute;
344
- bottom: $iui-baseline * 0.5;
345
- right: $iui-s;
346
-
347
- &:not(.iui-visible) {
348
- @include visually-hidden;
349
- }
350
- }
351
-
352
- @mixin iui-tile-status($status) {
353
- @include iui-text-selection($status);
354
-
355
- .iui-tile-thumbnail {
356
- box-shadow: 0 $iui-xs 0 var(--iui-color-foreground-#{$status});
357
- }
358
-
359
- @at-root &.iui-folder .iui-tile-thumbnail {
360
- box-shadow: $iui-xs 0 0 var(--iui-color-foreground-#{$status});
361
- }
362
-
363
- .iui-tile-name-label {
364
- color: var(--iui-color-foreground-#{$status});
365
- }
366
-
367
- .iui-tile-status-icon {
368
- fill: var(--iui-color-foreground-#{$status});
369
- }
370
- }
@@ -1,16 +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-time-picker {
6
- @include iui-time-picker;
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
- }
@@ -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 './time-picker';
@@ -1,72 +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-time-picker {
7
- @include iui-reset;
8
- user-select: none;
9
- text-align: center;
10
- height: $iui-baseline * 26;
11
- display: inline-flex;
12
- @include themed {
13
- background-color: t(iui-color-background-1);
14
- }
15
-
16
- &:not(:first-child) {
17
- @include themed {
18
- border-left: 1px solid t(iui-color-background-border);
19
- }
20
- }
21
-
22
- &:first-child {
23
- box-shadow: $iui-elevation-2;
24
- }
25
- }
26
-
27
- @mixin iui-time-picker-list {
28
- padding: $iui-baseline $iui-s;
29
- overflow-y: auto;
30
- overflow-y: overlay;
31
- scrollbar-width: none;
32
-
33
- &:not(:first-child) {
34
- @include themed {
35
- border-left: 1px solid t(iui-color-background-border);
36
- }
37
- }
38
-
39
- > ol {
40
- @include iui-reset;
41
- list-style: none;
42
-
43
- > li {
44
- @include iui-focus;
45
- padding: round($iui-baseline * 0.5) $iui-m;
46
- border-radius: $iui-border-radius;
47
-
48
- &:hover {
49
- cursor: pointer;
50
- @include themed {
51
- color: t(iui-color-foreground-primary);
52
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
53
- }
54
- }
55
-
56
- &.iui-selected {
57
- font-weight: $iui-font-weight-semibold;
58
- cursor: default;
59
- @include iui-focus($color: var(--iui-color-foreground-accessory), $offset: -3px);
60
- @include themed {
61
- background-color: t(iui-color-background-primary);
62
- color: t(iui-color-foreground-accessory);
63
- }
64
- }
65
- }
66
- }
67
- }
68
-
69
- @mixin iui-time-picker-period {
70
- display: flex;
71
- align-items: center;
72
- }
@@ -1,26 +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 '../anchor/index';
5
- @import './toast';
6
-
7
- /// category must be one of: positive, negative, primary (informational), warning
8
- @mixin iui-toast-category($category) {
9
- @include themed {
10
- border-color: t(iui-color-foreground-#{$category});
11
- }
12
-
13
- > .iui-message {
14
- @include iui-text-selection($category);
15
- }
16
-
17
- > .iui-status-area {
18
- @include themed {
19
- background-color: t(iui-color-background-#{$category});
20
- }
21
- }
22
-
23
- > .iui-toast-anchor {
24
- @include iui-anchor-status($category);
25
- }
26
- }