File tree Expand file tree Collapse file tree 2 files changed +26
-7
lines changed
packages/clay-css/src/scss Expand file tree Collapse file tree 2 files changed +26
-7
lines changed Original file line number Diff line number Diff line change 85
85
}
86
86
87
87
.progress-group-addon {
88
- font-size : $progress-group-addon-font-size ;
89
- font-weight : $progress-group-addon-font-weight ;
90
- margin-right : $progress-group-addon-spacer-x ;
91
- text-align : center ;
88
+ @include clay-css ($progress-group-addon );
92
89
93
90
& :first-child {
94
- padding-left : 0 ;
91
+ $first-child : setter (map-get ($progress-group-addon , first-child ), ());
92
+
93
+ @include clay-css ($first-child );
95
94
}
96
95
97
96
& :last-child {
98
- padding-right : 0 ;
97
+ $last-child : setter (map-get ($progress-group-addon , last-child ), ());
98
+
99
+ @include clay-css ($last-child );
99
100
}
100
101
}
101
102
Original file line number Diff line number Diff line change @@ -23,7 +23,25 @@ $progress-group-subtitle: () !default;
23
23
24
24
$progress-group-addon-font-size : null !default ;
25
25
$progress-group-addon-font-weight : null !default ;
26
- $progress-group-addon-spacer-x : 1rem !default ;
26
+ $progress-group-addon-spacer-x : 0.25rem !default ;
27
+
28
+ $progress-group-addon : () !default ;
29
+ $progress-group-addon : map-deep-merge (
30
+ (
31
+ font-size : $progress-group-addon-font-size ,
32
+ font-weight : $progress-group-addon-font-weight ,
33
+ margin-right : $progress-group-addon-spacer-x ,
34
+ min-width : 2rem ,
35
+ text-align : center ,
36
+ first- child: (
37
+ padding-left : 0 ,
38
+ ),
39
+ last- child: (
40
+ padding-right : 0 ,
41
+ ),
42
+ ),
43
+ $progress-group-addon
44
+ );
27
45
28
46
$progress-group-stacked-progress-margin-bottom : 0.25rem !default ;
29
47
$progress-group-stacked-progress-margin-top : 0.25rem !default ;
You can’t perform that action at this time.
0 commit comments