-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_base.scss
More file actions
147 lines (126 loc) · 2.6 KB
/
_base.scss
File metadata and controls
147 lines (126 loc) · 2.6 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
@use "./variables" as var;
@if (var.$output-base) {
// Remove margin, padding and inherit box-sizing on everything
*,
*::before,
*::after {
box-sizing: inherit;
margin: 0;
padding: 0;
}
// Default html (root) and body styles
html,
body {
height: var.$root-height;
}
html {
box-sizing: var.$box-sizing;
font-size: var.$font-size;
line-height: var.$line-height;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
body {
background: var.$body-background;
color: var.$color;
font-family: var.$font-family;
}
// Reset font-size for headings
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
}
// Better default styles for images
img {
max-width: 100%;
height: auto;
border: 0;
border-style: none;
vertical-align: middle;
}
// Global font weight for Chrome, Edge, and Safari
b,
strong {
font-weight: bold;
}
// Default anchor and button styles
a,
button {
color: inherit;
}
a {
text-decoration: none;
}
// Default font family and font size for code and pre elements
code,
pre {
font-family: var.$font-family-mono;
font-size: 1em;
}
// Default small element font-size
small {
font-size: var.$font-size-sm;
}
// Better default table styles
table {
border-collapse: collapse;
}
// Better default caption styles
caption {
caption-side: bottom;
color: var.$color-caption;
text-align: left;
}
// Default form input element styles
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: 100%;
line-height: inherit;
}
button,
input {
overflow: visible;
}
button {
border: 0;
background: none;
letter-spacing: inherit;
text-align: inherit;
text-transform: none;
cursor: pointer;
-webkit-font-smoothing: inherit;
}
// Correct the inability to style clickable types in iOS and Safari
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
// Remove the inner border and padding in Firefox
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
padding: 0;
border-style: none;
}
// Correct placeholder text opacity in Firefox
input::-moz-placeholder {
opacity: 1;
}
// 1. Correct the inability to style clickable types in iOS and Safari
// 2. Change font properties to `inherit` in Safari
::-webkit-file-upload-button {
-webkit-appearance: button; // 1
font: inherit; // 2
}
}