forked from davidhartsough/you-dont-need-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
button.css
75 lines (75 loc) · 1.36 KB
/
button.css
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
/* Buttons */
/* Base */
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
display: inline-block;
padding: 0.5rem 0.75rem;
cursor: pointer;
font-weight: 500;
font-size: 1rem;
line-height: 1.15;
letter-spacing: 0.025rem;
border: none;
border-radius: 0.25rem;
border: 1px solid #aaa;
background-color: transparent;
color: #444;
outline: none;
text-decoration: none;
user-select: none;
width: auto;
height: auto;
margin: 0 0.5rem 0.75rem 0;
}
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:focus,
.button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
text-decoration: none;
border-color: #555;
color: #000;
}
/* Extras */
.primary {
color: #fff;
border-color: #146eeb;
background-color: #146eeb;
}
.primary:hover,
.primary:focus {
color: #fff;
border-color: #125ece;
background-color: #125ece;
}
.secondary {
border-color: #ebebeb;
background-color: #ebebeb;
}
.secondary:hover,
.secondary:focus {
border-color: #e0e0e0;
background-color: #e0e0e0;
}
.round {
border-radius: 1.25rem;
padding: 0.5rem 1rem;
}
/* w/ an icon */
.icon-button {
padding: 0.5rem 1rem 0.5rem 0.75rem;
display: flex;
}
.icon-button .icon {
width: 1.25rem;
height: 1.25rem;
margin-right: 0.25rem;
}