@itwin/itwinui-css 0.50.0 → 0.52.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 (67) hide show
  1. package/css/alert.css +232 -174
  2. package/css/all.css +7324 -5608
  3. package/css/badge.css +2 -1
  4. package/css/blockquote.css +10 -7
  5. package/css/breadcrumbs.css +110 -87
  6. package/css/button.css +443 -344
  7. package/css/carousel.css +119 -88
  8. package/css/code.css +69 -56
  9. package/css/color-picker.css +150 -103
  10. package/css/date-picker.css +73 -55
  11. package/css/expandable-block.css +212 -160
  12. package/css/fieldset.css +22 -18
  13. package/css/file-upload.css +93 -79
  14. package/css/footer.css +64 -53
  15. package/css/global.css +100 -78
  16. package/css/header.css +471 -364
  17. package/css/icon.css +108 -78
  18. package/css/information-panel.css +174 -137
  19. package/css/inputs.css +1134 -942
  20. package/css/keyboard.css +11 -7
  21. package/css/location-marker.css +68 -58
  22. package/css/menu.css +105 -80
  23. package/css/modal.css +114 -44
  24. package/css/non-ideal-state.css +47 -40
  25. package/css/notification-marker.css +275 -200
  26. package/css/popover.css +10 -8
  27. package/css/progress-indicator.css +315 -237
  28. package/css/reset-global-styles.css +10 -5
  29. package/css/side-navigation.css +189 -140
  30. package/css/skip-to-content.css +41 -27
  31. package/css/slider.css +112 -87
  32. package/css/table.css +563 -419
  33. package/css/tabs.css +324 -238
  34. package/css/tag.css +111 -84
  35. package/css/text.css +46 -27
  36. package/css/tile.css +387 -311
  37. package/css/time-picker.css +113 -86
  38. package/css/toast-notification.css +232 -173
  39. package/css/toggle-switch.css +176 -111
  40. package/css/tooltip.css +21 -16
  41. package/css/tree.css +123 -93
  42. package/css/user-icon.css +223 -162
  43. package/css/wizard.css +156 -131
  44. package/package.json +5 -6
  45. package/scss/alert/alert.scss +1 -5
  46. package/scss/button/button-group.scss +4 -1
  47. package/scss/carousel/carousel.scss +4 -1
  48. package/scss/code/codeblock.scss +1 -1
  49. package/scss/inputs/checkbox.scss +1 -0
  50. package/scss/inputs/labeled-inputs.scss +8 -8
  51. package/scss/inputs/radio.scss +0 -4
  52. package/scss/location-marker/data-rich.scss +1 -1
  53. package/scss/location-marker/me.scss +4 -4
  54. package/scss/modal/classes.scss +4 -0
  55. package/scss/modal/modal.scss +81 -7
  56. package/scss/popover/popover.scss +1 -2
  57. package/scss/progress-indicator/linear.scss +2 -10
  58. package/scss/style/global.scss +1 -5
  59. package/scss/style/mixins.scss +9 -0
  60. package/scss/style/ripple.scss +1 -1
  61. package/scss/style/speed.scss +1 -0
  62. package/scss/table/table.scss +23 -14
  63. package/scss/toast-notification/categories.scss +1 -5
  64. package/scss/toggle-switch/classes.scss +4 -0
  65. package/scss/toggle-switch/toggle-switch.scss +141 -162
  66. package/scss/tooltip/tooltip.scss +1 -1
  67. package/scss/user-icon/user-icon.scss +38 -19
package/css/tag.css CHANGED
@@ -11,100 +11,127 @@
11
11
  -moz-user-select:all;
12
12
  user-select:all;
13
13
  text-transform:lowercase;
14
- display:inline-flex; }
15
- .iui-tag:focus-visible{
14
+ display:inline-flex;
15
+ }
16
+ .iui-tag:focus-visible{
17
+ outline:2px solid var(--iui-color-foreground-primary);
18
+ outline-offset:-2px;
19
+ }
20
+ @supports not selector(*:focus-visible){
21
+ .iui-tag:focus{
16
22
  outline:2px solid var(--iui-color-foreground-primary);
17
- outline-offset:-2px; }
18
- @supports not selector(*:focus-visible){
19
- .iui-tag:focus{
20
- outline:2px solid var(--iui-color-foreground-primary);
21
- outline-offset:-2px; } }
22
- .iui-tag:not(a){
23
- color:rgba(0, 0, 0, 0.4);
24
- color:var(--iui-text-color-muted); }
23
+ outline-offset:-2px;
24
+ }
25
+ }
26
+ .iui-tag:not(a){
27
+ color:rgba(0, 0, 0, 0.4);
28
+ color:var(--iui-text-color-muted);
29
+ }
30
+ .iui-tag:not(.iui-basic){
31
+ height:33px;
32
+ margin:3px 0;
33
+ border-radius:16.5px;
34
+ box-sizing:border-box;
35
+ padding:0 2px;
36
+ align-items:center;
37
+ font-size:14px;
38
+ text-transform:none;
39
+ cursor:default;
40
+ border:1px solid rgba(0, 0, 0, 0.4);
41
+ background-color:#FFF;
42
+ color:rgba(0, 0, 0, 0.8);
43
+ border:1px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
44
+ background-color:var(--iui-color-background-1);
45
+ color:var(--iui-text-color);
46
+ }
47
+ @media (prefers-reduced-motion: no-preference){
25
48
  .iui-tag:not(.iui-basic){
26
- height:33px;
27
- margin:3px 0;
28
- border-radius:16.5px;
29
- box-sizing:border-box;
30
- padding:0 2px;
31
- align-items:center;
32
- font-size:14px;
33
- text-transform:none;
34
- cursor:default;
35
- border:1px solid rgba(0, 0, 0, 0.4);
36
- background-color:#FFF;
37
- color:rgba(0, 0, 0, 0.8);
38
- border:1px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
39
- background-color:var(--iui-color-background-1);
40
- color:var(--iui-text-color); }
41
- @media (prefers-reduced-motion: no-preference){
42
- .iui-tag:not(.iui-basic){
43
- transition:border 0.2s ease-out; } }
44
- .iui-tag:not(.iui-basic) > .iui-label{
45
- margin:0;
46
- padding:0;
47
- border:none;
48
- vertical-align:baseline;
49
- font-size:14px;
50
- font-weight:400;
51
- line-height:22px;
52
- white-space:nowrap;
53
- text-overflow:ellipsis;
54
- overflow:hidden;
55
- margin:0 4px 0 8px; }
56
- .iui-tag:not(.iui-basic) > .iui-label:only-child{
57
- margin:0 8px; }
58
- .iui-tag:not(.iui-basic) > .iui-button{
59
- border-radius:50%; }
60
- .iui-tag:not(.iui-basic):hover{
61
- border-color:black;
62
- border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1)); }
63
- .iui-tag.iui-basic{
64
- outline-offset:1px; }
49
+ transition:border 0.2s ease-out;
50
+ }
51
+ }
52
+ .iui-tag:not(.iui-basic) > .iui-label{
53
+ margin:0;
54
+ padding:0;
55
+ border:none;
56
+ vertical-align:baseline;
57
+ font-size:14px;
58
+ font-weight:400;
59
+ line-height:22px;
60
+ white-space:nowrap;
61
+ text-overflow:ellipsis;
62
+ overflow:hidden;
63
+ margin:0 4px 0 8px;
64
+ }
65
+ .iui-tag:not(.iui-basic) > .iui-label:only-child{
66
+ margin:0 8px;
67
+ }
68
+ .iui-tag:not(.iui-basic) > .iui-button{
69
+ border-radius:50%;
70
+ }
71
+ .iui-tag:not(.iui-basic):hover{
72
+ border-color:black;
73
+ border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
74
+ }
75
+ .iui-tag.iui-basic{
76
+ outline-offset:1px;
77
+ }
65
78
 
66
79
  a.iui-tag{
67
80
  border-radius:3px;
68
81
  text-decoration:none;
69
82
  cursor:pointer;
70
83
  color:#008BE1;
71
- color:var(--iui-color-foreground-primary); }
72
- a.iui-tag:focus-visible{
84
+ color:var(--iui-color-foreground-primary);
85
+ }
86
+ a.iui-tag:focus-visible{
87
+ outline:1px solid var(--iui-color-foreground-primary);
88
+ outline-offset:2px;
89
+ }
90
+ @supports not selector(*:focus-visible){
91
+ a.iui-tag:focus{
73
92
  outline:1px solid var(--iui-color-foreground-primary);
74
- outline-offset:2px; }
75
- @supports not selector(*:focus-visible){
76
- a.iui-tag:focus{
77
- outline:1px solid var(--iui-color-foreground-primary);
78
- outline-offset:2px; } }
79
- a.iui-tag:hover{
80
- color:#006bae;
81
- color:var(--iui-color-foreground-primary-overlay);
82
- text-decoration:underline; }
93
+ outline-offset:2px;
94
+ }
95
+ }
96
+ a.iui-tag:hover{
97
+ color:#006bae;
98
+ color:var(--iui-color-foreground-primary-overlay);
99
+ text-decoration:underline;
100
+ }
83
101
 
84
102
  .iui-tag-container{
85
103
  color:rgba(0, 0, 0, 0.4);
86
- color:var(--iui-text-color-muted); }
87
- .iui-tag-container > a.iui-basic{
88
- margin:2px; }
89
- .iui-tag-container > .iui-tag:not(:last-child){
90
- margin-right:4px; }
91
- .iui-tag-container > .iui-basic:not(:last-child)::after{
92
- content:','; }
104
+ color:var(--iui-text-color-muted);
105
+ }
106
+ .iui-tag-container > a.iui-basic{
107
+ margin:2px;
108
+ }
109
+ .iui-tag-container > .iui-tag:not(:last-child){
110
+ margin-right:4px;
111
+ }
112
+ .iui-tag-container > .iui-basic:not(:last-child)::after{
113
+ content:",";
114
+ }
115
+ .iui-tag-container.iui-truncate{
116
+ overflow:hidden;
117
+ white-space:nowrap;
118
+ text-overflow:ellipsis;
119
+ }
120
+ @supports (-webkit-line-clamp: 1){
93
121
  .iui-tag-container.iui-truncate{
94
- overflow:hidden;
95
- white-space:nowrap;
96
- text-overflow:ellipsis; }
97
- @supports (-webkit-line-clamp: 1){
98
- .iui-tag-container.iui-truncate{
99
- white-space:unset;
100
- display:-webkit-box;
101
- -webkit-line-clamp:1;
102
- -webkit-box-orient:vertical; } }
103
- .iui-tag-container.iui-scroll{
104
- white-space:nowrap;
105
- overflow-x:scroll; }
106
- .iui-tag-container.iui-visible{
107
- border-radius:3px;
108
- padding:3px 12px;
109
- background-color:#F8F9FB;
110
- background-color:var(--iui-color-background-2); }
122
+ white-space:unset;
123
+ display:-webkit-box;
124
+ -webkit-line-clamp:1;
125
+ -webkit-box-orient:vertical;
126
+ }
127
+ }
128
+ .iui-tag-container.iui-scroll{
129
+ white-space:nowrap;
130
+ overflow-x:scroll;
131
+ }
132
+ .iui-tag-container.iui-visible{
133
+ border-radius:3px;
134
+ padding:3px 12px;
135
+ background-color:#F8F9FB;
136
+ background-color:var(--iui-color-background-2);
137
+ }
package/css/text.css CHANGED
@@ -9,7 +9,8 @@
9
9
  vertical-align:baseline;
10
10
  font-size:32px;
11
11
  font-weight:300;
12
- line-height:44px; }
12
+ line-height:44px;
13
+ }
13
14
 
14
15
  .iui-text-title{
15
16
  margin:0;
@@ -18,7 +19,8 @@
18
19
  vertical-align:baseline;
19
20
  font-size:24px;
20
21
  font-weight:300;
21
- line-height:33px; }
22
+ line-height:33px;
23
+ }
22
24
 
23
25
  .iui-text-subheading{
24
26
  margin:0;
@@ -27,7 +29,8 @@
27
29
  vertical-align:baseline;
28
30
  font-size:18px;
29
31
  font-weight:400;
30
- line-height:33px; }
32
+ line-height:33px;
33
+ }
31
34
 
32
35
  .iui-text-leading{
33
36
  margin:0;
@@ -36,7 +39,8 @@
36
39
  vertical-align:baseline;
37
40
  font-size:16px;
38
41
  font-weight:400;
39
- line-height:22px; }
42
+ line-height:22px;
43
+ }
40
44
 
41
45
  .iui-text-block{
42
46
  margin:0;
@@ -45,7 +49,8 @@
45
49
  vertical-align:baseline;
46
50
  font-size:14px;
47
51
  font-weight:400;
48
- line-height:22px; }
52
+ line-height:22px;
53
+ }
49
54
 
50
55
  .iui-text-small{
51
56
  margin:0;
@@ -54,11 +59,13 @@
54
59
  vertical-align:baseline;
55
60
  font-size:12px;
56
61
  font-weight:400;
57
- line-height:22px; }
62
+ line-height:22px;
63
+ }
58
64
 
59
65
  .iui-text-muted{
60
66
  color:rgba(0, 0, 0, 0.4);
61
- color:var(--iui-text-color-muted); }
67
+ color:var(--iui-text-color-muted);
68
+ }
62
69
 
63
70
  .iui-skeleton{
64
71
  display:inline-block;
@@ -71,26 +78,38 @@
71
78
  background:linear-gradient(270deg, #EEF0F3, #EEF0F3, #F8F9FB, #EEF0F3, #EEF0F3);
72
79
  background-size:200% 100%;
73
80
  background:linear-gradient(270deg, var(--iui-color-background-3), var(--iui-color-background-3), var(--iui-color-background-2), var(--iui-color-background-3), var(--iui-color-background-3));
74
- background-size:200% 100%; }
75
- @media (prefers-reduced-motion: no-preference){
76
- .iui-skeleton{
77
- -webkit-animation:skeleton-shimmer 0.8s linear infinite;
78
- animation:skeleton-shimmer 0.8s linear infinite; }
79
- @-webkit-keyframes skeleton-shimmer{
80
- 0%{
81
- background-position:200% 50%; }
82
- 50%{
83
- background-position:100% 50%; }
84
- 100%{
85
- background-position:0% 50%; } }
86
- @keyframes skeleton-shimmer{
87
- 0%{
88
- background-position:200% 50%; }
89
- 50%{
90
- background-position:100% 50%; }
91
- 100%{
92
- background-position:0% 50%; } } }
81
+ background-size:200% 100%;
82
+ }
83
+ @media (prefers-reduced-motion: no-preference){
84
+ .iui-skeleton{
85
+ -webkit-animation:skeleton-shimmer 0.8s linear infinite;
86
+ animation:skeleton-shimmer 0.8s linear infinite;
87
+ }
88
+ @-webkit-keyframes skeleton-shimmer{
89
+ 0%{
90
+ background-position:200% 50%;
91
+ }
92
+ 50%{
93
+ background-position:100% 50%;
94
+ }
95
+ 100%{
96
+ background-position:0% 50%;
97
+ }
98
+ }
99
+ @keyframes skeleton-shimmer{
100
+ 0%{
101
+ background-position:200% 50%;
102
+ }
103
+ 50%{
104
+ background-position:100% 50%;
105
+ }
106
+ 100%{
107
+ background-position:0% 50%;
108
+ }
109
+ }
110
+ }
93
111
 
94
112
  .iui-text-spacing{
95
113
  padding:0;
96
- margin:0 0 22px; }
114
+ margin:0 0 22px;
115
+ }