11/* ## Button
22---------------------------------*/
3- $btn-border-radius : $component -border-radius-md !default ;
4- $btn-border-width : $component -border-width !default ;
3+ $btn-border-radius : $shape -border-radius-md !default ;
4+ $btn-border-width : $shape -border-width !default ;
55$btn-line-height : $line-height-normal !default ;
6- $btn-font-size-sm : $text-size-sm !default ;
7- $btn-font-size-md : $text-size-md !default ;
8- $btn-font-size-lg : $text-size-lg !default ;
6+
97$btn-padding-sm : $spacing-squish-xs !default ;
8+ $btn-font-size-sm : $text-size-sm !default ;
9+ $btn-line-height-sm : round-line-height ($btn-font-size-sm , $btn-line-height ) !default ;
10+
1011$btn-padding-md : $spacing-squish-sm !default ;
12+ $btn-font-size-md : $text-size-md !default ;
13+ $btn-line-height-md : round-line-height ($btn-font-size-md , $btn-line-height ) !default ;
14+
1115$btn-padding-lg : $spacing-squish-md !default ;
12- $btn-height-computed : $btn-font-size-md * $btn-line-height + 2 * nth ($btn-padding-md , 1 ) + 2 * $btn-border-width ;
16+ $btn-font-size-lg : $text-size-lg !default ;
17+ $btn-line-height-lg : round-line-height ($btn-font-size-lg , $btn-line-height ) !default ;
18+
19+ $btn-height-computed : $btn-font-size-md * $btn-line-height-md + 2 * nth ($btn-padding-md , 1 ) + 2 * $btn-border-width ;
1320
1421.btn {
1522 cursor : pointer ;
@@ -18,11 +25,11 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
1825 vertical-align : middle ;
1926 padding : $btn-padding-md ;
2027 font-size : $btn-font-size-md ;
21- line-height : $line-height-normal ;
28+ line-height : $btn- line-height-md ;
2229 height : $btn-height-computed ;
2330 min-width : $btn-height-computed ;
24- border-width : $btn-border-width ;
2531 border-style : solid ;
32+ border-width : $btn-border-width ;
2633 border-radius : $btn-border-radius ;
2734 white-space : nowrap ;
2835 text-overflow : ellipsis ;
@@ -53,7 +60,7 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
5360 }
5461
5562 @include btn-variant (
56- $background : $component -bg ,
63+ $background : $shape -bg ,
5764 $border : $grey-thin ,
5865 $color : $grey-dark ,
5966 $hover-background : $grey-light ,
@@ -72,6 +79,7 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
7279
7380}
7481
82+ // variant modifiers
7583.btn.btn--link {
7684 text-decoration : underline ;
7785 @include btn-variant (
@@ -136,10 +144,12 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
136144 }
137145}
138146
147+ // size modifiers
139148.btn.btn--sm {
140- $btn-height-computed : $btn-font-size-sm * $btn-line-height + 2 * nth ($btn-padding-sm , 1 ) + 2 * $btn-border-width ;
149+ $btn-height-computed : $btn-font-size-sm * $btn-line-height-sm + 2 * nth ($btn-padding-sm , 1 ) + 2 * $btn-border-width ;
141150
142151 font-size : $btn-font-size-sm ;
152+ line-height : $btn-line-height-sm ;
143153 border-radius : $btn-border-radius ;
144154 padding : $btn-padding-sm ;
145155 height : $btn-height-computed ;
@@ -151,9 +161,10 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
151161}
152162
153163.btn.btn--lg {
154- $btn-height-computed : $btn-font-size-lg * $btn-line-height + 2 * nth ($btn-padding-lg , 1 ) + 2 * $btn-border-width ;
164+ $btn-height-computed : $btn-font-size-lg * $btn-line-height-sm + 2 * nth ($btn-padding-lg , 1 ) + 2 * $btn-border-width ;
155165
156166 font-size : $btn-font-size-lg ;
167+ line-height : $btn-line-height-lg ;
157168 border-radius : $btn-border-radius ;
158169 padding : $btn-padding-lg ;
159170 height : $btn-height-computed ;
@@ -174,8 +185,7 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
174185 width : 100% ;
175186}
176187
177- /* ## Button Group
178- ---------------------------------*/
188+ // containers
179189.btn-group {
180190 display : inline-flex ;
181191
@@ -205,6 +215,7 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
205215 }
206216}
207217
218+ // animation
208219@keyframes spin-around {
209220 from {
210221 transform : rotate (0deg );
0 commit comments