Skip to content

Instantly share code, notes, and snippets.

@kylefiedler
Created September 6, 2013 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylefiedler/2a64e6874beaf0a85b46 to your computer and use it in GitHub Desktop.
Save kylefiedler/2a64e6874beaf0a85b46 to your computer and use it in GitHub Desktop.
Buttons for Dean
$blue: #4c97cf;
$tan: #d7c795;
$button-color: $blue;
$back-button-color: $tan;
.main-button {
color: #fff;
font-weight: normal;
@include linear-gradient($button-color, darken($button-color, 15));
box-shadow: 0 2px 3px rgba(#000, .7), 0 -1px 0 lighten($button-color, 10);
text-shadow: 0 -1px 0 darken($button-color, 25);
&:hover {
@include linear-gradient(darken($button-color, 5), darken($button-color, 20));
}
}
.back-button {
color: #fff;
font-weight: normal;
@include linear-gradient($back-button-color, darken($back-button-color, 8));
box-shadow: 0 2px 3px rgba(#000, .7), 0 1px 0 lighten($back-button-color, 10), 0 -1px 0 darken($back-button-color, 10);
text-shadow: 0 -1px 0 darken($back-button-color, 15);
&:hover {
@include linear-gradient(darken($back-button-color, 15), darken($back-button-color, 8));
box-shadow: 0 2px 3px rgba(#000, .7), 0 1px 0 lighten($back-button-color, 18), 0 -1px 0 darken($back-button-color, 10);
text-shadow: 0 -1px 0 darken($back-button-color, 18);
}
&:before {
content: " ";
@include inline-block;
width: 30px;
height: 30px;
background: image-url('back-arrow.png') no-repeat;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment