-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_reset.scss
More file actions
187 lines (166 loc) · 3.26 KB
/
_reset.scss
File metadata and controls
187 lines (166 loc) · 3.26 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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
// ==========================================================================
// Reset
// ==========================================================================
//
// This works best when complimented by Normalize CSS
// http://necolas.github.io/normalize.css/
//
// Much of this is borrowed from HTML5 Boilerplate v5.0.0 (h5bp.com)
// and csswizardry.com/2011/10/reset-restarted.
///
//
// Scales namespace variable
///
$scales-namespace: null !default;
//
// Available Variables
///
$selection-bg-color: #79bd9a !default;
$selection-text-color: #fff !default;
$table-border-collapse: collapse !default;
$pre-overflow: auto !default;
//
// Inheriting box-sizing Probably Slightly Better Best-Practice
// http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice
///
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
//
// Remove padding and margins from elements.
///
h1,h2,h3,h4,h5,h6,
p,blockquote,pre,
dl,dd,ol,ul,
form,fieldset,legend,
table,th,td,caption,
hr {
margin: 0;
padding: 0;
}
//
// Give a help cursor to elements that give extra info on ":hover".
///
abbr[title],
dfn[title] {
cursor: help;
}
//
// So that "alt" text is visually offset if images don't load.
///
img {
font-style: italic;
}
//
// Give form elements some cursor interactions.
///
label,
button,
select,
option {
cursor: pointer;
}
.text-input:active,
.text-input:focus,
textarea:active,
textarea:focus {
cursor: text;
}
//
// Get rid of all the form input styles for text fields and form buttons.
// Hard to keep up with each input type, but they are listed here.
// Better to use .text-input class instead of keeping these up to date.
///
.text-input,
textarea,
[type=text],
[type=url],
[type=week],
[type=time],
[type=tel],
[type=search],
[type=password],
[type=number],
[type=month],
[type=email],
[type=datetime],
[type=date] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
font-size: 100%;
line-height: inherit;
padding: 0;
margin: 0;
background: none;
border: 0;
}
select {
background: none;
font-size: 100%
}
// Fancy color for when you select stuff! Change the color for your app.
::-moz-selection {
background: $selection-bg-color;
color: $selection-text-color;
text-shadow: none;
}
::selection {
background: $selection-bg-color;
color: $selection-text-color;
text-shadow: none;
}
// A better looking default hr.
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
padding: 0;
margin: 1em 0;
}
// Remove the gap between audio, canvas, iframes,
// images, videos and the bottom of their containers:
// https://github.com/h5bp/html5-boilerplate/issues/440
audio,
canvas,
iframe,
img,
svg,
video {
vertical-align: middle;
}
// Remove default fieldset styles.
fieldset {
border: 0;
margin: 0;
padding: 0;
}
// Allow only vertical resizing of textareas.
textarea {
resize: vertical;
}
//
// Change some things from Normalize
///
// Add border collapse to tables.
table {
border-collapse: $table-border-collapse;
}
// Contain overflow in all browsers
pre {
overflow: $pre-overflow;
}
// Less opinionated form font
button,
input,
optgroup,
select,
textarea {
font: inherit;
}