Last active
December 11, 2015 11:19
-
-
Save t32k/4593169 to your computer and use it in GitHub Desktop.
Cancellation of last item border.
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
<ul class="listview has-line"> | |
<li>foo</li> | |
<li>bar</li> | |
<li>baz</li> <!-- want to cancell this border --> | |
</ul> |
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
.listview li { | |
border-bottom: 1px #ede8e0 solid; | |
@include box-shadow(#fff 0 1px 0 0); | |
} | |
// @extend pattern | |
%cancell-border { | |
border: 0; | |
@include box-shadow(none); | |
} | |
.listview li:last-child { | |
@extend %cancell-border; | |
} | |
// HTML class attribute pattern | |
.has-line > li:last-child { | |
border: 0; | |
@include box-shadow(none); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment