2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

redefine the grid to use attribute selectors with css regex, make previously fixed grid values use variables we use elsewhere

This commit is contained in:
Mark Otto
2011-08-27 15:30:18 -07:00
parent b552281558
commit 650251228b
6 changed files with 41 additions and 43 deletions
+17 -20
View File
@@ -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: Fri Aug 26 23:07:21 PDT 2011
* Date: Sat Aug 27 15:29:10 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).
@@ -280,22 +280,7 @@ table {
.row:after {
clear: both;
}
.row .span1,
.row .span2,
.row .span3,
.row .span4,
.row .span5,
.row .span6,
.row .span7,
.row .span8,
.row .span9,
.row .span10,
.row .span11,
.row .span12,
.row .span13,
.row .span14,
.row .span15,
.row .span16 {
.row [class^="span"] {
display: inline;
float: left;
margin-left: 20px;
@@ -384,6 +369,18 @@ table {
.row .offset12 {
margin-left: 740px;
}
.row .span-one-third {
width: 300px;
}
.row .span-two-thirds {
width: 620px;
}
.row .offset-one-third {
margin-left: 320px;
}
.row .offset-two-thirds {
margin-left: 640px;
}
html, body {
background-color: #fff;
}
@@ -1643,9 +1640,9 @@ footer {
opacity: 0.65;
}
.btn:active {
-webkit-box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn.large {
font-size: 16px;