liquid_feedback_frontend
diff style/mdl/progress/_progress.scss @ 1309:32cc544d5a5b
Cumulative patch for upcoming frontend version 4
author | bsw/jbe |
---|---|
date | Sun Jul 15 14:07:29 2018 +0200 (2018-07-15) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/style/mdl/progress/_progress.scss Sun Jul 15 14:07:29 2018 +0200 1.3 @@ -0,0 +1,120 @@ 1.4 +/** 1.5 + * Copyright 2015 Google Inc. All Rights Reserved. 1.6 + * 1.7 + * Licensed under the Apache License, Version 2.0 (the "License"); 1.8 + * you may not use this file except in compliance with the License. 1.9 + * You may obtain a copy of the License at 1.10 + * 1.11 + * http://www.apache.org/licenses/LICENSE-2.0 1.12 + * 1.13 + * Unless required by applicable law or agreed to in writing, software 1.14 + * distributed under the License is distributed on an "AS IS" BASIS, 1.15 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1.16 + * See the License for the specific language governing permissions and 1.17 + * limitations under the License. 1.18 + */ 1.19 + 1.20 +@import "../variables"; 1.21 + 1.22 +.mdl-progress { 1.23 + display: block; 1.24 + position: relative; 1.25 + height: $bar-height; 1.26 + width: 500px; 1.27 + max-width: 100%; 1.28 +} 1.29 + 1.30 +.mdl-progress > .bar { 1.31 + display: block; 1.32 + position: absolute; 1.33 + top: 0; 1.34 + bottom: 0; 1.35 + width: 0%; 1.36 + transition: width 0.2s $animation-curve-default; 1.37 +} 1.38 + 1.39 +.mdl-progress > .progressbar { 1.40 + background-color: $progress-main-color; 1.41 + z-index: 1; 1.42 + left: 0; 1.43 +} 1.44 + 1.45 +.mdl-progress > .bufferbar { 1.46 + background-image: linear-gradient(to right, $progress-secondary-color, $progress-secondary-color), 1.47 + linear-gradient(to right, $progress-main-color, $progress-main-color); 1.48 + z-index: 0; 1.49 + left: 0; 1.50 +} 1.51 + 1.52 +.mdl-progress > .auxbar { 1.53 + right: 0; 1.54 +} 1.55 + 1.56 +// Webkit only 1.57 +@supports (-webkit-appearance:none) { 1.58 + .mdl-progress:not(.mdl-progress--indeterminate):not(.mdl-progress--indeterminate) > .auxbar, 1.59 + .mdl-progress:not(.mdl-progress__indeterminate):not(.mdl-progress__indeterminate) > .auxbar { 1.60 + background-image: linear-gradient(to right, $progress-secondary-color, $progress-secondary-color), 1.61 + linear-gradient(to right, $progress-main-color, $progress-main-color); 1.62 + mask: url('#{$progress-image-path}/buffer.svg?embed'); 1.63 + } 1.64 +} 1.65 + 1.66 +.mdl-progress:not(.mdl-progress--indeterminate) > .auxbar, 1.67 +.mdl-progress:not(.mdl-progress__indeterminate) > .auxbar { 1.68 + background-image: linear-gradient(to right, $progress-fallback-buffer-color, $progress-fallback-buffer-color), 1.69 + linear-gradient(to right, $progress-main-color, $progress-main-color); 1.70 +} 1.71 + 1.72 +.mdl-progress.mdl-progress--indeterminate > .bar1, 1.73 +.mdl-progress.mdl-progress__indeterminate > .bar1 { 1.74 + background-color: $progress-main-color; 1.75 + animation-name: indeterminate1; 1.76 + animation-duration: 2s; 1.77 + animation-iteration-count: infinite; 1.78 + animation-timing-function: linear; 1.79 +} 1.80 + 1.81 +.mdl-progress.mdl-progress--indeterminate > .bar3, 1.82 +.mdl-progress.mdl-progress__indeterminate > .bar3 { 1.83 + background-image: none; 1.84 + background-color: $progress-main-color; 1.85 + animation-name: indeterminate2; 1.86 + animation-duration: 2s; 1.87 + animation-iteration-count: infinite; 1.88 + animation-timing-function: linear; 1.89 +} 1.90 + 1.91 +@keyframes indeterminate1 { 1.92 + 0% { 1.93 + left: 0%; 1.94 + width: 0%; 1.95 + } 1.96 + 50% { 1.97 + left: 25%; 1.98 + width: 75%; 1.99 + } 1.100 + 75% { 1.101 + left: 100%; 1.102 + width: 0%; 1.103 + } 1.104 +} 1.105 + 1.106 +@keyframes indeterminate2 { 1.107 + 0% { 1.108 + left: 0%; 1.109 + width: 0%; 1.110 + } 1.111 + 50% { 1.112 + left: 0%; 1.113 + width: 0%; 1.114 + } 1.115 + 75% { 1.116 + left: 0%; 1.117 + width: 25%; 1.118 + } 1.119 + 100% { 1.120 + left: 100%; 1.121 + width: 0%; 1.122 + } 1.123 +}