Skip to content

Instantly share code, notes, and snippets.

@elektronik2k5
Created February 18, 2016 10:36
Show Gist options
  • Save elektronik2k5/38fecae84d138b28aea3 to your computer and use it in GitHub Desktop.
Save elektronik2k5/38fecae84d138b28aea3 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@mixin mobile-breakpoint() {
@content
}
%tags-base {
border: thin solid;
overflow: visible;
}
%tags-list {
background-color: red;
}
%tags-item {
color: red;
@include mobile-breakpoint {
content: "";
}
}
@mixin tags(){
.tags {
border: thin solid;
overflow: visible;
@include mobile-breakpoint {
content: "";
}
&__tag-list {
@extend %tags-list;
&__item {
@extend %tags-item;
}
}
@content
}
}
@mixin video-tag(){
&__tag-list--video {
background: blue;
}
&__tag-list__item--video {
color: blue;
}
}
@mixin other-tag(){
&__tag-list--other {
background: transparent;
}
}
article {
@include tags {
@include video-tag
}
}
homepage {
@include tags {
@include other-tag;
}
}
article .tags__tag-list, homepage .tags__tag-list {
background-color: red;
}
article .tags__tag-list__item, homepage .tags__tag-list__item {
color: red;
content: "";
}
article .tags {
border: thin solid;
overflow: visible;
content: "";
}
article .tags__tag-list--video {
background: blue;
}
article .tags__tag-list__item--video {
color: blue;
}
homepage .tags {
border: thin solid;
overflow: visible;
content: "";
}
homepage .tags__tag-list--other {
background: transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment