-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_reset.scss
More file actions
81 lines (70 loc) · 1.36 KB
/
_reset.scss
File metadata and controls
81 lines (70 loc) · 1.36 KB
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
/**
* Global reset
* A set of basic global reset styles.
*/
/**
* Generate reset styles
* @public
* @output Outputs reset styles
*/
@mixin styles() {
// Force global box-sizing
*,::before,::after {
box-sizing: border-box;
}
// Always use smooth scrolling by default
html, body {
scroll-behavior: smooth;
}
// Clean body
body {
margin: 0;
padding: 0;
// This ensures that any background is visible across the full viewport
min-height: 100vh;
}
// Remove focus rect for all elements
*:hover,
*:active,
*:focus {
outline: none;
}
// Default block types, remove margin and padding
main, header, footer, section, article, figure, figcaption, fieldset, details, summary {
display: block;
margin: 0;
padding: 0;
}
fieldset {
border: 0;
}
// Explicit input font-family elements
button, input, select, textarea {
margin: 0;
padding: 0;
font-family: inherit;
font-size: inherit;
text-align: inherit;
line-height: inherit;
color: inherit;
background-color: transparent;
border: 0;
}
// Cursor highlight
button, select {
cursor: pointer;
}
// Cleanup links
a {
color: inherit;
text-decoration: none;
outline: none;
&:active,
&:focus,
&:hover,
&:visited {
text-decoration: none;
outline: none;
}
}
}