1
1
/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */
2
2
3
+ /* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
3
4
/*
4
5
* What follows is the result of much research on cross-browser styling.
5
6
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
6
7
* Kroc Camen, and the H5BP dev community and team.
7
8
*/
8
9
10
+
9
11
/* ==========================================================================
10
12
Base styles: opinionated defaults
11
13
========================================================================== */
12
14
13
- html {
15
+ html {
14
16
color : # 222 ;
15
17
font-size : 1em ;
16
18
line-height : 1.4 ;
@@ -93,7 +95,10 @@ textarea {
93
95
padding : 0.2em 0 ;
94
96
}
95
97
96
- /* ==========================================================================
98
+
99
+
100
+
101
+ /* ==========================================================================
97
102
Author's custom styles
98
103
========================================================================== */
99
104
@@ -112,94 +117,94 @@ textarea {
112
117
113
118
114
119
115
-
116
- /* ==========================================================================
120
+ /* ==========================================================================
117
121
Helper classes
118
122
========================================================================== */
119
123
120
124
/*
121
125
* Hide visually and from screen readers
122
126
*/
123
127
124
- .hidden {
125
- display : none !important ;
128
+ .hidden {
129
+ display : none !important ;
126
130
}
127
131
128
132
/*
129
- * Hide only visually, but have it available for screen readers:
130
- * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
131
- *
132
- * 1. For long content, line feeds are not interpreted as spaces and small width
133
- * causes content to wrap 1 word per line:
134
- * https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
135
- */
133
+ * Hide only visually, but have it available for screen readers:
134
+ * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
135
+ *
136
+ * 1. For long content, line feeds are not interpreted as spaces and small width
137
+ * causes content to wrap 1 word per line:
138
+ * https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
139
+ */
136
140
137
141
.visuallyhidden {
138
- border : 0 ;
139
- clip : rect (0 0 0 0 );
140
- height : 1px ;
141
- margin : -1px ;
142
- overflow : hidden;
143
- padding : 0 ;
144
- position : absolute;
145
- width : 1px ;
146
- white-space : nowrap; /* 1 */
142
+ border : 0 ;
143
+ clip : rect (0 0 0 0 );
144
+ height : 1px ;
145
+ margin : -1px ;
146
+ overflow : hidden;
147
+ padding : 0 ;
148
+ position : absolute;
149
+ width : 1px ;
150
+ white-space : nowrap; /* 1 */
147
151
}
148
152
149
153
/*
150
- * Extends the .visuallyhidden class to allow the element
151
- * to be focusable when navigated to via the keyboard:
152
- * https://www.drupal.org/node/897638
153
- */
154
+ * Extends the .visuallyhidden class to allow the element
155
+ * to be focusable when navigated to via the keyboard:
156
+ * https://www.drupal.org/node/897638
157
+ */
154
158
155
159
.visuallyhidden .focusable : active ,
156
160
.visuallyhidden .focusable : focus {
157
- clip : auto;
158
- height : auto;
159
- margin : 0 ;
160
- overflow : visible;
161
- position : static;
162
- width : auto;
163
- white-space : inherit;
161
+ clip : auto;
162
+ height : auto;
163
+ margin : 0 ;
164
+ overflow : visible;
165
+ position : static;
166
+ width : auto;
167
+ white-space : inherit;
164
168
}
165
169
166
170
/*
167
- * Hide visually and from screen readers, but maintain layout
168
- */
171
+ * Hide visually and from screen readers, but maintain layout
172
+ */
169
173
170
174
.invisible {
171
- visibility : hidden;
175
+ visibility : hidden;
172
176
}
173
177
174
178
/*
175
- * Clearfix: contain floats
176
- *
177
- * For modern browsers
178
- * 1. The space content is one way to avoid an Opera bug when the
179
- * `contenteditable` attribute is included anywhere else in the document.
180
- * Otherwise it causes space to appear at the top and bottom of elements
181
- * that receive the `clearfix` class.
182
- * 2. The use of `table` rather than `block` is only necessary if using
183
- * `:before` to contain the top-margins of child elements.
184
- */
179
+ * Clearfix: contain floats
180
+ *
181
+ * For modern browsers
182
+ * 1. The space content is one way to avoid an Opera bug when the
183
+ * `contenteditable` attribute is included anywhere else in the document.
184
+ * Otherwise it causes space to appear at the top and bottom of elements
185
+ * that receive the `clearfix` class.
186
+ * 2. The use of `table` rather than `block` is only necessary if using
187
+ * `:before` to contain the top-margins of child elements.
188
+ */
185
189
186
190
.clearfix : before ,
187
191
.clearfix : after {
188
- content : " " ; /* 1 */
189
- display : table; /* 2 */
192
+ content : " " ; /* 1 */
193
+ display : table; /* 2 */
190
194
}
191
195
192
196
.clearfix : after {
193
- clear : both;
197
+ clear : both;
194
198
}
195
199
200
+
196
201
/* ==========================================================================
197
202
EXAMPLE Media Queries for Responsive Design.
198
203
These examples override the primary ('mobile first') styles.
199
204
Modify as content requires.
200
205
========================================================================== */
201
206
202
- @media only screen and (min-width : 35em ) {
207
+ @media only screen and (min-width : 35em ) {
203
208
/* Style adjustments for viewports that meet the condition */
204
209
}
205
210
@@ -210,13 +215,14 @@ textarea {
210
215
/* Style adjustments for high resolution devices */
211
216
}
212
217
218
+
213
219
/* ==========================================================================
214
220
Print styles.
215
221
Inlined to avoid the additional HTTP request:
216
222
https://www.phpied.com/delay-loading-your-print-css/
217
223
========================================================================== */
218
224
219
- @media print {
225
+ @media print {
220
226
* ,
221
227
* : before ,
222
228
* : after {
@@ -285,3 +291,5 @@ textarea {
285
291
page-break-after : avoid;
286
292
}
287
293
}
294
+
295
+
0 commit comments