Skip to content

Commit

Permalink
updated fluid example to not use floated sidebar and instead use posi…
Browse files Browse the repository at this point in the history
…tion absolute; not ideal, but it works in most cases
  • Loading branch information
mdo committed Oct 20, 2011
1 parent 35793d9 commit b62475a
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 47 deletions.
13 changes: 4 additions & 9 deletions bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Wed Oct 19 23:10:57 PDT 2011
* Date: Wed Oct 19 23:49:47 PDT 2011
*/
/* Reset.less
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
Expand Down Expand Up @@ -201,7 +201,6 @@ body {
display: table;
content: "";
zoom: 1;
*display: inline;
}
.container:after {
clear: both;
Expand All @@ -217,13 +216,14 @@ body {
display: table;
content: "";
zoom: 1;
*display: inline;
}
.container-fluid:after {
clear: both;
}
.container-fluid > .sidebar {
float: left;
position: absolute;
top: 0;
left: 20px;
width: 220px;
}
.container-fluid > .content {
Expand Down Expand Up @@ -259,7 +259,6 @@ a:hover {
display: table;
content: "";
zoom: 1;
*display: inline;
}
.row:after {
clear: both;
Expand Down Expand Up @@ -598,7 +597,6 @@ form .clearfix:before, form .clearfix:after {
display: table;
content: "";
zoom: 1;
*display: inline;
}
form .clearfix:after {
clear: both;
Expand Down Expand Up @@ -1612,7 +1610,6 @@ a.menu:after, .dropdown-toggle:after {
display: table;
content: "";
zoom: 1;
*display: inline;
}
.tabs:after, .pills:after {
clear: both;
Expand Down Expand Up @@ -2199,7 +2196,6 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
display: table;
content: "";
zoom: 1;
*display: inline;
}
.modal-footer:after {
clear: both;
Expand Down Expand Up @@ -2398,7 +2394,6 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
display: table;
content: "";
zoom: 1;
*display: inline;
}
.media-grid:after {
clear: both;
Expand Down
16 changes: 8 additions & 8 deletions bootstrap.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@ <h2>Default styles</h2>
<span class="add-on">@</span>
<input class="medium" id="prependedInput" name="prependedInput" size="16" type="text" />
</div>
<span class="help-block">Here's some help text</span>
</div>
</div><!-- /clearfix -->
<div class="clearfix">
Expand Down
57 changes: 28 additions & 29 deletions lib/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,31 @@
// Clearfix for clearing floats like a boss h5bp.com/q
.clearfix() {
zoom: 1;
&:before,
&:before,
&:after {
display: table;
content: "";
zoom: 1;
*display: inline;
}
&:after {
}
&:after {
clear: both;
}
}
}

// Center-align a block level element
.center-block() {
display: block;
display: block;
margin-left: auto;
margin-right: auto;
}

// Sizing shortcuts
.size(@height: 5px, @width: 5px) {
height: @height;
width: @width;
height: @height;
width: @width;
}
.square(@size: 5px) {
.size(@size, @size);
.size(@size, @size);
}

// Input placeholder text
Expand Down Expand Up @@ -112,39 +111,39 @@

// Transitions
.transition(@transition) {
-webkit-transition: @transition;
-moz-transition: @transition;
-ms-transition: @transition;
-o-transition: @transition;
transition: @transition;
-webkit-transition: @transition;
-moz-transition: @transition;
-ms-transition: @transition;
-o-transition: @transition;
transition: @transition;
}

// Background clipping
.background-clip(@clip) {
-webkit-background-clip: @clip;
-moz-background-clip: @clip;
background-clip: @clip;
-webkit-background-clip: @clip;
-moz-background-clip: @clip;
background-clip: @clip;
}

// CSS3 Content Columns
.content-columns(@columnCount, @columnGap: 20px) {
-webkit-column-count: @columnCount;
-moz-column-count: @columnCount;
-webkit-column-count: @columnCount;
-moz-column-count: @columnCount;
column-count: @columnCount;
-webkit-column-gap: @columnGap;
-moz-column-gap: @columnGap;
-moz-column-gap: @columnGap;
column-gap: @columnGap;
}

// Add an alphatransparency value to any background or border color (via Elyse Holladay)
#translucent {
.background(@color: @white, @alpha: 1) {
background-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
}
.border(@color: @white, @alpha: 1) {
border-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
background-clip: padding-box;
}
}
.border(@color: @white, @alpha: 1) {
border-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
background-clip: padding-box;
}
}

// Gradient Bar Colors for buttons and allerts
Expand Down Expand Up @@ -210,8 +209,8 @@

// Opacity
.opacity(@opacity: 100) {
filter: e(%("alpha(opacity=%d)", @opacity));
-khtml-opacity: @opacity / 100;
-moz-opacity: @opacity / 100;
opacity: @opacity / 100;
filter: e(%("alpha(opacity=%d)", @opacity));
-khtml-opacity: @opacity / 100;
-moz-opacity: @opacity / 100;
opacity: @opacity / 100;
}
4 changes: 3 additions & 1 deletion lib/scaffolding.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ body {
padding-right: 20px;
.clearfix();
> .sidebar {
float: left;
position: absolute;
top: 0;
left: 20px;
width: 220px;
}
// TODO in v2: rename this and .popover .content to be more specific
Expand Down

0 comments on commit b62475a

Please sign in to comment.