Skip to content

Instantly share code, notes, and snippets.

@claycarpenter
Created May 30, 2015 16:57
Show Gist options
  • Save claycarpenter/7624e4d316252765f9f5 to your computer and use it in GitHub Desktop.
Save claycarpenter/7624e4d316252765f9f5 to your computer and use it in GitHub Desktop.
Sass Snippets
/*!
Copyright 2015 Initech
This will always be present, no matter the output style.
*/
/*
Multi-line comment.
This will be present in all output styles other than compressed.
*/
body {
font-size: 16px;
}
// Single-line dev comment.
// This will be removed in all output styles.
h1 {
font-size: 1.8em; // Keep the h1 headers large.
}
/*! Copyright 2015 */
/*
Button properties.
*/
.btn-a {
background: #777777;
border: 1px solid #ccc;
&:hover {
// Change button background on hover.
background: #cecece;
}
}
.btn-b {
@extend .btn-a;
background: #ffff00;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment