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
0a8efd53
Commit
0a8efd53
authored
Feb 25, 2012
by
Dominic Barnes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a 'horizontal' option to description lists, similar to .form-horizontal
parent
43760eb2
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
575 additions
and
207 deletions
+575
-207
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap-responsive.css
+108
-40
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+390
-155
docs/assets/js/bootstrap-tooltip.js
docs/assets/js/bootstrap-tooltip.js
+1
-1
docs/base-css.html
docs/base-css.html
+20
-5
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+20
-5
less/type.less
less/type.less
+36
-1
No files found.
docs/assets/bootstrap.zip
View file @
0a8efd53
No preview for this file type
docs/assets/css/bootstrap-responsive.css
View file @
0a8efd53
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
.clearfix
{
.clearfix
{
*
zoom
:
1
;
*
zoom
:
1
;
}
}
.clearfix
:before
,
.clearfix
:after
{
.clearfix
:before
,
.clearfix
:after
{
display
:
table
;
display
:
table
;
content
:
""
;
content
:
""
;
}
}
...
@@ -99,10 +100,12 @@
...
@@ -99,10 +100,12 @@
/* CSS3 spec*/
/* CSS3 spec*/
}
}
.input-prepend
input
[
class
*=
"span"
],
.input-append
input
[
class
*=
"span"
]
{
.input-prepend
input
[
class
*=
"span"
],
.input-append
input
[
class
*=
"span"
]
{
width
:
auto
;
width
:
auto
;
}
}
input
[
type
=
"checkbox"
],
input
[
type
=
"radio"
]
{
input
[
type
=
"checkbox"
],
input
[
type
=
"radio"
]
{
border
:
1px
solid
#ccc
;
border
:
1px
solid
#ccc
;
}
}
.form-horizontal
.control-group
>
label
{
.form-horizontal
.control-group
>
label
{
...
@@ -151,7 +154,8 @@
...
@@ -151,7 +154,8 @@
.row
{
.row
{
margin-left
:
0
;
margin-left
:
0
;
}
}
.row
>
[
class
*=
"span"
],
.row-fluid
>
[
class
*=
"span"
]
{
.row
>
[
class
*=
"span"
],
.row-fluid
>
[
class
*=
"span"
]
{
float
:
none
;
float
:
none
;
display
:
block
;
display
:
block
;
width
:
auto
;
width
:
auto
;
...
@@ -163,7 +167,8 @@
...
@@ -163,7 +167,8 @@
margin-left
:
-20px
;
margin-left
:
-20px
;
*
zoom
:
1
;
*
zoom
:
1
;
}
}
.row
:before
,
.row
:after
{
.row
:before
,
.row
:after
{
display
:
table
;
display
:
table
;
content
:
""
;
content
:
""
;
}
}
...
@@ -174,7 +179,9 @@
...
@@ -174,7 +179,9 @@
float
:
left
;
float
:
left
;
margin-left
:
20px
;
margin-left
:
20px
;
}
}
.container
,
.navbar-fixed-top
.container
,
.navbar-fixed-bottom
.container
{
.container
,
.navbar-fixed-top
.container
,
.navbar-fixed-bottom
.container
{
width
:
724px
;
width
:
724px
;
}
}
.span1
{
.span1
{
...
@@ -253,7 +260,8 @@
...
@@ -253,7 +260,8 @@
width
:
100%
;
width
:
100%
;
*
zoom
:
1
;
*
zoom
:
1
;
}
}
.row-fluid
:before
,
.row-fluid
:after
{
.row-fluid
:before
,
.row-fluid
:after
{
display
:
table
;
display
:
table
;
content
:
""
;
content
:
""
;
}
}
...
@@ -303,43 +311,69 @@
...
@@ -303,43 +311,69 @@
.row-fluid
>
.span12
{
.row-fluid
>
.span12
{
width
:
99.999999993%
;
width
:
99.999999993%
;
}
}
input
,
textarea
,
.uneditable-input
{
input
,
textarea
,
.uneditable-input
{
margin-left
:
0
;
margin-left
:
0
;
}
}
input
>
.span1
,
textarea
>
.span1
,
.uneditable-input
>
.span1
{
input
>
.span1
,
textarea
>
.span1
,
.uneditable-input
>
.span1
{
width
:
32px
;
width
:
32px
;
}
}
input
>
.span2
,
textarea
>
.span2
,
.uneditable-input
>
.span2
{
input
>
.span2
,
textarea
>
.span2
,
.uneditable-input
>
.span2
{
width
:
94px
;
width
:
94px
;
}
}
input
>
.span3
,
textarea
>
.span3
,
.uneditable-input
>
.span3
{
input
>
.span3
,
textarea
>
.span3
,
.uneditable-input
>
.span3
{
width
:
156px
;
width
:
156px
;
}
}
input
>
.span4
,
textarea
>
.span4
,
.uneditable-input
>
.span4
{
input
>
.span4
,
textarea
>
.span4
,
.uneditable-input
>
.span4
{
width
:
218px
;
width
:
218px
;
}
}
input
>
.span5
,
textarea
>
.span5
,
.uneditable-input
>
.span5
{
input
>
.span5
,
textarea
>
.span5
,
.uneditable-input
>
.span5
{
width
:
280px
;
width
:
280px
;
}
}
input
>
.span6
,
textarea
>
.span6
,
.uneditable-input
>
.span6
{
input
>
.span6
,
textarea
>
.span6
,
.uneditable-input
>
.span6
{
width
:
342px
;
width
:
342px
;
}
}
input
>
.span7
,
textarea
>
.span7
,
.uneditable-input
>
.span7
{
input
>
.span7
,
textarea
>
.span7
,
.uneditable-input
>
.span7
{
width
:
404px
;
width
:
404px
;
}
}
input
>
.span8
,
textarea
>
.span8
,
.uneditable-input
>
.span8
{
input
>
.span8
,
textarea
>
.span8
,
.uneditable-input
>
.span8
{
width
:
466px
;
width
:
466px
;
}
}
input
>
.span9
,
textarea
>
.span9
,
.uneditable-input
>
.span9
{
input
>
.span9
,
textarea
>
.span9
,
.uneditable-input
>
.span9
{
width
:
528px
;
width
:
528px
;
}
}
input
>
.span10
,
textarea
>
.span10
,
.uneditable-input
>
.span10
{
input
>
.span10
,
textarea
>
.span10
,
.uneditable-input
>
.span10
{
width
:
590px
;
width
:
590px
;
}
}
input
>
.span11
,
textarea
>
.span11
,
.uneditable-input
>
.span11
{
input
>
.span11
,
textarea
>
.span11
,
.uneditable-input
>
.span11
{
width
:
652px
;
width
:
652px
;
}
}
input
>
.span12
,
textarea
>
.span12
,
.uneditable-input
>
.span12
{
input
>
.span12
,
textarea
>
.span12
,
.uneditable-input
>
.span12
{
width
:
714px
;
width
:
714px
;
}
}
}
}
...
@@ -383,7 +417,8 @@
...
@@ -383,7 +417,8 @@
color
:
#999999
;
color
:
#999999
;
text-shadow
:
none
;
text-shadow
:
none
;
}
}
.navbar
.nav
>
li
>
a
,
.navbar
.dropdown-menu
a
{
.navbar
.nav
>
li
>
a
,
.navbar
.dropdown-menu
a
{
padding
:
6px
15px
;
padding
:
6px
15px
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#999999
;
color
:
#999999
;
...
@@ -394,7 +429,8 @@
...
@@ -394,7 +429,8 @@
.navbar
.dropdown-menu
li
+
li
a
{
.navbar
.dropdown-menu
li
+
li
a
{
margin-bottom
:
2px
;
margin-bottom
:
2px
;
}
}
.navbar
.nav
>
li
>
a
:hover
,
.navbar
.dropdown-menu
a
:hover
{
.navbar
.nav
>
li
>
a
:hover
,
.navbar
.dropdown-menu
a
:hover
{
background-color
:
#222222
;
background-color
:
#222222
;
}
}
.navbar
.dropdown-menu
{
.navbar
.dropdown-menu
{
...
@@ -415,13 +451,15 @@
...
@@ -415,13 +451,15 @@
-moz-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;
box-shadow
:
none
;
}
}
.navbar
.dropdown-menu
:before
,
.navbar
.dropdown-menu
:after
{
.navbar
.dropdown-menu
:before
,
.navbar
.dropdown-menu
:after
{
display
:
none
;
display
:
none
;
}
}
.navbar
.dropdown-menu
.divider
{
.navbar
.dropdown-menu
.divider
{
display
:
none
;
display
:
none
;
}
}
.navbar-form
,
.navbar-search
{
.navbar-form
,
.navbar-search
{
float
:
none
;
float
:
none
;
padding
:
9px
15px
;
padding
:
9px
15px
;
margin
:
9px
0
;
margin
:
9px
0
;
...
@@ -458,7 +496,8 @@
...
@@ -458,7 +496,8 @@
margin-left
:
-30px
;
margin-left
:
-30px
;
*
zoom
:
1
;
*
zoom
:
1
;
}
}
.row
:before
,
.row
:after
{
.row
:before
,
.row
:after
{
display
:
table
;
display
:
table
;
content
:
""
;
content
:
""
;
}
}
...
@@ -469,7 +508,9 @@
...
@@ -469,7 +508,9 @@
float
:
left
;
float
:
left
;
margin-left
:
30px
;
margin-left
:
30px
;
}
}
.container
,
.navbar-fixed-top
.container
,
.navbar-fixed-bottom
.container
{
.container
,
.navbar-fixed-top
.container
,
.navbar-fixed-bottom
.container
{
width
:
1170px
;
width
:
1170px
;
}
}
.span1
{
.span1
{
...
@@ -548,7 +589,8 @@
...
@@ -548,7 +589,8 @@
width
:
100%
;
width
:
100%
;
*
zoom
:
1
;
*
zoom
:
1
;
}
}
.row-fluid
:before
,
.row-fluid
:after
{
.row-fluid
:before
,
.row-fluid
:after
{
display
:
table
;
display
:
table
;
content
:
""
;
content
:
""
;
}
}
...
@@ -598,43 +640,69 @@
...
@@ -598,43 +640,69 @@
.row-fluid
>
.span12
{
.row-fluid
>
.span12
{
width
:
100%
;
width
:
100%
;
}
}
input
,
textarea
,
.uneditable-input
{
input
,
textarea
,
.uneditable-input
{
margin-left
:
0
;
margin-left
:
0
;
}
}
input
>
.span1
,
textarea
>
.span1
,
.uneditable-input
>
.span1
{
input
>
.span1
,
textarea
>
.span1
,
.uneditable-input
>
.span1
{
width
:
60px
;
width
:
60px
;
}
}
input
>
.span2
,
textarea
>
.span2
,
.uneditable-input
>
.span2
{
input
>
.span2
,
textarea
>
.span2
,
.uneditable-input
>
.span2
{
width
:
160px
;
width
:
160px
;
}
}
input
>
.span3
,
textarea
>
.span3
,
.uneditable-input
>
.span3
{
input
>
.span3
,
textarea
>
.span3
,
.uneditable-input
>
.span3
{
width
:
260px
;
width
:
260px
;
}
}
input
>
.span4
,
textarea
>
.span4
,
.uneditable-input
>
.span4
{
input
>
.span4
,
textarea
>
.span4
,
.uneditable-input
>
.span4
{
width
:
360px
;
width
:
360px
;
}
}
input
>
.span5
,
textarea
>
.span5
,
.uneditable-input
>
.span5
{
input
>
.span5
,
textarea
>
.span5
,
.uneditable-input
>
.span5
{
width
:
460px
;
width
:
460px
;
}
}
input
>
.span6
,
textarea
>
.span6
,
.uneditable-input
>
.span6
{
input
>
.span6
,
textarea
>
.span6
,
.uneditable-input
>
.span6
{
width
:
560px
;
width
:
560px
;
}
}
input
>
.span7
,
textarea
>
.span7
,
.uneditable-input
>
.span7
{
input
>
.span7
,
textarea
>
.span7
,
.uneditable-input
>
.span7
{
width
:
660px
;
width
:
660px
;
}
}
input
>
.span8
,
textarea
>
.span8
,
.uneditable-input
>
.span8
{
input
>
.span8
,
textarea
>
.span8
,
.uneditable-input
>
.span8
{
width
:
760px
;
width
:
760px
;
}
}
input
>
.span9
,
textarea
>
.span9
,
.uneditable-input
>
.span9
{
input
>
.span9
,
textarea
>
.span9
,
.uneditable-input
>
.span9
{
width
:
860px
;
width
:
860px
;
}
}
input
>
.span10
,
textarea
>
.span10
,
.uneditable-input
>
.span10
{
input
>
.span10
,
textarea
>
.span10
,
.uneditable-input
>
.span10
{
width
:
960px
;
width
:
960px
;
}
}
input
>
.span11
,
textarea
>
.span11
,
.uneditable-input
>
.span11
{
input
>
.span11
,
textarea
>
.span11
,
.uneditable-input
>
.span11
{
width
:
1060px
;
width
:
1060px
;
}
}
input
>
.span12
,
textarea
>
.span12
,
.uneditable-input
>
.span12
{
input
>
.span12
,
textarea
>
.span12
,
.uneditable-input
>
.span12
{
width
:
1160px
;
width
:
1160px
;
}
}
.thumbnails
{
.thumbnails
{
...
...
docs/assets/css/bootstrap.css
View file @
0a8efd53
This diff is collapsed.
Click to expand it.
docs/assets/js/bootstrap-tooltip.js
View file @
0a8efd53
...
@@ -206,7 +206,7 @@
...
@@ -206,7 +206,7 @@
title
=
$e
.
attr
(
'
data-original-title
'
)
title
=
$e
.
attr
(
'
data-original-title
'
)
||
(
typeof
o
.
title
==
'
function
'
?
o
.
title
.
call
(
$e
[
0
])
:
o
.
title
)
||
(
typeof
o
.
title
==
'
function
'
?
o
.
title
.
call
(
$e
[
0
])
:
o
.
title
)
title
=
title
.
toString
().
replace
(
/
(
^
\s
*|
\s
*$
)
/
,
""
)
title
=
(
title
||
''
)
.
toString
().
replace
(
/
(
^
\s
*|
\s
*$
)
/
,
""
)
return
title
return
title
}
}
...
...
docs/base-css.html
View file @
0a8efd53
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
<!-- Lists -->
<!-- Lists -->
<h2>
Lists
</h2>
<h2>
Lists
</h2>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"span
3
"
>
<div
class=
"span
4
"
>
<h4>
Unordered
</h4>
<h4>
Unordered
</h4>
<p><code>
<
ul
>
</code></p>
<p><code>
<
ul
>
</code></p>
<ul>
<ul>
...
@@ -308,7 +308,7 @@
...
@@ -308,7 +308,7 @@
<li>
Eget porttitor lorem
</li>
<li>
Eget porttitor lorem
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"span
3
"
>
<div
class=
"span
4
"
>
<h4>
Unstyled
</h4>
<h4>
Unstyled
</h4>
<p><code>
<
ul class="unstyled"
>
</code></p>
<p><code>
<
ul class="unstyled"
>
</code></p>
<ul
class=
"unstyled"
>
<ul
class=
"unstyled"
>
...
@@ -329,7 +329,7 @@
...
@@ -329,7 +329,7 @@
<li>
Eget porttitor lorem
</li>
<li>
Eget porttitor lorem
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"span
3
"
>
<div
class=
"span
4
"
>
<h4>
Ordered
</h4>
<h4>
Ordered
</h4>
<p><code>
<
ol
>
</code></p>
<p><code>
<
ol
>
</code></p>
<ol>
<ol>
...
@@ -343,7 +343,9 @@
...
@@ -343,7 +343,9 @@
<li>
Eget porttitor lorem
</li>
<li>
Eget porttitor lorem
</li>
</ol>
</ol>
</div>
</div>
<div
class=
"span3"
>
</div>
<!-- /row -->
<div
class=
"row"
>
<div
class=
"span4"
>
<h4>
Description
</h4>
<h4>
Description
</h4>
<p><code>
<
dl
>
</code></p>
<p><code>
<
dl
>
</code></p>
<dl>
<dl>
...
@@ -356,6 +358,19 @@
...
@@ -356,6 +358,19 @@
<dd>
Etiam porta sem malesuada magna mollis euismod.
</dd>
<dd>
Etiam porta sem malesuada magna mollis euismod.
</dd>
</dl>
</dl>
</div>
</div>
<div
class=
"span8"
>
<h4>
Horizontal
</h4>
<p><code>
<
dl class="horizontal"
>
</code></p>
<dl
class=
"horizontal"
>
<dt>
Description lists
</dt>
<dd>
A description list is perfect for defining terms.
</dd>
<dt>
Euismod
</dt>
<dd>
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
</dd>
<dd>
Donec id elit non mi porta gravida at eget metus.
</dd>
<dt>
Malesuada porta
</dt>
<dd>
Etiam porta sem malesuada magna mollis euismod.
</dd>
</dl>
</div>
</div>
<!-- /row -->
</div>
<!-- /row -->
</section>
</section>
...
...
docs/templates/pages/base-css.mustache
View file @
0a8efd53
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
<!-- Lists -->
<!-- Lists -->
<h2>
{{
_i
}}
Lists
{{/
i
}}
</h2>
<h2>
{{
_i
}}
Lists
{{/
i
}}
</h2>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"span
3
"
>
<div
class=
"span
4
"
>
<h4>
{{
_i
}}
Unordered
{{/
i
}}
</h4>
<h4>
{{
_i
}}
Unordered
{{/
i
}}
</h4>
<p><code>
<
ul
>
</code></p>
<p><code>
<
ul
>
</code></p>
<ul>
<ul>
...
@@ -232,7 +232,7 @@
...
@@ -232,7 +232,7 @@
<li>
Eget porttitor lorem
</li>
<li>
Eget porttitor lorem
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"span
3
"
>
<div
class=
"span
4
"
>
<h4>
{{
_i
}}
Unstyled
{{/
i
}}
</h4>
<h4>
{{
_i
}}
Unstyled
{{/
i
}}
</h4>
<p><code>
<
ul class="unstyled"
>
</code></p>
<p><code>
<
ul class="unstyled"
>
</code></p>
<ul
class=
"unstyled"
>
<ul
class=
"unstyled"
>
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
<li>
Eget porttitor lorem
</li>
<li>
Eget porttitor lorem
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"span
3
"
>
<div
class=
"span
4
"
>
<h4>
{{
_i
}}
Ordered
{{/
i
}}
</h4>
<h4>
{{
_i
}}
Ordered
{{/
i
}}
</h4>
<p><code>
<
ol
>
</code></p>
<p><code>
<
ol
>
</code></p>
<ol>
<ol>
...
@@ -267,7 +267,9 @@
...
@@ -267,7 +267,9 @@
<li>
Eget porttitor lorem
</li>
<li>
Eget porttitor lorem
</li>
</ol>
</ol>
</div>
</div>
<div
class=
"span3"
>
</div>
<!-- /row -->
<div
class=
"row"
>
<div
class=
"span4"
>
<h4>
{{
_i
}}
Description
{{/
i
}}
</h4>
<h4>
{{
_i
}}
Description
{{/
i
}}
</h4>
<p><code>
<
dl
>
</code></p>
<p><code>
<
dl
>
</code></p>
<dl>
<dl>
...
@@ -280,6 +282,19 @@
...
@@ -280,6 +282,19 @@
<dd>
Etiam porta sem malesuada magna mollis euismod.
</dd>
<dd>
Etiam porta sem malesuada magna mollis euismod.
</dd>
</dl>
</dl>
</div>
</div>
<div
class=
"span8"
>
<h4>
{{
_i
}}
Horizontal
{{/
i
}}
</h4>
<p><code>
<
dl class="horizontal"
>
</code></p>
<dl
class=
"horizontal"
>
<dt>
{{
_i
}}
Description lists
{{/
i
}}
</dt>
<dd>
{{
_i
}}
A description list is perfect for defining terms.
{{/
i
}}
</dd>
<dt>
Euismod
</dt>
<dd>
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
</dd>
<dd>
Donec id elit non mi porta gravida at eget metus.
</dd>
<dt>
Malesuada porta
</dt>
<dd>
Etiam porta sem malesuada magna mollis euismod.
</dd>
</dl>
</div>
</div>
<!-- /row -->
</div>
<!-- /row -->
</section>
</section>
...
...
less/type.less
View file @
0a8efd53
...
@@ -130,6 +130,41 @@ dt {
...
@@ -130,6 +130,41 @@ dt {
dd {
dd {
margin-left: @baseLineHeight / 2;
margin-left: @baseLineHeight / 2;
}
}
// Horizontal layout (like forms)
dl.horizontal {
dt {
float: left;
clear: left;
width: 120px;
text-align: right;
}
dd {
margin-left: 130px;
}
&.horizontal-mini {
dt { width: 50px; }
dd { margin-left: 60px; }
}
&.horizontal-small {
dt { width: 90px; }
dd { margin-left: 100px; }
}
&.horizontal-normal {
// no additional styles needed
}
&.horizontal-large {
dt { width: 140px; }
dd { margin-left: 150px; }
}
&.horizontal-xlarge {
dt { width: 170px; }
dd { margin-left: 180px; }
}
&.horizontal-xxlarge {
dt { width: 190px; }
dd { margin-left: 200px; }
}
}
// MISC
// MISC
// ----
// ----
...
...
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