 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 | 
| 21 ******************************************************************************/ | 21 ******************************************************************************/ | 
| 22 | 22 | 
| 23 /* Reset margins, paddings, and font globally */ | 23 /* Reset margins, paddings, and font globally */ | 
| 24 | 24 | 
| 25 // General | 25 // General | 
| 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, | 
| 
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, | 30 a, p, span, | 
| 31 em, small, strong, sub, sup, | 31 em, small, strong, sub, sup, | 
| 32 strike, s, mark, del, ins, | 32 strike, s, mark, del, ins, | 
| 33 abbr, dfn, | 33 abbr, dfn, | 
| 34 blockquote, q, cite, | 34 blockquote, q, cite, | 
| 35 code, pre, | 35 code, pre, | 
| 36 kbd, samp, var, output, ruby, | 36 kbd, samp, var, output, ruby, | 
| 37 | 37 | 
| 38 // Lists | 38 // Lists | 
| 39 ol, ul, li, dl, dt, dd, | 39 ol, ul, li, dl, dt, dd, | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 header, | 74 header, | 
| 75 nav, | 75 nav, | 
| 76 section, | 76 section, | 
| 77 main | 77 main | 
| 78 { | 78 { | 
| 79 display: block; | 79 display: block; | 
| 80 } | 80 } | 
| 81 | 81 | 
| 82 /* Set default box-sizing (opinionated) */ | 82 /* Set default box-sizing (opinionated) */ | 
| 83 | 83 | 
| 84 html | |
| 85 { | |
| 86 box-sizing: border-box; | |
| 87 } | |
| 88 | |
| 89 *, | 84 *, | 
| 90 *:before, | 85 *:before, | 
| 91 *:after | 86 *:after | 
| 92 { | 87 { | 
| 93 box-sizing: inherit; | 88 box-sizing: inherit; | 
| 89 } | |
| 90 | |
| 91 html | |
| 92 { | |
| 93 box-sizing: border-box; | |
| 94 } | 94 } | 
| 95 | 95 | 
| 96 /* Remove the margin in all browsers (opinionated). */ | 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 | 97 | 
| 98 body | 98 body | 
| 99 { | 99 { | 
| 100 margin: 0px; | 100 margin: 0px; | 
| 101 } | 101 } | 
| 102 | 102 | 
| 103 /* Remove list styles (opinionated) */ | 103 /* Remove list styles (opinionated) */ | 
| 104 | 104 | 
| 105 ol, | 105 ol, | 
| 106 ul | 106 ul | 
| 107 { | 107 { | 
| 108 list-style: none; | 108 list-style: none; | 
| 109 } | 109 } | 
| 110 | 110 | 
| 111 /* Remove quotes ("") (opinionated) */ | 111 /* Remove quotes ("") in most browsers (opinionated) */ | 
| 112 | 112 | 
| 113 blockquote, | 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 | 114 q | 
| 115 { | 115 { | 
| 116 quotes: none; | 116 quotes: none; | 
| 117 } | 117 } | 
| 118 | |
| 119 /* Remove quotes ("") in Safari (opinionated) */ | |
| 118 | 120 | 
| 119 blockquote:before, | 121 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, | 122 blockquote:after, | 
| 121 q:before, | 123 q:before, | 
| 122 q:after | 124 q:after | 
| 123 { | 125 { | 
| 124 content: ""; | 126 content: ""; | 
| 125 content: none; | 127 content: none; | 
| 126 } | 128 } | 
| 127 | 129 | 
| 128 /* Share borders between adjacent cells (opinionated) */ | 130 /* Share borders between adjacent cells (opinionated) */ | 
| 129 | 131 | 
| 130 table | 132 table | 
| 131 { | 133 { | 
| 132 border-collapse: collapse; | 134 border-collapse: collapse; | 
| 133 border-spacing: 0; | 135 border-spacing: 0; | 
| 134 } | 136 } | 
| LEFT | RIGHT |