@itwin/itwinui-css 0.51.0 → 0.53.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 (77) hide show
  1. package/css/alert.css +44 -44
  2. package/css/all.css +1797 -982
  3. package/css/badge.css +1 -1
  4. package/css/blockquote.css +2 -2
  5. package/css/breadcrumbs.css +12 -12
  6. package/css/button.css +40 -39
  7. package/css/carousel.css +24 -36
  8. package/css/code.css +5 -5
  9. package/css/color-picker.css +14 -10
  10. package/css/date-picker.css +402 -46
  11. package/css/expandable-block.css +19 -19
  12. package/css/fieldset.css +4 -4
  13. package/css/file-upload.css +11 -11
  14. package/css/footer.css +2 -2
  15. package/css/global.css +539 -208
  16. package/css/header.css +50 -38
  17. package/css/icon.css +24 -24
  18. package/css/information-panel.css +15 -8
  19. package/css/inputs.css +72 -72
  20. package/css/keyboard.css +4 -4
  21. package/css/location-marker.css +9 -9
  22. package/css/menu.css +25 -12
  23. package/css/modal.css +65 -6
  24. package/css/notification-marker.css +28 -28
  25. package/css/progress-indicator.css +32 -32
  26. package/css/side-navigation.css +18 -18
  27. package/css/skip-to-content.css +1 -1
  28. package/css/slider.css +13 -13
  29. package/css/surface.css +19 -0
  30. package/css/table.css +78 -74
  31. package/css/tabs.css +23 -23
  32. package/css/tag.css +4 -4
  33. package/css/text.css +1 -1
  34. package/css/tile.css +35 -35
  35. package/css/time-picker.css +15 -15
  36. package/css/toast-notification.css +34 -34
  37. package/css/tooltip.css +3 -1
  38. package/css/tree.css +7 -7
  39. package/css/user-icon.css +50 -28
  40. package/css/wizard.css +26 -26
  41. package/package.json +1 -1
  42. package/scss/button/button-group.scss +5 -3
  43. package/scss/button/classes.scss +4 -0
  44. package/scss/carousel/carousel.scss +22 -28
  45. package/scss/classes.scss +1 -0
  46. package/scss/color-picker/color-picker.scss +2 -2
  47. package/scss/date-picker/classes.scss +20 -0
  48. package/scss/date-picker/date-picker.scss +194 -33
  49. package/scss/fieldset/fieldset.scss +1 -1
  50. package/scss/header/header.scss +15 -10
  51. package/scss/index.scss +1 -0
  52. package/scss/information-panel/information-panel.scss +10 -3
  53. package/scss/menu/classes.scss +2 -1
  54. package/scss/menu/menu.scss +8 -11
  55. package/scss/modal/classes.scss +8 -0
  56. package/scss/modal/modal.scss +81 -6
  57. package/scss/progress-indicator/linear.scss +1 -1
  58. package/scss/progress-indicator/radial.scss +1 -1
  59. package/scss/side-navigation/side-navigation.scss +5 -5
  60. package/scss/slider/slider.scss +2 -2
  61. package/scss/style/elevation.scss +5 -5
  62. package/scss/style/global.scss +32 -21
  63. package/scss/style/mixins.scss +1 -1
  64. package/scss/style/ripple.scss +1 -1
  65. package/scss/style/speed.scss +1 -0
  66. package/scss/style/theme.scss +248 -65
  67. package/scss/surface/classes.scss +7 -0
  68. package/scss/surface/index.scss +3 -0
  69. package/scss/surface/surface.scss +18 -0
  70. package/scss/table/column-filter.scss +2 -2
  71. package/scss/table/table.scss +3 -3
  72. package/scss/tile/tile.scss +5 -5
  73. package/scss/time-picker/time-picker.scss +2 -2
  74. package/scss/tooltip/tooltip.scss +2 -1
  75. package/scss/user-icon/sizes.scss +8 -0
  76. package/scss/user-icon/user-icon.scss +40 -21
  77. package/scss/wizard/wizard.scss +1 -1
package/css/wizard.css CHANGED
@@ -44,25 +44,25 @@
44
44
  border-radius:0;
45
45
  font-weight:400;
46
46
  text-align:center;
47
- background-color:#53A21A;
48
- border-color:#53A21A;
49
- color:#FFF;
47
+ background-color:#53a21a;
48
+ border-color:#53a21a;
49
+ color:white;
50
50
  background-color:var(--iui-color-background-positive);
51
51
  border-color:var(--iui-color-background-positive);
52
52
  color:var(--iui-color-foreground-accessory);
53
53
  }
54
54
  .iui-wizard.iui-workflow .iui-wizard-step:first-of-type .iui-wizard-circle, .iui-wizard.iui-workflow .iui-wizard-step:last-of-type .iui-wizard-circle{
55
55
  border-radius:12px;
56
- background-color:#FFF;
57
- border-color:#53A21A;
58
- color:#53A21A;
56
+ background-color:white;
57
+ border-color:#53a21a;
58
+ color:#53a21a;
59
59
  background-color:var(--iui-color-background-1);
60
60
  border-color:var(--iui-color-foreground-positive);
61
61
  color:var(--iui-color-foreground-positive);
62
62
  }
63
63
  .iui-wizard.iui-workflow .iui-wizard-track-content::before,
64
64
  .iui-wizard.iui-workflow .iui-wizard-track-content::after{
65
- background-color:#53A21A;
65
+ background-color:#53a21a;
66
66
  background-color:var(--iui-color-foreground-positive);
67
67
  }
68
68
 
@@ -78,7 +78,7 @@
78
78
  font-size:12px;
79
79
  font-weight:400;
80
80
  line-height:22px;
81
- color:#53A21A;
81
+ color:#53a21a;
82
82
  color:var(--iui-color-background-positive);
83
83
  }
84
84
  .iui-wizard-step .iui-wizard-circle{
@@ -94,9 +94,9 @@
94
94
  -ms-user-select:none;
95
95
  user-select:none;
96
96
  transition:background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
97
- border:1px solid #53A21A;
98
- background-color:#FFF;
99
- color:#53A21A;
97
+ border:1px solid #53a21a;
98
+ background-color:white;
99
+ color:#53a21a;
100
100
  border:1px solid var(--iui-color-foreground-positive);
101
101
  background-color:var(--iui-color-background-1);
102
102
  color:var(--iui-color-foreground-positive);
@@ -105,26 +105,26 @@
105
105
  font-weight:600;
106
106
  }
107
107
  .iui-wizard-step.iui-current .iui-wizard-step-name{
108
- color:#53A21A;
108
+ color:#53a21a;
109
109
  color:var(--iui-color-foreground-positive);
110
110
  }
111
111
  .iui-wizard-step.iui-current .iui-wizard-circle{
112
- color:#FFF;
113
- border-color:#53A21A;
114
- background-color:#53A21A;
112
+ color:white;
113
+ border-color:#53a21a;
114
+ background-color:#53a21a;
115
115
  color:var(--iui-color-foreground-accessory);
116
116
  border-color:var(--iui-color-background-positive);
117
117
  background-color:var(--iui-color-background-positive);
118
118
  }
119
119
  .iui-wizard-step.iui-current .iui-wizard-track-content::after{
120
- background-color:#C7CCD1;
120
+ background-color:#c7ccd1;
121
121
  background-color:var(--iui-color-background-5);
122
122
  }
123
123
  .iui-wizard-step.iui-current ~ .iui-wizard-step .iui-wizard-circle{
124
- border:1px solid #C7CCD1;
125
- background-color:#FFF;
124
+ border:1px solid #c7ccd1;
125
+ background-color:white;
126
126
  color:rgba(0, 0, 0, 0.4);
127
- border:1px solid var(--iui-color-background-5);
127
+ border:1px solid var(--iui-color-background-border);
128
128
  background-color:var(--iui-color-background-1);
129
129
  color:var(--iui-text-color-muted);
130
130
  }
@@ -133,7 +133,7 @@
133
133
  color:var(--iui-text-color-muted);
134
134
  }
135
135
  .iui-wizard-step.iui-current ~ .iui-wizard-step .iui-wizard-track-content::before, .iui-wizard-step.iui-current ~ .iui-wizard-step:not(:last-of-type) .iui-wizard-track-content::after{
136
- background-color:#C7CCD1;
136
+ background-color:#c7ccd1;
137
137
  background-color:var(--iui-color-background-5);
138
138
  }
139
139
  .iui-wizard-step.iui-clickable .iui-wizard-circle{
@@ -145,9 +145,9 @@
145
145
  }
146
146
  }
147
147
  .iui-wizard-step.iui-clickable .iui-wizard-circle:hover{
148
- color:#FFF;
149
- border:1px solid #53A21A;
150
- background-color:#53A21A;
148
+ color:white;
149
+ border:1px solid #53a21a;
150
+ background-color:#53a21a;
151
151
  color:var(--iui-color-foreground-accessory);
152
152
  border:1px solid var(--iui-color-background-positive);
153
153
  background-color:var(--iui-color-background-positive);
@@ -156,7 +156,7 @@
156
156
  outline:0;
157
157
  }
158
158
  .iui-wizard-step.iui-clickable:focus .iui-wizard-circle{
159
- outline:2px solid #53A21A;
159
+ outline:2px solid #53a21a;
160
160
  outline:2px solid var(--iui-color-foreground-positive);
161
161
  outline-offset:-1px;
162
162
  }
@@ -176,7 +176,7 @@
176
176
  content:"";
177
177
  height:2px;
178
178
  flex:1 2 auto;
179
- background-color:#53A21A;
179
+ background-color:#53a21a;
180
180
  background-color:var(--iui-color-foreground-positive);
181
181
  }
182
182
 
@@ -185,6 +185,6 @@
185
185
  -webkit-user-select:all;
186
186
  -moz-user-select:all;
187
187
  user-select:all;
188
- color:#53A21A;
188
+ color:#53a21a;
189
189
  color:var(--iui-color-foreground-positive);
190
190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-css",
3
- "version": "0.51.0",
3
+ "version": "0.53.1",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "src/index.scss",
@@ -10,9 +10,7 @@
10
10
  align-items: center;
11
11
  isolation: isolate;
12
12
 
13
- @if $orientation == 'horizontal' {
14
- max-width: 100%;
15
- } @else {
13
+ @if $orientation != 'horizontal' {
16
14
  flex-direction: column;
17
15
  max-height: 100%;
18
16
  }
@@ -106,3 +104,7 @@
106
104
  }
107
105
  }
108
106
  }
107
+
108
+ @mixin iui-button-group-overflow-x {
109
+ width: 100%;
110
+ }
@@ -51,6 +51,10 @@
51
51
  &-vertical {
52
52
  @include iui-button-group(vertical);
53
53
  }
54
+
55
+ &-overflow-x {
56
+ @include iui-button-group-overflow-x;
57
+ }
54
58
  }
55
59
 
56
60
  .iui-button-split-menu {
@@ -16,18 +16,8 @@
16
16
  list-style: none;
17
17
  margin: 0;
18
18
  padding: 0;
19
- overflow-x: auto;
20
- overflow-x: overlay;
21
19
  scroll-snap-type: x mandatory;
22
- @media (prefers-reduced-motion: no-preference) {
23
- scroll-behavior: smooth;
24
- }
25
-
26
- // hide scrollbar
27
- &::-webkit-scrollbar {
28
- display: none;
29
- }
30
- scrollbar-width: none;
20
+ @include hide-scrollbar;
31
21
 
32
22
  &-item {
33
23
  width: 100%;
@@ -63,15 +53,11 @@
63
53
  &-dots {
64
54
  @include iui-reset;
65
55
  @include iui-focus;
66
- display: flex;
67
- align-items: center;
68
56
  flex: 2;
69
57
  max-width: $iui-xxl * 4;
70
58
  border-radius: $iui-border-radius;
71
59
  white-space: nowrap;
72
- overflow: hidden;
73
- justify-content: center;
74
- list-style: none;
60
+ @include hide-scrollbar;
75
61
  }
76
62
 
77
63
  &-dot {
@@ -86,22 +72,17 @@
86
72
  }
87
73
  }
88
74
 
89
- &.iui-invisible {
90
- @include visually-hidden;
91
- }
92
-
93
75
  &::after {
94
76
  content: '';
95
77
  display: block;
96
78
  width: $iui-icons-small;
97
79
  height: $iui-icons-small;
98
80
  border-radius: 50%;
99
- transition: background-color $iui-speed-fast ease;
100
- @media (prefers-reduced-motion: no-preference) {
101
- transition: background-color $iui-speed-fast $iui-speed-fast ease, transform $iui-speed ease;
102
- }
81
+ box-sizing: border-box;
82
+ border: 1px solid transparent;
103
83
  @include themed {
104
84
  background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
85
+ box-shadow: inset 0 0 0 0 t(iui-color-background-1);
105
86
  }
106
87
  }
107
88
 
@@ -113,13 +94,15 @@
113
94
  transform: scale(0.75);
114
95
  }
115
96
 
116
- &.iui-invisible::after {
117
- transform: scale(0);
118
- }
119
-
120
97
  &.iui-active::after {
121
98
  @include themed {
122
99
  background-color: t(iui-color-foreground-primary);
100
+ border-color: t(iui-color-foreground-primary);
101
+ box-shadow: inset 0 0 0 1px t(iui-color-background-1);
102
+ }
103
+
104
+ @media (forced-colors: active) {
105
+ border-width: $iui-icons-small * 0.5;
123
106
  }
124
107
  }
125
108
  }
@@ -128,3 +111,14 @@
128
111
  justify-content: flex-end;
129
112
  }
130
113
  }
114
+
115
+ @mixin hide-scrollbar {
116
+ overflow-x: auto;
117
+ overflow-x: overlay;
118
+
119
+ // hide scrollbar
120
+ &::-webkit-scrollbar {
121
+ display: none;
122
+ }
123
+ scrollbar-width: none;
124
+ }
package/scss/classes.scss CHANGED
@@ -42,3 +42,4 @@
42
42
  @import './user-icon/classes';
43
43
  @import './wizard/classes';
44
44
  @import './skip-to-content/classes';
45
+ @import './surface/classes';
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
- @import '../menu/index';
4
+ @import '../surface/index';
5
5
  @import '../button/borderless';
6
6
 
7
7
  $iui-color-picker-content-width: ($iui-l * 9) + ($iui-s * 8); // (9 swatches per row) + (gaps)
@@ -14,7 +14,7 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
14
14
  @mixin iui-color-picker {
15
15
  --iui-color-picker-selected-color: initial;
16
16
 
17
- @include iui-dropdown;
17
+ @include iui-surface;
18
18
  box-sizing: border-box;
19
19
  border-radius: $iui-border-radius;
20
20
  display: inline-flex;
@@ -25,3 +25,23 @@
25
25
  .iui-calendar-day {
26
26
  @include iui-calendar-day;
27
27
  }
28
+
29
+ .iui-calendar-day-selected {
30
+ @include iui-calendar-day-selected;
31
+ }
32
+
33
+ .iui-calendar-day-outside-month {
34
+ @include iui-calendar-day-outside-month;
35
+ }
36
+
37
+ .iui-calendar-day-range-start {
38
+ @include iui-calendar-day-range-start;
39
+ }
40
+
41
+ .iui-calendar-day-range-end {
42
+ @include iui-calendar-day-range-end;
43
+ }
44
+
45
+ .iui-calendar-day-range {
46
+ @include iui-calendar-day-range;
47
+ }
@@ -2,17 +2,21 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
4
  @import '../icon/index';
5
- @import '../menu/index';
5
+ @import '../surface/index';
6
+
7
+ $iui-date-picker-cell-width: 40px;
8
+ $iui-date-picker-cell-height: 36px;
9
+ $iui-date-picker-today-circle-size: 32px;
6
10
 
7
11
  @mixin iui-date-picker {
8
- @include iui-dropdown;
9
- box-shadow: $iui-elevation-2;
12
+ @include iui-surface;
10
13
  user-select: none;
11
- text-align: center;
12
- height: $iui-baseline * 26;
13
- display: inline-flex;
14
- @include themed {
15
- background-color: t(iui-color-background-1);
14
+ display: inline-grid;
15
+ grid-template-columns: 1fr auto;
16
+
17
+ .iui-time-picker {
18
+ height: 0;
19
+ min-height: 100%;
16
20
  }
17
21
  }
18
22
 
@@ -24,12 +28,9 @@
24
28
  padding: 0 $iui-xs;
25
29
  box-sizing: border-box;
26
30
  font-weight: $iui-font-weight-bold;
27
- @include themed {
28
- background-color: t(iui-color-background-1);
29
- }
31
+ gap: $iui-xs;
30
32
 
31
33
  > span {
32
- margin: 0 $iui-xs;
33
34
  width: 156px;
34
35
  white-space: nowrap;
35
36
  display: inline-flex;
@@ -49,10 +50,8 @@
49
50
  }
50
51
 
51
52
  @mixin iui-calendar-weekdays {
52
- line-height: $iui-baseline * 3;
53
+ line-height: $iui-date-picker-cell-height;
53
54
  display: flex;
54
- justify-content: space-evenly;
55
- align-items: center;
56
55
  padding: 0 $iui-s;
57
56
  font-weight: $iui-font-weight-bold;
58
57
  @include themed {
@@ -62,58 +61,220 @@
62
61
  > div {
63
62
  white-space: nowrap;
64
63
  overflow: hidden;
65
- width: $iui-xl;
64
+ width: $iui-date-picker-cell-width;
66
65
  text-align: center;
67
66
  }
68
67
  }
69
68
 
70
69
  @mixin iui-calendar-week {
71
70
  white-space: nowrap;
72
- height: $iui-baseline * 3;
71
+ line-height: $iui-date-picker-cell-height;
73
72
  display: flex;
74
- align-items: center;
75
- justify-content: space-evenly;
76
73
  padding: 0 $iui-s;
74
+ margin-bottom: $iui-xxs;
77
75
  }
78
76
 
79
- @mixin iui-calendar-day {
77
+ //#region Helper mixins
78
+ @mixin iui-calendar-day-base {
80
79
  @include iui-focus;
81
80
  cursor: pointer;
82
- display: inline-block;
83
- width: $iui-baseline * 3;
84
- line-height: $iui-baseline * 3;
81
+ text-align: center;
82
+ width: $iui-date-picker-cell-width;
83
+ height: $iui-date-picker-cell-height;
85
84
  border-radius: $iui-border-radius;
85
+ font-variant-numeric: tabular-nums;
86
+ }
86
87
 
87
- &.iui-today {
88
+ @mixin iui-calendar-day-base-hover {
89
+ &:hover {
88
90
  font-weight: $iui-font-weight-semibold;
89
- border-radius: 50%;
90
91
  @include themed {
91
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
92
+ color: t(iui-color-foreground-primary);
93
+ background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
94
+ }
95
+ }
96
+ }
97
+
98
+ @mixin iui-calendar-day-today-base {
99
+ position: relative;
100
+ font-weight: $iui-font-weight-semibold;
101
+
102
+ &::before {
103
+ content: '';
104
+ position: absolute;
105
+ display: block;
106
+ width: $iui-date-picker-today-circle-size;
107
+ height: $iui-date-picker-today-circle-size;
108
+ border-radius: $iui-border-radius-round;
109
+ box-sizing: border-box;
110
+ top: 50%;
111
+ left: 50%;
112
+ transform: translate(-50%, -50%);
113
+ @include themed {
114
+ border: 2px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
92
115
  }
93
116
  }
94
117
 
95
118
  &:hover {
96
- font-weight: $iui-font-weight-semibold;
119
+ background-color: initial;
97
120
  @include themed {
98
121
  color: t(iui-color-foreground-primary);
122
+ }
123
+ }
124
+
125
+ &:hover::before {
126
+ @include themed {
99
127
  background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
100
128
  }
101
129
  }
130
+ }
102
131
 
103
- &.iui-selected {
104
- font-weight: $iui-font-weight-semibold;
105
- border-radius: $iui-border-radius;
106
- cursor: default;
132
+ @mixin iui-calendar-day-selected-base {
133
+ font-weight: $iui-font-weight-semibold;
134
+ @include themed {
135
+ background-color: t(iui-color-background-primary);
136
+ color: t(iui-color-foreground-accessory);
137
+ }
138
+ @include iui-focus($color: var(--iui-color-foreground-accessory), $offset: -3px);
139
+ }
140
+
141
+ @mixin iui-calendar-day-selected-today-base {
142
+ &:hover {
107
143
  @include themed {
108
144
  background-color: t(iui-color-background-primary);
109
145
  color: t(iui-color-foreground-accessory);
110
146
  }
111
- @include iui-focus($color: var(--iui-color-foreground-accessory), $offset: -3px);
147
+
148
+ &::before {
149
+ @include themed {
150
+ background-color: initial;
151
+ }
152
+ }
153
+ }
154
+
155
+ &::before {
156
+ @include themed {
157
+ border-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
158
+ }
159
+ }
160
+ }
161
+ //#endregion Helper mixins
162
+
163
+ @mixin iui-calendar-day {
164
+ &,
165
+ &-today {
166
+ @include iui-calendar-day-base;
167
+ @include iui-calendar-day-base-hover;
168
+ }
169
+
170
+ &-today {
171
+ @include iui-calendar-day-today-base;
172
+ }
173
+ }
174
+
175
+ @mixin iui-calendar-day-selected {
176
+ &,
177
+ &-today {
178
+ @include iui-calendar-day-base;
179
+ @include iui-calendar-day-selected-base;
180
+ cursor: default;
181
+ }
182
+
183
+ &-today {
184
+ @include iui-calendar-day-today-base;
185
+ @include iui-calendar-day-selected-today-base;
186
+ }
187
+ }
188
+
189
+ @mixin iui-calendar-day-range-start {
190
+ &,
191
+ &-today {
192
+ @include iui-calendar-day-base;
193
+ @include iui-calendar-day-selected-base;
194
+
195
+ border-top-right-radius: 0;
196
+ border-bottom-right-radius: 0;
197
+ cursor: pointer;
198
+ }
199
+
200
+ &-today {
201
+ @include iui-calendar-day-today-base;
202
+ @include iui-calendar-day-selected-today-base;
203
+ }
204
+ }
205
+
206
+ @mixin iui-calendar-day-range-end {
207
+ &,
208
+ &-today {
209
+ @include iui-calendar-day-base;
210
+ @include iui-calendar-day-selected-base;
211
+
212
+ border-top-left-radius: 0;
213
+ border-bottom-left-radius: 0;
214
+ }
215
+
216
+ &-today {
217
+ @include iui-calendar-day-today-base;
218
+ @include iui-calendar-day-selected-today-base;
219
+ }
220
+ }
221
+
222
+ @mixin iui-calendar-day-range {
223
+ &,
224
+ &-today {
225
+ @include iui-calendar-day-base;
226
+
227
+ border-radius: 0;
228
+ @include themed {
229
+ background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-5));
230
+ color: t(iui-text-color);
231
+ }
232
+
233
+ &:hover {
234
+ font-weight: $iui-font-weight-semibold;
235
+
236
+ @include themed {
237
+ background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-4));
238
+ }
239
+ }
112
240
  }
113
241
 
114
- &.iui-outside-month {
242
+ &-today {
243
+ @include iui-calendar-day-today-base;
244
+
245
+ &:hover {
246
+ @include themed {
247
+ background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-5));
248
+ color: t(iui-text-color);
249
+ }
250
+
251
+ &::before {
252
+ @include themed {
253
+ background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-4));
254
+ }
255
+ }
256
+ }
257
+
258
+ &::before {
259
+ @include themed {
260
+ border-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-4));
261
+ }
262
+ }
263
+ }
264
+ }
265
+
266
+ @mixin iui-calendar-day-outside-month {
267
+ &,
268
+ &-today {
269
+ @include iui-calendar-day-base;
270
+ @include iui-calendar-day-base-hover;
271
+
115
272
  @include themed {
116
273
  color: t(iui-text-color-muted);
117
274
  }
118
275
  }
276
+
277
+ &-today {
278
+ @include iui-calendar-day-today-base;
279
+ }
119
280
  }
@@ -8,7 +8,7 @@
8
8
  padding: $iui-baseline $iui-sm;
9
9
  border-radius: $iui-border-radius;
10
10
  @include themed {
11
- border: 1px solid t(iui-color-background-4);
11
+ border: 1px solid t(iui-color-background-border);
12
12
  background-color: t(iui-color-background-1);
13
13
  }
14
14
 
@@ -21,7 +21,7 @@
21
21
  }
22
22
  @include themed {
23
23
  background-color: t(iui-color-background-1);
24
- border-bottom: $iui-xxs solid t(iui-color-background-5);
24
+ border-bottom: $iui-xxs solid t(iui-color-background-border);
25
25
  color: t(iui-text-color);
26
26
  }
27
27
 
@@ -83,7 +83,7 @@
83
83
  width: 1px;
84
84
  height: $iui-baseline * 2;
85
85
  @include themed {
86
- background-color: t(iui-color-background-4);
86
+ background-color: t(iui-color-background-border);
87
87
  }
88
88
  }
89
89
 
@@ -252,15 +252,16 @@
252
252
  overflow: hidden;
253
253
  text-overflow: ellipsis;
254
254
  }
255
+ }
255
256
 
256
- .iui-description {
257
- height: $iui-baseline * 2;
258
- @media (prefers-reduced-motion: no-preference) {
259
- transition: all $iui-speed-fast ease;
260
- }
261
- @include themed {
262
- opacity: t(iui-opacity-3);
263
- }
257
+ .iui-description {
258
+ height: $iui-baseline * 2;
259
+ font-size: $iui-font-size-small;
260
+ @media (prefers-reduced-motion: no-preference) {
261
+ transition: all $iui-speed-fast ease;
262
+ }
263
+ @include themed {
264
+ opacity: t(iui-opacity-3);
264
265
  }
265
266
  }
266
267
 
@@ -378,6 +379,10 @@
378
379
  }
379
380
  }
380
381
 
382
+ .iui-description {
383
+ opacity: 1;
384
+ }
385
+
381
386
  &,
382
387
  &:hover {
383
388
  // Blue background and darker blue bottom line
package/scss/index.scss CHANGED
@@ -40,3 +40,4 @@
40
40
  @import './user-icon/index';
41
41
  @import './wizard/index';
42
42
  @import './skip-to-content/index';
43
+ @import './surface/index';