Skip to content

Instantly share code, notes, and snippets.

@fenetic
Last active November 13, 2015 14:19
Show Gist options
  • Select an option

  • Save fenetic/79c8bb70f53d0ae56a51 to your computer and use it in GitHub Desktop.

Select an option

Save fenetic/79c8bb70f53d0ae56a51 to your computer and use it in GitHub Desktop.
$color--primary: #2b373e;
$color--secondary: #fff;
.btn {
background: $color--secondary;
border: 1px solid $color--primary;
border-radius: 0;
color: $tango;
// font-family: $font;
padding: 15px 30px;
position: relative;
text-align: center;
text-transform: uppercase;
transition: all .35s;
&:before {
border-radius: 50%;
border: .2em dotted rgba($color--primary, 0.2);
border-left: .2em solid $color--primary;
content: " ";
display: inline-block;
height: 1.5em;
left: 50%;
margin: -.75em;
opacity: 0;
position: absolute;
top: 50%;
transition: all .35s;
transform: translateZ(0);
width: 1.5em;
}
// &:hover, &:focus {
// border-color: $color;
// color: $color;
// &:before {
// border-color: rgba($color, 0.2);
// border-left-color: $color;
// }
// }
&.loading {
color: $white;
&:before {
animation: loadspin 1.1s infinite linear;
opacity: 1;
}
}
}
@keyframes loadspin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment