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 pseudo-elements not selectable by *. */ | 6 * *::after and *::before used to select pseudo-elements not selectable by *. */ |
7 | 7 |
8 *, | 8 *, |
9 *::after, | 9 *::after, |
10 *::before { | 10 *::before { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 72 } |
73 | 73 |
74 /* Base typography. */ | 74 /* Base typography. */ |
75 | 75 |
76 body, | 76 body, |
77 html { | 77 html { |
78 font-size: 14px; | 78 font-size: 14px; |
79 height: 100%; | 79 height: 100%; |
80 line-height: 1.4; | 80 line-height: 1.4; |
81 text-rendering: optimizeLegibility; | 81 text-rendering: optimizeLegibility; |
| 82 transition-property: color, background-color; |
| 83 transition-duration: 0.5s; |
| 84 transition-timing-function: ease; |
82 overflow-x: hidden; | 85 overflow-x: hidden; |
83 -webkit-overflow-scrolling: touch; | 86 -webkit-overflow-scrolling: touch; |
84 } | 87 } |
85 | 88 |
86 /* Classes for light, dark and sepia themes. | 89 /* Classes for light, dark and sepia themes. |
87 * Must agree with classes returned by useTheme() in dom_distiller_viewer.js | 90 * Must agree with classes returned by useTheme() in dom_distiller_viewer.js |
88 * and with CSS class constants in viewer.cc */ | 91 * and with CSS class constants in viewer.cc */ |
89 | 92 |
90 .light { | 93 .light { |
91 color: #333; | 94 color: #333; |
92 background-color: #FFF; | 95 background-color: #FFF; |
93 } | 96 } |
94 | 97 |
95 .dark { | 98 .dark { |
96 color: #FFF; | 99 color: #DDD; |
97 background-color: #000; | 100 background-color: #000; |
98 } | 101 } |
99 | 102 |
100 .sepia { | 103 .sepia { |
101 color: #000; | 104 color: #000; |
102 background-color: rgb(203, 173, 141); | 105 background-color: rgb(203, 173, 141); |
103 } | 106 } |
104 | 107 |
105 .serif { | 108 .serif { |
106 font-family: serif; | 109 font-family: serif; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 } | 198 } |
196 | 199 |
197 .verticalCenterInner { | 200 .verticalCenterInner { |
198 display: table-cell; | 201 display: table-cell; |
199 vertical-align: middle; | 202 vertical-align: middle; |
200 } | 203 } |
201 | 204 |
202 | 205 |
203 /* Link colors for light, dark and sepia themes */ | 206 /* Link colors for light, dark and sepia themes */ |
204 | 207 |
205 a:link { | 208 .light a:link, |
| 209 .sepia a:link { |
206 color: #55F; | 210 color: #55F; |
207 } | 211 } |
208 | 212 |
209 a:visited { | 213 .dark a:link { |
| 214 color: #88F; |
| 215 } |
| 216 |
| 217 .light a:visited, |
| 218 .sepia a:visited { |
210 color: #902290; | 219 color: #902290; |
211 } | 220 } |
212 | 221 |
| 222 .dark a:visited { |
| 223 color: #D872D8; |
| 224 } |
| 225 |
213 blockquote { | 226 blockquote { |
214 border-left: 4px solid #eee; | 227 border-left: 4px solid #eee; |
215 padding-left: 1em; | 228 padding-left: 1em; |
216 } | 229 } |
217 | 230 |
218 cite { | 231 cite { |
219 color: rgba(0, 0, 0, .54); | 232 opacity: .54; |
220 font-style: italic; | 233 font-style: italic; |
221 } | 234 } |
222 | 235 |
223 hr { | 236 hr { |
224 background-color: #e4dfdf; | 237 opacity: .5; |
225 border: none; | 238 border-style: solid; |
226 height: 1px; | 239 height: 1px 0 0 0; |
227 margin: inherit auto; | |
228 width: 75%; | 240 width: 75%; |
229 } | 241 } |
230 | 242 |
231 h1 { | 243 h1 { |
232 font-size: 1.7rem; | 244 font-size: 1.7rem; |
233 line-height: 1.296; | 245 line-height: 1.296; |
234 margin-bottom: 0.444rem; | 246 margin-bottom: 0.444rem; |
235 } | 247 } |
236 | 248 |
237 q { | 249 q { |
238 color: #222; | 250 opacity: .8; |
239 display:block; | 251 display:block; |
240 font-size: 1.5rem; | |
241 font-style: italic; | 252 font-style: italic; |
242 font-weight: 600; | 253 font-weight: 600; |
243 line-height: 1.444; | 254 line-height: 1.444; |
244 } | 255 } |
245 | 256 |
246 embed, | 257 embed, |
247 img, | 258 img, |
248 object, | 259 object, |
249 video { | 260 video { |
250 max-width: 100%; | 261 max-width: 100%; |
251 } | 262 } |
252 | 263 |
253 /* TODO(sunangel): make images zoomable. */ | 264 /* TODO(sunangel): make images zoomable. */ |
254 | 265 |
255 img { | 266 img { |
256 display: block; | 267 display: block; |
257 height: auto; | 268 height: auto; |
258 margin: 0 auto 0.6rem auto; | 269 margin: 0 auto 0.6rem auto; |
259 } | 270 } |
260 | 271 |
261 /* TODO(nyquist): set these classes directly in the dom distiller. */ | 272 /* TODO(nyquist): set these classes directly in the dom distiller. */ |
262 | 273 |
263 embed+[class*='caption'], | 274 embed+[class*='caption'], |
264 figcaption, | 275 figcaption, |
265 img+[class*='caption'], | 276 img+[class*='caption'], |
266 object+[class*='caption'], | 277 object+[class*='caption'], |
267 video+[class*='caption'] { | 278 video+[class*='caption'] { |
268 color: rgba(0,0,0,.54); | 279 opacity: .54; |
269 display: table; | 280 display: table; |
270 font-style: italic; | 281 font-style: italic; |
271 margin: 0 auto; | 282 margin: 0 auto; |
272 } | 283 } |
273 | 284 |
274 ol, | 285 ol, |
275 ul { | 286 ul { |
276 margin-left: 1.296rem; | 287 margin-left: 1.296rem; |
277 } | 288 } |
278 | 289 |
(...skipping 28 matching lines...) Expand all Loading... |
307 display: none; | 318 display: none; |
308 } | 319 } |
309 | 320 |
310 /* Footer feedback form. */ | 321 /* Footer feedback form. */ |
311 #contentWrap { | 322 #contentWrap { |
312 min-height: 100%; | 323 min-height: 100%; |
313 overflow: auto; | 324 overflow: auto; |
314 padding-bottom: 120px; | 325 padding-bottom: 120px; |
315 } | 326 } |
316 | 327 |
| 328 #feedbackContainer { |
| 329 font-size: 14px; |
| 330 } |
| 331 |
317 .footerFeedback { | 332 .footerFeedback { |
318 background-color: #4285F4; | 333 background-color: #4285F4; |
319 clear: both; | 334 clear: both; |
320 color: #fff; | 335 color: #fff; |
321 display: none; | 336 display: none; |
322 height: 120px; | 337 height: 120px; |
323 margin-top: -120px; | 338 margin-top: -120px; |
324 width: 100%; | 339 width: 100%; |
325 } | 340 } |
326 | 341 |
327 .feedbackContent { | 342 .feedbackContent { |
328 background-color: #4285F4; | 343 background-color: #4285F4; |
329 clear: both; | 344 clear: both; |
330 padding: 14px; | 345 padding: 14px; |
331 } | 346 } |
332 | 347 |
333 #feedbackQuestion { | 348 #feedbackQuestion { |
334 font-size: 20px; | 349 font-size: 1.4em; |
335 font-weight: 700; | 350 font-weight: 700; |
336 text-align: center; | 351 text-align: center; |
337 width: 100%; | 352 width: 100%; |
338 } | 353 } |
339 | 354 |
340 .feedbackButtonWrap { | 355 .feedbackButtonWrap { |
341 margin-top: 14px; | 356 margin-top: 14px; |
342 text-align: center; | 357 text-align: center; |
343 width: 100%; | 358 width: 100%; |
344 } | 359 } |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 border-color: rgb(250,36,36); | 809 border-color: rgb(250,36,36); |
795 } | 810 } |
796 | 811 |
797 #loader.red .circle.red .mask.first .mover { | 812 #loader.red .circle.red .mask.first .mover { |
798 background-color: rgb(33,89,189); | 813 background-color: rgb(33,89,189); |
799 } | 814 } |
800 | 815 |
801 #loader.red .circle.red .mask.second .mover { | 816 #loader.red .circle.red .mask.second .mover { |
802 background-color: rgb(250,36,36); | 817 background-color: rgb(250,36,36); |
803 } | 818 } |
OLD | NEW |