@carbon/styles 1.108.0 → 1.109.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.109.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"scss/**/*.css",
|
|
76
76
|
"css/**/*.css"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "3aa2f52f41ca1232c1023c59246ba61d06950718"
|
|
79
79
|
}
|
|
@@ -37,7 +37,7 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
37
37
|
@include component-reset.reset;
|
|
38
38
|
@include type.type-style('body-compact-01');
|
|
39
39
|
|
|
40
|
-
display: inline;
|
|
40
|
+
display: inline-flex;
|
|
41
41
|
color: $link-text-color;
|
|
42
42
|
outline: none;
|
|
43
43
|
text-decoration: none;
|
|
@@ -114,6 +114,11 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
114
114
|
@include type.type-style('body-compact-02');
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
// Paired with icon
|
|
118
|
+
.#{$prefix}--link--icon {
|
|
119
|
+
display: inline-block;
|
|
120
|
+
}
|
|
121
|
+
|
|
117
122
|
.#{$prefix}--link__icon {
|
|
118
123
|
display: inline-flex;
|
|
119
124
|
align-items: center;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2016,
|
|
2
|
+
// Copyright IBM Corp. 2016, 2026
|
|
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.
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
@use '../../spacing' as *;
|
|
17
17
|
@use '../../motion' as *;
|
|
18
18
|
@use '../../layer' as *;
|
|
19
|
+
@use '../../utilities/layout';
|
|
19
20
|
@use '../../utilities/ai-gradient' as *;
|
|
20
21
|
@use '../../utilities/box-shadow' as *;
|
|
21
22
|
@use '../../utilities/button-reset';
|
|
@@ -82,16 +83,17 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
82
83
|
|
|
83
84
|
.#{$prefix}--list-box {
|
|
84
85
|
@include reset;
|
|
86
|
+
@include layout.use('size', $default: 'md', $min: 'xs', $max: 'lg');
|
|
85
87
|
|
|
86
88
|
position: relative;
|
|
87
89
|
border: none;
|
|
88
90
|
background-color: $field;
|
|
89
|
-
block-size:
|
|
91
|
+
block-size: layout.size('height');
|
|
90
92
|
border-block-end: 1px solid $border-strong;
|
|
91
93
|
color: $text-primary;
|
|
92
94
|
cursor: pointer;
|
|
93
95
|
inline-size: $list-box-width;
|
|
94
|
-
max-block-size:
|
|
96
|
+
max-block-size: layout.size('height');
|
|
95
97
|
transition: all $duration-fast-01 motion(standard, productive);
|
|
96
98
|
|
|
97
99
|
&:hover {
|
|
@@ -103,16 +105,6 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
103
105
|
cursor: default;
|
|
104
106
|
}
|
|
105
107
|
|
|
106
|
-
.#{$prefix}--list-box--lg {
|
|
107
|
-
block-size: convert.to-rem(48px);
|
|
108
|
-
max-block-size: convert.to-rem(48px);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.#{$prefix}--list-box--sm {
|
|
112
|
-
block-size: convert.to-rem(32px);
|
|
113
|
-
max-block-size: convert.to-rem(32px);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
108
|
.#{$prefix}--list-box--expanded {
|
|
117
109
|
border-block-end-color: $border-subtle-01;
|
|
118
110
|
}
|
|
@@ -548,20 +540,8 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
548
540
|
|
|
549
541
|
.#{$prefix}--list-box--expanded .#{$prefix}--list-box__menu {
|
|
550
542
|
display: block;
|
|
551
|
-
//
|
|
552
|
-
max-block-size:
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--lg
|
|
556
|
-
.#{$prefix}--list-box__menu {
|
|
557
|
-
// 48px item height * 5.5 items shown
|
|
558
|
-
max-block-size: convert.to-rem(264px);
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--sm
|
|
562
|
-
.#{$prefix}--list-box__menu {
|
|
563
|
-
// 32px item height * 5.5 items shown
|
|
564
|
-
max-block-size: convert.to-rem(176px);
|
|
543
|
+
// item height * 5.5 items shown
|
|
544
|
+
max-block-size: calc(layout.size('height') * 5.5);
|
|
565
545
|
}
|
|
566
546
|
|
|
567
547
|
// Descendant of a `list-box__menu` that represents a selection for a control
|
|
@@ -569,7 +549,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
569
549
|
@include type-style('body-compact-01');
|
|
570
550
|
|
|
571
551
|
position: relative;
|
|
572
|
-
block-size:
|
|
552
|
+
block-size: layout.size('height');
|
|
573
553
|
color: $text-secondary;
|
|
574
554
|
cursor: pointer;
|
|
575
555
|
transition: background $duration-fast-01 motion(standard, productive);
|
|
@@ -589,14 +569,6 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
589
569
|
background-color: $layer-hover;
|
|
590
570
|
}
|
|
591
571
|
|
|
592
|
-
.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item {
|
|
593
|
-
block-size: convert.to-rem(32px);
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item {
|
|
597
|
-
block-size: convert.to-rem(48px);
|
|
598
|
-
}
|
|
599
|
-
|
|
600
572
|
.#{$prefix}--list-box--disabled .#{$prefix}--list-box__menu-item:hover {
|
|
601
573
|
background-color: transparent;
|
|
602
574
|
}
|
|
@@ -670,9 +642,9 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
670
642
|
|
|
671
643
|
display: block;
|
|
672
644
|
overflow: hidden;
|
|
673
|
-
padding:
|
|
645
|
+
padding: calc((layout.size('height') - 1rem) / 2 - 1px) 0;
|
|
674
646
|
margin: 0 $spacing-05;
|
|
675
|
-
block-size:
|
|
647
|
+
block-size: layout.size('height');
|
|
676
648
|
border-block-end: 1px solid transparent;
|
|
677
649
|
border-block-start: 1px solid transparent;
|
|
678
650
|
border-block-start-color: $border-subtle-01;
|
|
@@ -690,7 +662,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
690
662
|
&:focus {
|
|
691
663
|
@include focus-outline('outline');
|
|
692
664
|
|
|
693
|
-
padding:
|
|
665
|
+
padding: calc((layout.size('height') - 1rem) / 2) convert.to-rem(16px);
|
|
694
666
|
border-color: transparent;
|
|
695
667
|
margin: 0;
|
|
696
668
|
}
|
|
@@ -701,16 +673,6 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
701
673
|
}
|
|
702
674
|
}
|
|
703
675
|
|
|
704
|
-
.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item__option {
|
|
705
|
-
block-size: convert.to-rem(32px);
|
|
706
|
-
padding-block: convert.to-rem(7px) convert.to-rem(7px);
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item__option {
|
|
710
|
-
block-size: convert.to-rem(48px);
|
|
711
|
-
padding-block: convert.to-rem(15px) convert.to-rem(15px);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
676
|
.#{$prefix}--list-box--disabled
|
|
715
677
|
.#{$prefix}--list-box__menu-item:hover
|
|
716
678
|
.#{$prefix}--list-box__menu-item__option,
|
|
@@ -863,27 +825,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
863
825
|
|
|
864
826
|
// Dropdown top orientation modifiers
|
|
865
827
|
.#{$prefix}--list-box--up .#{$prefix}--list-box__menu {
|
|
866
|
-
inset-block-end:
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
.#{$prefix}--list-box--up.#{$prefix}--dropdown--sm
|
|
870
|
-
.#{$prefix}--list-box__menu,
|
|
871
|
-
.#{$prefix}--list-box--up.#{$prefix}--list-box--sm
|
|
872
|
-
.#{$prefix}--list-box__menu,
|
|
873
|
-
.#{$prefix}--list-box--up
|
|
874
|
-
.#{$prefix}--list-box--sm
|
|
875
|
-
.#{$prefix}--list-box__menu {
|
|
876
|
-
inset-block-end: 2rem;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
.#{$prefix}--list-box--up.#{$prefix}--dropdown--lg
|
|
880
|
-
.#{$prefix}--list-box__menu,
|
|
881
|
-
.#{$prefix}--list-box--up.#{$prefix}--list-box--lg
|
|
882
|
-
.#{$prefix}--list-box__menu,
|
|
883
|
-
.#{$prefix}--list-box--up
|
|
884
|
-
.#{$prefix}--list-box--lg
|
|
885
|
-
.#{$prefix}--list-box__menu {
|
|
886
|
-
inset-block-end: 3rem;
|
|
828
|
+
inset-block-end: layout.size('height');
|
|
887
829
|
}
|
|
888
830
|
|
|
889
831
|
// Tweaks for descendants
|