forked from sjoerdapp/styleguide2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButton.styl
More file actions
executable file
·151 lines (137 loc) · 3.13 KB
/
Copy pathButton.styl
File metadata and controls
executable file
·151 lines (137 loc) · 3.13 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
@import '../../theme/variables.styl';
// Buttons
//––––––––––––––––––––––––––––––––––––––––––––––––––
.button,
button {
display: inline-block;
color: $color-text-black;
text-align: center;
font-weight: 500;
height: 44px;
padding: 0 30px;
font-size: 12px;
line-height: 38px;
letter-spacing: .5px;
text-transform: uppercase;
text-decoration: none;
white-space: nowrap;
background-color: transparent;
border-radius: $border-radius;
border: 0;
cursor: pointer;
box-sizing: border-box;
border: 1px solid rgba(0,0,0,.2)
margin-bottom: 20px;
}
.button-sm
padding: 0 20px;
font-size: 11px;
line-height: 30px;
height: 30px;
.button-lg
padding: 0 40px;
font-size: 14px;
line-height: 50px;
height: 50px;
input {
&[type="submit"],
&[type="reset"],
&[type="button"] {
display: inline-block;
height: 38px;
padding: 0 30px;
color: $primary-color-2;
text-align: center;
font-size: 11px;
font-weight: 600;
line-height: 38px;
letter-spacing: .1rem;
text-transform: uppercase;
text-decoration: none;
white-space: nowrap;
background-color: transparent;
border-radius: $global-radius;
border: 1px solid $border-color;
cursor: pointer;
box-sizing: border-box;
}
}
.button:hover,
button:hover {
color: $color-text;
border-color: lighten($color-text, 33.3%);
outline: 0;
}
input {
&[type="submit"]:hover,
&[type="reset"]:hover,
&[type="button"]:hover {
color: $color-text;
border-color: lighten($color-text, 33.3%);
outline: 0;
}
}
.button:focus,
button:focus {
color: $color-text;
border-color: lighten($color-text, 33.3%);
outline: 0;
}
input {
&[type="submit"]:focus,
&[type="reset"]:focus,
&[type="button"]:focus {
color: $color-text;
border-color: lighten($color-text, 33.3%);
outline: 0;
}
}
.button.button-primary,
button.button-primary
color: #fff;
background-color: $primary-color-1;
border-color: transparent;
&:hover
color: #fff;
background-color: darken($primary-color-1, 20%);
&:focus
color: #fff;
background-color: $primary-color-1;
.button.button-success,
button.button-success
background-color: $bg-status-success;
color: white;
border-color: transparent;
&:hover
color: #fff;
background-color: darken($bg-status-success, 20%);
&:focus
color: #fff;
background-color: $bg-status-success;
.button.button-error,
button.button-error
background-color: $bg-status-error;
border-color: transparent;
color: white;
&:hover
color: #fff;
background-color: darken($bg-status-error, 20%);
&:focus
color: #fff;
background-color: $bg-status-error;
input
&[type="submit"].button-primary,
&[type="reset"].button-primary,
&[type="button"].button-primary
color: #fff;
background-color: $primary-color-1;
&:hover
color: #fff;
background-color: $link-color;
&:focus
color: #fff;
background-color: $link-color;
border-color: $link-color;
.theme-dark
.btn-default
border-color: transparent !important;