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

Side by Side Diff: scss/_reset.scss

Issue 29529767: Issue 5573 - Add a CSS reset to website-defaults (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Reorder selectors, move reset styles from base to reset.scss Created Sept. 1, 2017, 8:56 a.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 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
25 // General
26 html, body,
27
28 // Typography
29 h1, h2, h3, h4, h5, h6,
juliandoucette 2017/09/01 10:30:58 NIT: I like how these are grouped, but it is incon
ire 2017/09/05 06:55:52 I considered this particular selector (since it's
juliandoucette 2017/09/06 16:31:55 Acknowledged.
30 a, p, span,
31 em, small, strong, sub, sup,
32 strike, s, mark, del, ins,
33 abbr, dfn,
34 blockquote, q, cite,
35 code, pre,
36 kbd, samp, var, output, ruby,
37
38 // Lists
39 ol, ul, li, dl, dt, dd,
40
41 // Layout
42 div, section, article,
43 main, aside, nav,
44 header, hgroup, footer,
45
46 // Media
47 img, figure, figcaption,
48 address, time,
49 audio, video,
50 canvas, object, iframe, embed,
51 details, summary,
52
53 // Forms
54 fieldset, form, label, legend,
55
56 // Tables
57 table, caption,
58 tbody, tfoot, thead,
59 tr, th, td
60 {
61 margin: 0px;
62 padding: 0px;
63 border: 0px;
64 font-size: 100%;
65 font: inherit;
66 vertical-align: baseline;
67 }
68
69 /* Add the correct display in IE 9-. */
70
71 article,
72 aside,
73 footer,
74 header,
75 nav,
76 section,
77 main
78 {
79 display: block;
80 }
81
82 /* Set default box-sizing (opinionated) */
83
84 html
85 {
86 box-sizing: border-box;
87 }
88
89 *,
90 *:before,
91 *:after
92 {
93 box-sizing: inherit;
94 }
95
96 /* Remove the margin in all browsers (opinionated). */
juliandoucette 2017/09/01 10:30:59 NIT: I would prefer to order these in terms of spe
ire 2017/09/05 06:55:51 I think it makes more sense in terms of readabilit
juliandoucette 2017/09/06 16:31:55 Acknowledged.
97
98 body
99 {
100 margin: 0px;
101 }
102
103 /* Remove list styles (opinionated) */
104
105 ol,
106 ul
107 {
108 list-style: none;
109 }
110
111 /* Remove quotes ("") (opinionated) */
112
113 blockquote,
juliandoucette 2017/09/01 10:30:58 NIT: We could point out which browsers this is for
ire 2017/09/05 06:55:52 Done.
114 q
115 {
116 quotes: none;
117 }
118
119 blockquote:before,
juliandoucette 2017/09/01 10:30:59 NIT: We could point out which browsers this is for
ire 2017/09/05 06:55:52 Done.
120 blockquote:after,
121 q:before,
122 q:after
123 {
124 content: "";
125 content: none;
126 }
127
128 /* Share borders between adjacent cells (opinionated) */
129
130 table
131 {
132 border-collapse: collapse;
133 border-spacing: 0;
134 }
OLDNEW
« gulpfile.js ('K') | « scss/_base.scss ('k') | scss/main.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld