 Issue 29538612:
  Issue 5607 - Namespace content styles in website-defaults  (Closed) 
  Base URL: https://hg.adblockplus.org/website-defaults
    
  
    Issue 29538612:
  Issue 5607 - Namespace content styles in website-defaults  (Closed) 
  Base URL: https://hg.adblockplus.org/website-defaults| Left: | ||
| Right: | 
| OLD | NEW | 
|---|---|
| 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 * Content styles | 20 * Content styles | 
| 21 ******************************************************************************* | 21 ******************************************************************************* | 
| 22 * 1. Document | 22 * 1. Document | 
| 23 * 2. Headings | 23 * 2. Headings | 
| 24 * 3. Body content | 24 * 3. Body content | 
| 25 ******************************************************************************/ | 25 ******************************************************************************/ | 
| 26 | 26 | 
| 27 /* Document | 27 .content | 
| 
ire
2017/09/07 12:08:23
I added this to all the styles here. There are a c
 
juliandoucette
2017/09/08 15:43:53
Acknowledged.
 | |
| 28 ******************************************************************************/ | 28 { | 
| 29 | 29 | 
| 30 p, | 30 /* Document | 
| 31 ol, | 31 ****************************************************************************** / | 
| 32 ul, | 32 | 
| 33 dl, | 33 p, | 
| 34 pre, | 34 ol, | 
| 35 blockquote | 35 ul, | 
| 36 { | 36 dl, | 
| 37 /* Set consistent margins (opinionated) */ | 37 pre, | 
| 38 margin: 1em 0em; | 38 blockquote | 
| 39 { | |
| 40 /* Set consistent margins (opinionated) */ | |
| 41 margin: 1em 0em; | |
| 42 } | |
| 43 | |
| 44 /* Headings | |
| 45 ****************************************************************************** / | |
| 46 | |
| 47 h1, | |
| 48 h2, | |
| 49 h3, | |
| 50 h4, | |
| 51 h5, | |
| 52 h6 | |
| 53 { | |
| 54 /* Margin on top **only** (opinionated) */ | |
| 55 margin: 2em 0em 0.5em 0em; | |
| 56 } | |
| 57 | |
| 58 h1 | |
| 59 { | |
| 60 font-size: 2em; | |
| 61 } | |
| 62 | |
| 63 h2 | |
| 64 { | |
| 65 font-size: 1.5em; | |
| 66 } | |
| 67 | |
| 68 h3 | |
| 69 { | |
| 70 font-size: 1.25em; | |
| 71 } | |
| 72 | |
| 73 h4 | |
| 74 { | |
| 75 font-size: 1em; | |
| 76 } | |
| 77 | |
| 78 h5 | |
| 79 { | |
| 80 font-size: 0.8em; | |
| 81 } | |
| 82 | |
| 83 h6 | |
| 84 { | |
| 85 font-size: 0.7em; | |
| 86 } | |
| 87 | |
| 88 /* Body content | |
| 89 ****************************************************************************** / | |
| 90 | |
| 91 abbr | |
| 92 { | |
| 93 text-decoration: underline; | |
| 94 cursor: help; | |
| 95 } | |
| 96 | |
| 97 b, | |
| 98 strong | |
| 
ire
2017/09/07 12:08:23
Should this be global?
 
juliandoucette
2017/09/08 15:43:53
Yes, and...
NIT: I think that we should consider
 
ire
2017/09/11 11:12:02
Acknowledged.
 
ire
2017/09/11 11:29:16
See https://issues.adblockplus.org/ticket/5651
 
juliandoucette
2017/09/11 15:54:34
Acknowledged.
 | |
| 99 { | |
| 100 font-weight: $bold-weight; | |
| 101 } | |
| 102 | |
| 103 small | |
| 104 { | |
| 105 font-size: $small-font; | |
| 
juliandoucette
2017/09/08 15:43:53
NIT: I think that we should consider a relative va
 
ire
2017/09/11 11:12:02
Acknowledged.
 | |
| 106 } | |
| 107 | |
| 108 sup | |
| 109 { | |
| 110 position: relative; | |
| 111 font-size: 75%; | |
| 112 vertical-align: super; | |
| 113 } | |
| 114 | |
| 115 a, | |
| 116 a:visited | |
| 
ire
2017/09/07 12:08:23
This should probably be global
 
juliandoucette
2017/09/08 15:43:53
Regarding what should and should not be global. Pe
 
ire
2017/09/11 11:12:02
This is a good rule. I can't think of any exceptio
 | |
| 117 { | |
| 118 color: $accent; | |
| 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 | |
| 126 a:hover, | |
| 127 a:active, | |
| 128 a:focus | |
| 129 { | |
| 130 text-decoration: underline; | |
| 131 } | |
| 132 | |
| 133 img | |
| 
ire
2017/09/07 12:08:23
This should probably be global
 
juliandoucette
2017/09/08 15:43:53
Acknowledged.
 | |
| 134 { | |
| 135 /* Make fixed width images responsive */ | |
| 136 max-width: 100%; | |
| 137 /* Remove the border on images inside links in IE 10-. */ | |
| 138 border-style: none; | |
| 139 } | |
| 140 | |
| 141 hr | |
| 142 { | |
| 143 border: 1px solid $secondary-light; | |
| 144 } | |
| 145 | |
| 146 blockquote | |
| 147 { | |
| 148 padding-left: 1em; | |
| 149 border-left: 5px solid $secondary; | |
| 150 } | |
| 151 | |
| 152 [dir="rtl"] blockquote | |
| 153 { | |
| 154 padding-right: 1em; | |
| 155 padding-left: 0em; | |
| 156 border-right: 5px solid $secondary-light; | |
| 157 border-left: 0px; | |
| 158 } | |
| 159 | |
| 160 ol, | |
| 161 ul | |
| 162 { | |
| 163 padding-left: 1.5em; | |
| 164 } | |
| 165 | |
| 166 [dir="rtl"] ol, | |
| 167 [dir="rtl"] ul | |
| 168 { | |
| 169 padding-right: 2em; | |
| 170 padding-left: 0em; | |
| 171 } | |
| 172 | |
| 173 ol | |
| 174 { | |
| 175 list-style: decimal; | |
| 176 } | |
| 177 | |
| 178 ul | |
| 179 { | |
| 180 list-style: disc; | |
| 181 } | |
| 182 | |
| 183 li | |
| 184 { | |
| 185 margin: 0.25em 0em; | |
| 186 } | |
| 187 | |
| 188 ol ol, | |
| 189 ul ul, | |
| 190 ol ul, | |
| 191 ul ol | |
| 192 { | |
| 193 /* prevent double spacing lists */ | |
| 194 margin: 0em; | |
| 195 } | |
| 196 | |
| 197 ol ol | |
| 198 { | |
| 199 list-style-type: lower-alpha; | |
| 200 } | |
| 201 | |
| 202 dt | |
| 203 { | |
| 204 /* undo browser default (opinionated)*/ | |
| 205 font-weight: $bold-weight; | |
| 206 } | |
| 207 | |
| 208 dd | |
| 209 { | |
| 210 margin: 0.25em 0em 1em 0em; | |
| 211 } | |
| 212 | |
| 39 } | 213 } | 
| 40 | |
| 41 /* Headings | |
| 42 ******************************************************************************/ | |
| 43 | |
| 44 h1, | |
| 45 h2, | |
| 46 h3, | |
| 47 h4, | |
| 48 h5, | |
| 49 h6 | |
| 50 { | |
| 51 /* Margin on top **only** (opinionated) */ | |
| 52 margin: 2em 0em 0.5em 0em; | |
| 53 } | |
| 54 | |
| 55 h1 | |
| 56 { | |
| 57 font-size: 2em; | |
| 58 } | |
| 59 | |
| 60 h2 | |
| 61 { | |
| 62 font-size: 1.5em; | |
| 63 } | |
| 64 | |
| 65 h3 | |
| 66 { | |
| 67 font-size: 1.25em; | |
| 68 } | |
| 69 | |
| 70 h4 | |
| 71 { | |
| 72 font-size: 1em; | |
| 73 } | |
| 74 | |
| 75 h5 | |
| 76 { | |
| 77 font-size: 0.8em; | |
| 78 } | |
| 79 | |
| 80 h6 | |
| 81 { | |
| 82 font-size: 0.7em; | |
| 83 } | |
| 84 | |
| 85 /* Body content | |
| 86 ******************************************************************************/ | |
| 87 | |
| 88 abbr | |
| 89 { | |
| 90 text-decoration: underline; | |
| 91 cursor: help; | |
| 92 } | |
| 93 | |
| 94 b, | |
| 95 strong | |
| 96 { | |
| 97 font-weight: $bold-weight; | |
| 98 } | |
| 99 | |
| 100 small | |
| 101 { | |
| 102 font-size: $small-font; | |
| 103 } | |
| 104 | |
| 105 sup | |
| 106 { | |
| 107 position: relative; | |
| 108 font-size: 75%; | |
| 109 vertical-align: super; | |
| 110 } | |
| 111 | |
| 112 a, | |
| 113 a:visited | |
| 114 { | |
| 115 color: $accent; | |
| 116 /* Remove the gray background on active links in IE 10. */ | |
| 117 background-color: transparent; | |
| 118 text-decoration: none; | |
| 119 /* Set default pointer regardless of href (opinionated) */ | |
| 120 cursor: pointer; | |
| 121 } | |
| 122 | |
| 123 a:hover, | |
| 124 a:active, | |
| 125 a:focus | |
| 126 { | |
| 127 text-decoration: underline; | |
| 128 } | |
| 129 | |
| 130 img | |
| 131 { | |
| 132 /* Make fixed width images responsive */ | |
| 133 max-width: 100%; | |
| 134 /* Remove the border on images inside links in IE 10-. */ | |
| 135 border-style: none; | |
| 136 } | |
| 137 | |
| 138 hr | |
| 139 { | |
| 140 border: 1px solid $secondary-light; | |
| 141 } | |
| 142 | |
| 143 blockquote | |
| 144 { | |
| 145 padding-left: 1em; | |
| 146 border-left: 5px solid $secondary; | |
| 147 } | |
| 148 | |
| 149 [dir="rtl"] blockquote | |
| 150 { | |
| 151 padding-right: 1em; | |
| 152 padding-left: 0em; | |
| 153 border-right: 5px solid $secondary-light; | |
| 154 border-left: 0px; | |
| 155 } | |
| 156 | |
| 157 ol, | |
| 158 ul | |
| 159 { | |
| 160 padding-left: 1.5em; | |
| 161 } | |
| 162 | |
| 163 [dir="rtl"] ol, | |
| 164 [dir="rtl"] ul | |
| 165 { | |
| 166 padding-right: 2em; | |
| 167 padding-left: 0em; | |
| 168 } | |
| 169 | |
| 170 li | |
| 171 { | |
| 172 margin: 0.25em 0em; | |
| 173 } | |
| 174 | |
| 175 ol ol, | |
| 176 ul ul, | |
| 177 ol ul, | |
| 178 ul ol | |
| 179 { | |
| 180 /* prevent double spacing lists */ | |
| 181 margin: 0em; | |
| 182 } | |
| 183 | |
| 184 ol ol | |
| 185 { | |
| 186 list-style-type: lower-alpha; | |
| 187 } | |
| 188 | |
| 189 dt | |
| 190 { | |
| 191 /* undo browser default (opinionated)*/ | |
| 192 font-weight: $bold-weight; | |
| 193 } | |
| 194 | |
| 195 dd | |
| 196 { | |
| 197 margin: 0.25em 0em 1em 0em; | |
| 198 } | |
| OLD | NEW |