Matteo Scandolo | 686547a | 2017-08-08 13:05:25 -0700 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | |
Matteo Scandolo | a5d03d5 | 2016-07-21 11:35:46 -0700 | [diff] [blame] | 19 | .loader { |
| 20 | font-size: 10px; |
| 21 | margin: 0 auto; |
| 22 | text-indent: -9999em; |
| 23 | width: 11em; |
| 24 | height: 11em; |
| 25 | border-radius: 50%; |
| 26 | background: #ffffff; |
| 27 | background: -moz-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%); |
| 28 | background: -webkit-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%); |
| 29 | background: -o-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%); |
| 30 | background: -ms-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%); |
| 31 | background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0) 42%); |
| 32 | position: relative; |
| 33 | animation: loaderSpinner 1.4s infinite linear; |
| 34 | transform: translateZ(0); |
| 35 | } |
| 36 | .loader:before { |
| 37 | width: 50%; |
| 38 | height: 50%; |
| 39 | background: $brand-primary; |
| 40 | border-radius: 100% 0 0 0; |
| 41 | position: absolute; |
| 42 | top: 0; |
| 43 | left: 0; |
| 44 | content: ''; |
| 45 | } |
| 46 | .loader:after { |
| 47 | background: #fff; |
| 48 | width: 75%; |
| 49 | height: 75%; |
| 50 | border-radius: 50%; |
| 51 | content: ''; |
| 52 | margin: auto; |
| 53 | position: absolute; |
| 54 | top: 0; |
| 55 | left: 0; |
| 56 | bottom: 0; |
| 57 | right: 0; |
| 58 | } |
| 59 | |
| 60 | @keyframes loaderSpinner { |
| 61 | 0% { |
| 62 | -webkit-transform: rotate(0deg); |
| 63 | transform: rotate(0deg); |
| 64 | } |
| 65 | 100% { |
| 66 | -webkit-transform: rotate(360deg); |
| 67 | transform: rotate(360deg); |
| 68 | } |
| 69 | } |