1
- $button-border-radius : 3px !default ;
1
+ // Material Design Button
2
+ // https://material.google.com/components/buttons.html
3
+
4
+ $button-border-radius : 2px !default ;
2
5
$button-fab-border-radius : 50% !default ;
3
6
$button-icon-border-radius : $button-fab-border-radius !default ;
4
7
8
+ $button-font-size : $body-font-size-base !default ;
9
+ $button-font-size-dense : $body-font-size-base * 13 / 14 !default ;
10
+
5
11
$button-line-height : rem (3.60 ) !default ;
12
+ $button-line-height-dense : rem (3.20 ) !default ;
6
13
$button-margin : rem (0.600 ) rem (0.800 ) !default ;
7
14
$button-min-width : rem (8.800 ) !default ;
8
15
$button-padding : 0 $button-left-right-padding !default ;
@@ -31,9 +38,9 @@ button.md-button::-moz-focus-inner {
31
38
cursor : pointer ;
32
39
33
40
/* * Alignment adjustments */
34
- min-height : $button-line-height ;
41
+ @include dense ( min-height , $button-line-height , $button-line-height-dense ) ;
35
42
min-width : $button-min-width ;
36
- line-height : $button-line-height ;
43
+ @include dense ( line-height , $button-line-height , $button-line-height-dense ) ;
37
44
38
45
vertical-align : middle ;
39
46
align-items : center ;
@@ -58,7 +65,7 @@ button.md-button::-moz-focus-inner {
58
65
/* Uppercase text content */
59
66
text-transform : uppercase ;
60
67
font-weight : 500 ;
61
- font-size : $body -font-size-base ;
68
+ @include dense ( font-size , $button -font-size, $button-font-size-dense ) ;
62
69
font-style : inherit ;
63
70
font-variant : inherit ;
64
71
font-family : inherit ;
0 commit comments