@carbon/styles 1.41.0-rc.0 → 1.41.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.
- package/css/styles.css +311 -3
- package/css/styles.min.css +1 -1
- package/package.json +8 -8
- package/scss/__tests__/theme-test.js +9 -0
- package/scss/components/_index.scss +1 -0
- package/scss/components/slider/_slider.scss +1 -1
- package/scss/components/slug/_index.scss +4 -0
- package/scss/components/slug/_slug.scss +346 -0
- package/scss/components/ui-shell/side-nav/_side-nav.scss +1 -1
package/css/styles.css
CHANGED
|
@@ -2838,6 +2838,13 @@ em {
|
|
|
2838
2838
|
--cds-shadow: rgba(0, 0, 0, 0.3);
|
|
2839
2839
|
--cds-skeleton-background: #e8e8e8;
|
|
2840
2840
|
--cds-skeleton-element: #c6c6c6;
|
|
2841
|
+
--cds-slug-background: #525252;
|
|
2842
|
+
--cds-slug-background-hover: #6f6f6f;
|
|
2843
|
+
--cds-slug-callout-aura-end: rgba(255, 255, 255, 0);
|
|
2844
|
+
--cds-slug-callout-aura-start: rgba(237, 245, 255, 0.6);
|
|
2845
|
+
--cds-slug-callout-gradient-bottom: rgba(224, 224, 224, 0.85);
|
|
2846
|
+
--cds-slug-callout-gradient-top: rgba(244, 244, 244, 0.85);
|
|
2847
|
+
--cds-slug-hollow-hover: #474747;
|
|
2841
2848
|
--cds-support-caution-major: #ff832b;
|
|
2842
2849
|
--cds-support-caution-minor: #f1c21b;
|
|
2843
2850
|
--cds-support-caution-undefined: #8a3ffc;
|
|
@@ -3012,6 +3019,13 @@ em {
|
|
|
3012
3019
|
--cds-shadow: rgba(0, 0, 0, 0.3);
|
|
3013
3020
|
--cds-skeleton-background: #e8e8e8;
|
|
3014
3021
|
--cds-skeleton-element: #c6c6c6;
|
|
3022
|
+
--cds-slug-background: #525252;
|
|
3023
|
+
--cds-slug-background-hover: #6f6f6f;
|
|
3024
|
+
--cds-slug-callout-aura-end: rgba(255, 255, 255, 0);
|
|
3025
|
+
--cds-slug-callout-aura-start: rgba(237, 245, 255, 0.6);
|
|
3026
|
+
--cds-slug-callout-gradient-bottom: rgba(224, 224, 224, 0.85);
|
|
3027
|
+
--cds-slug-callout-gradient-top: rgba(244, 244, 244, 0.85);
|
|
3028
|
+
--cds-slug-hollow-hover: #474747;
|
|
3015
3029
|
--cds-support-caution-major: #ff832b;
|
|
3016
3030
|
--cds-support-caution-minor: #f1c21b;
|
|
3017
3031
|
--cds-support-caution-undefined: #8a3ffc;
|
|
@@ -3186,6 +3200,13 @@ em {
|
|
|
3186
3200
|
--cds-shadow: rgba(0, 0, 0, 0.8);
|
|
3187
3201
|
--cds-skeleton-background: #333333;
|
|
3188
3202
|
--cds-skeleton-element: #525252;
|
|
3203
|
+
--cds-slug-background: #c6c6c6;
|
|
3204
|
+
--cds-slug-background-hover: #e0e0e0;
|
|
3205
|
+
--cds-slug-callout-aura-end: rgba(22, 22, 22, 0);
|
|
3206
|
+
--cds-slug-callout-aura-start: rgba(208, 226, 255, 0.2);
|
|
3207
|
+
--cds-slug-callout-gradient-bottom: rgba(38, 38, 38, 0.85);
|
|
3208
|
+
--cds-slug-callout-gradient-top: rgba(22, 22, 22, 0.85);
|
|
3209
|
+
--cds-slug-hollow-hover: #b5b5b5;
|
|
3189
3210
|
--cds-support-caution-major: #ff832b;
|
|
3190
3211
|
--cds-support-caution-minor: #f1c21b;
|
|
3191
3212
|
--cds-support-caution-undefined: #a56eff;
|
|
@@ -3359,6 +3380,13 @@ em {
|
|
|
3359
3380
|
--cds-shadow: rgba(0, 0, 0, 0.8);
|
|
3360
3381
|
--cds-skeleton-background: #292929;
|
|
3361
3382
|
--cds-skeleton-element: #393939;
|
|
3383
|
+
--cds-slug-background: #c6c6c6;
|
|
3384
|
+
--cds-slug-background-hover: #e0e0e0;
|
|
3385
|
+
--cds-slug-callout-aura-end: rgba(22, 22, 22, 0);
|
|
3386
|
+
--cds-slug-callout-aura-start: rgba(208, 226, 255, 0.2);
|
|
3387
|
+
--cds-slug-callout-gradient-bottom: rgba(38, 38, 38, 0.85);
|
|
3388
|
+
--cds-slug-callout-gradient-top: rgba(22, 22, 22, 0.85);
|
|
3389
|
+
--cds-slug-hollow-hover: #b5b5b5;
|
|
3362
3390
|
--cds-support-caution-major: #ff832b;
|
|
3363
3391
|
--cds-support-caution-minor: #f1c21b;
|
|
3364
3392
|
--cds-support-caution-undefined: #a56eff;
|
|
@@ -19492,7 +19520,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19492
19520
|
min-inline-size: 12.5rem;
|
|
19493
19521
|
}
|
|
19494
19522
|
.cds--slider-container--two-handles .cds--slider {
|
|
19495
|
-
margin-inline:
|
|
19523
|
+
margin-inline: 0.25rem;
|
|
19496
19524
|
}
|
|
19497
19525
|
|
|
19498
19526
|
.cds--slider__range-label {
|
|
@@ -19845,6 +19873,286 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19845
19873
|
}
|
|
19846
19874
|
|
|
19847
19875
|
/* stylelint-enable */
|
|
19876
|
+
.cds--slug {
|
|
19877
|
+
display: flex;
|
|
19878
|
+
}
|
|
19879
|
+
|
|
19880
|
+
.cds--slug .cds--slug__button {
|
|
19881
|
+
position: relative;
|
|
19882
|
+
display: flex;
|
|
19883
|
+
align-items: center;
|
|
19884
|
+
justify-content: center;
|
|
19885
|
+
color: var(--cds-text-inverse, #ffffff);
|
|
19886
|
+
font-weight: 600;
|
|
19887
|
+
transition: color 70ms cubic-bezier(0, 0, 0.38, 0.9), border-color 70ms cubic-bezier(0, 0, 0.38, 0.9), box-shadow 70ms cubic-bezier(0, 0, 0.38, 0.9);
|
|
19888
|
+
}
|
|
19889
|
+
.cds--slug .cds--slug__button--mini {
|
|
19890
|
+
height: 1rem;
|
|
19891
|
+
width: 1rem;
|
|
19892
|
+
font-size: 0.5625rem;
|
|
19893
|
+
line-height: 0.75rem;
|
|
19894
|
+
background: var(--cds-slug-background, #525252);
|
|
19895
|
+
}
|
|
19896
|
+
.cds--slug .cds--slug__button--2xs {
|
|
19897
|
+
height: 1.25rem;
|
|
19898
|
+
width: 1.25rem;
|
|
19899
|
+
font-size: 0.75rem;
|
|
19900
|
+
line-height: 1rem;
|
|
19901
|
+
background: var(--cds-slug-background, #525252);
|
|
19902
|
+
}
|
|
19903
|
+
.cds--slug .cds--slug__button--xs {
|
|
19904
|
+
height: 1.5rem;
|
|
19905
|
+
width: 1.5rem;
|
|
19906
|
+
font-size: 0.75rem;
|
|
19907
|
+
line-height: 1rem;
|
|
19908
|
+
background: var(--cds-slug-gradient, #161616 linear-gradient(135deg, #a8a8a8 0%, rgba(255, 255, 255, 0) 100%));
|
|
19909
|
+
}
|
|
19910
|
+
.cds--slug .cds--slug__button--sm {
|
|
19911
|
+
height: 2rem;
|
|
19912
|
+
width: 2rem;
|
|
19913
|
+
font-size: 1rem;
|
|
19914
|
+
line-height: 1.3125rem;
|
|
19915
|
+
background: var(--cds-slug-gradient, #161616 linear-gradient(135deg, #a8a8a8 0%, rgba(255, 255, 255, 0) 100%));
|
|
19916
|
+
}
|
|
19917
|
+
.cds--slug .cds--slug__button--md {
|
|
19918
|
+
height: 2.5rem;
|
|
19919
|
+
width: 2.5rem;
|
|
19920
|
+
font-size: 1rem;
|
|
19921
|
+
line-height: 1.3125rem;
|
|
19922
|
+
background: var(--cds-slug-gradient, #161616 linear-gradient(135deg, #a8a8a8 0%, rgba(255, 255, 255, 0) 100%));
|
|
19923
|
+
}
|
|
19924
|
+
.cds--slug .cds--slug__button--lg {
|
|
19925
|
+
height: 3rem;
|
|
19926
|
+
width: 3rem;
|
|
19927
|
+
font-size: 1rem;
|
|
19928
|
+
line-height: 1.3125rem;
|
|
19929
|
+
background: var(--cds-slug-gradient, #161616 linear-gradient(135deg, #a8a8a8 0%, rgba(255, 255, 255, 0) 100%));
|
|
19930
|
+
}
|
|
19931
|
+
.cds--slug .cds--slug__button--xl {
|
|
19932
|
+
height: 4rem;
|
|
19933
|
+
width: 4rem;
|
|
19934
|
+
font-size: 1.25rem;
|
|
19935
|
+
line-height: 1.625rem;
|
|
19936
|
+
background: var(--cds-slug-gradient, #161616 linear-gradient(135deg, #a8a8a8 0%, rgba(255, 255, 255, 0) 100%));
|
|
19937
|
+
}
|
|
19938
|
+
|
|
19939
|
+
.cds--slug .cds--slug__button:focus {
|
|
19940
|
+
box-shadow: inset 0 0 0 2px var(--cds-focus, #0f62fe), inset 0 0 0 3px var(--cds-focus-inset, #ffffff);
|
|
19941
|
+
outline: none;
|
|
19942
|
+
}
|
|
19943
|
+
|
|
19944
|
+
.cds--slug__text {
|
|
19945
|
+
position: relative;
|
|
19946
|
+
z-index: 1;
|
|
19947
|
+
}
|
|
19948
|
+
|
|
19949
|
+
.cds--slug__button::before {
|
|
19950
|
+
position: absolute;
|
|
19951
|
+
background: var(--cds-slug-gradient-hover, #161616 linear-gradient(135deg, #d1d1d1 0%, rgba(255, 255, 255, 0) 100%));
|
|
19952
|
+
block-size: 100%;
|
|
19953
|
+
content: "";
|
|
19954
|
+
inline-size: 100%;
|
|
19955
|
+
opacity: 0;
|
|
19956
|
+
transition: opacity 70ms cubic-bezier(0, 0, 0.38, 0.9);
|
|
19957
|
+
}
|
|
19958
|
+
|
|
19959
|
+
.cds--slug__button:hover::before {
|
|
19960
|
+
opacity: 1;
|
|
19961
|
+
}
|
|
19962
|
+
|
|
19963
|
+
.cds--slug .cds--slug__button:focus::before {
|
|
19964
|
+
block-size: calc(100% - 6px);
|
|
19965
|
+
inline-size: calc(100% - 6px);
|
|
19966
|
+
}
|
|
19967
|
+
|
|
19968
|
+
.cds--slug__button.cds--slug__button--mini::before,
|
|
19969
|
+
.cds--slug__button.cds--slug__button--2xs::before {
|
|
19970
|
+
background: var(--cds-slug-background-hover, #6f6f6f);
|
|
19971
|
+
}
|
|
19972
|
+
|
|
19973
|
+
.cds--slug__button.cds--slug__button--mini:focus,
|
|
19974
|
+
.cds--slug__button.cds--slug__button--2xs:focus {
|
|
19975
|
+
box-shadow: inset 0 0 0 1px var(--cds-focus, #0f62fe), inset 0 0 0 2px var(--cds-focus-inset, #ffffff);
|
|
19976
|
+
}
|
|
19977
|
+
|
|
19978
|
+
.cds--slug__button.cds--slug__button--mini:focus::before,
|
|
19979
|
+
.cds--slug__button.cds--slug__button--2xs:focus::before {
|
|
19980
|
+
block-size: calc(100% - 4px);
|
|
19981
|
+
inline-size: calc(100% - 4px);
|
|
19982
|
+
}
|
|
19983
|
+
|
|
19984
|
+
.cds--slug__button--hollow.cds--slug__button--sm,
|
|
19985
|
+
.cds--slug__button--hollow.cds--slug__button--md,
|
|
19986
|
+
.cds--slug__button--hollow.cds--slug__button--lg,
|
|
19987
|
+
.cds--slug__button--hollow.cds--slug__button--xl {
|
|
19988
|
+
block-size: 1.5rem;
|
|
19989
|
+
font-size: 0.75rem;
|
|
19990
|
+
inline-size: 1.5rem;
|
|
19991
|
+
line-height: 1rem;
|
|
19992
|
+
}
|
|
19993
|
+
|
|
19994
|
+
.cds--slug__button--hollow::before {
|
|
19995
|
+
display: none;
|
|
19996
|
+
}
|
|
19997
|
+
|
|
19998
|
+
.cds--slug .cds--slug__button--hollow {
|
|
19999
|
+
border: 1px solid var(--cds-border-inverse, #161616);
|
|
20000
|
+
background: transparent;
|
|
20001
|
+
color: var(--cds-text-primary, #161616);
|
|
20002
|
+
}
|
|
20003
|
+
|
|
20004
|
+
.cds--slug__button--hollow:hover {
|
|
20005
|
+
border-color: var(--cds-slug-hollow-hover, #474747);
|
|
20006
|
+
color: var(--cds-slug-hollow-hover, #474747);
|
|
20007
|
+
}
|
|
20008
|
+
|
|
20009
|
+
.cds--slug__button--hollow:focus {
|
|
20010
|
+
border-color: var(--cds-focus, #0f62fe);
|
|
20011
|
+
box-shadow: inset 0 0 0 1px var(--cds-focus, #0f62fe);
|
|
20012
|
+
}
|
|
20013
|
+
|
|
20014
|
+
.cds--slug .cds--slug__button--inline {
|
|
20015
|
+
border: 1px solid transparent;
|
|
20016
|
+
border-radius: 0.0625rem;
|
|
20017
|
+
background: transparent;
|
|
20018
|
+
block-size: initial;
|
|
20019
|
+
color: var(--cds-text-primary, #161616);
|
|
20020
|
+
font-size: 0.875rem;
|
|
20021
|
+
inline-size: initial;
|
|
20022
|
+
line-height: initial;
|
|
20023
|
+
padding-inline: 0.25rem;
|
|
20024
|
+
}
|
|
20025
|
+
|
|
20026
|
+
.cds--slug__button--inline::before {
|
|
20027
|
+
display: none;
|
|
20028
|
+
}
|
|
20029
|
+
|
|
20030
|
+
.cds--slug .cds--slug__button--inline:focus {
|
|
20031
|
+
border-color: var(--cds-focus, #0f62fe);
|
|
20032
|
+
box-shadow: none;
|
|
20033
|
+
}
|
|
20034
|
+
|
|
20035
|
+
.cds--slug .cds--slug__button--inline:hover {
|
|
20036
|
+
border-color: var(--cds-icon-secondary, #525252);
|
|
20037
|
+
color: var(--cds-text-secondary, #525252);
|
|
20038
|
+
}
|
|
20039
|
+
|
|
20040
|
+
.cds--slug .cds--slug__button--inline:focus:hover {
|
|
20041
|
+
border-color: var(--cds-focus, #0f62fe);
|
|
20042
|
+
}
|
|
20043
|
+
|
|
20044
|
+
.cds--slug .cds--slug__button--inline:hover .cds--slug__text::before {
|
|
20045
|
+
background: var(--cds-icon-secondary, #525252);
|
|
20046
|
+
}
|
|
20047
|
+
|
|
20048
|
+
.cds--slug--hollow .cds--slug__button--inline:hover .cds--slug__text::before {
|
|
20049
|
+
background: transparent;
|
|
20050
|
+
box-shadow: inset 0 0 0 1px var(--cds-icon-secondary, #525252);
|
|
20051
|
+
}
|
|
20052
|
+
|
|
20053
|
+
.cds--slug__button--inline .cds--slug__text {
|
|
20054
|
+
padding-inline-start: 0.5rem;
|
|
20055
|
+
}
|
|
20056
|
+
|
|
20057
|
+
.cds--slug__button--inline.cds--slug__button--lg .cds--slug__text {
|
|
20058
|
+
padding-inline-start: 0.75rem;
|
|
20059
|
+
}
|
|
20060
|
+
|
|
20061
|
+
.cds--slug__button--inline .cds--slug__text::before {
|
|
20062
|
+
position: absolute;
|
|
20063
|
+
display: inline-block;
|
|
20064
|
+
background: var(--cds-icon-primary, #161616);
|
|
20065
|
+
block-size: 0.25rem;
|
|
20066
|
+
content: "";
|
|
20067
|
+
inline-size: 0.25rem;
|
|
20068
|
+
inset-block-start: 50%;
|
|
20069
|
+
inset-inline-start: 0;
|
|
20070
|
+
opacity: 1;
|
|
20071
|
+
transform: translateY(-50%);
|
|
20072
|
+
transition: background 70ms cubic-bezier(0, 0, 0.38, 0.9), box-shadow 70ms cubic-bezier(0, 0, 0.38, 0.9);
|
|
20073
|
+
}
|
|
20074
|
+
|
|
20075
|
+
.cds--slug--hollow .cds--slug__text::before {
|
|
20076
|
+
background: transparent;
|
|
20077
|
+
block-size: 0.375rem;
|
|
20078
|
+
box-shadow: inset 0 0 0 1px var(--cds-icon-primary, #161616);
|
|
20079
|
+
inline-size: 0.375rem;
|
|
20080
|
+
}
|
|
20081
|
+
|
|
20082
|
+
.cds--slug--hollow .cds--slug__button--sm .cds--slug__text,
|
|
20083
|
+
.cds--slug--hollow .cds--slug__button--md .cds--slug__text {
|
|
20084
|
+
padding-inline-start: 0.5625rem;
|
|
20085
|
+
}
|
|
20086
|
+
|
|
20087
|
+
.cds--slug__button--lg .cds--slug__text::before,
|
|
20088
|
+
.cds--slug--hollow .cds--slug__button--lg .cds--slug__text::before {
|
|
20089
|
+
block-size: 0.5rem;
|
|
20090
|
+
inline-size: 0.5rem;
|
|
20091
|
+
}
|
|
20092
|
+
|
|
20093
|
+
.cds--slug__button--inline.cds--slug__button--mini,
|
|
20094
|
+
.cds--slug__button--inline.cds--slug__button--mini .cds--slug__additional-text,
|
|
20095
|
+
.cds--slug__button--inline.cds--slug__button--2xs,
|
|
20096
|
+
.cds--slug__button--inline.cds--slug__button--2xs .cds--slug__additional-text,
|
|
20097
|
+
.cds--slug__button--inline.cds--slug__button--xs,
|
|
20098
|
+
.cds--slug__button--inline.cds--slug__button--xs .cds--slug__additional-text,
|
|
20099
|
+
.cds--slug__button--inline.cds--slug__button--sm,
|
|
20100
|
+
.cds--slug__button--inline.cds--slug__button--sm .cds--slug__additional-text {
|
|
20101
|
+
font-size: 0.75rem;
|
|
20102
|
+
}
|
|
20103
|
+
|
|
20104
|
+
.cds--slug__button--inline.cds--slug__button--lg,
|
|
20105
|
+
.cds--slug__button--inline.cds--slug__button--xl {
|
|
20106
|
+
font-size: 1rem;
|
|
20107
|
+
}
|
|
20108
|
+
|
|
20109
|
+
.cds--slug .cds--slug__button--inline-with-content {
|
|
20110
|
+
border: 1px solid var(--cds-border-inverse, #161616);
|
|
20111
|
+
padding-block: 0.125rem;
|
|
20112
|
+
padding-inline: 0.5rem;
|
|
20113
|
+
}
|
|
20114
|
+
|
|
20115
|
+
.cds--slug__button--inline-with-content .cds--slug__additional-text {
|
|
20116
|
+
font-size: var(--cds-body-compact-02-font-size, 1rem);
|
|
20117
|
+
font-weight: var(--cds-body-compact-02-font-weight, 400);
|
|
20118
|
+
line-height: var(--cds-body-compact-02-line-height, 1.375);
|
|
20119
|
+
letter-spacing: var(--cds-body-compact-02-letter-spacing, 0);
|
|
20120
|
+
padding-inline-start: 0.25rem;
|
|
20121
|
+
}
|
|
20122
|
+
|
|
20123
|
+
.cds--slug__button--inline.cds--slug__button--md .cds--slug__additional-text {
|
|
20124
|
+
font-size: 0.875rem;
|
|
20125
|
+
}
|
|
20126
|
+
|
|
20127
|
+
.cds--slug .cds--slug__button--inline-with-content:focus {
|
|
20128
|
+
box-shadow: inset 0 0 0 1px var(--cds-focus, #0f62fe);
|
|
20129
|
+
}
|
|
20130
|
+
|
|
20131
|
+
.cds--slug.cds--slug--hollow .cds--toggletip-content {
|
|
20132
|
+
row-gap: 0;
|
|
20133
|
+
}
|
|
20134
|
+
|
|
20135
|
+
.cds--slug.cds--slug--enabled .cds--popover-content {
|
|
20136
|
+
border: 1px solid var(--cds-border-subtle);
|
|
20137
|
+
border-radius: 16px;
|
|
20138
|
+
-webkit-backdrop-filter: blur(25px);
|
|
20139
|
+
backdrop-filter: blur(25px);
|
|
20140
|
+
background: linear-gradient(0deg, var(--cds-slug-callout-aura-start, rgba(237, 245, 255, 0.6)) 0%, var(--cds-slug-callout-aura-end, rgba(255, 255, 255, 0)) 33%, transparent 100%), linear-gradient(180deg, var(--cds-slug-callout-gradient-top, rgba(244, 244, 244, 0.85)) 0%, var(--cds-slug-callout-gradient-bottom, rgba(224, 224, 224, 0.85)) 100%) rgba(0, 0, 0, 0.01);
|
|
20141
|
+
box-shadow: -45px 45px 100px rgba(0, 0, 0, 0.2);
|
|
20142
|
+
color: var(--cds-text-primary, #161616);
|
|
20143
|
+
min-inline-size: 17.5rem;
|
|
20144
|
+
}
|
|
20145
|
+
|
|
20146
|
+
.cds--slug.cds--slug--enabled .cds--popover-caret {
|
|
20147
|
+
background: var(--cds-border-subtle);
|
|
20148
|
+
}
|
|
20149
|
+
|
|
20150
|
+
.cds--slug.cds--slug--enabled .cds--toggletip-content {
|
|
20151
|
+
padding-block-end: 5rem;
|
|
20152
|
+
padding-block-start: 2rem;
|
|
20153
|
+
padding-inline: 2rem;
|
|
20154
|
+
}
|
|
20155
|
+
|
|
19848
20156
|
.cds--stack-horizontal {
|
|
19849
20157
|
display: inline-grid;
|
|
19850
20158
|
-moz-column-gap: var(--cds-stack-gap, 0);
|
|
@@ -22273,7 +22581,7 @@ a.cds--header__menu-item.cds--header__menu-item--current:focus {
|
|
|
22273
22581
|
}
|
|
22274
22582
|
|
|
22275
22583
|
.cds--side-nav__item--large {
|
|
22276
|
-
block-size:
|
|
22584
|
+
block-size: auto;
|
|
22277
22585
|
}
|
|
22278
22586
|
|
|
22279
22587
|
.cds--side-nav__divider {
|
|
@@ -23301,7 +23609,7 @@ a.cds--header__menu-item.cds--header__menu-item--current:focus {
|
|
|
23301
23609
|
}
|
|
23302
23610
|
|
|
23303
23611
|
.cds--side-nav__item--large {
|
|
23304
|
-
block-size:
|
|
23612
|
+
block-size: auto;
|
|
23305
23613
|
}
|
|
23306
23614
|
|
|
23307
23615
|
.cds--side-nav__divider {
|