Skip to content

Instantly share code, notes, and snippets.

@delaet
Created August 11, 2014 16:27
Show Gist options
  • Save delaet/1cccd30706ce8c5cdb98 to your computer and use it in GitHub Desktop.
Save delaet/1cccd30706ce8c5cdb98 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.1)
// ----
.note {
color: #ffffff;
&__content {
background: white;
}
&__meta {
background: #f1f1f1;
border-top: 1px solid #eee;
}
&--featured {
box-shadow: 0 3px 1px rgba(0, 0, 0, 0.1);
}
}
//elements get appended with "__" and the $name
@mixin e($name) {
@at-root &__#{$name} {
@content;
}
}
//modifiers get appended with "--" and the $name
@mixin m($name) {
@at-root &--#{$name} {
@content;
}
}
.speech-bubble{
color: purple;
@include e(header){ //header element
color: orange;
}
@include e(text){ //text element
color: black;
@include m(link){ //link modifier
color: green;
}
}
}
.note {
color: #ffffff;
}
.note__content {
background: white;
}
.note__meta {
background: #f1f1f1;
border-top: 1px solid #eee;
}
.note--featured {
box-shadow: 0 3px 1px rgba(0, 0, 0, 0.1);
}
.speech-bubble {
color: purple;
}
.speech-bubble__header {
color: orange;
}
.speech-bubble__text {
color: black;
}
.speech-bubble__text--link {
color: green;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment