mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-21 13:24:08 +03:00
rewrite list-inline to use margin and simpler styles
This commit is contained in:
@@ -205,7 +205,7 @@ Remove the default `list-style` and left margin on list items (immediate childre
|
||||
|
||||
### Inline
|
||||
|
||||
Place all list items on a single line with `display: inline-block;` and some light padding.
|
||||
Place all list items on a single line with `display: inline-block;` and some basic margin between.
|
||||
|
||||
{% example html %}
|
||||
<ul class="list-inline">
|
||||
|
||||
+4
-4
@@ -92,13 +92,13 @@ mark,
|
||||
// Inline turns list items into inline-block
|
||||
.list-inline {
|
||||
@include list-unstyled;
|
||||
margin-left: -$list-inline-padding;
|
||||
}
|
||||
|
||||
.list-inline-item {
|
||||
display: inline-block;
|
||||
padding-right: $list-inline-padding;
|
||||
padding-left: $list-inline-padding;
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-right: $list-inline-padding;
|
||||
}
|
||||
}
|
||||
|
||||
// Horizontal description lists w/ grid classes
|
||||
|
||||
Reference in New Issue
Block a user