Skip to content

Commit

Permalink
bump css to 1.3.0, update makefile to reflect that, update form css t…
Browse files Browse the repository at this point in the history
…o prepend form to the .clearfix to prevent some bullshit, small tweaks elsewhere
  • Loading branch information
mdo committed Sep 8, 2011
1 parent 1af96b9 commit 1c03a07
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 55 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DATE=$(shell DATE)
BOOTSTRAP = ./bootstrap-1.2.0.css
BOOTSTRAP_MIN = ./bootstrap-1.2.0.min.css
BOOTSTRAP = ./bootstrap-1.3.0.css
BOOTSTRAP_MIN = ./bootstrap-1.3.0.min.css
BOOTSTRAP_LESS = ./lib/bootstrap.less
LESS_COMPESSOR ?= `which lessc`
WATCHR ?= `which watchr`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Here's what the LESS version looks like:

Or if you prefer, the standard css way:

<link rel="stylesheet" type="text/css" href="bootstrap-1.2.0.css">
<link rel="stylesheet" type="text/css" href="bootstrap-1.3.0.css">

For more info, refer to the docs!

Expand Down
25 changes: 3 additions & 22 deletions bootstrap-1.2.0.css → bootstrap-1.3.0.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: Thu Sep 8 09:31:40 PDT 2011
* Date: Thu Sep 8 10:36:15 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 @@ -185,20 +185,6 @@ textarea {
margin-left: auto;
margin-right: auto;
}
.fixed-container {
width: 940px;
margin-left: auto;
margin-right: auto;
zoom: 1;
margin-bottom: 18px;
}
.fixed-container:before, .fixed-container:after {
display: table;
content: "";
}
.fixed-container:after {
clear: both;
}
.btn.danger,
.alert-message.danger,
.btn.danger:hover,
Expand Down Expand Up @@ -293,7 +279,6 @@ TODO:
* ------------------------------------------------------------------------------------------- */
.row {
zoom: 1;
margin-bottom: 18px;
margin-left: -20px;
}
.row:before, .row:after {
Expand All @@ -303,7 +288,7 @@ TODO:
.row:after {
clear: both;
}
.row [class^="span"] {
.row [class*="span"] {
display: inline;
float: left;
margin-left: 20px;
Expand Down Expand Up @@ -444,7 +429,6 @@ body {
margin-left: auto;
margin-right: auto;
zoom: 1;
margin-bottom: 18px;
}
.container:before, .container:after {
display: table;
Expand All @@ -457,7 +441,6 @@ body {
padding-left: 20px;
padding-right: 20px;
zoom: 1;
margin-bottom: 18px;
}
.container-fluid:before, .container-fluid:after {
display: table;
Expand Down Expand Up @@ -699,7 +682,7 @@ fieldset legend {

color: #404040;
}
.clearfix {
form .clearfix {
margin-bottom: 18px;
}
label,
Expand Down Expand Up @@ -1509,7 +1492,6 @@ a.menu:after, .dropdown-toggle:after {
padding: 0;
list-style: none;
zoom: 1;
margin-bottom: 18px;
}
.tabs:before,
.pills:before,
Expand Down Expand Up @@ -1983,7 +1965,6 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
-moz-box-shadow: inset 0 1px 0 #ffffff;
box-shadow: inset 0 1px 0 #ffffff;
zoom: 1;
margin-bottom: 18px;
margin-bottom: 0;
}
.modal-footer:before, .modal-footer:after {
Expand Down
16 changes: 7 additions & 9 deletions bootstrap-1.2.0.min.css → bootstrap-1.3.0.min.css

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

23 changes: 13 additions & 10 deletions docs/assets/css/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ section > .row {
line-height: 27px;
}

div.quickstart {
.quickstart {
background-color: #f5f5f5;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f5f5f5));
Expand All @@ -81,13 +81,16 @@ div.quickstart {
border-top: 1px solid #fff;
border-bottom: 1px solid #eee;
}
div.quickstart div.row {
.quickstart .container {
margin-bottom: 0;
}
.quickstart .row {
margin: 0 -20px;
-webkit-box-shadow: 1px 0 0 #f9f9f9;
-moz-box-shadow: 1px 0 0 #f9f9f9;
box-shadow: 1px 0 0 #f9f9f9;
}
div.quickstart div.columns {
.quickstart [class*="span"] {
width: 285px;
height: 117px;
margin-left: 0;
Expand All @@ -97,21 +100,21 @@ div.quickstart div.columns {
-moz-box-shadow: inset 1px 0 0 #f9f9f9;
box-shadow: inset 1px 0 0 #f9f9f9;
}
div.quickstart div.columns:last-child {
.quickstart [class*="span"]:last-child {
border-right: 1px solid #eee;
width: 286px;
}
div.quickstart h6,
div.quickstart p {
.quickstart h6,
.quickstart p {
line-height: 18px;
text-align: center;
margin-bottom: 9px;
color: #333;
}
div.quickstart h6 {
.quickstart h6 {
color: #999;
}
div.quickstart form textarea {
.quickstart textarea {
display: block;
width: 275px;
height: auto;
Expand All @@ -137,7 +140,7 @@ div.quickstart form textarea {
margin-top: 10px;
margin-bottom: 10px;
}
.show-grid .column, .show-grid .columns {
.show-grid [class*="span"] {
background-color: #eee;
text-align: center;
-webkit-border-radius: 3px;
Expand All @@ -146,7 +149,7 @@ div.quickstart form textarea {
height: 30px;
line-height: 30px;
}
.show-grid:hover .column, .show-grid:hover .columns {
.show-grid:hover [class*="span"] {
background: rgba(0, 0, 0, 0.25);
}
/* Render mini layout previews
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<![endif]-->

<!-- Le styles -->
<link href="../bootstrap-1.2.0.css" rel="stylesheet">
<link href="../bootstrap-1.3.0.css" rel="stylesheet">
<link href="assets/css/docs.css" rel="stylesheet">
<link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">

Expand Down
2 changes: 1 addition & 1 deletion docs/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<script src="assets/js/bootstrap-dropdown.js"></script>

<!-- Le styles -->
<link href="../bootstrap-1.2.0.css" rel="stylesheet">
<link href="../bootstrap-1.3.0.css" rel="stylesheet">
<link href="assets/css/docs.css" rel="stylesheet">
<link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">

Expand Down
2 changes: 1 addition & 1 deletion examples/container-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<![endif]-->

<!-- Le styles -->
<link href="../bootstrap-1.2.0.css" rel="stylesheet">
<link href="../bootstrap-1.3.0.css" rel="stylesheet">
<style type="text/css">
/* Override some defaults */
html, body {
Expand Down
2 changes: 1 addition & 1 deletion examples/fluid.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<![endif]-->

<!-- Le styles -->
<link href="../bootstrap-1.2.0.css" rel="stylesheet">
<link href="../bootstrap-1.3.0.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
Expand Down
2 changes: 1 addition & 1 deletion examples/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<![endif]-->

<!-- Le styles -->
<link href="../bootstrap-1.2.0.css" rel="stylesheet">
<link href="../bootstrap-1.3.0.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
Expand Down
2 changes: 1 addition & 1 deletion lib/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fieldset {
}

// Parent element that clears floats and wraps labels and fields together
.clearfix {
form .clearfix {
margin-bottom: @baseline;
}

Expand Down
13 changes: 12 additions & 1 deletion lib/preboot.less
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
}

// Grid System
.fixed-container {
.fixed-container() {
width: @siteWidth;
margin-left: auto;
margin-right: auto;
Expand All @@ -133,6 +133,17 @@
.offset(@columnOffset: 1) {
margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @extraSpace;
}
// Necessary grid styles for every column to make them appear next to each other horizontally
.gridColumn() {
display: inline;
float: left;
margin-left: @gridGutterWidth;
}
// makeColumn can be used to mark any element (e.g., .content-primary) as a column without changing markup to .span something
.makeColumn(@columnSpan: 1) {
.gridColumn();
.columns(@columnSpan);
}

// Border Radius
.border-radius(@radius: 5px) {
Expand Down
6 changes: 2 additions & 4 deletions lib/scaffolding.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@

// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
// Credit to @dhg for the idea
[class^="span"] {
display: inline;
float: left;
margin-left: @gridGutterWidth;
[class*="span"] {
.gridColumn();
}

// Default columns
Expand Down

0 comments on commit 1c03a07

Please sign in to comment.