Skip to content

Instantly share code, notes, and snippets.

@spdustin
Created March 22, 2016 20:05
Show Gist options
  • Save spdustin/92e48f4801007baf6d05 to your computer and use it in GitHub Desktop.
Save spdustin/92e48f4801007baf6d05 to your computer and use it in GitHub Desktop.
demo.scss
$bgColor: #DEDBEE;
%clear {
*zoom: 1;
&:before, &:after {
content: ' ';
display: table;
}
&:after {
clear: both;
}
}
body {
background: $bgColor;
color: invert($bgColor);
}
.alert {
background: yellow;
color: red;
border: 1px solid black;
@extend %clear;
}
.alert-muted {
@extend .alert;
color: #111111;
padding: 1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment