This repository has been archived by the owner on Oct 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path_reset.scss
173 lines (149 loc) · 2.26 KB
/
_reset.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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/* ============================================================================
@CORE -> RESET
========================================================================= */
/**
* In addition to normalize.css we also apply a reset which mainly removes all
* margins, paddings, and borders, from all elements, and applies the nice
* `border-box` value for `box-sizing` amongst a few other things.
*/
/**
* Settings.
*/
// Reset the `box-sizing` property to the more friendly `border-box` value
$apply-friendly-box-model: true !default;
/**
* Remove all margins, paddings, and borders.
*
* N.B. the complete list of HTML5 elements
* https://developer.mozilla.org/en/docs/Web/Guide/HTML/HTML5/HTML5_element_list
*/
a,
abbr,
acronym,
address,
applet,
article,
aside,
b,
blockquote,
body,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
dialog,
div,
dl,
dt,
em,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
main,
menu,
nav,
object,
ol,
p,
pre,
q,
s,
samp,
section,
small,
span,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
u,
ul,
var {
margin: 0;
padding: 0;
border: 0;
}
/**
* Reset the `box-sizing` property to the more friendly `border-box` value.
*
* @credit
* http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
*/
@if $apply-friendly-box-model {
html {
box-sizing: border-box;
}
* {
&,
&:before,
&:after {
box-sizing: inherit;
}
}
}
/**
* Reset lists.
*/
ul,
ol {
list-style-type: none;
}
/**
* Suppress the focus outline on links that cannot be accessed via a keyboard.
* This prevents an unwanted focus outline from appearing around elements that
* might still respond to pointer events.
*
* N.B. it is okay to use `!important` here as we're doing it preemptively
* i.e. you know you will always want the rule it's applied too to take
* precedence.
*
* @credit
* https://github.com/suitcss/
*/
[tabindex="-1"]:focus {
outline: none !important;
}
/**
* Remove underlines from potentially troublesome elements.
*/
u,
ins {
text-decoration: none;
}
/**
* Apply faux underlines to inserted text via `border-bottom`.
*/
ins {
border-bottom: 1px solid;
}