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

Delta Between Two Patch Sets: scss/_content.scss

Issue 29361647: Issue 4607 - Default content styles (Closed)
Left Patch Set: Addressed comments (round 1) Created Nov. 8, 2016, 3:47 p.m.
Right Patch Set: See comments for details Created Dec. 1, 2016, 2:05 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « scss/_base.scss ('k') | scss/_variables.scss » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /*! 1 /*!
2 * This file is part of universal-design-language 2 * This file is part of website-defaults
3 * Copyright (C) 2016 Eyeo GmbH 3 * Copyright (C) 2016 Eyeo GmbH
4 * 4 *
5 * universal-design-language is free software: you can redistribute it and/or 5 * website-defaults is free software: you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as published by 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 7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version. 8 * (at your option) any later version.
9 * 9 *
10 * universal-design-language is distributed in the hope that it will be useful, 10 * website-defaults is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details. 13 * GNU General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 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/>. 16 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 /** UDL content styles */ 19 /*******************************************************************************
20 20 * Content styles
21 /*!
22 * This file contains parts of:
23 * - normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css
24 */
25
26 /* Table of contents
27 ******************************************************************************* 21 *******************************************************************************
28 * - Document 22 * 1. Document
29 * - Headings 23 * 2. Headings
30 * - Block elements 24 * 3. Body content
31 * - Blockquotes
32 * - Code blocks
33 * - Lists
34 * - Unstyled lists
35 * - Embeds
36 * - Inline elements
37 * - Links
38 * - Images
39 * - Alignment
40 ******************************************************************************/ 25 ******************************************************************************/
41 26
42 /* Document 27 /* Document
43 ******************************************************************************/ 28 ******************************************************************************/
44 29
45 html
46 {
47 font-family: $sans-font;
48 font-size: $medium-font;
49 line-height: 1.15;
50 }
51
52 h1,
53 h2,
54 h3,
55 h4,
56 h5,
57 h6,
58 p, 30 p,
59 ol, 31 ol,
60 ul, 32 ul,
61 dl, 33 dl,
62 pre, 34 pre,
63 blockquote 35 blockquote
64 { 36 {
65 /* Set consistent margins (opinionated) */ 37 /* Set consistent margins (opinionated) */
66 margin: 1em 0em; 38 margin: 1em 0em;
67 } 39 }
68 40
69 /* Headings 41 /* Headings
70 ******************************************************************************/ 42 ******************************************************************************/
71 43
72 h1, 44 h1,
73 h2, 45 h2,
74 h3, 46 h3,
75 h4, 47 h4,
76 h5, 48 h5,
77 h6 49 h6
78 { 50 {
79 margin-bottom: 0em; 51 /* Margin on top **only** (opinionated) */
80 } 52 margin: 2em 0em 0em 0em;
81
82 h1,
83 h2
84 {
85 font-weight: $thin-weight;
86 } 53 }
87 54
88 h1 55 h1
89 { 56 {
90 font-size: 48px; 57 font-size: 2em;
91 } 58 }
92 59
93 h2 60 h2
94 { 61 {
95 font-size: 36px; 62 font-size: 1.5em;
96 } 63 }
97 64
98 h3 65 h3
99 { 66 {
100 font-size: 24px; 67 font-size: 1.25em;
101 } 68 }
102 69
103 h4 70 h4
104 { 71 {
105 font-size: 20px; 72 font-size: 1em;
106 } 73 }
107 74
108 h5 75 h5
109 { 76 {
110 font-size: 16px; 77 font-size: 0.8em;
111 } 78 }
112 79
113 h6 80 h6
114 { 81 {
115 font-size: 14px; 82 font-size: 0.7em;
116 } 83 }
117 84
118 /* Block elements 85 /* Body content
119 ******************************************************************************/ 86 ******************************************************************************/
87
88 abbr
89 {
90 text-decoration: underline;
91 cursor: help;
92 }
93
94 b,
95 strong
96 {
97 font-weight: $bold-weight;
98 }
99
100 small
101 {
102 font-size: $small-font;
103 }
104
105 sup
106 {
107 position: relative;
108 font-size: 75%;
109 vertical-align: super;
110 }
111
112 a,
113 a:visited
114 {
115 color: $accent;
116 /* Remove the gray background on active links in IE 10. */
117 background-color: transparent;
118 text-decoration: none;
119 /* Set default pointer regardless of href (opinionated) */
120 cursor: pointer;
121 }
122
123 a:hover,
124 a:active,
125 a:focus
126 {
127 text-decoration: underline;
128 }
129
130 img
131 {
132 /* Make fixed width images responsive */
133 max-width: 100%;
134 /* Remove the border on images inside links in IE 10-. */
135 border-style: none;
136 }
120 137
121 hr 138 hr
122 { 139 {
123 /* Add the correct box sizing in Firefox. */ 140 border: 1px solid $secondary-light;
124 box-sizing: content-box;
125 /* Show the overflow in Edge and IE. */
126 overflow: visible;
127 height: 0px;
128 border: 1px solid $gray;
129 } 141 }
130 142
131 /* Blockquotes */ 143 blockquote
132
133 [dir="ltr"] blockquote
134 { 144 {
135 padding-left: $small-space; 145 padding-left: 1em;
136 border-left: 5px solid $gray; 146 border-left: 5px solid $secondary;
137 } 147 }
138 148
139 [dir="rtl"] blockquote 149 [dir="rtl"] blockquote
140 { 150 {
141 padding-right: $small-space; 151 padding-right: 1em;
142 border-right: 5px solid $gray; 152 padding-left: 0em;
153 border-right: 5px solid $secondary-light;
154 border-left: 0px;
143 } 155 }
144 156
145 /* Code blocks */ 157 ol,
146 158 ul
147 pre
148 {
149 overflow: auto;
150 padding: 0em 1em;
151 }
152
153 code
154 {
155 padding: 0em 0.25em;
156 }
157
158 pre,
159 code
160 {
161 background-color: $gray-light;
162 /* Correct odd font inheritance in all browsers. */
163 font-family: $monospace-font;
164 /* Correct the odd font sizing in all browsers. */
165 font-size: $medium-font;
166 }
167
168 pre code
169 {
170 padding: 0em;
171 }
172
173 /* Lists */
174
175 [dir="ltr"] ol,
176 [dir="ltr"] ul
177 { 159 {
178 padding-left: 1.5em; 160 padding-left: 1.5em;
179 } 161 }
180 162
181 [dir="rtl"] ol, 163 [dir="rtl"] ol,
182 [dir="rtl"] ul 164 [dir="rtl"] ul
183 { 165 {
184 padding-right: 1.5em; 166 padding-right: 2em;
167 padding-left: 0em;
185 } 168 }
186 169
187 li 170 li
188 { 171 {
189 margin: $small-space / 2 0px; 172 margin: 0.5em 0em;
190 } 173 }
191 174
192 ol ol, 175 ol ol,
193 ul ul, 176 ul ul,
194 ol ul, 177 ol ul,
195 ul ol 178 ul ol
196 { 179 {
197 /* prevent double spacing lists */ 180 /* prevent double spacing lists */
198 margin: 0px; 181 margin: 0em;
199 } 182 }
200 183
201 ol ol 184 ol ol
202 { 185 {
203 list-style-type: lower-alpha; 186 list-style-type: lower-alpha;
204 } 187 }
205 188
206 dt 189 dt
207 { 190 {
208 /* undo browser default (opinionated)*/ 191 /* undo browser default (opinionated)*/
209 font-weight: $bold-weight; 192 font-weight: $bold-weight;
210 } 193 }
211 194
212 dd 195 dd
213 { 196 {
214 margin: 0.5em 0em 1em 0em; 197 margin: 0.5em 0em 1em 0em;
215 } 198 }
216
217 /** Unstyled lists */
218
219 .unstyled-list,
220 .unstyled-list ul
221 {
222 list-style-type: none;
223 }
224
225 [dir="ltr"] .unstyled-list
226 {
227 padding-left: 0px;
228 }
229
230 [dir="rtl"] .unstyled-list
231 {
232 padding-right: 0px;
233 }
234
235 [dir="ltr"] .unstyled-list ul
236 {
237 padding-left: $medium-space;
238 }
239
240 [dir="rtl"] .unstyled-list ul
241 {
242 padding-right: $small-space;
243 }
244
245 /* Embeds */
246
247 audio,
248 video
249 {
250 /* undo browser default (opinionated) */
251 display: block;
252 }
253
254 /** Responsive 16x9 YouTube video */
255
256 .youtube-16x9
257 {
258 display: block;
259 position: relative;
260 overflow: hidden;
261 height: 0px;
262 padding: 0% 0% 56.25% 0%;
263 }
264
265 .youtube-16x9 iframe
266 {
267 position: absolute;
268 top: 0px;
269 bottom: 0px;
270 left: 0px;
271 width: 100%;
272 height: 100%;
273 border: 0px;
274 }
275
276 /* Inline elements
277 ******************************************************************************/
278
279 abbr[title]
280 {
281 /* Remove the bottom border in Firefox 39-. */
282 border-bottom: none;
283 /* Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. */
284 text-decoration: underline dotted;
285 cursor: help;
286 }
287
288 b,
289 strong
290 {
291 font-weight: $bold-weight;
292 }
293
294 small
295 {
296 font-size: $small-font;
297 }
298
299 sup
300 {
301 position: relative;
302 top: -0.5em;
303 /* Prevent `sub` and `sup` elements from affecting the line height in
304 all browsers. */
305 font-size: 75%;
306 line-height: 0px;
307 vertical-align: baseline;
308 }
309
310 /* Links */
311
312 a,
313 a:visited
314 {
315 /* Set default color and decoration (opinionated) */
316 color: $accent;
317 /* Remove the gray background on active links in IE 10. */
318 background-color: transparent;
319 text-decoration: none;
320 }
321
322 a:hover,
323 a:active,
324 a:focus
325 {
326 /* Set default color and decoration (opinionated) */
327 text-decoration: underline;
328 }
329
330 /* Images */
331
332 img
333 {
334 margin: 0px $small-space / 2;
335 /* Remove the border on images inside links in IE 10-. */
336 border-style: none;
337 }
338
339 /* Alignment
340 ******************************************************************************/
341
342 .block,
343 .float-start,
344 .float-end
345 {
346 display: block;
347 margin: 0px 0px $small-space 0px;
348 }
349
350 /** Display full-width */
351
352 .block
353 {
354 display: block;
355 clear: both;
356 overflow: auto;
357 width: 100%;
358 margin: $small-space 0px;
359 }
360
361 /** Float to start-of-line */
362
363 [dir="ltr"] .float-start
364 {
365 float: left;
366 margin-right: $small-space;
367 }
368
369 [dir="rtl"] .float-start
370 {
371 float: right;
372 margin-left: $small-space;
373 }
374
375 /** Float to end-of-line */
376
377 [dir="ltr"] .float-end
378 {
379 float: right;
380 margin-left: $small-space;
381 }
382
383 [dir="rtl"] .float-end
384 {
385 float: left;
386 margin-right: $small-space;
387 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld