Created
February 18, 2016 10:36
-
-
Save elektronik2k5/38fecae84d138b28aea3 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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