| OLD | NEW |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
| 4 | 4 |
| 5 /* Set the global 'box-sizing' state to 'border-box'. | 5 /* Set the global 'box-sizing' state to 'border-box'. |
| 6 * *::after and *::before used to select psuedo-elements not selectable by *. */ | 6 * *::after and *::before used to select psuedo-elements not selectable by *. */ |
| 7 | 7 |
| 8 *, | 8 *, |
| 9 *::after, | 9 *::after, |
| 10 *::before { | 10 *::before { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 td, | 69 td, |
| 70 th { | 70 th { |
| 71 padding: 0; | 71 padding: 0; |
| 72 } | 72 } |
| 73 | 73 |
| 74 /* Base typography. */ | 74 /* Base typography. */ |
| 75 | 75 |
| 76 body, | 76 body, |
| 77 html { | 77 html { |
| 78 color: #333; | |
| 79 font-family: 'Open Sans', sans-serif; | 78 font-family: 'Open Sans', sans-serif; |
| 80 font-size: 14px; | 79 font-size: 14px; |
| 81 line-height: 1.4; | 80 line-height: 1.4; |
| 82 text-rendering: optimizeLegibility; | 81 text-rendering: optimizeLegibility; |
| 83 overflow-x: hidden; | 82 overflow-x: hidden; |
| 84 } | 83 } |
| 85 | 84 |
| 85 /* Classes for light, dark and sepia themes. |
| 86 * Must agree with classes returned by useTheme() in dom_distiller_viewer.js |
| 87 * and with CSS class constants in viewer.cc */ |
| 88 |
| 89 .light { |
| 90 color: #333; |
| 91 background-color: #FFF; |
| 92 } |
| 93 |
| 94 .dark { |
| 95 color: #FFF; |
| 96 background-color: #000; |
| 97 } |
| 98 |
| 99 .sepia { |
| 100 color: #000; |
| 101 background-color: rgb(203, 173, 141); |
| 102 } |
| 103 |
| 86 /* Define vertical rhythm (baseline grid of 4px). */ | 104 /* Define vertical rhythm (baseline grid of 4px). */ |
| 87 | 105 |
| 88 blockquote, | 106 blockquote, |
| 89 caption, | 107 caption, |
| 90 code, | 108 code, |
| 91 dd, | 109 dd, |
| 92 dl, | 110 dl, |
| 93 fieldset, | 111 fieldset, |
| 94 figure, | 112 figure, |
| 95 form, | 113 form, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 126 #content { | 144 #content { |
| 127 margin-top: 1.296rem; | 145 margin-top: 1.296rem; |
| 128 } | 146 } |
| 129 | 147 |
| 130 /* Main margins. */ | 148 /* Main margins. */ |
| 131 | 149 |
| 132 #mainContent { | 150 #mainContent { |
| 133 margin: 1.296rem 1.296rem auto; | 151 margin: 1.296rem 1.296rem auto; |
| 134 } | 152 } |
| 135 | 153 |
| 136 a { | 154 /* Link colors for light, dark and sepia themes */ |
| 137 color: #222; | 155 |
| 156 a:link { |
| 157 color: #55F; |
| 158 } |
| 159 |
| 160 a:visited { |
| 161 color: #902290; |
| 138 } | 162 } |
| 139 | 163 |
| 140 blockquote { | 164 blockquote { |
| 141 border-left: 4px solid #eee; | 165 border-left: 4px solid #eee; |
| 142 padding-left: 1em; | 166 padding-left: 1em; |
| 143 } | 167 } |
| 144 | 168 |
| 145 cite { | 169 cite { |
| 146 color: rgba(0, 0, 0, .54); | 170 color: rgba(0, 0, 0, .54); |
| 147 font-style: italic; | 171 font-style: italic; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 display: table; | 220 display: table; |
| 197 font-style: italic; | 221 font-style: italic; |
| 198 margin: 0 auto; | 222 margin: 0 auto; |
| 199 } | 223 } |
| 200 | 224 |
| 201 ol, | 225 ol, |
| 202 ul { | 226 ul { |
| 203 margin-left: 1.296rem; | 227 margin-left: 1.296rem; |
| 204 } | 228 } |
| 205 | 229 |
| 206 code, | 230 .light code, |
| 207 pre { | 231 .light pre, |
| 232 .sepia code, |
| 233 .sepia pre { |
| 208 background-color: #f8f8f8; | 234 background-color: #f8f8f8; |
| 209 border: 1px solid #eee; | 235 border: 1px solid #eee; |
| 210 border-radius: 2px; | 236 border-radius: 2px; |
| 211 } | 237 } |
| 212 | 238 |
| 239 .dark code, |
| 240 .dark pre { |
| 241 background-color: #333; |
| 242 border: 1px solid #555; |
| 243 border-radius: 2px; |
| 244 } |
| 245 |
| 246 code { |
| 247 display: block; |
| 248 padding: .4444rem; |
| 249 } |
| 250 |
| 213 pre code { | 251 pre code { |
| 214 border: none; | 252 border: none; |
| 215 padding: 0; | 253 padding: 0; |
| 216 } | 254 } |
| 217 | 255 |
| 218 pre { | 256 pre { |
| 219 line-height: 1.296rem; | 257 line-height: 1.296rem; |
| 220 overflow-x: scroll; | 258 overflow-x: scroll; |
| 221 padding: .5em; | 259 padding: .5em; |
| 222 } | 260 } |
| 223 | 261 |
| 224 .hidden { | 262 .hidden { |
| 225 display: none; | 263 display: none; |
| 226 } | 264 } |
| OLD | NEW |