ssg-guideline 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/_layouts/default.html +1 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/_sass/bootstrap/_alert.scss +55 -0
- data/_sass/bootstrap/_badge.scss +77 -0
- data/_sass/bootstrap/_breadcrumb.scss +38 -0
- data/_sass/bootstrap/_button-group.scss +202 -0
- data/_sass/bootstrap/_buttons.scss +170 -0
- data/_sass/bootstrap/_card.scss +276 -0
- data/_sass/bootstrap/_carousel.scss +178 -0
- data/_sass/bootstrap/_close.scss +31 -0
- data/_sass/bootstrap/_code.scss +64 -0
- data/_sass/bootstrap/_custom-forms.scss +263 -0
- data/_sass/bootstrap/_custom.scss +4 -0
- data/_sass/bootstrap/_dropdown.scss +161 -0
- data/_sass/bootstrap/_forms.scss +388 -0
- data/_sass/bootstrap/_grid.scss +52 -0
- data/_sass/bootstrap/_images.scss +43 -0
- data/_sass/bootstrap/_input-group.scss +178 -0
- data/_sass/bootstrap/_jumbotron.scss +20 -0
- data/_sass/bootstrap/_list-group.scss +141 -0
- data/_sass/bootstrap/_media.scss +8 -0
- data/_sass/bootstrap/_mixins.scss +57 -0
- data/_sass/bootstrap/_modal.scss +142 -0
- data/_sass/bootstrap/_nav.scss +119 -0
- data/_sass/bootstrap/_navbar.scss +268 -0
- data/_sass/bootstrap/_normalize.scss +461 -0
- data/_sass/bootstrap/_pagination.scss +67 -0
- data/_sass/bootstrap/_popover.scss +171 -0
- data/_sass/bootstrap/_print.scss +119 -0
- data/_sass/bootstrap/_progress.scss +32 -0
- data/_sass/bootstrap/_reboot.scss +389 -0
- data/_sass/bootstrap/_responsive-embed.scss +52 -0
- data/_sass/bootstrap/_tables.scss +153 -0
- data/_sass/bootstrap/_tooltip.scss +90 -0
- data/_sass/bootstrap/_transitions.scss +34 -0
- data/_sass/bootstrap/_type.scss +143 -0
- data/_sass/bootstrap/_utilities.scss +13 -0
- data/_sass/bootstrap/_variables.scss +961 -0
- data/_sass/bootstrap/bootstrap-grid.scss +43 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +10 -0
- data/_sass/bootstrap/bootstrap.scss +54 -0
- data/_sass/extra/_syntax-highlighting.scss +71 -0
- data/_sass/main.scss +48 -0
- metadata +132 -0
@@ -0,0 +1,268 @@
|
|
1
|
+
// Contents
|
2
|
+
//
|
3
|
+
// Navbar
|
4
|
+
// Navbar brand
|
5
|
+
// Navbar nav
|
6
|
+
// Navbar text
|
7
|
+
// Navbar divider
|
8
|
+
// Responsive navbar
|
9
|
+
// Navbar position
|
10
|
+
// Navbar themes
|
11
|
+
|
12
|
+
|
13
|
+
// Navbar
|
14
|
+
//
|
15
|
+
// Provide a static navbar from which we expand to create full-width, fixed, and
|
16
|
+
// other navbar variations.
|
17
|
+
|
18
|
+
.navbar {
|
19
|
+
position: relative;
|
20
|
+
display: flex;
|
21
|
+
flex-direction: column;
|
22
|
+
padding: $navbar-padding-y $navbar-padding-x;
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
// Navbar brand
|
27
|
+
//
|
28
|
+
// Used for brand, project, or site names.
|
29
|
+
|
30
|
+
.navbar-brand {
|
31
|
+
display: inline-block;
|
32
|
+
padding-top: .25rem;
|
33
|
+
padding-bottom: .25rem;
|
34
|
+
margin-right: $navbar-padding-x;
|
35
|
+
font-size: $font-size-lg;
|
36
|
+
line-height: inherit;
|
37
|
+
white-space: nowrap;
|
38
|
+
|
39
|
+
@include hover-focus {
|
40
|
+
text-decoration: none;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
// Navbar nav
|
46
|
+
//
|
47
|
+
// Custom navbar navigation (doesn't require `.nav`, but does make use of `.nav-link`).
|
48
|
+
|
49
|
+
.navbar-nav {
|
50
|
+
display: flex;
|
51
|
+
flex-direction: column; // cannot use `inherit` to get the `.navbar`s value
|
52
|
+
padding-left: 0;
|
53
|
+
margin-bottom: 0;
|
54
|
+
list-style: none;
|
55
|
+
|
56
|
+
.nav-link {
|
57
|
+
padding-right: 0;
|
58
|
+
padding-left: 0;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
// Navbar text
|
64
|
+
//
|
65
|
+
//
|
66
|
+
|
67
|
+
.navbar-text {
|
68
|
+
display: inline-block;
|
69
|
+
padding-top: .425rem;
|
70
|
+
padding-bottom: .425rem;
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
// Responsive navbar
|
75
|
+
//
|
76
|
+
// Custom styles for responsive collapsing and toggling of navbar contents.
|
77
|
+
// Powered by the collapse Bootstrap JavaScript plugin.
|
78
|
+
|
79
|
+
// Button for toggling the navbar when in its collapsed state
|
80
|
+
.navbar-toggler {
|
81
|
+
align-self: flex-start; // Prevent toggler from growing to full width when it's the only visible navbar child
|
82
|
+
padding: $navbar-toggler-padding-y $navbar-toggler-padding-x;
|
83
|
+
font-size: $navbar-toggler-font-size;
|
84
|
+
line-height: 1;
|
85
|
+
background: transparent; // remove default button style
|
86
|
+
border: $border-width solid transparent; // remove default button style
|
87
|
+
@include border-radius($navbar-toggler-border-radius);
|
88
|
+
|
89
|
+
@include hover-focus {
|
90
|
+
text-decoration: none;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
// Keep as a separate element so folks can easily override it with another icon
|
95
|
+
// or image file as needed.
|
96
|
+
.navbar-toggler-icon {
|
97
|
+
display: inline-block;
|
98
|
+
width: 1.5em;
|
99
|
+
height: 1.5em;
|
100
|
+
vertical-align: middle;
|
101
|
+
content: "";
|
102
|
+
background: no-repeat center center;
|
103
|
+
background-size: 100% 100%;
|
104
|
+
}
|
105
|
+
|
106
|
+
// Use `position` on the toggler to prevent it from being auto placed as a flex
|
107
|
+
// item and allow easy placement.
|
108
|
+
.navbar-toggler-left {
|
109
|
+
position: absolute;
|
110
|
+
left: $navbar-padding-x;
|
111
|
+
}
|
112
|
+
.navbar-toggler-right {
|
113
|
+
position: absolute;
|
114
|
+
right: $navbar-padding-x;
|
115
|
+
}
|
116
|
+
|
117
|
+
// Generate series of `.navbar-toggleable-*` responsive classes for configuring
|
118
|
+
// where your navbar collapses.
|
119
|
+
.navbar-toggleable {
|
120
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
121
|
+
$next: breakpoint-next($breakpoint, $grid-breakpoints);
|
122
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
123
|
+
|
124
|
+
&#{$infix} {
|
125
|
+
@include media-breakpoint-down($breakpoint) {
|
126
|
+
.navbar-nav {
|
127
|
+
.dropdown-menu {
|
128
|
+
position: static;
|
129
|
+
float: none;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
> .container {
|
134
|
+
padding-right: 0;
|
135
|
+
padding-left: 0;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
@include media-breakpoint-up($next) {
|
140
|
+
flex-direction: row;
|
141
|
+
flex-wrap: nowrap;
|
142
|
+
align-items: center;
|
143
|
+
|
144
|
+
.navbar-nav {
|
145
|
+
flex-direction: row;
|
146
|
+
|
147
|
+
.nav-link {
|
148
|
+
padding-right: .5rem;
|
149
|
+
padding-left: .5rem;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
// For nesting containers, have to redeclare for alignment purposes
|
154
|
+
> .container {
|
155
|
+
display: flex;
|
156
|
+
flex-wrap: nowrap;
|
157
|
+
align-items: center;
|
158
|
+
}
|
159
|
+
|
160
|
+
// scss-lint:disable ImportantRule
|
161
|
+
.navbar-collapse {
|
162
|
+
display: flex !important;
|
163
|
+
width: 100%;
|
164
|
+
}
|
165
|
+
// scss-lint:enable ImportantRule
|
166
|
+
|
167
|
+
.navbar-toggler {
|
168
|
+
display: none;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
|
176
|
+
// Navbar themes
|
177
|
+
//
|
178
|
+
// Styles for switching between navbars with light or dark background.
|
179
|
+
|
180
|
+
// Dark links against a light background
|
181
|
+
.navbar-light {
|
182
|
+
.navbar-brand,
|
183
|
+
.navbar-toggler {
|
184
|
+
color: $navbar-light-active-color;
|
185
|
+
|
186
|
+
@include hover-focus {
|
187
|
+
color: $navbar-light-active-color;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
.navbar-nav {
|
192
|
+
.nav-link {
|
193
|
+
color: $navbar-light-color;
|
194
|
+
|
195
|
+
@include hover-focus {
|
196
|
+
color: $navbar-light-hover-color;
|
197
|
+
}
|
198
|
+
|
199
|
+
&.disabled {
|
200
|
+
color: $navbar-light-disabled-color;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
204
|
+
.open > .nav-link,
|
205
|
+
.active > .nav-link,
|
206
|
+
.nav-link.open,
|
207
|
+
.nav-link.active {
|
208
|
+
color: $navbar-light-active-color;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
.navbar-toggler {
|
213
|
+
border-color: $navbar-light-toggler-border;
|
214
|
+
}
|
215
|
+
|
216
|
+
.navbar-toggler-icon {
|
217
|
+
background-image: $navbar-light-toggler-bg;
|
218
|
+
}
|
219
|
+
|
220
|
+
.navbar-text {
|
221
|
+
color: $navbar-light-color;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
// White links against a dark background
|
226
|
+
.navbar-inverse {
|
227
|
+
.navbar-brand,
|
228
|
+
.navbar-toggler {
|
229
|
+
color: $navbar-inverse-active-color;
|
230
|
+
|
231
|
+
@include hover-focus {
|
232
|
+
color: $navbar-inverse-active-color;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
.navbar-nav {
|
237
|
+
.nav-link {
|
238
|
+
color: $navbar-inverse-color;
|
239
|
+
|
240
|
+
@include hover-focus {
|
241
|
+
color: $navbar-inverse-hover-color;
|
242
|
+
}
|
243
|
+
|
244
|
+
&.disabled {
|
245
|
+
color: $navbar-inverse-disabled-color;
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
.open > .nav-link,
|
250
|
+
.active > .nav-link,
|
251
|
+
.nav-link.open,
|
252
|
+
.nav-link.active {
|
253
|
+
color: $navbar-inverse-active-color;
|
254
|
+
}
|
255
|
+
}
|
256
|
+
|
257
|
+
.navbar-toggler {
|
258
|
+
border-color: $navbar-inverse-toggler-border;
|
259
|
+
}
|
260
|
+
|
261
|
+
.navbar-toggler-icon {
|
262
|
+
background-image: $navbar-inverse-toggler-bg;
|
263
|
+
}
|
264
|
+
|
265
|
+
.navbar-text {
|
266
|
+
color: $navbar-inverse-color;
|
267
|
+
}
|
268
|
+
}
|
@@ -0,0 +1,461 @@
|
|
1
|
+
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
|
2
|
+
|
3
|
+
//
|
4
|
+
// 1. Change the default font family in all browsers (opinionated).
|
5
|
+
// 2. Correct the line height in all browsers.
|
6
|
+
// 3. Prevent adjustments of font size after orientation changes in
|
7
|
+
// IE on Windows Phone and in iOS.
|
8
|
+
//
|
9
|
+
|
10
|
+
// Document
|
11
|
+
// ==========================================================================
|
12
|
+
|
13
|
+
html {
|
14
|
+
font-family: sans-serif; // 1
|
15
|
+
line-height: 1.15; // 2
|
16
|
+
-ms-text-size-adjust: 100%; // 3
|
17
|
+
-webkit-text-size-adjust: 100%; // 3
|
18
|
+
}
|
19
|
+
|
20
|
+
// Sections
|
21
|
+
// ==========================================================================
|
22
|
+
|
23
|
+
//
|
24
|
+
// Remove the margin in all browsers (opinionated).
|
25
|
+
//
|
26
|
+
|
27
|
+
body {
|
28
|
+
margin: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
//
|
32
|
+
// Add the correct display in IE 9-.
|
33
|
+
//
|
34
|
+
|
35
|
+
article,
|
36
|
+
aside,
|
37
|
+
footer,
|
38
|
+
header,
|
39
|
+
nav,
|
40
|
+
section {
|
41
|
+
display: block;
|
42
|
+
}
|
43
|
+
|
44
|
+
//
|
45
|
+
// Correct the font size and margin on `h1` elements within `section` and
|
46
|
+
// `article` contexts in Chrome, Firefox, and Safari.
|
47
|
+
//
|
48
|
+
|
49
|
+
h1 {
|
50
|
+
font-size: 2em;
|
51
|
+
margin: 0.67em 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
// Grouping content
|
55
|
+
// ==========================================================================
|
56
|
+
|
57
|
+
//
|
58
|
+
// Add the correct display in IE 9-.
|
59
|
+
// 1. Add the correct display in IE.
|
60
|
+
//
|
61
|
+
|
62
|
+
figcaption,
|
63
|
+
figure,
|
64
|
+
main { // 1
|
65
|
+
display: block;
|
66
|
+
}
|
67
|
+
|
68
|
+
//
|
69
|
+
// Add the correct margin in IE 8.
|
70
|
+
//
|
71
|
+
|
72
|
+
figure {
|
73
|
+
margin: 1em 40px;
|
74
|
+
}
|
75
|
+
|
76
|
+
//
|
77
|
+
// 1. Add the correct box sizing in Firefox.
|
78
|
+
// 2. Show the overflow in Edge and IE.
|
79
|
+
//
|
80
|
+
|
81
|
+
hr {
|
82
|
+
box-sizing: content-box; // 1
|
83
|
+
height: 0; // 1
|
84
|
+
overflow: visible; // 2
|
85
|
+
}
|
86
|
+
|
87
|
+
//
|
88
|
+
// 1. Correct the inheritance and scaling of font size in all browsers.
|
89
|
+
// 2. Correct the odd `em` font sizing in all browsers.
|
90
|
+
//
|
91
|
+
|
92
|
+
pre {
|
93
|
+
font-family: monospace, monospace; // 1
|
94
|
+
font-size: 1em; // 2
|
95
|
+
}
|
96
|
+
|
97
|
+
// Text-level semantics
|
98
|
+
// ==========================================================================
|
99
|
+
|
100
|
+
//
|
101
|
+
// 1. Remove the gray background on active links in IE 10.
|
102
|
+
// 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
103
|
+
//
|
104
|
+
|
105
|
+
a {
|
106
|
+
background-color: transparent; // 1
|
107
|
+
-webkit-text-decoration-skip: objects; // 2
|
108
|
+
}
|
109
|
+
|
110
|
+
//
|
111
|
+
// Remove the outline on focused links when they are also active or hovered
|
112
|
+
// in all browsers (opinionated).
|
113
|
+
//
|
114
|
+
|
115
|
+
a:active,
|
116
|
+
a:hover {
|
117
|
+
outline-width: 0;
|
118
|
+
}
|
119
|
+
|
120
|
+
//
|
121
|
+
// 1. Remove the bottom border in Firefox 39-.
|
122
|
+
// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
123
|
+
//
|
124
|
+
|
125
|
+
abbr[title] {
|
126
|
+
border-bottom: none; // 1
|
127
|
+
text-decoration: underline; // 2
|
128
|
+
text-decoration: underline dotted; // 2
|
129
|
+
}
|
130
|
+
|
131
|
+
//
|
132
|
+
// Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
133
|
+
//
|
134
|
+
|
135
|
+
b,
|
136
|
+
strong {
|
137
|
+
font-weight: inherit;
|
138
|
+
}
|
139
|
+
|
140
|
+
//
|
141
|
+
// Add the correct font weight in Chrome, Edge, and Safari.
|
142
|
+
//
|
143
|
+
|
144
|
+
b,
|
145
|
+
strong {
|
146
|
+
font-weight: bolder;
|
147
|
+
}
|
148
|
+
|
149
|
+
//
|
150
|
+
// 1. Correct the inheritance and scaling of font size in all browsers.
|
151
|
+
// 2. Correct the odd `em` font sizing in all browsers.
|
152
|
+
//
|
153
|
+
|
154
|
+
code,
|
155
|
+
kbd,
|
156
|
+
samp {
|
157
|
+
font-family: monospace, monospace; // 1
|
158
|
+
font-size: 1em; // 2
|
159
|
+
}
|
160
|
+
|
161
|
+
//
|
162
|
+
// Add the correct font style in Android 4.3-.
|
163
|
+
//
|
164
|
+
|
165
|
+
dfn {
|
166
|
+
font-style: italic;
|
167
|
+
}
|
168
|
+
|
169
|
+
//
|
170
|
+
// Add the correct background and color in IE 9-.
|
171
|
+
//
|
172
|
+
|
173
|
+
mark {
|
174
|
+
background-color: #ff0;
|
175
|
+
color: #000;
|
176
|
+
}
|
177
|
+
|
178
|
+
//
|
179
|
+
// Add the correct font size in all browsers.
|
180
|
+
//
|
181
|
+
|
182
|
+
small {
|
183
|
+
font-size: 80%;
|
184
|
+
}
|
185
|
+
|
186
|
+
//
|
187
|
+
// Prevent `sub` and `sup` elements from affecting the line height in
|
188
|
+
// all browsers.
|
189
|
+
//
|
190
|
+
|
191
|
+
sub,
|
192
|
+
sup {
|
193
|
+
font-size: 75%;
|
194
|
+
line-height: 0;
|
195
|
+
position: relative;
|
196
|
+
vertical-align: baseline;
|
197
|
+
}
|
198
|
+
|
199
|
+
sub {
|
200
|
+
bottom: -0.25em;
|
201
|
+
}
|
202
|
+
|
203
|
+
sup {
|
204
|
+
top: -0.5em;
|
205
|
+
}
|
206
|
+
|
207
|
+
// Embedded content
|
208
|
+
// ==========================================================================
|
209
|
+
|
210
|
+
//
|
211
|
+
// Add the correct display in IE 9-.
|
212
|
+
//
|
213
|
+
|
214
|
+
audio,
|
215
|
+
video {
|
216
|
+
display: inline-block;
|
217
|
+
}
|
218
|
+
|
219
|
+
//
|
220
|
+
// Add the correct display in iOS 4-7.
|
221
|
+
//
|
222
|
+
|
223
|
+
audio:not([controls]) {
|
224
|
+
display: none;
|
225
|
+
height: 0;
|
226
|
+
}
|
227
|
+
|
228
|
+
//
|
229
|
+
// Remove the border on images inside links in IE 10-.
|
230
|
+
//
|
231
|
+
|
232
|
+
img {
|
233
|
+
border-style: none;
|
234
|
+
}
|
235
|
+
|
236
|
+
//
|
237
|
+
// Hide the overflow in IE.
|
238
|
+
//
|
239
|
+
|
240
|
+
svg:not(:root) {
|
241
|
+
overflow: hidden;
|
242
|
+
}
|
243
|
+
|
244
|
+
// Forms
|
245
|
+
// ==========================================================================
|
246
|
+
|
247
|
+
//
|
248
|
+
// 1. Change the font styles in all browsers (opinionated).
|
249
|
+
// 2. Remove the margin in Firefox and Safari.
|
250
|
+
//
|
251
|
+
|
252
|
+
button,
|
253
|
+
input,
|
254
|
+
optgroup,
|
255
|
+
select,
|
256
|
+
textarea {
|
257
|
+
font-family: sans-serif; // 1
|
258
|
+
font-size: 100%; // 1
|
259
|
+
line-height: 1.15; // 1
|
260
|
+
margin: 0; // 2
|
261
|
+
}
|
262
|
+
|
263
|
+
//
|
264
|
+
// Show the overflow in IE.
|
265
|
+
// 1. Show the overflow in Edge.
|
266
|
+
//
|
267
|
+
|
268
|
+
button,
|
269
|
+
input { // 1
|
270
|
+
overflow: visible;
|
271
|
+
}
|
272
|
+
|
273
|
+
//
|
274
|
+
// Remove the inheritance of text transform in Edge, Firefox, and IE.
|
275
|
+
// 1. Remove the inheritance of text transform in Firefox.
|
276
|
+
//
|
277
|
+
|
278
|
+
button,
|
279
|
+
select { // 1
|
280
|
+
text-transform: none;
|
281
|
+
}
|
282
|
+
|
283
|
+
//
|
284
|
+
// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
285
|
+
// controls in Android 4.
|
286
|
+
// 2. Correct the inability to style clickable types in iOS and Safari.
|
287
|
+
//
|
288
|
+
|
289
|
+
button,
|
290
|
+
html [type="button"], // 1
|
291
|
+
[type="reset"],
|
292
|
+
[type="submit"] {
|
293
|
+
-webkit-appearance: button; // 2
|
294
|
+
}
|
295
|
+
|
296
|
+
//
|
297
|
+
// Remove the inner border and padding in Firefox.
|
298
|
+
//
|
299
|
+
|
300
|
+
button::-moz-focus-inner,
|
301
|
+
[type="button"]::-moz-focus-inner,
|
302
|
+
[type="reset"]::-moz-focus-inner,
|
303
|
+
[type="submit"]::-moz-focus-inner {
|
304
|
+
border-style: none;
|
305
|
+
padding: 0;
|
306
|
+
}
|
307
|
+
|
308
|
+
//
|
309
|
+
// Restore the focus styles unset by the previous rule.
|
310
|
+
//
|
311
|
+
|
312
|
+
button:-moz-focusring,
|
313
|
+
[type="button"]:-moz-focusring,
|
314
|
+
[type="reset"]:-moz-focusring,
|
315
|
+
[type="submit"]:-moz-focusring {
|
316
|
+
outline: 1px dotted ButtonText;
|
317
|
+
}
|
318
|
+
|
319
|
+
//
|
320
|
+
// Change the border, margin, and padding in all browsers (opinionated).
|
321
|
+
//
|
322
|
+
|
323
|
+
fieldset {
|
324
|
+
border: 1px solid #c0c0c0;
|
325
|
+
margin: 0 2px;
|
326
|
+
padding: 0.35em 0.625em 0.75em;
|
327
|
+
}
|
328
|
+
|
329
|
+
//
|
330
|
+
// 1. Correct the text wrapping in Edge and IE.
|
331
|
+
// 2. Correct the color inheritance from `fieldset` elements in IE.
|
332
|
+
// 3. Remove the padding so developers are not caught out when they zero out
|
333
|
+
// `fieldset` elements in all browsers.
|
334
|
+
//
|
335
|
+
|
336
|
+
legend {
|
337
|
+
box-sizing: border-box; // 1
|
338
|
+
color: inherit; // 2
|
339
|
+
display: table; // 1
|
340
|
+
max-width: 100%; // 1
|
341
|
+
padding: 0; // 3
|
342
|
+
white-space: normal; // 1
|
343
|
+
}
|
344
|
+
|
345
|
+
//
|
346
|
+
// 1. Add the correct display in IE 9-.
|
347
|
+
// 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
348
|
+
//
|
349
|
+
|
350
|
+
progress {
|
351
|
+
display: inline-block; // 1
|
352
|
+
vertical-align: baseline; // 2
|
353
|
+
}
|
354
|
+
|
355
|
+
//
|
356
|
+
// Remove the default vertical scrollbar in IE.
|
357
|
+
//
|
358
|
+
|
359
|
+
textarea {
|
360
|
+
overflow: auto;
|
361
|
+
}
|
362
|
+
|
363
|
+
//
|
364
|
+
// 1. Add the correct box sizing in IE 10-.
|
365
|
+
// 2. Remove the padding in IE 10-.
|
366
|
+
//
|
367
|
+
|
368
|
+
[type="checkbox"],
|
369
|
+
[type="radio"] {
|
370
|
+
box-sizing: border-box; // 1
|
371
|
+
padding: 0; // 2
|
372
|
+
}
|
373
|
+
|
374
|
+
//
|
375
|
+
// Correct the cursor style of increment and decrement buttons in Chrome.
|
376
|
+
//
|
377
|
+
|
378
|
+
[type="number"]::-webkit-inner-spin-button,
|
379
|
+
[type="number"]::-webkit-outer-spin-button {
|
380
|
+
height: auto;
|
381
|
+
}
|
382
|
+
|
383
|
+
//
|
384
|
+
// 1. Correct the odd appearance in Chrome and Safari.
|
385
|
+
// 2. Correct the outline style in Safari.
|
386
|
+
//
|
387
|
+
|
388
|
+
[type="search"] {
|
389
|
+
-webkit-appearance: textfield; // 1
|
390
|
+
outline-offset: -2px; // 2
|
391
|
+
}
|
392
|
+
|
393
|
+
//
|
394
|
+
// Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
|
395
|
+
//
|
396
|
+
|
397
|
+
[type="search"]::-webkit-search-cancel-button,
|
398
|
+
[type="search"]::-webkit-search-decoration {
|
399
|
+
-webkit-appearance: none;
|
400
|
+
}
|
401
|
+
|
402
|
+
//
|
403
|
+
// 1. Correct the inability to style clickable types in iOS and Safari.
|
404
|
+
// 2. Change font properties to `inherit` in Safari.
|
405
|
+
//
|
406
|
+
|
407
|
+
::-webkit-file-upload-button {
|
408
|
+
-webkit-appearance: button; // 1
|
409
|
+
font: inherit; // 2
|
410
|
+
}
|
411
|
+
|
412
|
+
// Interactive
|
413
|
+
// ==========================================================================
|
414
|
+
|
415
|
+
//
|
416
|
+
// Add the correct display in IE 9-.
|
417
|
+
// 1. Add the correct display in Edge, IE, and Firefox.
|
418
|
+
//
|
419
|
+
|
420
|
+
details, // 1
|
421
|
+
menu {
|
422
|
+
display: block;
|
423
|
+
}
|
424
|
+
|
425
|
+
//
|
426
|
+
// Add the correct display in all browsers.
|
427
|
+
//
|
428
|
+
|
429
|
+
summary {
|
430
|
+
display: list-item;
|
431
|
+
}
|
432
|
+
|
433
|
+
// Scripting
|
434
|
+
// ==========================================================================
|
435
|
+
|
436
|
+
//
|
437
|
+
// Add the correct display in IE 9-.
|
438
|
+
//
|
439
|
+
|
440
|
+
canvas {
|
441
|
+
display: inline-block;
|
442
|
+
}
|
443
|
+
|
444
|
+
//
|
445
|
+
// Add the correct display in IE.
|
446
|
+
//
|
447
|
+
|
448
|
+
template {
|
449
|
+
display: none;
|
450
|
+
}
|
451
|
+
|
452
|
+
// Hidden
|
453
|
+
// ==========================================================================
|
454
|
+
|
455
|
+
//
|
456
|
+
// Add the correct display in IE 10-.
|
457
|
+
//
|
458
|
+
|
459
|
+
[hidden] {
|
460
|
+
display: none;
|
461
|
+
}
|