Skip to content

Instantly share code, notes, and snippets.

@hiloki
Created May 9, 2014 01:52
Show Gist options
  • Save hiloki/80b1407121275861b00b to your computer and use it in GitHub Desktop.
Save hiloki/80b1407121275861b00b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// ----
// Mixin A
@mixin kiteA {
display: table;
width: 100%;
font-size: 0 !important;
}
@mixin kiteACenter {
text-align: center !important;
}
/* OUTPUT A */
.grid {
@include kiteA;
}
.grid--center {
@include kiteACenter;
}
// Mixin B
@mixin kiteB($option:'') {
@if $option == center {
text-align: center !important;
} @else {
display: table;
width: 100%;
font-size: 0 !important;
}
}
/* OUTPUT A */
.grid {
@include kiteB;
}
.grid--center {
@include kiteB(center);
}
/* OUTPUT A */
.grid {
display: table;
width: 100%;
font-size: 0 !important;
}
.grid--center {
text-align: center !important;
}
/* OUTPUT A */
.grid {
display: table;
width: 100%;
font-size: 0 !important;
}
.grid--center {
text-align: center !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment