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: Created Nov. 3, 2016, 2:11 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 /* HTML Content 19 /*******************************************************************************
20 * Content styles
20 ******************************************************************************* 21 *******************************************************************************
21 * 1. Headings 22 * 1. Document
22 * 3. Blockquotes 23 * 2. Headings
23 * 4. Code Blocks 24 * 3. Body content
24 * 5. Unstyled Lists
25 * 6. Image Alignment
26 * 7. Tables
27 * 8. Embeds
28 ******************************************************************************/ 25 ******************************************************************************/
26
27 /* Document
28 ******************************************************************************/
29
30 p,
31 ol,
32 ul,
33 dl,
34 pre,
35 blockquote
36 {
37 /* Set consistent margins (opinionated) */
38 margin: 1em 0em;
39 }
29 40
30 /* Headings 41 /* Headings
31 ******************************************************************************/ 42 ******************************************************************************/
32 43
44 h1,
45 h2,
46 h3,
47 h4,
48 h5,
49 h6
50 {
51 /* Margin on top **only** (opinionated) */
52 margin: 2em 0em 0em 0em;
53 }
54
33 h1 55 h1
34 { 56 {
35 font-size: 36px; 57 font-size: 2em;
36 margin-top: $medium-space;
37 } 58 }
38 59
39 h2 60 h2
40 { 61 {
41 font-size: 28px; 62 font-size: 1.5em;
42 margin-top: $medium-space;
43 } 63 }
44 64
45 h3 65 h3
46 { 66 {
47 font-size: 24px; 67 font-size: 1.25em;
48 margin-top: $medium-space;
49 } 68 }
50 69
51 h4 70 h4
52 { 71 {
53 font-size: 20px; 72 font-size: 1em;
54 margin-top: $small-space;
55 } 73 }
56 74
57 h5 75 h5
58 { 76 {
59 font-size: 16px; 77 font-size: 0.8em;
60 margin-top: $small-space;
61 } 78 }
62 79
63 h6 80 h6
64 { 81 {
65 font-size: 14px; 82 font-size: 0.7em;
66 margin-top: $small-space;
67 } 83 }
68 84
69 /* blockquotes 85 /* Body content
70 ******************************************************************************/ 86 ******************************************************************************/
71 87
72 [dir="ltr"] blockquote 88 abbr
73 { 89 {
74 padding-left: $small-space; 90 text-decoration: underline;
75 border-left: 5px solid $gray; 91 cursor: help;
76 } 92 }
77 93
78 [dir="rtl"] blockquote 94 b,
95 strong
79 { 96 {
80 padding-right: $small-space; 97 font-weight: $bold-weight;
81 border-right: 5px solid $gray;
82 } 98 }
83 99
84 /* Links 100 small
85 ******************************************************************************/ 101 {
102 font-size: $small-font;
103 }
104
105 sup
106 {
107 position: relative;
108 font-size: 75%;
109 vertical-align: super;
110 }
86 111
87 a, 112 a,
88 a:visited 113 a:visited
89 { 114 {
90 color: $blue-dark; 115 color: $accent;
116 /* Remove the gray background on active links in IE 10. */
117 background-color: transparent;
91 text-decoration: none; 118 text-decoration: none;
119 /* Set default pointer regardless of href (opinionated) */
120 cursor: pointer;
92 } 121 }
93 122
94 a:hover, 123 a:hover,
95 a:active, 124 a:active,
96 a:focus 125 a:focus
97 { 126 {
98 text-decoration: underline; 127 text-decoration: underline;
99 } 128 }
100 129
101 /* code blocks 130 img
102 ******************************************************************************/
103
104 pre,
105 code
106 { 131 {
107 padding: $small-space / 4; 132 /* Make fixed width images responsive */
108 background-color: $gray-light; 133 max-width: 100%;
134 /* Remove the border on images inside links in IE 10-. */
135 border-style: none;
109 } 136 }
110 137
111 pre 138 hr
112 { 139 {
113 display: block; 140 border: 1px solid $secondary-light;
114 padding: 0 $small-space;
115 } 141 }
116 142
117 pre > code 143 blockquote
118 { 144 {
119 padding: 0; 145 padding-left: 1em;
120 background-color: transparent; 146 border-left: 5px solid $secondary;
121 } 147 }
122 148
123 /* unstyled lists 149 [dir="rtl"] blockquote
124 ******************************************************************************/
125
126 .unstyled-list,
127 .unstyled-list ul
128 { 150 {
129 list-style-type: none; 151 padding-right: 1em;
152 padding-left: 0em;
153 border-right: 5px solid $secondary-light;
154 border-left: 0px;
130 } 155 }
131 156
132 [dir="ltr"] .unstyled-list 157 ol,
158 ul
133 { 159 {
134 padding-left: 0; 160 padding-left: 1.5em;
135 } 161 }
136 162
137 [dir="rtl"] .unstyled-list 163 [dir="rtl"] ol,
164 [dir="rtl"] ul
138 { 165 {
139 padding-right: 0; 166 padding-right: 2em;
167 padding-left: 0em;
140 } 168 }
141 169
142 [dir="ltr"] .unstyled-list ul 170 li
143 { 171 {
144 padding-left: $medium-space; 172 margin: 0.5em 0em;
145 } 173 }
146 174
147 [dir="rtl"] .unstyled-list ul 175 ol ol,
176 ul ul,
177 ol ul,
178 ul ol
148 { 179 {
149 padding-right: $small-space; 180 /* prevent double spacing lists */
181 margin: 0em;
150 } 182 }
151 183
152 /* image alignment 184 ol ol
153 ******************************************************************************/
154
155 img
156 { 185 {
157 margin: 0 $small-space / 2; 186 list-style-type: lower-alpha;
158 } 187 }
159 188
160 .block, 189 dt
161 .sol,
162 .eol
163 { 190 {
164 display: block; 191 /* undo browser default (opinionated)*/
165 margin: 0; 192 font-weight: $bold-weight;
166 } 193 }
167 194
168 .block 195 dd
169 { 196 {
170 display: block; 197 margin: 0.5em 0em 1em 0em;
171 width: 100%;
172 height: auto;
173 clear: both;
174 overflow: auto;
175 margin: $small-space 0;
176 } 198 }
177
178 [dir="ltr"] .sol
179 {
180 margin-right: $small-space;
181 float: left;
182 }
183
184 [dir="rtl"] .sol
185 {
186 margin-left: $small-space;
187 float: right;
188 }
189
190 [dir="ltr"] .eol
191 {
192 margin-left: $small-space;
193 float: right;
194 }
195
196 [dir="rtl"] .eol
197 {
198 margin-right: $small-space;
199 float: left;
200 }
201
202 /* tables
203 ******************************************************************************/
204
205 table
206 {
207 border-collapse: collapse;
208 width: 100%;
209 }
210
211 td,
212 th
213 {
214 padding: $small-space / 4 $small-space / 2;
215 }
216
217 th
218 {
219 background-color: $white;
220 }
221
222 tr:nth-child(even)
223 {
224 background-color: $white;
225 }
226
227 tr:nth-child(odd)
228 {
229 background-color: $gray-light;
230 }
231
232 /* embeds
233 ******************************************************************************/
234
235 .embed
236 {
237 position: relative;
238 display: block;
239 height: 0;
240 padding: 0 0 56.25% 0;
241 overflow: hidden;
242 }
243
244 .embed iframe
245 {
246 position: absolute;
247 top: 0;
248 bottom: 0;
249 left: 0;
250 width: 100%;
251 height: 100%;
252 border: 0;
253 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld