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

Delta Between Two Patch Sets: skin/defaults.css

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

Powered by Google App Engine
This is Rietveld