0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-21 18:54:30 +01:00

Fixes #11206: remove left padding on first inline list item

This commit is contained in:
Mark Otto 2013-10-26 14:13:34 +01:00
parent 0c714c32f9
commit 4cfe307abe
3 changed files with 11 additions and 1 deletions

View File

@ -610,6 +610,10 @@ ol ol {
padding-left: 5px; padding-left: 5px;
} }
.list-inline > li:first-child {
padding-left: 0;
}
dl { dl {
margin-bottom: 20px; margin-bottom: 20px;
} }

File diff suppressed because one or more lines are too long

View File

@ -153,13 +153,19 @@ ol {
padding-left: 0; padding-left: 0;
list-style: none; list-style: none;
} }
// Inline turns list items into inline-block // Inline turns list items into inline-block
.list-inline { .list-inline {
.list-unstyled(); .list-unstyled();
> li { > li {
display: inline-block; display: inline-block;
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
&:first-child {
padding-left: 0;
}
} }
} }