Skip to content

Instantly share code, notes, and snippets.

@QETHAN
Created May 5, 2014 03:40
Show Gist options
  • Save QETHAN/11528351 to your computer and use it in GitHub Desktop.
Save QETHAN/11528351 to your computer and use it in GitHub Desktop.
A Pen by Kaushalya Mandaliya.
<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>
// Playing around colors and buttons :)
@import "compass/css3";
.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