 Issue 29529767:
  Issue 5573 - Add a CSS reset to website-defaults  (Closed) 
  Base URL: https://hg.adblockplus.org/website-defaults
    
  
    Issue 29529767:
  Issue 5573 - Add a CSS reset to website-defaults  (Closed) 
  Base URL: https://hg.adblockplus.org/website-defaults| Left: | ||
| Right: | 
| LEFT | RIGHT | 
|---|---|
| 1 /*! | 1 /*! | 
| 2 * This file is part of website-defaults | 2 * This file is part of website-defaults | 
| 3 * Copyright (C) 2016-present eyeo GmbH | 3 * Copyright (C) 2016-present eyeo GmbH | 
| 4 * | 4 * | 
| 5 * website-defaults 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 * website-defaults 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 website-defaults. 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 /******************************************************************************* | 19 /******************************************************************************* | 
| 20 * CSS Reset | 20 * CSS Reset | 
| 
ire
2017/08/28 17:29:10
I created a different file instead of adding this
 
juliandoucette
2017/08/30 10:04:28
Acknowledged.
(I don't mind if you do that in thi
 
ire
2017/09/01 08:57:06
Done.
 | |
| 21 ******************************************************************************/ | 21 ******************************************************************************/ | 
| 22 | 22 | 
| 23 /* Reset margins, paddings, and font globally */ | 23 /* Reset margins, paddings, and font globally */ | 
| 
ire
2017/08/28 17:29:10
Most of this is based on Eric Meyer's reset (http:
 
juliandoucette
2017/08/30 10:04:28
I think that we should mention it in our README an
 
ire
2017/09/01 08:57:06
Done.
 | |
| 24 | 24 | 
| 25 // General | 25 // General | 
| 
ire
2017/08/28 17:29:10
This was my attempt to organise the selectors bett
 
juliandoucette
2017/08/30 10:04:28
I like them.
 
ire
2017/09/01 08:57:06
Great
 | |
| 26 html, body, | 26 html, body, | 
| 27 | 27 | 
| 28 // Typography | 28 // Typography | 
| 29 h1, h2, h3, h4, h5, h6, | 29 h1, h2, h3, h4, h5, h6, | 
| 30 a, p, span, | 30 a, p, span, | 
| 31 em, small, strong, strike, s, | 31 em, small, strong, sub, sup, | 
| 32 abbr, mark, sub, sup, | 32 strike, s, mark, del, ins, | 
| 33 abbr, dfn, | |
| 33 blockquote, q, cite, | 34 blockquote, q, cite, | 
| 34 code, pre, | 35 code, pre, | 
| 36 kbd, samp, var, output, ruby, | |
| 35 | 37 | 
| 36 // Lists | 38 // Lists | 
| 37 ol, ul, li, dl, dt, dd, | 39 ol, ul, li, dl, dt, dd, | 
| 38 | 40 | 
| 39 // Layout | 41 // Layout | 
| 40 div, section, article, | 42 div, section, article, | 
| 41 main, aside, nav, | 43 main, aside, nav, | 
| 42 header, hgroup, footer, | 44 header, hgroup, footer, | 
| 43 | 45 | 
| 44 // Media | 46 // Media | 
| 45 img, figure, figcaption, | 47 img, figure, figcaption, | 
| 46 address, time, | 48 address, time, | 
| 47 audio, video, | 49 audio, video, | 
| 48 canvas, object, iframe, embed, | 50 canvas, object, iframe, embed, | 
| 49 details, summary, | 51 details, summary, | 
| 50 | 52 | 
| 51 // Forms | 53 // Forms | 
| 52 fieldset, form, label, legend, | 54 fieldset, form, label, legend, | 
| 53 | 55 | 
| 54 // Tables | 56 // Tables | 
| 55 table, caption, | 57 table, caption, | 
| 56 tbody, tfoot, thead, | 58 tbody, tfoot, thead, | 
| 57 tr, th, td, | 59 tr, th, td | 
| 58 | |
| 59 // Other | |
| 60 del, dfn, ins, kbd, samp, var, output, ruby | |
| 
juliandoucette
2017/08/30 10:04:28
NIT: [del, ins, strike, mark] seem related (editin
 
ire
2017/09/01 08:57:06
Done. I moved them to typography and ordered them
 | |
| 61 { | 60 { | 
| 62 margin: 0; | 61 margin: 0px; | 
| 63 padding: 0; | 62 padding: 0px; | 
| 64 border: 0; | 63 border: 0px; | 
| 65 font-size: 100%; | 64 font-size: 100%; | 
| 66 font: inherit; | 65 font: inherit; | 
| 67 vertical-align: baseline; | 66 vertical-align: baseline; | 
| 68 } | 67 } | 
| 69 | 68 | 
| 70 /* Remove list styles */ | 69 /* Add the correct display in IE 9-. */ | 
| 
ire
2017/08/28 17:29:10
I'm undecided if we want/need this
 
juliandoucette
2017/08/30 10:04:28
Acknowledged.
 | |
| 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 *, | |
| 85 *:before, | |
| 86 *:after | |
| 87 { | |
| 88 box-sizing: inherit; | |
| 89 } | |
| 90 | |
| 91 html | |
| 92 { | |
| 93 box-sizing: border-box; | |
| 94 } | |
| 95 | |
| 96 /* Remove the margin in all browsers (opinionated). */ | |
| 97 | |
| 98 body | |
| 99 { | |
| 100 margin: 0px; | |
| 101 } | |
| 102 | |
| 103 /* Remove list styles (opinionated) */ | |
| 71 | 104 | 
| 72 ol, | 105 ol, | 
| 73 ul | 106 ul | 
| 74 { | 107 { | 
| 75 list-style: none; | 108 list-style: none; | 
| 76 } | 109 } | 
| 77 | 110 | 
| 78 /* Remove quotes ("") */ | 111 /* Remove quotes ("") in most browsers (opinionated) */ | 
| 79 | 112 | 
| 80 blockquote, | 113 blockquote, | 
| 81 q | 114 q | 
| 82 { | 115 { | 
| 83 quotes: none; | 116 quotes: none; | 
| 84 } | 117 } | 
| 118 | |
| 119 /* Remove quotes ("") in Safari (opinionated) */ | |
| 85 | 120 | 
| 86 blockquote:before, | 121 blockquote:before, | 
| 87 blockquote:after, | 122 blockquote:after, | 
| 88 q:before, | 123 q:before, | 
| 89 q:after | 124 q:after | 
| 90 { | 125 { | 
| 91 content: ""; | 126 content: ""; | 
| 92 content: none; | 127 content: none; | 
| 93 } | 128 } | 
| 94 | 129 | 
| 95 /* Share borders between adjacent cells */ | 130 /* Share borders between adjacent cells (opinionated) */ | 
| 96 | 131 | 
| 97 table | 132 table | 
| 98 { | 133 { | 
| 99 border-collapse: collapse; | 134 border-collapse: collapse; | 
| 100 border-spacing: 0; | 135 border-spacing: 0; | 
| 101 } | 136 } | 
| LEFT | RIGHT |