Commit 6f44a90e authored by Mark Otto's avatar Mark Otto
Browse files

tweak line-height of h2 and h3 to not be gihugeous, updated responsive to...

tweak line-height of h2 and h3 to not be gihugeous, updated responsive to improve tablet grid and phone styles
parent d1d38079
Showing with 104 additions and 53 deletions
+104 -53
...@@ -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: Sun Oct 16 03:14:23 PDT 2011 * Date: Sun Oct 16 11:34:52 PDT 2011
*/ */
/* Reset.less /* 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). * 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).
...@@ -388,13 +388,13 @@ h1 small { ...@@ -388,13 +388,13 @@ h1 small {
} }
h2 { h2 {
font-size: 24px; font-size: 24px;
line-height: 36px; line-height: 27px;
} }
h2 small { h2 small {
font-size: 14px; font-size: 14px;
} }
h3 { h3 {
line-height: 36px; line-height: 27px;
font-size: 18px; font-size: 18px;
} }
h3 small { h3 small {
...@@ -2269,6 +2269,26 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { ...@@ -2269,6 +2269,26 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
float: none; float: none;
display: block; display: block;
width: auto; width: auto;
margin: 0;
}
.modal {
width: auto;
margin: 0;
}
.form-horizontal .control-group > label {
float: none;
width: auto;
padding-top: 0;
text-align: left;
}
.form-horizontal .controls {
margin-left: 0;
}
.form-horizontal .control-list {
padding-top: 0;
}
.form-horizontal .form-actions {
padding-left: 0;
} }
} }
@media (min-width: 480px) and (max-width: 768px) { @media (min-width: 480px) and (max-width: 768px) {
...@@ -2288,76 +2308,76 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { ...@@ -2288,76 +2308,76 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
width: 748px; width: 748px;
} }
.span1 { .span1 {
width: 28px; width: 44px;
} }
.span2 { .span2 {
width: 76px; width: 108px;
} }
.span3 { .span3 {
width: 124px; width: 172px;
} }
.span4 { .span4 {
width: 172px; width: 236px;
} }
.span5 { .span5 {
width: 220px; width: 300px;
} }
.span6 { .span6 {
width: 268px; width: 364px;
} }
.span7 { .span7 {
width: 316px; width: 428px;
} }
.span8 { .span8 {
width: 364px; width: 492px;
} }
.span9 { .span9 {
width: 412px; width: 556px;
} }
.span10 { .span10 {
width: 460px; width: 620px;
} }
.span11 { .span11 {
width: 508px; width: 684px;
} }
.span12 { .span12 {
width: 556px; width: 748px;
} }
.offset1 { .offset1 {
margin-left: 68px; margin-left: 64px;
} }
.offset2 { .offset2 {
margin-left: 116px; margin-left: 128px;
} }
.offset3 { .offset3 {
margin-left: 164px; margin-left: 192px;
} }
.offset4 { .offset4 {
margin-left: 212px; margin-left: 256px;
} }
.offset5 { .offset5 {
margin-left: 260px; margin-left: 320px;
} }
.offset6 { .offset6 {
margin-left: 308px; margin-left: 384px;
} }
.offset7 { .offset7 {
margin-left: 356px; margin-left: 448px;
} }
.offset8 { .offset8 {
margin-left: 404px; margin-left: 512px;
} }
.offset9 { .offset9 {
margin-left: 452px; margin-left: 576px;
} }
.offset10 { .offset10 {
margin-left: 500px; margin-left: 640px;
} }
.offset11 { .offset11 {
margin-left: 548px; margin-left: 704px;
} }
.offset12 { .offset12 {
margin-left: 596px; margin-left: 768px;
} }
} }
@media (min-width: 1170px) { @media (min-width: 1170px) {
......
...@@ -66,8 +66,8 @@ a{color:#0069d6;text-decoration:none;line-height:inherit;font-weight:inherit;}a: ...@@ -66,8 +66,8 @@ a{color:#0069d6;text-decoration:none;line-height:inherit;font-weight:inherit;}a:
p{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;margin-bottom:9px;}p small{font-size:11px;color:#bfbfbf;} p{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;margin-bottom:9px;}p small{font-size:11px;color:#bfbfbf;}
h1,h2,h3,h4,h5,h6{font-weight:bold;color:#404040;}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:#bfbfbf;} h1,h2,h3,h4,h5,h6{font-weight:bold;color:#404040;}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:#bfbfbf;}
h1{margin-bottom:18px;font-size:30px;line-height:36px;}h1 small{font-size:18px;} h1{margin-bottom:18px;font-size:30px;line-height:36px;}h1 small{font-size:18px;}
h2{font-size:24px;line-height:36px;}h2 small{font-size:14px;} h2{font-size:24px;line-height:27px;}h2 small{font-size:14px;}
h3{line-height:36px;font-size:18px;}h3 small{font-size:14px;} h3{line-height:27px;font-size:18px;}h3 small{font-size:14px;}
h4{font-size:16px;line-height:36px;}h4 small{font-size:12px;} h4{font-size:16px;line-height:36px;}h4 small{font-size:12px;}
h5{font-size:14px;line-height:18px;} h5{font-size:14px;line-height:18px;}
h6{font-size:13px;line-height:18px;color:#bfbfbf;text-transform:uppercase;} h6{font-size:13px;line-height:18px;color:#bfbfbf;text-transform:uppercase;}
...@@ -322,4 +322,4 @@ button.btn::-moz-focus-inner,input[type=submit].btn::-moz-focus-inner{padding:0; ...@@ -322,4 +322,4 @@ button.btn::-moz-focus-inner,input[type=submit].btn::-moz-focus-inner{padding:0;
.media-grid li{display:inline;} .media-grid li{display:inline;}
.media-grid a{float:left;padding:4px;margin:0 0 20px 20px;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);}.media-grid a img{display:block;} .media-grid a{float:left;padding:4px;margin:0 0 20px 20px;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);}.media-grid a img{display:block;}
.media-grid a:hover{border-color:#0069d6;-webkit-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);-moz-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);} .media-grid a:hover{border-color:#0069d6;-webkit-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);-moz-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);}
@media (max-width: 480px){.container{width:auto;padding:0 10px;} [class*="span"]{float:none;display:block;width:auto;}}@media (min-width: 480px) and (max-width: 768px){.container{width:auto;padding:0 10px;} [class*="span"]{float:none;display:block;width:auto;margin:0;}}@media (min-width: 768px) and (max-width: 940px){.container{width:748px;} .span1{width:28px;} .span2{width:76px;} .span3{width:124px;} .span4{width:172px;} .span5{width:220px;} .span6{width:268px;} .span7{width:316px;} .span8{width:364px;} .span9{width:412px;} .span10{width:460px;} .span11{width:508px;} .span12{width:556px;} .offset1{margin-left:68px;} .offset2{margin-left:116px;} .offset3{margin-left:164px;} .offset4{margin-left:212px;} .offset5{margin-left:260px;} .offset6{margin-left:308px;} .offset7{margin-left:356px;} .offset8{margin-left:404px;} .offset9{margin-left:452px;} .offset10{margin-left:500px;} .offset11{margin-left:548px;} .offset12{margin-left:596px;}}@media (min-width: 1170px){.container{width:1170px;} [class*="span"]{margin-left:30px;} .span1{width:70px;} .span2{width:170px;} .span3{width:270px;} .span4{width:370px;} .span5{width:470px;} .span6{width:570px;} .span7{width:670px;} .span8{width:770px;} .span9{width:870px;} .span10{width:970px;} .span11{width:1070px;} .span12{width:1170px;} .offset1{margin-left:100px;} .offset2{margin-left:200px;} .offset3{margin-left:300px;} .offset4{margin-left:400px;} .offset5{margin-left:500px;} .offset6{margin-left:600px;} .offset7{margin-left:700px;} .offset8{margin-left:800px;} .offset9{margin-left:900px;} .offset10{margin-left:1000px;} .offset11{margin-left:1100px;} .offset12{margin-left:1200px;}} @media (max-width: 480px){.container{width:auto;padding:0 10px;} [class*="span"]{float:none;display:block;width:auto;margin:0;} .modal{width:auto;margin:0;} .form-horizontal .control-group>label{float:none;width:auto;padding-top:0;text-align:left;} .form-horizontal .controls{margin-left:0;} .form-horizontal .control-list{padding-top:0;} .form-horizontal .form-actions{padding-left:0;}}@media (min-width: 480px) and (max-width: 768px){.container{width:auto;padding:0 10px;} [class*="span"]{float:none;display:block;width:auto;margin:0;}}@media (min-width: 768px) and (max-width: 940px){.container{width:748px;} .span1{width:44px;} .span2{width:108px;} .span3{width:172px;} .span4{width:236px;} .span5{width:300px;} .span6{width:364px;} .span7{width:428px;} .span8{width:492px;} .span9{width:556px;} .span10{width:620px;} .span11{width:684px;} .span12{width:748px;} .offset1{margin-left:64px;} .offset2{margin-left:128px;} .offset3{margin-left:192px;} .offset4{margin-left:256px;} .offset5{margin-left:320px;} .offset6{margin-left:384px;} .offset7{margin-left:448px;} .offset8{margin-left:512px;} .offset9{margin-left:576px;} .offset10{margin-left:640px;} .offset11{margin-left:704px;} .offset12{margin-left:768px;}}@media (min-width: 1170px){.container{width:1170px;} [class*="span"]{margin-left:30px;} .span1{width:70px;} .span2{width:170px;} .span3{width:270px;} .span4{width:370px;} .span5{width:470px;} .span6{width:570px;} .span7{width:670px;} .span8{width:770px;} .span9{width:870px;} .span10{width:970px;} .span11{width:1070px;} .span12{width:1170px;} .offset1{margin-left:100px;} .offset2{margin-left:200px;} .offset3{margin-left:300px;} .offset4{margin-left:400px;} .offset5{margin-left:500px;} .offset6{margin-left:600px;} .offset7{margin-left:700px;} .offset8{margin-left:800px;} .offset9{margin-left:900px;} .offset10{margin-left:1000px;} .offset11{margin-left:1100px;} .offset12{margin-left:1200px;}}
...@@ -231,7 +231,7 @@ section > .row { ...@@ -231,7 +231,7 @@ section > .row {
.mini-layout .mini-layout-body { .mini-layout .mini-layout-body {
background-color: #dceaf4; background-color: #dceaf4;
margin: 0 auto; margin: 0 auto;
width: 240px; width: 70%;
height: 240px; height: 240px;
} }
.mini-layout.fluid .mini-layout-sidebar, .mini-layout.fluid .mini-layout-sidebar,
...@@ -241,11 +241,11 @@ section > .row { ...@@ -241,11 +241,11 @@ section > .row {
} }
.mini-layout.fluid .mini-layout-sidebar { .mini-layout.fluid .mini-layout-sidebar {
background-color: #bbd8e9; background-color: #bbd8e9;
width: 90px; width: 20%;
height: 240px; height: 240px;
} }
.mini-layout.fluid .mini-layout-body { .mini-layout.fluid .mini-layout-body {
width: 300px; width: 60%;
margin-left: 10px; margin-left: 10px;
} }
...@@ -328,23 +328,22 @@ pre.prettyprint { ...@@ -328,23 +328,22 @@ pre.prettyprint {
} }
.browser-support {
max-width: 100%;
}
/* Responsive Docs /* Responsive Docs
-------------------------------------------------- */ -------------------------------------------------- */
@media (max-width: 480px) {
/* Tablet to Medium Desktop .large-bird {
------------------------- */ display: none;
}
}
@media (min-width: 768px) and (max-width: 900px) { @media (min-width: 768px) and (max-width: 900px) {
.footer, .footer,
.jumbotron { .jumbotron {
min-width: 748px; min-width: 748px;
} }
.jumbotron .inner h1,
.jumbotron .inner p {
margin-left: 40px;
margin-right: 40px;
}
} }
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<div class="span4"> <div class="span4">
<h2>Cross-everything</h2> <h2>Cross-everything</h2>
<p>Bootstrap is tested and supported in major modern browsers like Chrome, Safari, Internet Explorer, and Firefox.</p> <p>Bootstrap is tested and supported in major modern browsers like Chrome, Safari, Internet Explorer, and Firefox.</p>
<img src="assets/img/browsers.png" alt="Tested and supported in Chrome, Safari, Internet Explorer, and Firefox"> <img class="browser-support" src="assets/img/browsers.png" alt="Tested and supported in Chrome, Safari, Internet Explorer, and Firefox">
<ul> <ul>
<li>Latest Safari</li> <li>Latest Safari</li>
<li>Latest Google Chrome</li> <li>Latest Google Chrome</li>
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
* ------------------------------------------------------------- */ * ------------------------------------------------------------- */
// UP TO LANDSCAPE PHONE
// ---------------------
@media (max-width: 480px) { @media (max-width: 480px) {
// Remove width from containers // Remove width from containers
.container { .container {
...@@ -14,10 +17,40 @@ ...@@ -14,10 +17,40 @@
float: none; float: none;
display: block; display: block;
width: auto; width: auto;
margin: 0;
}
// Resize modals
.modal {
width: auto;
margin: 0;
} }
// Remove the horizontal form styles
.form-horizontal .control-group > label {
float: none;
width: auto;
padding-top: 0;
text-align: left;
}
// Move over all input controls and content
.form-horizontal .controls {
margin-left: 0;
}
// Move the options list down to align with labels
.form-horizontal .control-list {
padding-top: 0; // has to be padding because margin collaspes
}
// Move over buttons in .form-actions to align with .controls
.form-horizontal .form-actions {
padding-left: 0;
}
} }
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
// --------------------------------------------------
@media (min-width: 480px) and (max-width: 768px) { @media (min-width: 480px) and (max-width: 768px) {
// Remove width from containers // Remove width from containers
.container { .container {
...@@ -34,24 +67,23 @@ ...@@ -34,24 +67,23 @@
} }
// TABLET TO MEDIUM DESKTOP // PORTRAIT TABLET TO DEFAULT DESKTOP
// ------------------------ // ----------------------------------
@media (min-width: 768px) and (max-width: 940px) { @media (min-width: 768px) and (max-width: 940px) {
// Reset grid variables // Reset grid variables
@gridColumns: 16; @gridColumns: 16;
@gridColumnWidth: 28px; @gridColumnWidth: 44px;
@gridGutterWidth: 20px; @gridGutterWidth: 20px;
@siteWidth: 748px; @siteWidth: 748px;
@extraSpace: (@gridGutterWidth * 2);
// Bring grid mixins to recalculate widths // Bring grid mixins to recalculate widths
.columns(@columnSpan: 1) { .columns(@columnSpan: 1) {
width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)); width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1));
} }
.offset(@columnOffset: 1) { .offset(@columnOffset: 1) {
margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @extraSpace; margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @gridGutterWidth;
} }
// 16cols at 30px wide with 16px gutters // 16cols at 30px wide with 16px gutters
...@@ -90,8 +122,8 @@ ...@@ -90,8 +122,8 @@
} }
// LARGE DESKTOP // LARGE DESKTOP & UP
// ------------- // ------------------
@media (min-width: 1170px) { @media (min-width: 1170px) {
......
...@@ -38,13 +38,13 @@ h1 { ...@@ -38,13 +38,13 @@ h1 {
} }
h2 { h2 {
font-size: 24px; font-size: 24px;
line-height: @baseLineHeight * 2; line-height: @baseLineHeight * 1.5;
small { small {
font-size: 14px; font-size: 14px;
} }
} }
h3 { h3 {
line-height: @baseLineHeight * 2; line-height: @baseLineHeight * 1.5;
font-size: 18px; font-size: 18px;
small { small {
font-size: 14px; font-size: 14px;
......
Supports Markdown
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