A Pen by Kaushalya Mandaliya on CodePen.
Created
April 4, 2016 04:44
-
-
Save krman009/0d6bb76575c0c679140986e5f2140e23 to your computer and use it in GitHub Desktop.
Button
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 class="button">Go</div> |
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
/* | |
2016 by Kaushalya R. Mandaliya | |
http://seebeetee.com | |
https://twitter.com/kmandalwala | |
*/ |
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 "compass"; | |
body { | |
background: #7ad; | |
font-family: 'Lato', sans-serif; | |
} | |
div.button { | |
color: #eee; | |
padding: 1em; | |
border: 0.15em solid; | |
margin: 2em auto; | |
width: 20em; | |
text-align: center; | |
border-radius: 0.3em; | |
font-size: 1.2em; | |
transition: 0.2s ease-in-out; | |
&:after { | |
content: '>'; | |
margin-left: -0.5em; | |
opacity: 0; | |
transition: 0.2s ease-in-out; | |
font-size: 1.1em; | |
} | |
} | |
div.button:hover { | |
background: rgba(white, 0.1); | |
border-color: transparent; | |
cursor: pointer; | |
&:after { | |
opacity: 1; | |
margin-left: 0.5em; | |
} | |
} |
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
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment