Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: scss/_content.scss

Issue 29361647: Issue 4607 - Default content styles (Closed)
Patch Set: See comments for details. Created Nov. 11, 2016, 4:15 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*!
2 * This file is part of universal-design-language
3 * Copyright (C) 2016 Eyeo GmbH
4 *
5 * universal-design-language is free software: you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * universal-design-language is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with web.starter-kit. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /*!
20 * This file contains parts of:
21 * - normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css
22 */
23
24 /* UDL content styles
juliandoucette 2016/11/11 16:27:19 Combined document title and TOC.
25 *******************************************************************************
26 * - Global
27 * - Headings
28 * - Body content
juliandoucette 2016/11/11 16:27:18 Shortened TOC by removing 1-off elements/classes f
29 * - Alignment
30 * - Responsive
31 ******************************************************************************/
32
33 /* Global
34 ******************************************************************************/
35
36 html
37 {
38 font-family: $sans-font;
39 font-size: $medium-font;
40 line-height: 1.15;
41 }
42
43 /**
44 * Center content within a (responsive) fixed width
45 */
46 .container
juliandoucette 2016/11/11 16:27:19 Removed .container-fluid because any block element
47 {
48 max-width: 100%;
49 margin: 0px auto;
50 padding: 0px $small-space;
51 }
52
53 .container:after
54 {
55 display: block;
56 clear: both;
57 content: "";
58 }
59
60 /**
61 * Clear all floating elements
62 */
63 .clearfix
juliandoucette 2016/11/11 16:27:19 Separated clearfix because it can apply to contain
64 {
65 display: block;
66 clear: both;
67 }
68
69 p,
70 ol,
71 ul,
72 dl,
73 pre,
74 blockquote
75 {
76 /* Set consistent margins (opinionated) */
77 margin: $small-space 0px;
78 }
79
80 /* Headings
juliandoucette 2016/11/11 16:27:18 Adjusted heading margin and font-size to be mobile
81 ******************************************************************************/
82
83 h1,
84 h2,
85 h3,
86 h4,
87 h5,
88 h6
89 {
90 margin: $small-space 0;
91 }
92
93 h1,
94 h2
95 {
96 font-weight: $thin-weight;
97 }
98
99 h1
100 {
101 font-size: 24px;
102 }
103
104 h2
105 {
106 font-size: 22px;
107 }
108
109 h3
110 {
111 font-size: 18px;
112 }
113
114 h4
115 {
116 font-size: 16px;
117 }
118
119 h5
120 {
121 font-size: 14px;
122 }
123
124 h6
125 {
126 font-size: 12px;
127 }
128
129 /* Body content
130 ******************************************************************************/
131
132 abbr
133 {
134 text-decoration: underline dotted;
135 cursor: help;
136 }
137
138 b,
139 strong
140 {
141 font-weight: $bold-weight;
142 }
143
144 small
145 {
146 font-size: $small-font;
147 }
148
149 sup
150 {
151 position: relative;
152 top: -0.5em;
153 font-size: 75%;
154 /* Prevent `sub` and `sup` elements from affecting the line height */
155 line-height: 0px;
156 vertical-align: baseline;
157 }
158
159 a,
160 a:visited
161 {
162 /* Set default color and decoration (opinionated) */
163 color: $accent;
164 /* Remove the gray background on active links in IE 10. */
165 background-color: transparent;
166 text-decoration: none;
167 }
168
169 a:hover,
170 a:active,
171 a:focus
172 {
173 /* Set default color and decoration (opinionated) */
174 text-decoration: underline;
175 }
176
177 img
178 {
179 margin: 0px $small-space / 2;
180 /* Remove the border on images inside links in IE 10-. */
181 border-style: none;
182 }
183
184 hr
185 {
186 border-top: 0px;
187 border-bottom: 2px solid $gray;
188 }
189
190 [dir="ltr"] blockquote
191 {
192 padding-left: $small-space;
193 border-left: 5px solid $gray;
194 }
195
196 [dir="rtl"] blockquote
197 {
198 padding-right: $small-space;
199 border-right: 5px solid $gray;
200 }
201
202 pre
203 {
204 overflow: auto;
205 padding: 0px $small-space;
206 }
207
208 code
209 {
210 padding: 0px $small-space / 4;
211 }
212
213 pre,
214 code
215 {
216 background-color: $gray-light;
217 font-family: $monospace-font;
218 font-size: $medium-font;
219 }
220
221 pre code
222 {
223 padding: 0px;
224 }
225
226 [dir="ltr"] ol,
227 [dir="ltr"] ul
228 {
229 padding-left: $small-space * 1.5;
230 }
231
232 [dir="rtl"] ol,
233 [dir="rtl"] ul
234 {
235 padding-right: $small-space * 1.5;
236 }
237
238 li
239 {
240 margin: $small-space / 2 0px;
241 }
242
243 ol ol,
244 ul ul,
245 ol ul,
246 ul ol
247 {
248 /* prevent double spacing lists */
249 margin: 0px;
250 }
251
252 ol ol
253 {
254 list-style-type: lower-alpha;
255 }
256
257 dt
258 {
259 /* undo browser default (opinionated)*/
260 font-weight: $bold-weight;
261 }
262
263 dd
264 {
265 margin: $small-space / 2 0px $small-space 0px;
266 }
267
268 /**
269 * Remove list style from vertical lists
270 */
271 .unstyled-list,
272 {
273 list-style-type: none;
274 }
275
276 [dir="ltr"] .unstyled-list
277 {
278 padding-left: 0px;
279 }
280
281 [dir="rtl"] .unstyled-list
282 {
283 padding-right: 0px;
284 }
285
286 [dir="ltr"] .unstyled-list .unstyled-list
287 {
288 padding-left: $medium-space;
289 }
290
291 [dir="rtl"] .unstyled-list .unstyled-list
292 {
293 padding-right: $small-space;
294 }
295
296 audio,
297 video
298 {
299 /* undo browser default (opinionated) */
300 display: block;
301 }
302
303 /**
304 * Embed 16 by 9 iframe video
305 */
306 .embed
307 {
308 display: block;
309 position: relative;
310 overflow: hidden;
311 padding: 0% 0% 56.25% 0%;
312 }
313
314 .embed iframe
315 {
316 position: absolute;
317 top: 0px;
318 left: 0px;
319 width: 100%;
320 height: 100%;
321 /* undo browser default */
322 border: 0px;
323 }
324
325 /* Alignment
326 ******************************************************************************/
327
328 /**
329 * Clear and stretch element full-width
330 */
331 .full-width
juliandoucette 2016/11/11 16:27:18 Changed .block class back to .full-width for simpl
332 {
333 display: block;
334 clear: both;
335 overflow: auto;
336 width: 100%;
337 margin: $small-space 0px;
338 }
339
340 .float-start,
341 .float-end
342 {
343 display: block;
344 margin: 0px 0px $small-space 0px;
345 }
346
347 /**
348 * Float to start-of-line
349 */
350 [dir="ltr"] .float-start
351 {
352 float: left;
353 margin-right: $small-space;
354 }
355
356 [dir="rtl"] .float-start
357 {
358 float: right;
359 margin-left: $small-space;
360 }
361
362 /**
363 * Float to end-of-line
364 */
365 [dir="ltr"] .float-end
366 {
367 float: right;
368 margin-left: $small-space;
369 }
370
371 [dir="rtl"] .float-end
372 {
373 float: left;
374 margin-right: $small-space;
375 }
376
377 /* Responsive
378 ******************************************************************************/
379
380 @media(min-width: $mobile-breakpoint)
381 {
382 .container
juliandoucette 2016/11/11 16:32:44 Moved mobile .container width into media query for
383 {
384 width: $mobile-width;
385 }
386
387 h1,
388 h2,
389 h3,
390 h4,
391 h5,
392 h6
393 {
394 margin: $medium-space 0 $small-space 0;
395 }
396
397 h1
398 {
399 font-size: 48px;
400 }
401
402 h2
403 {
404 font-size: 36px;
405 }
406
407 h3
408 {
409 font-size: 24px;
410 }
411
412 h4
413 {
414 font-size: 20px;
415 }
416
417 h5
418 {
419 font-size: 16px;
420 }
421
422 h6
423 {
424 font-size: 14px;
425 }
426 }
427
428 @media(min-width: $tablet-breakpoint)
429 {
430 .container
431 {
432 width: $tablet-width;
433 }
434 }
435
436 @media(min-width: $desktop-breakpoint)
437 {
438 .container
439 {
440 width: $desktop-width;
441 }
442 }
OLDNEW
« html/content.html ('K') | « package.json ('k') | scss/_reset.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld