A Pen by Kaushalya Mandaliya on CodePen.
Created
March 6, 2014 19:43
-
-
Save krman009/9397829 to your computer and use it in GitHub Desktop.
A Pen by Kaushalya Mandaliya.
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="simple-and-cool-button clr-red">Red</div> | |
<div class="simple-and-cool-button clr-green">Green</div> | |
<div class="simple-and-cool-button clr-blue">Blue</div> | |
<div class="simple-and-cool-button clr-black">Black</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
// Playing around colors and buttons :) |
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"; | |
.simple-and-cool-button { | |
border: 0.1em solid; | |
cursor: pointer; | |
display: inline-block; | |
font-family: 'Nunito', sans-serif; // 'Nunito' Cool Font... :D | |
font-size: 1.3em; | |
margin: 0.5em; | |
padding: 1em; | |
text-align: center; | |
width: 7em; | |
// @include section | |
@include border-radius(0.5em); | |
@include transition(0.3s all ease-in-out); | |
// Colors | |
&.clr-red { | |
background: white; | |
color: red; | |
&:hover { | |
background: red; | |
color: white; | |
} | |
} | |
&.clr-green { | |
background: white; | |
color: green; | |
&:hover { | |
background: green; | |
color: white; | |
} | |
} | |
&.clr-blue { | |
background: white; | |
color: blue; | |
&:hover { | |
background: blue; | |
color: white; | |
} | |
} | |
&.clr-black { | |
background: white; | |
color: black; | |
&:hover { | |
background: black; | |
color: white; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment