Chris@0: /** Chris@0: * @file Chris@0: * Visual styles for progress bar. Chris@0: * Chris@0: * @see progress.js Chris@0: */ Chris@0: Chris@0: .progress__track { Chris@0: border-color: #b3b3b3; Chris@0: border-radius: 10em; Chris@0: background-color: #f2f1eb; Chris@0: background-image: -webkit-linear-gradient(#e7e7df, #f0f0f0); Chris@14: background-image: linear-gradient(#e7e7df, #f0f0f0); Chris@0: box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.16); Chris@0: } Chris@0: .progress__bar { Chris@18: height: 16px; Chris@18: margin-top: -1px; Chris@18: margin-left: -1px; /* LTR */ Chris@18: padding: 0 1px; Chris@18: -webkit-transition: width 0.5s ease-out; Chris@18: transition: width 0.5s ease-out; Chris@18: -webkit-animation: animate-stripes 3s linear infinite; Chris@18: -moz-animation: animate-stripes 3s linear infinite; Chris@0: border: 1px #07629a solid; Chris@18: border-radius: 10em; Chris@0: background: #057ec9; Chris@0: background-image: Chris@0: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)), Chris@0: -webkit-linear-gradient(left top, #0094f0 0%, #0094f0 25%, #007ecc 25%, #007ecc 50%, #0094f0 50%, #0094f0 75%, #0094f0 100%); Chris@0: background-image: Chris@0: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)), Chris@0: linear-gradient(to right bottom, #0094f0 0%, #0094f0 25%, #007ecc 25%, #007ecc 50%, #0094f0 50%, #0094f0 75%, #0094f0 100%); Chris@0: background-size: 40px 40px; Chris@0: } Chris@0: [dir="rtl"] .progress__bar { Chris@18: margin-right: -1px; Chris@0: margin-left: 0; Chris@0: -webkit-animation-direction: reverse; Chris@0: -moz-animation-direction: reverse; Chris@18: animation-direction: reverse; Chris@0: } Chris@0: Chris@17: @media screen and (prefers-reduced-motion: reduce) { Chris@17: .progress__bar { Chris@18: -webkit-transition: none; Chris@18: transition: none; Chris@17: -webkit-animation: none; Chris@17: -moz-animation: none; Chris@17: } Chris@17: } Chris@17: Chris@0: /** Chris@0: * Progress bar animations. Chris@0: */ Chris@0: @-webkit-keyframes animate-stripes { Chris@0: 0% { background-position: 0 0, 0 0; } Chris@0: 100% { background-position: 0 0, -80px 0; } Chris@0: } Chris@14: Chris@0: @-ms-keyframes animate-stripes { Chris@0: 0% { background-position: 0 0, 0 0; } Chris@0: 100% { background-position: 0 0, -80px 0; } Chris@0: } Chris@14: Chris@0: @keyframes animate-stripes { Chris@0: 0% { background-position: 0 0, 0 0; } Chris@0: 100% { background-position: 0 0, -80px 0; } Chris@0: }