annotate core/themes/classy/css/components/progress.css @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents af1871eacc83
children
rev   line source
Chris@0 1 /**
Chris@0 2 * @file
Chris@0 3 * Visual styles for progress bar.
Chris@0 4 *
Chris@0 5 * @see progress.js
Chris@0 6 */
Chris@0 7
Chris@0 8 .progress__track {
Chris@0 9 border-color: #b3b3b3;
Chris@0 10 border-radius: 10em;
Chris@0 11 background-color: #f2f1eb;
Chris@0 12 background-image: -webkit-linear-gradient(#e7e7df, #f0f0f0);
Chris@14 13 background-image: linear-gradient(#e7e7df, #f0f0f0);
Chris@0 14 box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.16);
Chris@0 15 }
Chris@0 16 .progress__bar {
Chris@18 17 height: 16px;
Chris@18 18 margin-top: -1px;
Chris@18 19 margin-left: -1px; /* LTR */
Chris@18 20 padding: 0 1px;
Chris@18 21 -webkit-transition: width 0.5s ease-out;
Chris@18 22 transition: width 0.5s ease-out;
Chris@18 23 -webkit-animation: animate-stripes 3s linear infinite;
Chris@18 24 -moz-animation: animate-stripes 3s linear infinite;
Chris@0 25 border: 1px #07629a solid;
Chris@18 26 border-radius: 10em;
Chris@0 27 background: #057ec9;
Chris@0 28 background-image:
Chris@0 29 -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)),
Chris@0 30 -webkit-linear-gradient(left top, #0094f0 0%, #0094f0 25%, #007ecc 25%, #007ecc 50%, #0094f0 50%, #0094f0 75%, #0094f0 100%);
Chris@0 31 background-image:
Chris@0 32 linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)),
Chris@0 33 linear-gradient(to right bottom, #0094f0 0%, #0094f0 25%, #007ecc 25%, #007ecc 50%, #0094f0 50%, #0094f0 75%, #0094f0 100%);
Chris@0 34 background-size: 40px 40px;
Chris@0 35 }
Chris@0 36 [dir="rtl"] .progress__bar {
Chris@18 37 margin-right: -1px;
Chris@0 38 margin-left: 0;
Chris@0 39 -webkit-animation-direction: reverse;
Chris@0 40 -moz-animation-direction: reverse;
Chris@18 41 animation-direction: reverse;
Chris@0 42 }
Chris@0 43
Chris@17 44 @media screen and (prefers-reduced-motion: reduce) {
Chris@17 45 .progress__bar {
Chris@18 46 -webkit-transition: none;
Chris@18 47 transition: none;
Chris@17 48 -webkit-animation: none;
Chris@17 49 -moz-animation: none;
Chris@17 50 }
Chris@17 51 }
Chris@17 52
Chris@0 53 /**
Chris@0 54 * Progress bar animations.
Chris@0 55 */
Chris@0 56 @-webkit-keyframes animate-stripes {
Chris@0 57 0% { background-position: 0 0, 0 0; }
Chris@0 58 100% { background-position: 0 0, -80px 0; }
Chris@0 59 }
Chris@14 60
Chris@0 61 @-ms-keyframes animate-stripes {
Chris@0 62 0% { background-position: 0 0, 0 0; }
Chris@0 63 100% { background-position: 0 0, -80px 0; }
Chris@0 64 }
Chris@14 65
Chris@0 66 @keyframes animate-stripes {
Chris@0 67 0% { background-position: 0 0, 0 0; }
Chris@0 68 100% { background-position: 0 0, -80px 0; }
Chris@0 69 }