-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_example.objects.buttons.scss
55 lines (42 loc) · 1.17 KB
/
_example.objects.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
// check dependencies
$wocss-settings-global: false !default;
@if ($wocss-settings-global == false) {
@error "[objects-buttons] Have you included the wocss-settings-global module?"
};
/*------------------------------------*\
#BUTTONS
\*------------------------------------*/
/**
* 1. Remove highlight color on tap. (Chrome)
* 2. Hold height in all buttons' types.
* 3. Make buttons inherit font styles (often necessary when styling `input`s as buttons)
* 4. Disable double-tap-to-zoom.
* 5. Fix a Firefox bug whereby `input type="submit"` gains 2px extra padding.
*/
.o-btn {
-webkit-tap-highlight-color: transparent; /* [1] */
appearance: none;
border-radius: $global-border-radius;
border: $global-border-width solid transparent; /* [2] */
color: inherit;
cursor: pointer;
display: inline-block;
font: inherit; /* [3] */
line-height: 1;
padding: 0.85em 1.25em;
text-align: center;
text-decoration: none;
touch-action: manipulation; /* [4] */
user-select: none;
&::-moz-focus-inner {
border: 0; /* [5] */
}
&:focus {
outline-offset: 2px;
outline: 2px solid rgba(#000000, .25);
}
&:active,
&:hover {
outline: none;
}
}