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
5fb2c666
Commit
5fb2c666
authored
Jan 07, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the fluid examples to use new classes and clear the floats properly from sidebar
parent
45d671d9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
47 deletions
+65
-47
bootstrap.css
bootstrap.css
+15
-9
bootstrap.min.css
bootstrap.min.css
+6
-5
docs/upgrading.html
docs/upgrading.html
+5
-0
examples/fluid-reverse.html
examples/fluid-reverse.html
+4
-2
examples/fluid.html
examples/fluid.html
+23
-21
lib/scaffolding.less
lib/scaffolding.less
+12
-10
No files found.
bootstrap.css
View file @
5fb2c666
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sat Jan 7 01:
22:18
PST 2012
* Date: Sat Jan 7 01:
58:07
PST 2012
*/
*/
html
,
body
{
html
,
body
{
margin
:
0
;
margin
:
0
;
...
@@ -209,21 +209,27 @@ body {
...
@@ -209,21 +209,27 @@ body {
.fluid-container
:after
{
.fluid-container
:after
{
clear
:
both
;
clear
:
both
;
}
}
.fluid-sidebar
-left
,
.fluid-sidebar-right
{
.fluid-sidebar
{
width
:
220px
;
width
:
220px
;
margin
:
0
20px
18px
;
}
}
.fluid-sidebar-left
{
.sidebar-left
{
padding-left
:
260px
;
}
.sidebar-right
{
padding-right
:
260px
;
}
.sidebar-left
.fluid-sidebar
{
float
:
left
;
float
:
left
;
margin-left
:
-240px
;
}
}
.
fluid-sidebar-right
{
.
sidebar-right
.fluid-sidebar
{
float
:
right
;
float
:
right
;
margin-right
:
-240px
;
}
}
.fluid-content
{
.fluid-content
{
margin-left
:
240px
;
float
:
left
;
}
width
:
100%
;
.fluid-container.reverse
.fluid-content
{
margin-left
:
0
;
margin-right
:
240px
;
}
}
a
{
a
{
font-weight
:
inherit
;
font-weight
:
inherit
;
...
...
bootstrap.min.css
View file @
5fb2c666
...
@@ -25,11 +25,12 @@ body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:
...
@@ -25,11 +25,12 @@ body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:
.container
:after
{
clear
:
both
;}
.container
:after
{
clear
:
both
;}
.fluid-container
{
position
:
relative
;
min-width
:
940px
;
padding-left
:
20px
;
padding-right
:
20px
;
zoom
:
1
;}
.fluid-container
:before
,
.fluid-container
:after
{
display
:
table
;
*
display
:
inline
;
content
:
""
;
zoom
:
1
;}
.fluid-container
{
position
:
relative
;
min-width
:
940px
;
padding-left
:
20px
;
padding-right
:
20px
;
zoom
:
1
;}
.fluid-container
:before
,
.fluid-container
:after
{
display
:
table
;
*
display
:
inline
;
content
:
""
;
zoom
:
1
;}
.fluid-container
:after
{
clear
:
both
;}
.fluid-container
:after
{
clear
:
both
;}
.fluid-sidebar-left
,
.fluid-sidebar-right
{
width
:
220px
;}
.fluid-sidebar
{
width
:
220px
;
margin
:
0
20px
18px
;}
.fluid-sidebar-left
{
float
:
left
;}
.sidebar-left
{
padding-left
:
260px
;}
.fluid-sidebar-right
{
float
:
right
;}
.sidebar-right
{
padding-right
:
260px
;}
.fluid-content
{
margin-left
:
240px
;}
.sidebar-left
.fluid-sidebar
{
float
:
left
;
margin-left
:
-240px
;}
.fluid-container.reverse
.fluid-content
{
margin-left
:
0
;
margin-right
:
240px
;}
.sidebar-right
.fluid-sidebar
{
float
:
right
;
margin-right
:
-240px
;}
.fluid-content
{
float
:
left
;
width
:
100%
;}
a
{
font-weight
:
inherit
;
line-height
:
inherit
;
color
:
#0088cc
;
text-decoration
:
none
;}
a
:hover
{
color
:
#005580
;
text-decoration
:
underline
;}
a
{
font-weight
:
inherit
;
line-height
:
inherit
;
color
:
#0088cc
;
text-decoration
:
none
;}
a
:hover
{
color
:
#005580
;
text-decoration
:
underline
;}
.pull-right
{
float
:
right
;}
.pull-right
{
float
:
right
;}
.pull-left
{
float
:
left
;}
.pull-left
{
float
:
left
;}
...
...
docs/upgrading.html
View file @
5fb2c666
...
@@ -102,6 +102,11 @@
...
@@ -102,6 +102,11 @@
<li>
Added button bar options
</li>
<li>
Added button bar options
</li>
</ul>
</ul>
</li>
</li>
<li>
Examples
<ul>
<li>
Fluid examples redone.
<code>
.fluid-container
</code>
now requires a
<code>
.sidebar-left
</code>
or
<code>
.sidebar-right
</code>
as well. Fluid sidebar element has a new class,
<code>
.fluid-sidebar
</code>
.
</li>
</ul>
</li>
</ul>
</ul>
<!--
<!--
<li>
<li>
...
...
examples/fluid-reverse.html
View file @
5fb2c666
...
@@ -42,8 +42,8 @@
...
@@ -42,8 +42,8 @@
</div>
</div>
</div>
</div>
<div
class=
"fluid-container
reverse
"
>
<div
class=
"fluid-container
sidebar-right
"
>
<div
class=
"fluid-sidebar
-right
"
>
<div
class=
"fluid-sidebar"
>
<div
class=
"well"
>
<div
class=
"well"
>
<h5>
Sidebar
</h5>
<h5>
Sidebar
</h5>
<ul>
<ul>
...
@@ -116,6 +116,8 @@
...
@@ -116,6 +116,8 @@
</div>
</div>
</div>
</div>
<hr>
<footer>
<footer>
<p>
©
Company 2011
</p>
<p>
©
Company 2011
</p>
</footer>
</footer>
...
...
examples/fluid.html
View file @
5fb2c666
...
@@ -42,29 +42,29 @@
...
@@ -42,29 +42,29 @@
</div>
</div>
</div>
</div>
<div
class=
"fluid-container"
>
<div
class=
"fluid-container
sidebar-left
"
>
<div
class=
"fluid-sidebar
-left
"
>
<div
class=
"fluid-sidebar"
>
<div
class=
"well"
>
<div
class=
"well
side-nav
"
>
<h5>
Sidebar
</h5>
<h5
class=
"nav-label"
>
Sidebar
</h5>
<ul>
<ul
class=
"nav-group"
>
<li
><a
href=
"#"
>
Link
</a></li>
<li
class=
"active"
><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
</ul>
</ul>
<h5>
Sidebar
</h5>
<h5
class=
"nav-label"
>
Sidebar
</h5>
<ul>
<ul
class=
"nav-group"
>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
</ul>
</ul>
<h5>
Sidebar
</h5>
<h5
class=
"nav-label"
>
Sidebar
</h5>
<ul>
<ul
class=
"nav-group"
>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
<li><a
href=
"#"
>
Link
</a></li>
<li><a
class=
"nav-item"
href=
"#"
>
Link
</a></li>
</ul>
</ul>
</div>
</div>
</div>
</div>
...
@@ -116,6 +116,8 @@
...
@@ -116,6 +116,8 @@
</div>
</div>
</div>
</div>
<hr>
<footer>
<footer>
<p>
©
Company 2011
</p>
<p>
©
Company 2011
</p>
</footer>
</footer>
...
...
lib/scaffolding.less
View file @
5fb2c666
...
@@ -29,21 +29,23 @@ body {
...
@@ -29,21 +29,23 @@ body {
padding-right: 20px;
padding-right: 20px;
.clearfix();
.clearfix();
}
}
// Sidebars (left and right options)
// Sidebars (left and right options)
.fluid-sidebar-left,
.fluid-sidebar {
.fluid-sidebar-right {
width: 220px;
width: 220px;
margin: 0 20px 18px;
}
}
.fluid-sidebar-left { float: left; }
.sidebar-left { padding-left: 260px; }
.fluid-sidebar-right { float: right; }
.sidebar-right { padding-right: 260px; }
// Float the sidebars accordingly
.sidebar-left .fluid-sidebar { float: left; margin-left: -240px; }
.sidebar-right .fluid-sidebar { float: right; margin-right: -240px; }
// The main content area
// The main content area
.fluid-content {
.fluid-content {
margin-left: 240px;
float: left;
}
width: 100%;
// Reverse layout for sidebar on right
.fluid-container.reverse .fluid-content {
margin-left: 0;
margin-right: 240px;
}
}
...
...
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