-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path_buttons.scss
66 lines (53 loc) · 1.43 KB
/
_buttons.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// # Buttons
// Defines syling for buttons
// *******************************************************
// ## Variables
// *******************************************************
// Styling for buttons
$button-map : (
padding: $spacing-unit $spacing-unit/2,
background: $color-gray-light,
color: $color-gray-dark
) !default;
// Styling for buttons on hover
$button-hover-map : ( color: $color-gray-darker ) !default;
// *******************************************************
// ## Wrapper for multiple buttons
// *******************************************************
.buttons
{
&:before,
&:after
{
content: " ";
display: table;
}
&:after
{
clear: both;
}
}
// *******************************************************
// ## Single button
// *******************************************************
.button
{
border: 0;
background-color: transparent;
width: 100%;
text-align: center;
float: left;
line-height: $line-height-base;
@include print( $button-map );
}
.button:hover
{
@include print( $button-hover-map );
}
.button:focus,
.button:hover
{
outline: none;
}
.button.size-2 { width: 50%; }
.button.size-3 { width: 33%; }