A Pen by Craig Sullivan on CodePen.
Created
June 30, 2015 07:39
-
-
Save patilswapnilv/14a2753862359cbc84fd to your computer and use it in GitHub Desktop.
PqJbMm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %div.spinner.large | |
| %div.spinner | |
| %div.spinner.small |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import "bourbon"; | |
| body { | |
| background: #eee9df; | |
| text-align: center; | |
| padding-top: 3em; | |
| } | |
| $account-green: #37bc9b; | |
| $flatmates-blue: #2f3a4a; | |
| $rooms-red: #e9573e; | |
| $roommates-blue: #3baeda; | |
| $teamups-yellow: #f7bb42; | |
| $spinner-width: 20px; | |
| $spinner-margin: 10px; | |
| $spinner-width-sm: 14px; | |
| $spinner-margin-sm: 7px; | |
| $spinner-width-lg: 10em; | |
| $spinner-border-width-lg: 0.5em; | |
| .spinner { | |
| border: 2px solid rgba(255, 255, 255, 0.5); | |
| border-top-color: $rooms-red; | |
| border-right-color: $account-green; | |
| border-bottom-color: $teamups-yellow; | |
| border-left-color: $roommates-blue; | |
| border-radius: 50%; | |
| margin: -1*$spinner-margin $spinner-margin 0 -1*$spinner-margin; | |
| height: $spinner-width; | |
| width: $spinner-width; | |
| position:relative; | |
| top: 7px; | |
| display: inline-block; | |
| @include animation(spinner-animation 800ms infinite linear); | |
| } | |
| .spinner.small { | |
| top: 4px; | |
| margin: -1*$spinner-margin-sm $spinner-margin-sm 0 -1*$spinner-margin-sm; | |
| height: $spinner-width-sm; | |
| width: $spinner-width-sm; | |
| } | |
| .spinner.large { | |
| width: $spinner-width-lg; | |
| height: $spinner-width-lg; | |
| border-width: $spinner-border-width-lg; | |
| margin: 0; | |
| } | |
| @-webkit-keyframes spinner-animation { | |
| 100% { -webkit-transform: rotate(360deg); } | |
| } | |
| @-moz-keyframes spinner-animation { | |
| 100% { -moz-transform: rotate(360deg); } | |
| } | |
| @keyframes spinner-animation { | |
| 100% { transform: rotate(360deg); } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment