Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: components/dom_distiller/core/css/distilledpage.css

Issue 444143002: Loading Indicator for Distilled Pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: styling Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 pre { 251 pre {
252 line-height: 1.296rem; 252 line-height: 1.296rem;
253 overflow-x: scroll; 253 overflow-x: scroll;
254 padding: .5em; 254 padding: .5em;
255 } 255 }
256 256
257 .hidden { 257 .hidden {
258 display: none; 258 display: none;
259 } 259 }
260
261 /* Loading Indicator. */
262 #loader {
263 height: 22px;
264 margin-left: auto;
265 margin-right: auto;
266 position: relative;
267 width: 22px;
268 }
269
270 #loader * {
271 display: block;
272 position: absolute;
273 }
274
275 #loader .circle {
276 border-radius: 50%;
277 height: 100%;
278 opacity: 0;
279 overflow: hidden;
280 width: 100%;
281 }
282
283 #loader .mask {
284 height: 100%;
285 opacity: 0;
286 overflow: hidden;
287 width: 100%;
288 }
289
290 #loader .mask.first {
291 transition-delay: 0.22s;
292 transition-duration: 0s;
293 transition-property: border-color;
294 }
295
296 #loader .circle.initial .mask {
297 height: 50%;
298 top: 0;
299 }
300
301 #loader .circle.red .mask.first {
302 border-bottom: 1px solid #555;
303 height: 50%;
304 top: 0;
305 }
306
307 #loader .circle.red .mask.second {
308 bottom: 0;
309 height: 50%;
310 }
311
312 #loader .circle.yellow .mask.first {
313 border-left: 1px solid #888;
314 right: 0;
315 width: 50%;
316 }
317
318 #loader .circle.yellow .mask.second {
319 left: 0;
320 width: 50%;
321 }
322
323 #loader .circle.green .mask.first {
324 border-top: 1px solid #555;
325 bottom: 0;
326 height: 50%;
327 }
328
329 #loader .circle.green .mask.second {
330 height: 50%;
331 top: 0;
332 }
333
334 #loader .circle.blue .mask.first {
335 border-right: 1px solid #888;
336 left: 0;
337 width: 50%;
338 }
339
340 #loader .circle.blue .mask.second {
341 right: 0;
342 width: 50%;
343 }
344
345 #loader .circle .mask .base {
346 border-radius: 50%;
347 height: 100%;
348 opacity: 0;
349 transition-property: opacity;
350 transition-timing-function: linear;
351 transition-duration: 0s;
352 transition-delay: 0s;
353 width: 100%;
354 }
355
356 #loader .circle .mask .mover {
357 border-radius: 50%;
358 height: 100%;
359 transition-delay: 0s;
360 transition-duration: 0.22s;
361 transition-property: background-color, left, top, right, bottom, width,
362 height;
363 transition-timing-function: ease-in;
364 width: 100%;
365 }
366
367 #loader .circle .mask.second .mover,
368 #loader .circle.initial .mask .mover {
369 transition-delay: 0.22s;
370 transition-timing-function: ease-out;
371 }
372
373 #loader .circle.red .mask.first .base {
374 height: 200%;
375 top: 0;
376 }
377 #loader .circle.red .mask.second .base {
378 bottom: 0;
379 height: 200%;
380 }
381
382 #loader .circle.yellow .mask.first .base {
383 right: 0;
384 width: 200%;
385 }
386
387 #loader .circle.yellow .mask.second .base {
388 left: 0;
389 width: 200%;
390 }
391
392 #loader .circle.green .mask.first .base {
393 bottom: 0;
394 height: 200%;
395 }
396
397 #loader .circle.green .mask.second .base {
398 height: 200%;
399 top: 0;
400 }
401
402 #loader .circle.blue .mask.first .base {
403 left: 0;
404 width: 200%;
405 }
406
407 #loader .circle.blue .mask.second .base {
408 right: 0;
409 width: 200%;
410 }
411
412 #loader .circle.initial .mask .mover {
413 height: 0;
414 top: 100%;
415 }
416
417 #loader .circle.red .mask.first .mover {
418 height: 200%;
419 top: 0;
420 }
421
422 #loader .circle.red .mask.second .mover {
423 bottom: 100%;
424 height: 0;
425 }
426
427 #loader .circle.yellow .mask.first .mover {
428 right: 0;
429 width: 200%;
430 }
431
432 #loader .circle.yellow .mask.second .mover {
433 left: 100%;
434 width: 0;
435 }
436
437 #loader .circle.green .mask.first .mover {
438 bottom: 0;
439 height: 200%;
440 }
441
442 #loader .circle.green .mask.second .mover {
443 height: 0;
444 top: 100%;
445 }
446
447 #loader .circle.blue .mask.first .mover {
448 left: 0;
449 width: 200%;
450 }
451
452 #loader .circle.blue .mask.second .mover {
453 right: 100%;
454 width: 0;
455 }
456
457 /* Initial State. */
458 #loader.initial .circle.initial,
459 #loader.initial .circle.initial .mask {
460 opacity: 1;
461 }
462 #loader.initial .circle.initial .mask .mover {
463 height: 200%;
464 top: 0;
465 }
466
467 /* Moving from Red to Yellow. */
468 #loader.yellow .circle.yellow,
469 #loader.yellow .circle.yellow .mask,
470 #loader.yellow .circle.yellow .mask .base {
471 opacity: 1;
472 }
473 #loader.yellow .circle.yellow .mask.first .mover {
474 right: 100%;
475 width: 0;
476 }
477 #loader.yellow .circle.yellow .mask.second .mover {
478 left: 0;
479 width: 200%;
480 }
481
482 /* Moving from Yellow to Green. */
483 #loader.green .circle.green,
484 #loader.green .circle.green .mask,
485 #loader.green .circle.green .mask .base {
486 opacity: 1;
487 }
488 #loader.green .circle.green .mask.first .mover {
489 bottom: 100%;
490 height: 0;
491 }
492 #loader.green .circle.green .mask.second .mover {
493 height: 200%;
494 top: 0;
495 }
496
497
498 /* Moving from Green to Blue. */
499 #loader.blue .circle.blue,
500 #loader.blue .circle.blue .mask,
501 #loader.blue .circle.blue .mask .base {
502 opacity: 1;
503 }
504 #loader.blue .circle.blue .mask.first .mover {
505 left: 100%;
506 width: 0;
507 }
508 #loader.blue .circle.blue .mask.second .mover {
509 right: 0;
510 width: 200%;
511 }
512
513 /* Moving from Blue to Red. */
514 #loader.red .circle.red,
515 #loader.red .circle.red .mask,
516 #loader.red .circle.red .mask .base {
517 opacity: 1;
518 }
519 #loader.red.firstTime .circle.red .mask.second .base {
520 opacity: 0;
521 }
522 #loader.red .circle.red .mask.first .mover {
523 height: 0;
524 top: 100%;
525 }
526 #loader.red .circle.red .mask.second .mover {
527 bottom: 0;
528 height: 200%;
529 }
530
531 #loader .circle.red .mask.first {
532 border-bottom-color: rgb(60,120,248);
533 }
534
535 #loader .circle.yellow .mask.first {
536 border-left-color: rgb(250,36,36);
537 }
538
539 #loader .circle.green .mask.first {
540 border-top-color: rgb(255,211,75);
541 }
542
543 #loader .circle.blue .mask.first {
544 border-right-color: rgb(0,177,95);
545 }
546
547 #loader .circle.red .mask.first .base {
548 background-color: rgb(250,36,36);
549 }
550
551 #loader .circle.red .mask.second .base {
552 background-color: rgb(60,120,248);
553 }
554
555 #loader .circle.yellow .mask.first .base {
556 background-color: rgb(255,211,75);
557 }
558
559 #loader .circle.yellow .mask.second .base {
560 background-color: rgb(250,36,36);
561 }
562
563 #loader .circle.green .mask.first .base {
564 background-color: rgb(0,177,95);
565 }
566
567 #loader .circle.green .mask.second .base {
568 background-color: rgb(255,211,75);
569 }
570
571 #loader .circle.blue .mask.first .base {
572 background-color: rgb(60,120,248);
573 }
574
575 #loader .circle.blue .mask.second .base {
576 background-color: rgb(0,177,95);
577 }
578
579 #loader .circle.initial .mask .mover {
580 background-color: rgb(33,89,189);
581 }
582
583 #loader .circle.red .mask.first .mover {
584 background-color: rgb(60,120,248);
585 }
586
587 #loader .circle.red .mask.second .mover {
588 background-color: rgb(158,18,18);
589 }
590
591 #loader .circle.yellow .mask.first .mover {
592 background-color: rgb(250,36,36);
593 }
594
595 #loader .circle.yellow .mask.second .mover {
596 background-color: rgb(222,161,26);
597 }
598
599 #loader .circle.green .mask.first .mover {
600 background-color: rgb(255,211,75);
601 }
602
603 #loader .circle.green .mask.second .mover {
604 background-color: rgb(0,137,72);
605 }
606
607 #loader .circle.blue .mask.first .mover {
608 background-color: rgb(0,177,95);
609 }
610
611 #loader .circle.blue .mask.second .mover {
612 background-color: rgb(33,89,189);
613 }
614
615 #loader.initial .circle.initial .mask .mover {
616 background-color: rgb(60,120,248);
617 }
618
619 #loader.yellow .circle.yellow .mask.first {
620 border-color: rgb(255,211,75);
621 }
622
623 #loader.yellow .circle.yellow .mask.first .mover {
624 background-color: rgb(158,18,18);
625 }
626
627 #loader.yellow .circle.yellow .mask.second .mover {
628 background-color: rgb(255,211,75);
629 }
630
631 #loader.green .circle.green .mask.first {
632 border-color: rgb(0,177,95);
633 }
634
635 #loader.green .circle.green .mask.first .mover {
636 background-color: rgb(222,161,26);
637 }
638
639 #loader.green .circle.green .mask.second .mover {
640 background-color: rgb(0,177,95);
641 }
642
643 #loader.blue .circle.blue .mask.first {
644 border-color: rgb(60,120,248);
645 }
646
647 #loader.blue .circle.blue .mask.first .mover {
648 background-color: rgb(0,137,72);
649 }
650
651 #loader.blue .circle.blue .mask.second .mover {
652 background-color: rgb(60,120,248);
653 }
654
655 #loader.red .circle.red .mask.first {
656 border-color: rgb(250,36,36);
657 }
658
659 #loader.red .circle.red .mask.first .mover {
660 background-color: rgb(33,89,189);
661 }
662
663 #loader.red .circle.red .mask.second .mover {
664 background-color: rgb(250,36,36);
665 }
OLDNEW
« no previous file with comments | « components/dom_distiller/content/resources/dom_distiller_viewer.js ('k') | components/dom_distiller/core/viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698