-
Notifications
You must be signed in to change notification settings - Fork 7
/
resetbase.scss
81 lines (69 loc) · 1.39 KB
/
resetbase.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
$resetBase_baseBackground: #fff !default;
$resetBase_baseColor: #000 !default;
$resetBase_baseFontFamily: sans-serif !default;
// -- reset --
*,
*:before,
*:after {
box-sizing: border-box;
}
a, abbr, body, button, fieldset, form, h1, h2, h3, h4, h5, h6, iframe, img, label, legend, li, ol, p, td, th, ul {
border: 0;
font-size: 100%;
font-weight: normal;
list-style: none;
margin: 0;
outline: 0;
padding: 0;
text-decoration: none;
vertical-align: baseline;
}
a, abbr, button, input, select, textarea {
font: inherit;
}
input, select, textarea {
margin: 0;
}
// -- base --
body, button, input, select, td, textarea, th {
color: $resetBase_baseColor;
font-family: $resetBase_baseFontFamily;
}
body {
background: $resetBase_baseBackground;
font-size: 62.5%;
line-height: 1;
}
// -- base - clear fix --
%clearFix:before,
%clearFix:after {
content: '\0020'; // space character
display: table;
}
%clearFix:after {
clear: both;
}
// -- base - hide --
%hide {
left: -999em;
overflow: hidden;
position: absolute;
top: -999em;
width: 1em;
}
// -- base - text overflow ellipsis --
%textOverflowEllipsis {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
// -- base - responsive image --
%responsiveImage {
display: block;
height: auto;
max-width: 100%;
}
// -- base - touch device tap highlight remove --
%tapHighlightRemove {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}