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

Side by Side Diff: static/css/defaults.css

Issue 29568555: Issue 5723 - Implement new abp.org content style guide (Closed) Base URL: https://bitbucket.org/adblockplus/adblockplus.org
Patch Set: Addressed comments Created Oct. 9, 2017, 11:25 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
« no previous file with comments | « no previous file | static/css/index.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*!
2 * This file is part of website-defaults
3 * Copyright (C) 2016-present eyeo GmbH
4 *
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
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * website-defaults 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 website-defaults. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /******************************************************************************
20 * CSS Reset
21 *****************************************************************************/
22
23 /* Reset margins, paddings, and font globally */
24 html, body,
25 h1, h2, h3, h4, h5, h6,
26 a, p, span,
27 em, small, strong, sub, sup,
28 strike, s, mark, del, ins,
29 abbr, dfn,
30 blockquote, q, cite,
31 code, pre,
32 kbd, samp, var, output, ruby,
33 ol, ul, li, dl, dt, dd,
34 div, section, article,
35 main, aside, nav,
36 header, hgroup, footer,
37 img, figure, figcaption,
38 address, time,
39 audio, video,
40 canvas, object, iframe, embed,
41 details, summary,
42 fieldset, form, label, legend,
43 table, caption,
44 tbody, tfoot, thead,
45 tr, th, td {
46 margin: 0px;
47 padding: 0px;
48 border: 0px;
49 font-size: 100%;
50 font: inherit;
51 vertical-align: baseline; }
52
53 /* Add the correct display in IE 9-. */
54 article,
55 aside,
56 footer,
57 header,
58 nav,
59 section,
60 main {
61 display: block; }
62
63 /* Set default box-sizing (opinionated) */
64 *,
65 *:before,
66 *:after {
67 box-sizing: inherit; }
68
69 html {
70 box-sizing: border-box; }
71
72 /* Remove the margin in all browsers (opinionated). */
73 body {
74 margin: 0px; }
75
76 /* Remove list styles (opinionated) */
77 ol,
78 ul {
79 list-style: none; }
80
81 /* Remove quotes ("") in most browsers (opinionated) */
82 blockquote,
83 q {
84 quotes: none; }
85
86 /* Remove quotes ("") in Safari (opinionated) */
87 blockquote:before,
88 blockquote:after,
89 q:before,
90 q:after {
91 content: "";
92 content: none; }
93
94 /* Share borders between adjacent cells (opinionated) */
95 table {
96 border-collapse: collapse;
97 border-spacing: 0; }
98
99 /* Normalize inline content (opinionated) */
100 b,
101 strong {
102 font-weight: 600; }
103
104 small {
105 font-size: 0.8em; }
106
107 abbr {
108 text-decoration: underline;
109 cursor: help; }
110
111 sup {
112 position: relative;
113 font-size: 75%;
114 vertical-align: super; }
115
116 a,
117 a:visited {
118 color: inherit;
119 /* Remove the gray background on active links in IE 10. */
120 background-color: transparent;
121 text-decoration: none;
122 /* Set default pointer regardless of href (opinionated) */
123 cursor: pointer; }
124
125 a:hover,
126 a:active,
127 a:focus {
128 text-decoration: underline; }
129
130 img {
131 /* Make fixed width images responsive */
132 max-width: 100%;
133 /* Remove the border on images inside links in IE 10-. */
134 border-style: none; }
135
136 /* Set correct display for hidden attribute in IE 10- */
137 [hidden] {
138 display: none; }
139
140 /******************************************************************************
141 * Base styles
142 *****************************************************************************/
143
144 html {
145 color: #212121;
146 background-color: #fff;
147 font-family: sans-serif;
148 line-height: 1.5; }
149
150 /**
151 * Stretch content full-width
152 */
153 .full-width {
154 display: block;
155 width: 100%;
156 margin: 1em 0px; }
157
158 /**
159 * Center content within a (responsive) fixed width
160 */
161 .container {
162 width: auto;
163 max-width: 100%;
164 margin: 0px auto;
165 padding: 0px 1em; }
166
167 @media (min-width: 768px) {
168 .container {
169 width: 720px; } }
170
171 @media (min-width: 1200px) {
172 .container {
173 width: 1170px; } }
174
175 /******************************************************************************
176 * Content styles
177 *****************************************************************************/
178
179 .content {}
180 .content p,
181 .content ol,
182 .content ul,
183 .content dl,
184 .content pre,
185 .content blockquote {
186 /* Set consistent margins (opinionated) */
187 margin: 1em 0em; }
188 .content h1,
189 .content h2,
190 .content h3,
191 .content h4,
192 .content h5,
193 .content h6 {
194 /* Margin on top **only** (opinionated) */
195 margin: 2em 0em 0.5em 0em;
196 /* All headings should be bold (opinionated) */
197 font-weight: 600; }
198 .content h1 {
199 font-size: 2em; }
200 .content h2 {
201 font-size: 1.5em; }
202 .content h3 {
203 font-size: 1.25em; }
204 .content h4 {
205 font-size: 1em; }
206 .content h5 {
207 font-size: 0.8em; }
208 .content h6 {
209 font-size: 0.7em; }
210 .content a,
211 .content a:visited {
212 color: #c70d2c; }
213 .content hr {
214 border: 1px solid #eee; }
215 .content blockquote {
216 padding-left: 1em;
217 border-left: 5px solid #9e9e9e; }
218 .content [dir="rtl"] blockquote {
219 padding-right: 1em;
220 padding-left: 0em;
221 border-right: 5px solid #eee;
222 border-left: 0px; }
223 .content ol,
224 .content ul {
225 padding-left: 1.5em; }
226 .content [dir="rtl"] ol,
227 .content [dir="rtl"] ul {
228 padding-right: 2em;
229 padding-left: 0em; }
230 .content ol {
231 list-style: decimal; }
232 .content ul {
233 list-style: disc; }
234 .content li {
235 margin: 0.25em 0em; }
236 .content ol ol,
237 .content ul ul,
238 .content ol ul,
239 .content ul ol {
240 /* prevent double spacing lists */
241 margin: 0em; }
242 .content ol ol {
243 list-style-type: lower-alpha; }
244 .content dt {
245 /* undo browser default (opinionated)*/
246 font-weight: 600; }
247 .content dd {
248 margin: 0.25em 0em 1em 0em; }
249
250 /******************************************************************************
251 * Grid component
252 *****************************************************************************/
253
254 /**
255 * - .row contains one or more .column(s)
256 * - .row clears .column(s)
257 * - .row negates the left & right padding of it's left-most & right-most
258 * .column(s) while preserving consistent padding between .column(s)
259 */
260 .row {
261 margin: 0px -1em; }
262
263 .row:after {
264 display: block;
265 clear: both;
266 content: ""; }
267
268 /**
269 * - .column is 100% width by default
270 * - Modifier classes are applied to .column to change it's width
271 * - Modifier classes behave differently on different device widths
272 */
273 .column {
274 position: relative;
275 width: 100%;
276 min-height: 1px;
277 padding: 0px 1em; }
278
279 /* - .column(s) within .row .reverse appear in reverse order
280 * - .column(s) within [dir=rtl] appear in reverse order respectively
281 */
282 .column,
283 [dir="rtl"] .reverse .column {
284 float: left; }
285
286 .reverse .column,
287 [dir="rtl"] .column {
288 float: right; }
289
290 @media (min-width: 768px) {
291 .one-half,
292 .one-fourth {
293 width: 50%; } }
294
295 @media (min-width: 992px) {
296 .one-third {
297 width: 33.333333%; }
298 .two-thirds {
299 width: 66.666667%; }
300 .one-fourth {
301 width: 25%; }
302 .three-fourths {
303 width: 75%; } }
304
305 /******************************************************************************
306 * Basic forms fields
307 *****************************************************************************/
308
309 /* Change the font styles in all browsers (opinionated). */
310 input,
311 optgroup,
312 select,
313 textarea {
314 font: inherit; }
315
316 /* Show the overflow in IE and Edge */
317 input {
318 overflow: visible; }
319
320 /* Remove the inheritance of text transform in Edge, Firefox, and IE. */
321 select {
322 text-transform: none; }
323
324 /* Set block display (opinionated) */
325 fieldset {
326 display: block; }
327
328 /* Correct the text wrapping in Edge and IE. */
329 legend {
330 display: table;
331 max-width: 100%;
332 white-space: normal; }
333
334 /* Remove the default vertical scrollbar in IE. */
335 textarea {
336 overflow: auto; }
337
338 /* Remove the padding in IE 10-. */
339 [type="checkbox"],
340 [type="radio"] {
341 padding: 0px; }
342
343 /******************************************************************************
344 * Adanced forms fields
345 ******************************************************************************
346
347 /* Correct the cursor style of increment and decrement buttons in Chrome. */
348 [type="number"]::-webkit-inner-spin-button,
349 [type="number"]::-webkit-outer-spin-button {
350 height: auto; }
351
352 /* Use `-webkit-appearance: none` to reset inputs in iOS Safari */
353 [type="date"],
354 [type="time"],
355 [type="datetime"],
356 [type="datetime-local"],
357 [type="month"],
358 [type="week"],
359 [type="search"],
360 [type="search"]::-webkit-search-cancel-button,
361 [type="search"]::-webkit-search-decoration {
362 -webkit-appearance: none; }
363
364 [type="search"] {
365 outline-offset: -2px; }
366
367 /******************************************************************************
368 * Buttons
369 *****************************************************************************/
370
371 button {
372 margin: 0px;
373 font: inherit;
374 /* Show the overflow in IE and Edge */
375 overflow: visible;
376 /* Remove the inheritance of text transform in Edge, Firefox, and IE. */
377 text-transform: none; }
378
379 /**
380 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
381 * controls in Android 4.
382 * 2. Correct the inability to style clickable types in iOS and Safari.
383 */
384 button,
385 html [type="button"],
386 [type="reset"],
387 [type="submit"] {
388 -webkit-appearance: button; }
389
390 /* Remove the inner border and padding in Firefox. */
391 button::-moz-focus-inner,
392 [type="button"]::-moz-focus-inner,
393 [type="reset"]::-moz-focus-inner,
394 [type="submit"]::-moz-focus-inner {
395 padding: 0px;
396 border-style: none; }
397
398 /* Restore the focus styles unset by the previous rule. */
399 button:-moz-focusring,
400 [type="button"]:-moz-focusring,
401 [type="reset"]:-moz-focusring,
402 [type="submit"]:-moz-focusring {
403 outline: 1px dotted ButtonText; }
OLDNEW
« no previous file with comments | « no previous file | static/css/index.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld