aboutsummaryrefslogtreecommitdiff
path: root/sass/include/_button.scss
blob: 257e8c63c0ee6c0fca635f9ad71415e26f176b50 (plain)
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
// Form elements (button)
button,
input,
select,
textarea {
	margin: 0;
	padding: .5rem .75rem;
	max-width: 100%;
	background: var(--c2);
	border: 0;
	border-radius: .25rem;
	font: inherit;
	line-height: 1.125;
	color: var(--f1);
}
button,
[type="button" i],
[type="submit" i],
[type="reset" i] {
	-webkit-appearance: button;
	display: inline-block;
	text-align: center;
	white-space: nowrap;
	background: var(--c2);
	color: var(--f1);
	border: 0;
	cursor: pointer;
	transition: opacity .25s;
}
button:hover,
[type="button" i]:hover,
[type="submit" i]:hover,
[type="reset" i]:hover {
	opacity: .75;
}
button[disabled],
[type="button" i][disabled],
[type="submit" i][disabled],
[type="reset" i][disabled] {
	opacity: .5;
}