1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Extract list-unstyled mixin; closes #17792

/fyi @mdo
This commit is contained in:
Marko Prelec 2015-10-06 12:43:59 +02:00 committed by Chris Rebert
parent 8cb00d6420
commit d5e47c57f1
3 changed files with 10 additions and 5 deletions

View file

@ -33,6 +33,7 @@
@import "mixins/alert";
@import "mixins/buttons";
@import "mixins/pagination";
@import "mixins/lists";
@import "mixins/list-group";
@import "mixins/nav-divider";
@import "mixins/forms";

View file

@ -85,17 +85,14 @@ mark,
// Lists
//
// Unstyled keeps list items block level, just removes default browser padding and list-style
.list-unstyled {
padding-left: 0;
list-style: none;
@include list-unstyled;
}
// Inline turns list items into inline-block
.list-inline {
padding-left: 0;
@include list-unstyled;
margin-left: -5px;
list-style: none;
> li {
display: inline-block;

7
scss/mixins/_lists.scss Normal file
View file

@ -0,0 +1,7 @@
// Lists
// Unstyled keeps list items block level, just removes default browser padding and list-style
@mixin list-unstyled {
padding-left: 0;
list-style: none;
}