Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
28da3121
Commit
28da3121
authored
Nov 04, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine new inline list option
parent
68f26d95
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
47 deletions
+26
-47
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+4
-23
docs/base-css.html
docs/base-css.html
+6
-6
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+6
-6
less/type.less
less/type.less
+10
-12
No files found.
docs/assets/css/bootstrap.css
View file @
28da3121
...
@@ -816,33 +816,14 @@ ol.unstyled {
...
@@ -816,33 +816,14 @@ ol.unstyled {
ul
.inline
,
ul
.inline
,
ol
.inline
{
ol
.inline
{
*
zoom
:
1
;
list-style
:
none
;
}
ul
.inline
:before
,
ol
.inline
:before
,
ul
.inline
:after
,
ol
.inline
:after
{
display
:
table
;
line-height
:
0
;
content
:
""
;
}
ul
.inline
:after
,
ol
.inline
:after
{
clear
:
both
;
}
}
ul
.inline
>
li
,
ul
.inline
>
li
,
ol
.inline
>
li
{
ol
.inline
>
li
{
float
:
left
;
display
:
inline-block
;
margin-right
:
14px
;
padding-right
:
5px
;
margin-left
:
12px
;
padding-left
:
5px
;
}
ul
.unstyled.inline
>
li
,
ol
.unstyled.inline
>
li
{
padding-left
:
0
;
}
}
dl
{
dl
{
...
...
docs/base-css.html
View file @
28da3121
...
@@ -377,16 +377,16 @@
...
@@ -377,16 +377,16 @@
</pre>
</pre>
<h3>
Inline
</h3>
<h3>
Inline
</h3>
<p>
A list of floated left items. Can be combined with with
<code>
.unstyled
</code>
</p>
<p>
Place all list items on a single line with
<code>
inline-block
</code>
and some light padding.
</p>
<div
class=
"bs-docs-example"
>
<div
class=
"bs-docs-example"
>
<ul
class=
"
unstyled
inline"
>
<ul
class=
"inline"
>
<li>
<span
class=
"label label-important"
>
</span>
Stop signal
</li>
<li>
Lorem ipsum
</li>
<li>
<span
class=
"label label-warning"
>
</span>
Prepare for signal
</li>
<li>
Phasellus iaculis
</li>
<li>
<span
class=
"label label-success"
>
</span>
Go!
</li>
<li>
Nulla volutpat
</li>
</ul>
</ul>
</div>
</div>
<pre
class=
"prettyprint linenums"
>
<pre
class=
"prettyprint linenums"
>
<
ul class="
unstyled
inline"
>
<
ul class="inline"
>
<
li
>
...
<
/li
>
<
li
>
...
<
/li
>
<
/ul
>
<
/ul
>
</pre>
</pre>
...
...
docs/templates/pages/base-css.mustache
View file @
28da3121
...
@@ -314,16 +314,16 @@
...
@@ -314,16 +314,16 @@
</pre>
</pre>
<h3>
{{
_i
}}
Inline
{{/
i
}}
</h3>
<h3>
{{
_i
}}
Inline
{{/
i
}}
</h3>
<p>
{{
_i
}}
A list of floated left items. Can be combined with with
<code>
.unstyled
</code>
{{/
i
}}
</p>
<p>
{{
_i
}}
Place all list items on a single line with
<code>
inline-block
</code>
and some light padding.
{{/
i
}}
</p>
<div
class=
"bs-docs-example"
>
<div
class=
"bs-docs-example"
>
<ul
class=
"
unstyled
inline"
>
<ul
class=
"inline"
>
<li>
<span
class=
"label label-important"
>
</span>
Stop signal
</li>
<li>
Lorem ipsum
</li>
<li>
<span
class=
"label label-warning"
>
</span>
Prepare for signal
</li>
<li>
Phasellus iaculis
</li>
<li>
<span
class=
"label label-success"
>
</span>
Go!
</li>
<li>
Nulla volutpat
</li>
</ul>
</ul>
</div>
</div>
<pre
class=
"prettyprint linenums"
>
<pre
class=
"prettyprint linenums"
>
<
ul class="
unstyled
inline"
>
<
ul class="inline"
>
<
li
>
...
<
/li
>
<
li
>
...
<
/li
>
<
/ul
>
<
/ul
>
</pre>
</pre>
...
...
less/type.less
View file @
28da3121
...
@@ -106,25 +106,23 @@ ol ul {
...
@@ -106,25 +106,23 @@ ol ul {
li {
li {
line-height: @baseLineHeight;
line-height: @baseLineHeight;
}
}
// Remove default list styles
ul.unstyled,
ul.unstyled,
ol.unstyled {
ol.unstyled {
margin-left: 0;
margin-left: 0;
list-style: none;
list-style: none;
}
}
// Single-line list items
ul.inline,
ul.inline,
ol.inline {
ol.inline {
.clearfix();
list-style: none;
}
& > li {
ul.inline > li,
display: inline-block;
ol.inline > li {
padding-left: 5px;
float: left;
padding-right: 5px;
margin-right: 14px;
}
margin-left: 12px;
}
// Reset left padding for unstyled
ul.unstyled.inline > li,
ol.unstyled.inline > li {
padding-left: 0;
}
}
// Description Lists
// Description Lists
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment