Created
February 28, 2014 17:01
-
-
Save jensgro/9274920 to your computer and use it in GitHub Desktop.
Platzhalter und Mixins gehen unterschiedlich mit mehrfachem Aufruf um.
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
// ---- | |
// Sass (v3.2.14) | |
// Compass (v0.12.2) | |
// ---- | |
// Platzhalter und Mixins gehen unterschiedlich | |
// mit mehrfachem Aufruf um | |
%nolist { | |
list-style-type: none; | |
&, li { | |
margin-left: 0; | |
padding-left: 0; | |
} | |
} | |
@mixin vertnav { | |
list-style-type: none; | |
&, li { | |
margin-left: 0; | |
padding-left: 0; | |
} | |
} | |
.test1 { | |
@extend %nolist; | |
} | |
.test2 { | |
@extend %nolist; | |
} | |
.test3 { | |
@extend %nolist; | |
} | |
.test4 { | |
@include vertnav; | |
} | |
.test5 { | |
@include vertnav; | |
} |
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
.test1, .test2, .test3 { | |
list-style-type: none; | |
} | |
.test1, .test2, .test3, .test1 li, .test2 li, .test3 li { | |
margin-left: 0; | |
padding-left: 0; | |
} | |
.test4 { | |
list-style-type: none; | |
} | |
.test4, .test4 li { | |
margin-left: 0; | |
padding-left: 0; | |
} | |
.test5 { | |
list-style-type: none; | |
} | |
.test5, .test5 li { | |
margin-left: 0; | |
padding-left: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment