-
-
Notifications
You must be signed in to change notification settings - Fork 786
/
Copy path_buttons.scss
200 lines (141 loc) · 3.24 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
/*================================================================
Buttons
The following class names style all buttons on the HfLA site.
To create a button: add the base button class, a color
class, a size class, and (when needed) a page-specific class.
Index:
- Base class
- Color classes
- Size classes
- Page-specific classes
=================================================================*/
/*---------------------------
Button Base class
* Use on all buttons
---------------------------*/
.btn {
border: 0;
box-shadow: 0 0 8px 0 rgba($color-black, 0.2);
display: inline-block;
font-weight: map-get($font-weight, bold);
text-decoration: none;
transition: all 100ms ease-in;
white-space: nowrap;
}
.btn--default {
align-items: center;
display: inline-flex;
justify-content: center;
margin: 5px 0;
}
/*---------------------------
Button Colors
---------------------------*/
/* Primary Button --- Pink */
.btn-primary {
background: $color-red;
color: $color-white;
&:link,
&:visited {
color: $color-white;
}
&:hover,
&:active,
&:focus {
background: darken($color-red, 10%);
color: $color-white;
text-decoration: none;
}
}
/* Primary on Dark Button --- Pink & white hover state */
.btn-primary-on-dark {
background: $color-red;
color: $color-white;
&:link,
&:visited {
color: $color-white;
}
&:hover,
&:active,
&:focus {
background-color: $color-white;
color: $color-black;
}
}
/* Dark Button --- Black */
.btn-dark {
background-color: $color-black;
color: $color-white;
&:link,
&:visited {
color: $color-white;
}
&:hover,
&:active,
&:focus {
background-color: $color-red;
}
}
/*---------------------------
Button Sizes
---------------------------*/
/* X-Large Button */
.btn-xl {
height: 72px;
padding: 0 60px;
border-radius: 100px;
font-size: 1.5rem;
@media #{$bp-below-tablet} {
height: 60px;
padding: 0 50px;
border-radius: 60px;
font-size: 1.25rem;
}
}
/* X-Large Button --- More Padding */
.btn-xl-long {
height: 72px;
padding: 0 80px;
border-radius: 100px;
font-size: 1.5rem;
@media #{$bp-below-tablet} {
height: 60px;
padding: 0 70px;
border-radius: 60px;
font-size: 1.25rem; }}
/* Large Button */
.btn-lg {
height: 60px;
padding: 0 50px;
border-radius: 60px;
font-size: 1.25rem;
}
/* Medium Button */
.btn-md {
height: 40px;
padding: 0 32px;
border-radius: 20px;
font-size: 1rem;
}
/* Medium Narrow Button --- less padding */
.btn-md-narrow {
height: 40px;
padding: 0 20px;
border-radius: 20px;
font-size: 1rem;
line-height: 40px; /* Centers the text */
}
/*----------------------------------------------------
Page-Specific Button Classes
* Use when special styling is needed for a button
on a specific page (usually placement)
-----------------------------------------------------*/
/*
- Page-specific class name formatting should be:
btn--page-name
EXAMPLE: btn--wins
- If there is more than one button in the page, formatting for each button should be:
btn--page-name-button-function
EXAMPLE: btn--home-getting-started
- Page-specific class names should live in that specific page's .scss file.
*/