From 25bf0af2492920d3da59cc64a23c1a776279a3eb Mon Sep 17 00:00:00 2001 From: Henrik N Date: Tue, 7 Feb 2012 19:29:45 +0100 Subject: Add ol.unstyled --- less/type.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'less') diff --git a/less/type.less b/less/type.less index 7841bb090..ae43d1940 100644 --- a/less/type.less +++ b/less/type.less @@ -110,7 +110,8 @@ ol { li { line-height: @baseLineHeight; } -ul.unstyled { +ul.unstyled, +ol.unstyled { margin-left: 0; list-style: none; } -- cgit v1.2.3 From 920d9958431b3d0a08401bfbc097416bc83211bd Mon Sep 17 00:00:00 2001 From: Jeremy Martin Date: Thu, 9 Feb 2012 15:27:42 -0500 Subject: webkit legend margin fix for non-horizontal forms --- less/forms.less | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 5bce4cebd..5fbb53c9a 100644 --- a/less/forms.less +++ b/less/forms.less @@ -459,15 +459,16 @@ select:focus:required:invalid { margin-bottom: @baseLineHeight / 2; } +// Legend collapses margin, so next element is responsible for spacing +legend + .control-group { + margin-top: @baseLineHeight; + -webkit-margin-top-collapse: separate; +} + // Horizontal-specific styles // -------------------------- .form-horizontal { - // Legend collapses margin, so we're relegated to padding - legend + .control-group { - margin-top: @baseLineHeight; - -webkit-margin-top-collapse: separate; - } // Increase spacing between groups .control-group { margin-bottom: @baseLineHeight; -- cgit v1.2.3 From d7aefe67e3df78bde61eaa7ecab807bb03aeb1ef Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 10 Feb 2012 23:07:32 -0800 Subject: scope th bottom vertical-align to only thead, update code styles to include more comments in less file and scrollable option for pre tag --- less/code.less | 10 ++++++++++ less/tables.less | 7 ++++--- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'less') diff --git a/less/code.less b/less/code.less index e75cfa00d..35a8ae6b8 100644 --- a/less/code.less +++ b/less/code.less @@ -11,12 +11,16 @@ pre { color: @grayDark; .border-radius(3px); } + +// Inline code code { padding: 3px 4px; color: #d14; background-color: #f7f7f9; border: 1px solid #e1e1e8; } + +// Blocks of code pre { display: block; padding: (@baseLineHeight - 1) / 2; @@ -44,3 +48,9 @@ pre { border: 0; } } + +// Enable scrollable blocks of code +.pre-scrollable { + max-height: 340px; + overflow-y: scroll; +} \ No newline at end of file diff --git a/less/tables.less b/less/tables.less index cbc013aca..3a4066d71 100644 --- a/less/tables.less +++ b/less/tables.less @@ -25,14 +25,15 @@ table { padding: 8px; line-height: @baseLineHeight; text-align: left; + vertical-align: top; border-top: 1px solid #ddd; } th { font-weight: bold; - vertical-align: bottom; } - td { - vertical-align: top; + // Bottom align for column headings + thead th { + vertical-align: bottom; } // Remove top border from thead by default thead:first-child tr th, -- cgit v1.2.3 From 89205d9db43f6c2fb2ed14cdb11c50c858de0550 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 10 Feb 2012 23:59:00 -0800 Subject: manually address #1895 --- less/type.less | 2 +- less/variables.less | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'less') diff --git a/less/type.less b/less/type.less index ae43d1940..6ba83bc3a 100644 --- a/less/type.less +++ b/less/type.less @@ -138,7 +138,7 @@ dd { hr { margin: @baseLineHeight 0; border: 0; - border-top: 1px solid #e5e5e5; + border-top: 1px solid @hrBorder; border-bottom: 1px solid @white; } diff --git a/less/variables.less b/less/variables.less index 9f58d730e..ced64d7cd 100644 --- a/less/variables.less +++ b/less/variables.less @@ -61,6 +61,9 @@ // Input placeholder text color @placeholderText: @grayLight; +// Hr border color +@hrBorder: @grayLighter; + // Navbar @navbarHeight: 40px; @navbarBackground: @grayDarker; -- cgit v1.2.3 From 722c75d1b19fbb9ed98be0afa54f4f79c9f7ee48 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 11 Feb 2012 00:07:05 -0800 Subject: update selectors for icons to include matcher for icon class in middle of class attr, remove docs mention of requiring icon-* first --- less/sprites.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'less') diff --git a/less/sprites.less b/less/sprites.less index ce7668844..a7741661e 100644 --- a/less/sprites.less +++ b/less/sprites.less @@ -14,7 +14,8 @@ // For the white version of the icons, just add the .icon-white class: // -[class^="icon-"] { +[class^="icon-"], +[class*=" icon-"] { display: inline-block; width: 14px; height: 14px; -- cgit v1.2.3 From 8f1db4321a35851d5b726290b2d99e7ea1ec7239 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 11 Feb 2012 00:24:06 -0800 Subject: fix inline form checkbox/radios --- less/forms.less | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 5fbb53c9a..17393b280 100644 --- a/less/forms.less +++ b/less/forms.less @@ -453,6 +453,14 @@ select:focus:required:invalid { .form-inline .input-prepend .add-on { vertical-align: middle; } +// Inline checkbox/radio labels +.form-search .radio, +.form-inline .radio, +.form-search .checkbox, +.form-inline .checkbox { + margin-bottom: 0; + vertical-align: middle; +} // Margin to space out fieldsets .control-group { -- cgit v1.2.3 From 4ddc8fd0e41a4bf76249645674806a7f11e64879 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 11 Feb 2012 16:43:53 -0800 Subject: remove color on :active of buttons --- less/buttons.less | 1 - 1 file changed, 1 deletion(-) (limited to 'less') diff --git a/less/buttons.less b/less/buttons.less index 880d1f64a..0dc9e374b 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -53,7 +53,6 @@ .box-shadow(@shadow); background-color: darken(@white, 10%); background-color: darken(@white, 15%) e("\9"); - color: rgba(0,0,0,.5); outline: 0; } -- cgit v1.2.3 From 5a3dfb72bfcf1859690c76a8ddb8457eb962bdb3 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 11 Feb 2012 16:50:57 -0800 Subject: support small for legend per #1544 --- less/forms.less | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 17393b280..f262af0db 100644 --- a/less/forms.less +++ b/less/forms.less @@ -28,6 +28,12 @@ legend { color: @grayDark; border: 0; border-bottom: 1px solid #eee; + + // Small + small { + font-size: @baseLineHeight * .75; + color: @grayLight; + } } // Set font for forms -- cgit v1.2.3 From 5b22cf5cc3f06d4f63dfbd7579cfec32eb2c2c79 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 11 Feb 2012 17:27:08 -0800 Subject: fix tabs content wrapping per #1620 --- less/navs.less | 3 +++ 1 file changed, 3 insertions(+) (limited to 'less') diff --git a/less/navs.less b/less/navs.less index a29cb712b..0d37ea388 100644 --- a/less/navs.less +++ b/less/navs.less @@ -249,6 +249,9 @@ .tabbable { .clearfix(); } +.tab-content { + overflow: hidden; // prevent content from running below tabs +} // Remove border on bottom, left, right .tabs-below .nav-tabs, -- cgit v1.2.3 From 5bb55e46157ec974120535acdb6335841c85fa37 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 11 Feb 2012 19:21:23 -0800 Subject: change fixed height on responsive textareas to min-height --- less/responsive.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/responsive.less b/less/responsive.less index 7ed58bb4e..1e3bf371c 100644 --- a/less/responsive.less +++ b/less/responsive.less @@ -56,7 +56,7 @@ .uneditable-input { display: block; width: 100%; - height: 28px; /* Make inputs at least the height of their button counterpart */ + min-height: 28px; /* Make inputs at least the height of their button counterpart */ /* Makes inputs behave like true block-level elements */ -webkit-box-sizing: border-box; /* Older Webkit */ -moz-box-sizing: border-box; /* Older FF */ -- cgit v1.2.3 From 158419c0455ea499197f8b7917bdfe299caaac19 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 11 Feb 2012 20:00:44 -0800 Subject: reset line-height for file input in ie9 --- less/forms.less | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index f262af0db..7f076aca3 100644 --- a/less/forms.less +++ b/less/forms.less @@ -122,6 +122,11 @@ input[type="file"] { line-height: 28px; } +// Reset line-height for IE +input[type="file"] { + line-height: 18px \9; +} + // Chrome on Linux and Mobile Safari need background-color select { width: 220px; // default input width + 10px of padding that doesn't get applied -- cgit v1.2.3 From b327420e524691808b59fa2d0d552e5ec65e2a45 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 11 Feb 2012 20:58:10 -0800 Subject: update comment to reflect ie support --- less/forms.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 7f076aca3..81833b064 100644 --- a/less/forms.less +++ b/less/forms.less @@ -207,7 +207,7 @@ textarea:focus { @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); .box-shadow(@shadow); outline: 0; - outline: thin dotted \9; /* IE6-8 */ + outline: thin dotted \9; /* IE6-9 */ } input[type="file"]:focus, input[type="radio"]:focus, -- cgit v1.2.3