Skip to content

Instantly share code, notes, and snippets.

@kuzyn
Created February 3, 2016 18:54
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 kuzyn/a06ee51517bedab2abf2 to your computer and use it in GitHub Desktop.
Save kuzyn/a06ee51517bedab2abf2 to your computer and use it in GitHub Desktop.
// Variables
$bodyFontColor: black;
$bodyFontColorLight: lighten($bodyFontColor, 25%);
$titleFontColor: cornflowerblue;
$linkColor: salmon;
// Mixins
@mixin box-shadow($opacity) {
-webkit-box-shadow: 0px 0px 10px rgba(255,0,0,$opacity);
-moz-box-shadow: 0px 0px 10px rgba(255,0,0,$opacity);
box-shadow: 0px 0px 10px rgba(255,0,0,$opacity);
}
body {
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
width: auto;
height: auto;
border: 3px grey dotted;
padding: 5px;
a {
color: $linkColor;
text-decoration: none;
&:active, &:hover {
color: darken($linkColor, 25%);
}
}
.box:first-child {
@include box-shadow(0.5)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment