css classes for buttons. supports both and
Last active
November 17, 2016 19:30
-
-
Save jrswgtr/d4c8e48f06ceba52d74274f6bb8c6872 to your computer and use it in GitHub Desktop.
Button
This file contains 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
<a href="#" class="button indigo icon">button</a> | |
<button class="button indigo icon"> | |
button | |
</button> | |
<pre> | |
</pre> |
This file contains 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
.button { | |
display: inline-block; | |
position: relative; | |
font-family: sans; | |
font-weight: 600; | |
font-size: 18px; | |
padding: 0 60px; | |
//height: 60px; | |
line-height: 60px; | |
text-decoration: none; | |
border: 5px solid; | |
border-radius: 10px; | |
cursor: pointer; | |
transition: all 0.5s; | |
//overflow: hidden; | |
&.indigo { | |
color: #fff; | |
background-color: #1A237E; | |
border-color: #1A237E; | |
&:hover { | |
color: #1A237E; | |
background-color: #fff; | |
} | |
} | |
&.icon { | |
&:after { | |
position: absolute; | |
right: 10px; | |
bottom: 0; | |
content: '>'; | |
font-size: 25px; | |
} | |
&:hover { | |
transform: rotate(90); | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment