Commit 9e910946 authored by Mark Otto's avatar Mark Otto

biiiiiig update coming for responsiveness

parent fbe22f05
This diff is collapsed.
This diff is collapsed.
...@@ -8,8 +8,9 @@ ...@@ -8,8 +8,9 @@
/* Body and structure /* Body and structure
-------------------------------------------------- */ -------------------------------------------------- */
body { body {
background-color: #fff;
position: relative; position: relative;
padding-top: 40px;
background-color: #fff;
} }
section { section {
padding-top: 60px; padding-top: 60px;
...@@ -21,22 +22,29 @@ section > .row { ...@@ -21,22 +22,29 @@ section > .row {
/* Jumbotrons /* Jumbotrons
-------------------------------------------------- */ -------------------------------------------------- */
.jumbotron,
.jumbotron .inner {
-webkit-border-radius: 0 0 6px 6px;
-moz-border-radius: 0 0 6px 6px;
border-radius: 0 0 6px 6px;
}
.jumbotron { .jumbotron {
min-width: 940px; margin-bottom: 40px;
padding-top: 40px; -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.25);
-moz-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.25);
box-shadow: inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.25);
} }
.jumbotron .inner { .jumbotron .inner {
background: transparent url(../img/grid-18px.png) top center; background: transparent url(../img/grid-18px.png) top center;
padding: 45px 0; padding: 36px 60px;
-webkit-box-shadow: inset 0 10px 30px rgba(0,0,0,.3); -webkit-box-shadow: inset 0 -15px 30px rgba(0,0,0,.1);
-moz-box-shadow: inset 0 10px 30px rgba(0,0,0,.3); -moz-box-shadow: inset 0 -15px 30px rgba(0,0,0,.1);
/* box-shadow: inset 0 10px 30px rgba(0,0,0,.3); box-shadow: inset 0 -15px 30px rgba(0,0,0,.1);
*/} }
.jumbotron h1, .jumbotron h1,
.jumbotron p { .jumbotron p {
margin-bottom: 9px; margin-bottom: 9px;
color: #fff; color: #fff;
text-align: center;
text-shadow: 0 1px 1px rgba(0,0,0,.3); text-shadow: 0 1px 1px rgba(0,0,0,.3);
} }
.jumbotron h1 { .jumbotron h1 {
...@@ -46,6 +54,7 @@ section > .row { ...@@ -46,6 +54,7 @@ section > .row {
} }
.jumbotron p { .jumbotron p {
font-weight: 300; font-weight: 300;
margin-right: 25%;
} }
.jumbotron .lead { .jumbotron .lead {
font-size: 20px; font-size: 20px;
...@@ -60,14 +69,14 @@ section > .row { ...@@ -60,14 +69,14 @@ section > .row {
------------------------- */ ------------------------- */
/* main docs page */ /* main docs page */
.masthead { .masthead {
background-color: #049cd9; background-color: #004d9f;
background-repeat: no-repeat; background-repeat: no-repeat;
background-image: -webkit-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9)); background-image: -webkit-gradient(linear, left top, left bottom, from(#048ccd), to(#004d9f));
background-image: -webkit-linear-gradient(#004D9F, #049cd9); background-image: -webkit-linear-gradient(#048ccd, #004d9f);
background-image: -moz-linear-gradient(#004D9F, #049cd9); background-image: -moz-linear-gradient(#048ccd, #004d9f);
background-image: -o-linear-gradient(top, #004D9F, #049cd9); background-image: -o-linear-gradient(top, #048ccd, #004d9f);
background-image: -khtml-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9)); background-image: -khtml-gradient(linear, left top, left bottom, from(#048ccd), to(#004d9f));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#004D9F', endColorstr='#049cd9', GradientType=0); /* IE8 and down */ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#048ccd', endColorstr='#004d9f', GradientType=0); /* IE8 and down */
} }
/* supporting docs pages */ /* supporting docs pages */
.subhead { .subhead {
...@@ -98,15 +107,9 @@ section > .row { ...@@ -98,15 +107,9 @@ section > .row {
/* Footer /* Footer
-------------------------------------------------- */ -------------------------------------------------- */
.footer { .footer {
background-color: #eee;
min-width: 940px;
padding: 30px 0; padding: 30px 0;
text-shadow: 0 1px 0 #fff;
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
-webkit-box-shadow: inset 0 5px 15px rgba(0,0,0,.025); }
-moz-box-shadow: inset 0 5px 15px rgba(0,0,0,.025);
/* box-shadow: inset 0 5px 15px rgba(0,0,0,.025);
*/}
.footer p { .footer p {
color: #555; color: #555;
} }
...@@ -323,3 +326,25 @@ pre.prettyprint { ...@@ -323,3 +326,25 @@ pre.prettyprint {
.well form { .well form {
margin-bottom: 0; margin-bottom: 0;
} }
/* Responsive Docs
-------------------------------------------------- */
/* Tablet to Medium Desktop
------------------------- */
@media (min-width: 768px) and (max-width: 900px) {
.footer,
.jumbotron {
min-width: 748px;
}
.jumbotron .inner h1,
.jumbotron .inner p {
margin-left: 40px;
margin-right: 40px;
}
}
This diff is collapsed.
...@@ -101,9 +101,6 @@ ...@@ -101,9 +101,6 @@
-webkit-border-radius: @radius; -webkit-border-radius: @radius;
-moz-border-radius: @radius; -moz-border-radius: @radius;
border-radius: @radius; border-radius: @radius;
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
} }
.border-radius-custom(@topLeft, @topRight, @bottomRight, @bottomLeft) { .border-radius-custom(@topLeft, @topRight, @bottomRight, @bottomLeft) {
-webkit-border-top-left-radius: @topLeft; -webkit-border-top-left-radius: @topLeft;
......
...@@ -84,10 +84,8 @@ a { ...@@ -84,10 +84,8 @@ a {
// GRID SYSTEM // GRID SYSTEM
// ----------- // -----------
// To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there // To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there
.row { .row {
.clearfix(); .clearfix();
margin-left: -1 * @gridGutterWidth;
} }
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7) // Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
...@@ -95,6 +93,10 @@ a { ...@@ -95,6 +93,10 @@ a {
[class*="span"] { [class*="span"] {
.gridColumn(); .gridColumn();
} }
// Kill the margin on the first column
.row > [class*="span"]:first-child {
margin-left: 0;
}
// Default columns // Default columns
.span1 { .columns(1); } .span1 { .columns(1); }
...@@ -109,20 +111,6 @@ a { ...@@ -109,20 +111,6 @@ a {
.span10 { .columns(10); } .span10 { .columns(10); }
.span11 { .columns(11); } .span11 { .columns(11); }
.span12 { .columns(12); } .span12 { .columns(12); }
.span13 { .columns(13); }
.span14 { .columns(14); }
.span15 { .columns(15); }
.span16 { .columns(16); }
// For optional 24-column grid
.span17 { .columns(17); }
.span18 { .columns(18); }
.span19 { .columns(19); }
.span20 { .columns(20); }
.span21 { .columns(21); }
.span22 { .columns(22); }
.span23 { .columns(23); }
.span24 { .columns(24); }
// Offset column options // Offset column options
.offset1 { .offset(1); } .offset1 { .offset(1); }
...@@ -136,10 +124,3 @@ a { ...@@ -136,10 +124,3 @@ a {
.offset9 { .offset(9); } .offset9 { .offset(9); }
.offset10 { .offset(10); } .offset10 { .offset(10); }
.offset11 { .offset(11); } .offset11 { .offset(11); }
.offset12 { .offset(12); }
// Unique column sizes for 16-column grid
.span-one-third { width: 300px; }
.span-two-thirds { width: 620px; }
.offset-one-third { margin-left: 340px; }
.offset-two-thirds { margin-left: 660px; }
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
// ---- // ----
// Modify the grid styles in mixins.less // Modify the grid styles in mixins.less
@gridColumns: 16; @gridColumns: 12;
@gridColumnWidth: 40px; @gridColumnWidth: 60px;
@gridGutterWidth: 20px; @gridGutterWidth: 20px;
@extraSpace: (@gridGutterWidth * 2); // For our grid calculations @extraSpace: (@gridGutterWidth * 2); // For our grid calculations
@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1)); @siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment