Skip to content

Instantly share code, notes, and snippets.

@krman009
Created April 4, 2016 04:44
Show Gist options
  • Save krman009/0d6bb76575c0c679140986e5f2140e23 to your computer and use it in GitHub Desktop.
Save krman009/0d6bb76575c0c679140986e5f2140e23 to your computer and use it in GitHub Desktop.
Button
<div class="button">Go</div>
/*
2016 by Kaushalya R. Mandaliya
http://seebeetee.com
https://twitter.com/kmandalwala
*/
@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;
}
}
<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