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

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 (245) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/css/alert.css +81 -92
  3. package/css/all.css +2143 -2719
  4. package/css/anchor.css +3 -3
  5. package/css/avatar.css +46 -46
  6. package/css/backdrop.css +6 -4
  7. package/css/badge.css +8 -8
  8. package/css/blockquote.css +6 -6
  9. package/css/breadcrumbs.css +63 -52
  10. package/css/button.css +113 -135
  11. package/css/carousel.css +17 -16
  12. package/css/checkbox.css +27 -22
  13. package/css/code.css +15 -14
  14. package/css/color-picker.css +41 -44
  15. package/css/date-picker.css +59 -88
  16. package/css/dialog.css +32 -32
  17. package/css/expandable-block.css +36 -57
  18. package/css/fieldset.css +7 -7
  19. package/css/file-upload.css +20 -28
  20. package/css/footer.css +35 -35
  21. package/css/global.css +50 -617
  22. package/css/header.css +58 -51
  23. package/css/information-panel.css +38 -32
  24. package/css/input.css +64 -56
  25. package/css/keyboard.css +6 -10
  26. package/css/location-marker.css +32 -18
  27. package/css/menu.css +41 -27
  28. package/css/non-ideal-state.css +12 -12
  29. package/css/progress-indicator.css +37 -35
  30. package/css/radio-tile.css +39 -38
  31. package/css/radio.css +27 -22
  32. package/css/select.css +89 -80
  33. package/css/side-navigation.css +34 -38
  34. package/css/skip-to-content.css +11 -11
  35. package/css/slider.css +166 -55
  36. package/css/stepper.css +17 -17
  37. package/css/surface.css +2 -2
  38. package/css/table.css +180 -144
  39. package/css/tabs.css +61 -47
  40. package/css/tag.css +24 -25
  41. package/css/text.css +24 -24
  42. package/css/tile.css +160 -176
  43. package/css/time-picker.css +16 -14
  44. package/css/toast.css +49 -47
  45. package/css/toggle-switch.css +26 -26
  46. package/css/tooltip.css +6 -10
  47. package/css/tree.css +30 -35
  48. package/css/utils.css +228 -154
  49. package/css/workflow-diagram.css +8 -8
  50. package/package.json +8 -11
  51. package/css/icon.css +0 -117
  52. package/css/textarea.css +0 -96
  53. package/scss/alert/alert.scss +0 -89
  54. package/scss/alert/classes.scss +0 -33
  55. package/scss/alert/index.scss +0 -3
  56. package/scss/anchor/anchor.scss +0 -78
  57. package/scss/anchor/classes.scss +0 -11
  58. package/scss/anchor/index.scss +0 -3
  59. package/scss/avatar/avatar-sizes.scss +0 -23
  60. package/scss/avatar/avatar.scss +0 -215
  61. package/scss/avatar/classes.scss +0 -27
  62. package/scss/avatar/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 -34
  67. package/scss/badge/classes.scss +0 -7
  68. package/scss/badge/index.scss +0 -3
  69. package/scss/blockquote/blockquote.scss +0 -26
  70. package/scss/blockquote/classes.scss +0 -7
  71. package/scss/blockquote/index.scss +0 -3
  72. package/scss/breadcrumbs/breadcrumbs.scss +0 -119
  73. package/scss/breadcrumbs/classes.scss +0 -31
  74. package/scss/breadcrumbs/index.scss +0 -3
  75. package/scss/button/borderless.scss +0 -36
  76. package/scss/button/button-group.scss +0 -118
  77. package/scss/button/button.scss +0 -119
  78. package/scss/button/classes.scss +0 -80
  79. package/scss/button/default.scss +0 -51
  80. package/scss/button/idea.scss +0 -12
  81. package/scss/button/index.scss +0 -9
  82. package/scss/button/split-button.scss +0 -45
  83. package/scss/button/variant.scss +0 -44
  84. package/scss/carousel/carousel.scss +0 -113
  85. package/scss/carousel/classes.scss +0 -15
  86. package/scss/carousel/index.scss +0 -3
  87. package/scss/checkbox/checkbox.scss +0 -154
  88. package/scss/checkbox/classes.scss +0 -7
  89. package/scss/checkbox/index.scss +0 -3
  90. package/scss/classes.scss +0 -52
  91. package/scss/code/classes.scss +0 -11
  92. package/scss/code/code.scss +0 -16
  93. package/scss/code/codeblock.scss +0 -59
  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 -241
  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 -246
  100. package/scss/date-picker/index.scss +0 -3
  101. package/scss/dialog/classes.scss +0 -48
  102. package/scss/dialog/dialog.scss +0 -178
  103. package/scss/dialog/index.scss +0 -3
  104. package/scss/expandable-block/block.scss +0 -165
  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 -29
  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 -80
  112. package/scss/file-upload/index.scss +0 -3
  113. package/scss/footer/classes.scss +0 -7
  114. package/scss/footer/footer.scss +0 -55
  115. package/scss/footer/index.scss +0 -3
  116. package/scss/header/classes.scss +0 -79
  117. package/scss/header/header-buttons.scss +0 -316
  118. package/scss/header/header.scss +0 -75
  119. package/scss/header/index.scss +0 -4
  120. package/scss/icon/classes.scss +0 -27
  121. package/scss/icon/icon.scss +0 -65
  122. package/scss/icon/index.scss +0 -3
  123. package/scss/index.scss +0 -50
  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 -215
  127. package/scss/input/classes.scss +0 -15
  128. package/scss/input/index.scss +0 -4
  129. package/scss/input/input-with-icon.scss +0 -37
  130. package/scss/input/input.scss +0 -70
  131. package/scss/keyboard/classes.scss +0 -7
  132. package/scss/keyboard/index.scss +0 -3
  133. package/scss/keyboard/keyboard.scss +0 -29
  134. package/scss/location-marker/classes.scss +0 -15
  135. package/scss/location-marker/data-rich.scss +0 -49
  136. package/scss/location-marker/default.scss +0 -19
  137. package/scss/location-marker/index.scss +0 -6
  138. package/scss/location-marker/location-marker.scss +0 -11
  139. package/scss/location-marker/me.scss +0 -29
  140. package/scss/menu/classes.scss +0 -21
  141. package/scss/menu/index.scss +0 -3
  142. package/scss/menu/menu.scss +0 -185
  143. package/scss/non-ideal-state/classes.scss +0 -7
  144. package/scss/non-ideal-state/index.scss +0 -3
  145. package/scss/non-ideal-state/non-ideal-state.scss +0 -56
  146. package/scss/progress-indicator/classes.scss +0 -31
  147. package/scss/progress-indicator/index.scss +0 -5
  148. package/scss/progress-indicator/linear.scss +0 -108
  149. package/scss/progress-indicator/overlay.scss +0 -51
  150. package/scss/progress-indicator/radial.scss +0 -155
  151. package/scss/radio/classes.scss +0 -7
  152. package/scss/radio/index.scss +0 -3
  153. package/scss/radio/radio.scss +0 -18
  154. package/scss/radio-tile/classes.scss +0 -31
  155. package/scss/radio-tile/index.scss +0 -3
  156. package/scss/radio-tile/radio-tile.scss +0 -167
  157. package/scss/select/classes.scss +0 -27
  158. package/scss/select/index.scss +0 -3
  159. package/scss/select/select.scss +0 -124
  160. package/scss/side-navigation/classes.scss +0 -15
  161. package/scss/side-navigation/index.scss +0 -3
  162. package/scss/side-navigation/side-navigation.scss +0 -202
  163. package/scss/skip-to-content/classes.scss +0 -7
  164. package/scss/skip-to-content/index.scss +0 -3
  165. package/scss/skip-to-content/skip-to-content.scss +0 -40
  166. package/scss/slider/classes.scss +0 -27
  167. package/scss/slider/index.scss +0 -3
  168. package/scss/slider/slider.scss +0 -135
  169. package/scss/stepper/classes.scss +0 -32
  170. package/scss/stepper/index.scss +0 -3
  171. package/scss/stepper/stepper.scss +0 -151
  172. package/scss/style/baseline.scss +0 -4
  173. package/scss/style/color.scss +0 -39
  174. package/scss/style/elevation.scss +0 -11
  175. package/scss/style/global-variables.scss +0 -23
  176. package/scss/style/global.scss +0 -69
  177. package/scss/style/icon-sizes.scss +0 -14
  178. package/scss/style/index.scss +0 -11
  179. package/scss/style/space.scss +0 -11
  180. package/scss/style/speed.scss +0 -8
  181. package/scss/style/theme.scss +0 -443
  182. package/scss/style/typography.scss +0 -55
  183. package/scss/surface/classes.scss +0 -7
  184. package/scss/surface/index.scss +0 -3
  185. package/scss/surface/surface.scss +0 -17
  186. package/scss/table/classes.scss +0 -64
  187. package/scss/table/column-filter.scss +0 -34
  188. package/scss/table/index.scss +0 -6
  189. package/scss/table/paginator.scss +0 -79
  190. package/scss/table/sizes.scss +0 -31
  191. package/scss/table/table-densities.scss +0 -11
  192. package/scss/table/table.scss +0 -482
  193. package/scss/tabs/borderless.scss +0 -59
  194. package/scss/tabs/classes.scss +0 -44
  195. package/scss/tabs/default.scss +0 -89
  196. package/scss/tabs/index.scss +0 -6
  197. package/scss/tabs/pill.scss +0 -38
  198. package/scss/tabs/tabs.scss +0 -192
  199. package/scss/tag/classes.scss +0 -30
  200. package/scss/tag/index.scss +0 -3
  201. package/scss/tag/tag.scss +0 -89
  202. package/scss/text/classes.scss +0 -40
  203. package/scss/text/index.scss +0 -5
  204. package/scss/text/mixins.scss +0 -43
  205. package/scss/text/muted.scss +0 -7
  206. package/scss/text/skeleton.scss +0 -43
  207. package/scss/textarea/classes.scss +0 -7
  208. package/scss/textarea/index.scss +0 -3
  209. package/scss/textarea/textarea.scss +0 -15
  210. package/scss/tile/classes.scss +0 -51
  211. package/scss/tile/index.scss +0 -3
  212. package/scss/tile/tile.scss +0 -340
  213. package/scss/time-picker/classes.scss +0 -16
  214. package/scss/time-picker/index.scss +0 -3
  215. package/scss/time-picker/time-picker.scss +0 -63
  216. package/scss/toast/categories.scss +0 -22
  217. package/scss/toast/classes.scss +0 -98
  218. package/scss/toast/index.scss +0 -4
  219. package/scss/toast/toast.scss +0 -70
  220. package/scss/toggle-switch/classes.scss +0 -11
  221. package/scss/toggle-switch/index.scss +0 -3
  222. package/scss/toggle-switch/toggle-switch.scss +0 -203
  223. package/scss/tooltip/classes.scss +0 -24
  224. package/scss/tooltip/index.scss +0 -3
  225. package/scss/tooltip/tooltip.scss +0 -40
  226. package/scss/tree/classes.scss +0 -19
  227. package/scss/tree/index.scss +0 -3
  228. package/scss/tree/tree.scss +0 -126
  229. package/scss/utils/classes.scss +0 -6
  230. package/scss/utils/index.scss +0 -6
  231. package/scss/utils/input-container/classes.scss +0 -39
  232. package/scss/utils/input-container/index.scss +0 -3
  233. package/scss/utils/input-container/input-container.scss +0 -285
  234. package/scss/utils/mixins.scss +0 -171
  235. package/scss/utils/notification-marker/classes.scss +0 -9
  236. package/scss/utils/notification-marker/index.scss +0 -3
  237. package/scss/utils/notification-marker/notification-marker.scss +0 -55
  238. package/scss/utils/popover/classes.scss +0 -7
  239. package/scss/utils/popover/index.scss +0 -3
  240. package/scss/utils/popover/popover.scss +0 -21
  241. package/scss/variables.scss +0 -3
  242. package/scss/workflow-diagram/classes.scss +0 -15
  243. package/scss/workflow-diagram/index.scss +0 -3
  244. package/scss/workflow-diagram/workflow-diagram.scss +0 -64
  245. package/src/index.scss +0 -50
@@ -1,89 +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 './tabs';
5
-
6
- @mixin iui-tabs-default {
7
- @include iui-tab-not-animated;
8
-
9
- .iui-tab {
10
- padding: $iui-xs $iui-m;
11
- background-color: var(--iui-color-background-2);
12
- border: 1px solid var(--iui-color-background-5);
13
-
14
- &::after {
15
- top: 0;
16
- left: 0;
17
- }
18
-
19
- &:hover {
20
- background-color: var(--iui-color-background-1);
21
- }
22
-
23
- &.iui-active {
24
- background-color: var(--iui-color-background-1);
25
- }
26
-
27
- &[disabled] {
28
- background-color: var(--iui-color-background-3);
29
- }
30
-
31
- &:focus {
32
- outline-width: 2px;
33
- outline-offset: -2px;
34
- }
35
- }
36
-
37
- @at-root {
38
- .iui-horizontal & {
39
- .iui-tab.iui-active {
40
- border-bottom-color: transparent;
41
- }
42
-
43
- :not(:first-child) .iui-tab {
44
- border-left: none;
45
- }
46
-
47
- ~ .iui-tabs-content {
48
- margin-top: -1px;
49
- }
50
- }
51
- }
52
-
53
- @at-root {
54
- .iui-vertical & {
55
- .iui-tab.iui-active {
56
- border-right-color: transparent;
57
- }
58
-
59
- :not(:first-child) .iui-tab {
60
- border-top: none;
61
- }
62
-
63
- ~ .iui-tabs-content {
64
- margin-left: -1px;
65
- }
66
- }
67
- }
68
-
69
- &.iui-large {
70
- .iui-tab {
71
- min-height: $iui-component-height-large;
72
- }
73
-
74
- .iui-tab-description {
75
- display: -webkit-box; /* stylelint-disable-line */
76
- }
77
- }
78
-
79
- &.iui-green .iui-tab::after {
80
- background-color: var(--iui-color-foreground-positive);
81
- }
82
-
83
- ~ .iui-tabs-content {
84
- padding-left: $iui-m;
85
- padding-right: $iui-m;
86
- background-color: var(--iui-color-background-1);
87
- border: 1px solid var(--iui-color-background-5);
88
- }
89
- }
@@ -1,6 +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 './tabs';
4
- @import './default';
5
- @import './borderless';
6
- @import './pill';
@@ -1,38 +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 './tabs';
5
-
6
- @mixin iui-tabs-pill {
7
- justify-content: space-evenly;
8
- gap: $iui-xxs;
9
-
10
- > li {
11
- flex: 1 1 0;
12
- }
13
-
14
- &.iui-green .iui-tab:hover {
15
- background-color: rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-6));
16
- }
17
-
18
- .iui-tab {
19
- padding: $iui-xs;
20
- background-color: transparent;
21
- width: 100%;
22
- justify-content: center;
23
- border-radius: $iui-border-radius;
24
-
25
- &::after {
26
- bottom: 0;
27
- left: 0;
28
- }
29
-
30
- &:hover {
31
- background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
32
- }
33
-
34
- &[disabled]:hover {
35
- background-color: transparent;
36
- }
37
- }
38
- }
@@ -1,192 +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-tabs {
7
- @include iui-reset;
8
- position: relative;
9
- list-style: none;
10
- user-select: none;
11
-
12
- .iui-tab {
13
- @include iui-reset;
14
- font-family: inherit;
15
- position: relative;
16
- display: flex;
17
- align-items: center;
18
- font-size: $iui-font-size;
19
- min-height: $iui-component-height;
20
- height: 100%;
21
- cursor: pointer;
22
- color: var(--iui-text-color);
23
- transition: background-color $iui-speed-fast ease-out;
24
-
25
- &.iui-active {
26
- color: var(--iui-color-foreground-primary);
27
-
28
- .iui-tab-icon {
29
- fill: var(--iui-icons-color-primary);
30
- }
31
-
32
- .iui-tab-description {
33
- opacity: var(--iui-opacity-1);
34
- }
35
- }
36
-
37
- &[disabled] {
38
- cursor: not-allowed;
39
- color: var(--iui-text-color-muted);
40
-
41
- .iui-tab-icon {
42
- fill: var(--iui-icons-color-actionable-disabled);
43
- }
44
- }
45
-
46
- @include iui-focus;
47
- }
48
-
49
- .iui-tab-icon {
50
- width: $iui-icons-default;
51
- height: $iui-icons-default;
52
- flex-shrink: 0;
53
- fill: var(--iui-icons-color-actionable);
54
- transition: fill $iui-speed-fast ease-out;
55
-
56
- + .iui-tab-label {
57
- margin-left: $iui-s;
58
- }
59
- }
60
-
61
- .iui-tab-description {
62
- display: none;
63
- font-size: $iui-font-size-small;
64
- opacity: var(--iui-opacity-3);
65
- }
66
-
67
- &.iui-green .iui-tab {
68
- &:focus {
69
- outline-color: var(--iui-color-foreground-positive);
70
- }
71
-
72
- &.iui-active {
73
- color: var(--iui-color-foreground-positive);
74
-
75
- .iui-tab-icon {
76
- fill: var(--iui-icons-color-positive);
77
- }
78
- }
79
- }
80
-
81
- ~ .iui-tabs-content {
82
- padding-top: $iui-baseline;
83
- padding-bottom: $iui-baseline;
84
- }
85
- }
86
-
87
- @mixin iui-tab-label {
88
- text-align: left;
89
- max-width: 60ch;
90
-
91
- > * {
92
- @include iui-line-clamp(3);
93
- }
94
- }
95
-
96
- @mixin iui-tabs-horizontal {
97
- flex-direction: column;
98
-
99
- .iui-tabs {
100
- display: flex;
101
- }
102
-
103
- .iui-tab {
104
- &::after {
105
- width: 100%;
106
- height: 0;
107
- }
108
-
109
- &.iui-active::after {
110
- height: $iui-xxs;
111
- }
112
- }
113
- }
114
-
115
- @mixin iui-tabs-vertical {
116
- .iui-tabs {
117
- li,
118
- .iui-tab {
119
- width: 100%;
120
- white-space: nowrap;
121
- }
122
-
123
- ~ .iui-tabs-content {
124
- flex-grow: 1;
125
- }
126
- }
127
-
128
- .iui-tab {
129
- &::after {
130
- width: 0;
131
- height: 100%;
132
- }
133
-
134
- &.iui-active::after {
135
- width: $iui-xxs;
136
- }
137
- }
138
- }
139
-
140
- @mixin iui-tab-not-animated {
141
- .iui-tab::after {
142
- content: '';
143
- position: absolute;
144
- background-color: var(--iui-color-foreground-primary);
145
- }
146
-
147
- .iui-active::after {
148
- @media (prefers-reduced-motion: no-preference) {
149
- transition: width $iui-speed-fast ease, height $iui-speed-fast ease;
150
- }
151
- }
152
-
153
- &.iui-green .iui-tab::after {
154
- background-color: var(--iui-color-foreground-positive);
155
- }
156
- }
157
-
158
- @mixin iui-tab-animated {
159
- &::after {
160
- position: absolute;
161
- content: ' ';
162
- background-color: var(--iui-color-foreground-primary);
163
- }
164
-
165
- &.iui-green::after {
166
- background-color: var(--iui-color-foreground-positive);
167
- }
168
-
169
- @at-root {
170
- .iui-horizontal &::after {
171
- top: calc(100% - #{$iui-xxs});
172
- height: $iui-xxs;
173
- left: var(--stripe-left);
174
- width: var(--stripe-width);
175
- @media (prefers-reduced-motion: no-preference) {
176
- transition: width $iui-speed-fast ease-out, left $iui-speed-fast ease-out;
177
- }
178
- }
179
- }
180
-
181
- @at-root {
182
- .iui-vertical &::after {
183
- left: calc(100% - #{$iui-xxs});
184
- width: $iui-xxs;
185
- top: var(--stripe-top);
186
- height: var(--stripe-height);
187
- @media (prefers-reduced-motion: no-preference) {
188
- transition: top $iui-speed-fast ease-out;
189
- }
190
- }
191
- }
192
- }
@@ -1,30 +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 './tag';
4
- @import '../anchor/index';
5
- @import '../utils/index';
6
-
7
- .iui-tag {
8
- @include iui-tag;
9
- }
10
-
11
- .iui-tag-basic {
12
- @include iui-tag-basic;
13
- }
14
-
15
- .iui-tag-label {
16
- @include iui-tag-label;
17
- }
18
-
19
- .iui-tag-button {
20
- @include iui-tag-button;
21
- }
22
-
23
- a.iui-tag-basic {
24
- @include iui-anchor;
25
- @include iui-focus($offset: 1px);
26
- }
27
-
28
- .iui-tag-container {
29
- @include iui-tag-container;
30
- }
@@ -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 './tag';
package/scss/tag/tag.scss DELETED
@@ -1,89 +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 '../button/index';
6
- @import '../text/mixins';
7
-
8
- @mixin iui-tag-base {
9
- user-select: all;
10
- text-transform: lowercase;
11
- display: inline-flex;
12
- }
13
-
14
- @mixin iui-tag-basic {
15
- @include iui-tag-base;
16
-
17
- &:not(a) {
18
- color: var(--iui-text-color-muted);
19
- }
20
- }
21
-
22
- @mixin iui-tag {
23
- @include iui-tag-base;
24
- height: $iui-baseline * 3;
25
- margin-top: $iui-component-offset;
26
- margin-bottom: $iui-component-offset;
27
- border-radius: $iui-border-radius-round;
28
- padding: 0 $iui-xxs;
29
- align-items: center;
30
- transition: border-color $iui-speed-fast ease-out;
31
- font-size: $iui-font-size;
32
- text-transform: none;
33
- cursor: default;
34
- -webkit-tap-highlight-color: transparent;
35
- border: 1px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
36
- background-color: var(--iui-color-background-1);
37
- color: var(--iui-text-color);
38
-
39
- &:hover {
40
- border-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
41
- }
42
- }
43
-
44
- @mixin iui-tag-label {
45
- @include iui-text;
46
- white-space: nowrap;
47
- text-overflow: ellipsis;
48
- overflow: hidden;
49
- margin: 0 $iui-xs 0 $iui-s;
50
-
51
- &:only-child {
52
- margin: 0 $iui-s;
53
- }
54
- }
55
-
56
- @mixin iui-tag-button {
57
- border-radius: 50%;
58
- }
59
-
60
- @mixin iui-tag-container {
61
- color: var(--iui-text-color-muted);
62
-
63
- > a.iui-tag-basic {
64
- margin: $iui-xxs;
65
- }
66
-
67
- > *:not(last-child) {
68
- margin-right: $iui-xs;
69
- }
70
-
71
- > .iui-tag-basic:not(:last-child)::after {
72
- content: ',';
73
- }
74
-
75
- &.iui-truncate {
76
- @include iui-line-clamp(1);
77
- }
78
-
79
- &.iui-scroll {
80
- white-space: nowrap;
81
- overflow-x: scroll;
82
- }
83
-
84
- &.iui-visible {
85
- border-radius: $iui-border-radius;
86
- padding: $iui-component-offset $iui-sm;
87
- background-color: var(--iui-color-background-3);
88
- }
89
- }
@@ -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
- @import './mixins';
5
-
6
- .iui-text-headline {
7
- @include iui-text(headline);
8
- }
9
-
10
- .iui-text-title {
11
- @include iui-text(title);
12
- }
13
-
14
- .iui-text-subheading {
15
- @include iui-text(subheading);
16
- }
17
-
18
- .iui-text-leading {
19
- @include iui-text(leading);
20
- }
21
-
22
- .iui-text-block {
23
- @include iui-text(body);
24
- }
25
-
26
- .iui-text-small {
27
- @include iui-text(small);
28
- }
29
-
30
- .iui-text-muted {
31
- @include iui-text-muted;
32
- }
33
-
34
- .iui-skeleton {
35
- @include iui-text-skeleton;
36
- }
37
-
38
- .iui-text-spacing {
39
- @include iui-text-block-spacing;
40
- }
@@ -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 './mixins';
4
- @import './muted';
5
- @import './skeleton';
@@ -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
- @import '../utils/index';
5
-
6
- @mixin iui-text-block-spacing {
7
- padding: 0;
8
- margin: 0 0 $iui-line-height;
9
- }
10
-
11
- @mixin iui-text($type: body) {
12
- @include iui-reset;
13
-
14
- $sizes: (
15
- headline: $iui-font-size-headline,
16
- title: $iui-font-size-title,
17
- subheading: $iui-font-size-subheading,
18
- leading: $iui-font-size-leading,
19
- body: $iui-font-size,
20
- small: $iui-font-size-small,
21
- );
22
-
23
- $weights: (
24
- headline: $iui-font-weight-light,
25
- title: $iui-font-weight-light,
26
- subheading: $iui-font-weight-normal,
27
- leading: $iui-font-weight-normal,
28
- body: $iui-font-weight-normal,
29
- small: $iui-font-weight-normal,
30
- );
31
- $line-heights: (
32
- headline: 2 * $iui-line-height,
33
- title: 1.5 * $iui-line-height,
34
- subheading: 1.5 * $iui-line-height,
35
- leading: $iui-line-height,
36
- body: $iui-line-height,
37
- small: $iui-line-height,
38
- );
39
- $type: if(map-has-key($sizes, $type), $type, body);
40
- font-size: map-get($sizes, $type);
41
- font-weight: map-get($weights, $type);
42
- line-height: map-get($line-heights, $type);
43
- }
@@ -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 '../style/theme';
4
-
5
- @mixin iui-text-muted {
6
- color: var(--iui-text-color-muted);
7
- }
@@ -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-text-skeleton {
6
- display: inline-block;
7
- user-select: none;
8
- color: transparent;
9
- border-radius: $iui-border-radius;
10
- cursor: progress;
11
- background: linear-gradient(
12
- 292deg,
13
- var(--iui-text-color-muted),
14
- var(--iui-text-color-muted),
15
- var(--iui-text-color-placeholder),
16
- var(--iui-text-color-muted),
17
- var(--iui-text-color-muted)
18
- );
19
- background-size: 200% 100%;
20
-
21
- @media (forced-colors: active) {
22
- forced-color-adjust: none;
23
- background: linear-gradient(292deg, CanvasText, CanvasText, Canvas, CanvasText, CanvasText);
24
- }
25
-
26
- @media (prefers-reduced-motion: no-preference) {
27
- animation: skeleton-shimmer $iui-speed-slow linear infinite;
28
-
29
- @keyframes skeleton-shimmer {
30
- 0% {
31
- background-position: 200% 50%;
32
- }
33
-
34
- 50% {
35
- background-position: 100% 50%;
36
- }
37
-
38
- 100% {
39
- background-position: 0% 50%;
40
- }
41
- }
42
- }
43
- }
@@ -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-textarea {
6
- @include iui-textarea;
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 './textarea';
@@ -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/global-variables';
4
- @import '../input/index';
5
-
6
- @mixin iui-textarea {
7
- @include iui-input;
8
- resize: vertical;
9
- min-height: $iui-component-height;
10
-
11
- &[disabled],
12
- &[readonly] {
13
- resize: none;
14
- }
15
- }
@@ -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-button(type-indicator);
23
- }
24
-
25
- .iui-tile-thumbnail-quick-action {
26
- @include iui-tile-thumbnail-button(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';