@carbon/ibm-products-styles 2.56.0 → 2.57.0-rc.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.
- package/css/index-full-carbon.css +113 -497
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +64 -492
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +93 -492
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +93 -510
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/package.json +3 -3
- package/scss/components/NotificationsPanel/_notifications-panel.scss +33 -20
- package/scss/components/ScrollGradient/_scroll-gradient.scss +30 -0
- package/scss/components/UserAvatar/_user-avatar.scss +2 -6
- package/scss/components/WebTerminal/_web-terminal.scss +13 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2020,
|
|
2
|
+
// Copyright IBM Corp. 2020, 2025
|
|
3
3
|
//
|
|
4
4
|
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
// Standard imports.
|
|
9
9
|
@use '@carbon/styles/scss/theme' as *;
|
|
10
|
-
@use '@carbon/styles/scss/themes' as *;
|
|
11
10
|
@use '@carbon/styles/scss/spacing' as *;
|
|
12
11
|
@use '@carbon/styles/scss/motion' as *;
|
|
13
12
|
@use '@carbon/styles/scss/type';
|
|
@@ -20,11 +19,13 @@
|
|
|
20
19
|
@use '../EmptyStates/empty-state';
|
|
21
20
|
|
|
22
21
|
$block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
|
|
22
|
+
$block-size: 38.5rem;
|
|
23
|
+
|
|
23
24
|
@keyframes fade-in {
|
|
24
25
|
0% {
|
|
25
26
|
opacity: 0;
|
|
26
27
|
// stylelint-disable-next-line carbon/layout-use
|
|
27
|
-
transform: translateY(-
|
|
28
|
+
transform: translateY(-$block-size); // the height of the notification panel
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
100% {
|
|
@@ -42,23 +43,37 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
|
|
|
42
43
|
100% {
|
|
43
44
|
opacity: 0;
|
|
44
45
|
// stylelint-disable-next-line carbon/layout-use
|
|
45
|
-
transform: translateY(-
|
|
46
|
+
transform: translateY(-$block-size); // the height of the notification panel
|
|
46
47
|
}
|
|
47
48
|
}
|
|
49
|
+
.#{$block-class}__entrance {
|
|
50
|
+
animation: fade-in $duration-moderate-02 motion(standard);
|
|
51
|
+
}
|
|
48
52
|
|
|
49
|
-
.#{$block-class}
|
|
50
|
-
|
|
53
|
+
.#{$block-class}__exit {
|
|
54
|
+
animation: fade-out forwards $duration-moderate-02 motion(standard);
|
|
55
|
+
}
|
|
51
56
|
|
|
57
|
+
.#{$block-class} {
|
|
58
|
+
@media (prefers-reduced-motion) {
|
|
59
|
+
animation: none;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.#{$block-class}__container {
|
|
52
64
|
position: fixed;
|
|
53
65
|
z-index: 2;
|
|
54
66
|
overflow: auto;
|
|
55
|
-
background-color: $
|
|
67
|
+
background-color: $layer-01;
|
|
68
|
+
border-block-end: 1px solid $border-subtle-02;
|
|
69
|
+
border-inline-start: 1px solid $border-subtle-02;
|
|
70
|
+
box-shadow: 0 $spacing-01 $spacing-02 $overlay;
|
|
56
71
|
color: $text-primary;
|
|
57
72
|
inset-block-start: $spacing-09;
|
|
58
73
|
inset-inline-end: 0;
|
|
59
|
-
max-block-size:
|
|
74
|
+
max-block-size: $block-size;
|
|
60
75
|
max-inline-size: 22.75rem;
|
|
61
|
-
min-block-size:
|
|
76
|
+
min-block-size: $block-size;
|
|
62
77
|
min-inline-size: 20rem;
|
|
63
78
|
transition: transform $duration-fast-02 motion(standard);
|
|
64
79
|
|
|
@@ -66,8 +81,8 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
|
|
|
66
81
|
position: sticky;
|
|
67
82
|
z-index: 2;
|
|
68
83
|
padding: $spacing-03 $spacing-05 $spacing-05;
|
|
69
|
-
background-color: $
|
|
70
|
-
border-block-end: 1px solid $
|
|
84
|
+
background-color: $layer-01;
|
|
85
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
71
86
|
inset-block-start: 0;
|
|
72
87
|
.#{$block-class}__header-flex {
|
|
73
88
|
display: flex;
|
|
@@ -119,19 +134,19 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
|
|
|
119
134
|
align-items: flex-start;
|
|
120
135
|
padding: $spacing-05;
|
|
121
136
|
border: 0;
|
|
122
|
-
background-color: $
|
|
137
|
+
background-color: $layer-01;
|
|
123
138
|
cursor: pointer;
|
|
124
139
|
inline-size: 100%;
|
|
125
140
|
min-block-size: 6.25rem;
|
|
126
141
|
text-align: start;
|
|
127
142
|
transition: background-color $duration-moderate-02 motion(standard);
|
|
128
143
|
.#{$block-class}__notification-title {
|
|
129
|
-
color: $text-
|
|
144
|
+
color: $text-secondary;
|
|
130
145
|
margin-block-end: $spacing-02;
|
|
131
146
|
@include font-weight('regular');
|
|
132
147
|
}
|
|
133
148
|
.#{$block-class}__notification-title.#{$block-class}__notification-title-unread {
|
|
134
|
-
color: $text-
|
|
149
|
+
color: $text-secondary;
|
|
135
150
|
margin-block-end: $spacing-02;
|
|
136
151
|
@include font-weight('semibold');
|
|
137
152
|
}
|
|
@@ -235,7 +250,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
|
|
|
235
250
|
.#{$block-class}__notification-previous:not(:first-of-type):before {
|
|
236
251
|
position: absolute;
|
|
237
252
|
margin: 0 auto;
|
|
238
|
-
background-color: $
|
|
253
|
+
background-color: $border-subtle-01;
|
|
239
254
|
block-size: 1px;
|
|
240
255
|
content: '';
|
|
241
256
|
inline-size: calc(100% - (2 * #{$spacing-05}));
|
|
@@ -269,18 +284,16 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
|
|
|
269
284
|
z-index: 2;
|
|
270
285
|
display: flex;
|
|
271
286
|
align-items: center;
|
|
272
|
-
background-color: $
|
|
287
|
+
background-color: $layer-01;
|
|
273
288
|
block-size: 2.5rem;
|
|
274
|
-
border-block-start: 1px solid $
|
|
289
|
+
border-block-start: 1px solid $border-subtle-01;
|
|
275
290
|
inset-block-end: 0;
|
|
276
291
|
min-block-size: 2.5rem;
|
|
277
292
|
.#{$block-class}__view-all-button {
|
|
278
293
|
display: flex;
|
|
279
|
-
width: 100%;
|
|
280
|
-
max-width: calc(100% - 2.5rem);
|
|
281
294
|
align-items: center;
|
|
282
295
|
block-size: 2.5rem;
|
|
283
|
-
border-inline-end: 1px solid $
|
|
296
|
+
border-inline-end: 1px solid $border-subtle-01;
|
|
284
297
|
color: $text-primary;
|
|
285
298
|
inline-size: 100%;
|
|
286
299
|
max-inline-size: calc(100% - 2.5rem);
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
@use '@carbon/styles/scss/spacing' as *;
|
|
13
13
|
|
|
14
14
|
$block-class: #{c4p-settings.$pkg-prefix}--scroll-gradient;
|
|
15
|
+
$intersection-value: 3rem;
|
|
15
16
|
|
|
16
17
|
.#{$block-class} {
|
|
17
18
|
position: relative;
|
|
@@ -22,15 +23,23 @@ $block-class: #{c4p-settings.$pkg-prefix}--scroll-gradient;
|
|
|
22
23
|
inline-size: inherit;
|
|
23
24
|
}
|
|
24
25
|
.#{$block-class}__content {
|
|
26
|
+
display: grid;
|
|
25
27
|
overflow: auto;
|
|
26
28
|
block-size: inherit;
|
|
29
|
+
grid-template-columns: 1fr;
|
|
27
30
|
inline-size: 100%;
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
.#{$block-class}__content-children {
|
|
31
34
|
block-size: 100%;
|
|
35
|
+
grid-column-start: 1;
|
|
36
|
+
grid-row-start: 1;
|
|
32
37
|
inline-size: 100%;
|
|
33
38
|
}
|
|
39
|
+
|
|
40
|
+
.#{$block-class}__content-children > * {
|
|
41
|
+
grid-area: 1 / 1;
|
|
42
|
+
}
|
|
34
43
|
// All gradients
|
|
35
44
|
.#{$block-class}__start-vertical,
|
|
36
45
|
.#{$block-class}__start-horizontal,
|
|
@@ -100,3 +109,24 @@ $block-class: #{c4p-settings.$pkg-prefix}--scroll-gradient;
|
|
|
100
109
|
.#{$block-class}__end-horizontal {
|
|
101
110
|
display: block;
|
|
102
111
|
}
|
|
112
|
+
|
|
113
|
+
.#{$block-class} [data-start-vertical],
|
|
114
|
+
.#{$block-class} [data-end-vertical] {
|
|
115
|
+
block-size: $intersection-value;
|
|
116
|
+
grid-column-start: 1;
|
|
117
|
+
grid-row-start: 1;
|
|
118
|
+
inline-size: 100%;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.#{$block-class} [data-end-vertical],
|
|
122
|
+
.#{$block-class} [data-end-horizontal] {
|
|
123
|
+
place-self: flex-end;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.#{$block-class} [data-start-horizontal],
|
|
127
|
+
.#{$block-class} [data-end-horizontal] {
|
|
128
|
+
block-size: 100%;
|
|
129
|
+
grid-column-start: 1;
|
|
130
|
+
grid-row-start: 1;
|
|
131
|
+
inline-size: $intersection-value;
|
|
132
|
+
}
|
|
@@ -72,9 +72,7 @@ $sizes: (
|
|
|
72
72
|
@mixin setLightBg($order, $color) {
|
|
73
73
|
:root .#{$block-class}--#{$order},
|
|
74
74
|
.#{$carbon-prefix}--g10 .#{$block-class}--#{$order},
|
|
75
|
-
.#{$carbon-prefix}--white .#{$block-class}--#{$order}
|
|
76
|
-
[storybook-carbon-theme='g10'] .#{$block-class}--#{$order},
|
|
77
|
-
[storybook-carbon-theme='white'] .#{$block-class}--#{$order} {
|
|
75
|
+
.#{$carbon-prefix}--white .#{$block-class}--#{$order} {
|
|
78
76
|
@include setBgColor($color);
|
|
79
77
|
}
|
|
80
78
|
}
|
|
@@ -82,9 +80,7 @@ $sizes: (
|
|
|
82
80
|
//this mixin allows you to set background color based on the darker themes such as g90 and g100
|
|
83
81
|
@mixin setDarkBg($order, $color) {
|
|
84
82
|
.#{$carbon-prefix}--g90 .#{$block-class}--#{$order},
|
|
85
|
-
.#{$carbon-prefix}--g100 .#{$block-class}--#{$order}
|
|
86
|
-
[storybook-carbon-theme='g90'] .#{$block-class}--#{$order},
|
|
87
|
-
[storybook-carbon-theme='g100'] .#{$block-class}--#{$order} {
|
|
83
|
+
.#{$carbon-prefix}--g100 .#{$block-class}--#{$order} {
|
|
88
84
|
@include setBgColor($color);
|
|
89
85
|
}
|
|
90
86
|
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
// Standard imports.
|
|
9
9
|
@use '@carbon/styles/scss/colors' as *;
|
|
10
10
|
@use '@carbon/styles/scss/spacing' as *;
|
|
11
|
+
@use '@carbon/styles/scss/motion' as *;
|
|
11
12
|
@use '@carbon/styles/scss/themes' as *;
|
|
12
13
|
@use '@carbon/styles/scss/theme' as *;
|
|
13
14
|
@use '../../global/styles/project-settings' as *;
|
|
@@ -47,6 +48,14 @@ $block-class: #{$pkg-prefix}--web-terminal;
|
|
|
47
48
|
despite of which carbon theme the user has.
|
|
48
49
|
*/
|
|
49
50
|
|
|
51
|
+
.#{$block-class}--open {
|
|
52
|
+
animation: web-terminal-entrance $duration-moderate-02 motion(standard);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.#{$block-class}--closed {
|
|
56
|
+
animation: web-terminal-exit forwards $duration-moderate-02 motion(standard);
|
|
57
|
+
}
|
|
58
|
+
|
|
50
59
|
.#{$block-class} {
|
|
51
60
|
@include theme($g90);
|
|
52
61
|
|
|
@@ -58,7 +67,10 @@ $block-class: #{$pkg-prefix}--web-terminal;
|
|
|
58
67
|
inset-block-start: $spacing-09;
|
|
59
68
|
inset-inline-end: 0;
|
|
60
69
|
max-inline-size: $web-terminal-width;
|
|
61
|
-
|
|
70
|
+
|
|
71
|
+
@media (prefers-reduced-motion) {
|
|
72
|
+
animation: none;
|
|
73
|
+
}
|
|
62
74
|
}
|
|
63
75
|
|
|
64
76
|
.#{$block-class}__bar {
|