Skip to content

Instantly share code, notes, and snippets.

@VinSpee
Created February 12, 2014 20:26
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 VinSpee/8963850 to your computer and use it in GitHub Desktop.
Save VinSpee/8963850 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.18)
// ----
// Variables
// useful for storing things you don't want to memorize
$red: #FF4136;
// Mixin
// useful for vendor-prefixes and unique properties like grids.
@import "compass";
.round {
@include border-radius(.1em);
}
// extend
// useful for performantly inheriting styles from other elements
.btn {
background: $red;
color: white;
padding: 1em;
}
.call-to-action {
@extend .btn;
font-size: 2em;
}
// placeholders
// useful for keeping purely aesthetic properties consistent and optimized
%round {
@include border-radius(.1em);
}
.btn {
@extend %round;
}
.round {
-moz-border-radius: 0.1em;
-webkit-border-radius: 0.1em;
border-radius: 0.1em;
}
.btn, .call-to-action {
background: #ff4136;
color: white;
padding: 1em;
}
.call-to-action {
font-size: 2em;
}
.btn, .call-to-action {
-moz-border-radius: 0.1em;
-webkit-border-radius: 0.1em;
border-radius: 0.1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment