forked from ConciseCSS/concise.css
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_buttons.scss
More file actions
40 lines (35 loc) · 905 Bytes
/
_buttons.scss
File metadata and controls
40 lines (35 loc) · 905 Bytes
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
//
// Buttons
// =============================================================================
button {
background-color: getColor(base, primary);
border: none;
color: getColor(text, ui);
cursor: pointer;
display: inline-block;
font-size: typeScale(1);
line-height: 1.5lh;
overflow: visible;
padding: 0 1.5em;
text-align: center;
text-decoration: none;
transition: $transition-duration;
user-select: none;
vertical-align: middle;
white-space: nowrap;
&:hover,
&:focus {
background-color: lighten(getColor(base, primary), 15%);
color: getColor(text, ui);
text-decoration: none;
}
&:focus,
&:active { outline: none; }
&:active { background-color: lighten(getColor(base, primary), 10%); }
&[disabled] {
background-color: darken(getColor(background, light), 10%);
color: getColor(text, ui);
cursor: not-allowed;
opacity: 0.6;
}
}