From ab178060be19a60f52dc548d4cfd505c1e30ace5 Mon Sep 17 00:00:00 2001 From: Allen Bargi Date: Thu, 26 Apr 2012 17:38:47 +0300 Subject: let's reuse color variables, instead of hardcoding colors. --- less/type.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/type.less b/less/type.less index 0d5621934..61aa624a7 100644 --- a/less/type.less +++ b/less/type.less @@ -171,7 +171,7 @@ em { // Abbreviations and acronyms abbr[title] { cursor: help; - border-bottom: 1px dotted #ddd; + border-bottom: 1px dotted @grayLight; } abbr.initialism { font-size: 90%; -- cgit v1.2.3 From ad46b0980caf9a943ca213ce240083f7a65ac993 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 30 Apr 2012 15:06:26 -0700 Subject: expand input css tests to fixed width grid --- less/tests/css-tests.css | 1 + less/tests/css-tests.html | 67 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) (limited to 'less') diff --git a/less/tests/css-tests.css b/less/tests/css-tests.css index ac764270a..e0870be44 100644 --- a/less/tests/css-tests.css +++ b/less/tests/css-tests.css @@ -30,6 +30,7 @@ h4 { /* Fluid row inputs */ +#rowInputs .row > [class*=span], #fluidRowInputs .row-fluid > [class*=span] { background-color: rgba(255,0,0,.1); } diff --git a/less/tests/css-tests.html b/less/tests/css-tests.html index b29018621..0e964e27f 100644 --- a/less/tests/css-tests.html +++ b/less/tests/css-tests.html @@ -500,6 +500,73 @@ +

Fixed row with inputs

+

Inputs should not extend past the light red background, set on their parent, a .span* column.

+ +
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+

Fluid row with inputs

Inputs should not extend past the light red background, set on their parent, a .span* column.

-- cgit v1.2.3 From 59ec4c7154984bd2847ff434fae7874f0b8e5265 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 30 Apr 2012 15:40:49 -0700 Subject: make responsive input fields not wrap for fluid input prepend/append by setting block back to inline-block (oversight of 2.0.3) --- less/responsive-767px-max.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/responsive-767px-max.less b/less/responsive-767px-max.less index 614c6905c..e35e45d89 100644 --- a/less/responsive-767px-max.less +++ b/less/responsive-767px-max.less @@ -120,7 +120,7 @@ [class*="span"], .row-fluid [class*="span"] { float: none; - display: block; + display: inline-block; width: auto; margin-left: 0; } -- cgit v1.2.3 From 5ffb6d670683a32ec2a31c8550ea2669bfac7559 Mon Sep 17 00:00:00 2001 From: Synchro Date: Tue, 1 May 2012 17:01:26 +0200 Subject: Add .hyphens mixin --- less/mixins.less | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index b107955f5..5f3343e4e 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -312,6 +312,15 @@ column-gap: @columnGap; } +// Optional hyphenation +.hyphens(@mode: auto) { + -webkit-hyphens: @mode; + -moz-hyphens: @mode; + -ms-hyphens: @mode; + hyphens: @mode; + word-wrap:break-word; +} + // Opacity .opacity(@opacity) { opacity: @opacity / 100; -- cgit v1.2.3 From dcc89e7400ae9e7575ea2671d27b514db9beaf3f Mon Sep 17 00:00:00 2001 From: Synchro Date: Tue, 1 May 2012 17:06:19 +0200 Subject: Coding style --- less/mixins.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index 5f3343e4e..bd909123e 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -318,7 +318,7 @@ -moz-hyphens: @mode; -ms-hyphens: @mode; hyphens: @mode; - word-wrap:break-word; + word-wrap: break-word; } // Opacity -- cgit v1.2.3 From ca369c4b2af2a94acea00cd228d87a30fe5d2886 Mon Sep 17 00:00:00 2001 From: Synchro Date: Tue, 1 May 2012 17:54:53 +0200 Subject: Add Opera prefix --- less/mixins.less | 1 + 1 file changed, 1 insertion(+) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index bd909123e..44e5698eb 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -317,6 +317,7 @@ -webkit-hyphens: @mode; -moz-hyphens: @mode; -ms-hyphens: @mode; + -o-hyphens: @mode; hyphens: @mode; word-wrap: break-word; } -- cgit v1.2.3 From 20eae67147da15a75250a09f0932c0f3f2198b2b Mon Sep 17 00:00:00 2001 From: Milos Gavrilovic Date: Thu, 10 May 2012 12:25:22 +0300 Subject: Update .placeholder() mixin call In less/mixins.less this mixin is being created with @placeholderText color as default, which is actually set as @placeholderText: @grayLight in less/variables.less so it's redundant to make call like this: .placeholder(@grayLight); --- 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 7d967c6b3..61e29b697 100644 --- a/less/forms.less +++ b/less/forms.less @@ -344,7 +344,7 @@ select:focus:required:invalid { } // Placeholder text gets special styles; can't be bundled together though for some reason -.placeholder(@grayLight); +.placeholder(); -- cgit v1.2.3 From 3a21891824f3f0af06da750bb768902e171b2ca0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 May 2012 13:58:42 -0700 Subject: #3469: add variables for dropdown menu dividers --- less/dropdowns.less | 2 +- less/mixins.less | 6 +++--- less/variables.less | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'less') diff --git a/less/dropdowns.less b/less/dropdowns.less index 6c60385e5..2bcd55687 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -71,7 +71,7 @@ // Dividers (basically an hr) within the dropdown .divider { - .nav-divider(); + .nav-divider(@dropdownDividerTop, @dropdownDividerBottom); } // Links within the dropdown menu diff --git a/less/mixins.less b/less/mixins.less index b107955f5..6989b1376 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -417,7 +417,7 @@ // Horizontal dividers // ------------------------- // Dividers (basically an hr) within dropdowns and nav lists -.nav-divider() { +.nav-divider(@top: #e5e5e5, @bottom: @white) { // IE7 needs a set width since we gave a height. Restricting just // to IE7 to keep the 1px left/right space in other browsers. // It is unclear where IE is getting the extra space that we need @@ -427,8 +427,8 @@ margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px *margin: -5px 0 5px; overflow: hidden; - background-color: #e5e5e5; - border-bottom: 1px solid @white; + background-color: @top; + border-bottom: 1px solid @bottom; } // Button backgrounds diff --git a/less/variables.less b/less/variables.less index d8825fb07..b931d3d2a 100644 --- a/less/variables.less +++ b/less/variables.less @@ -107,7 +107,8 @@ @dropdownLinkColor: @grayDark; @dropdownLinkColorHover: @white; @dropdownLinkBackgroundHover: @linkColor; - +@dropdownDividerTop: #e5e5e5; +@dropdownDividerBottom: @white; -- cgit v1.2.3 From 8f4424585094354589fbab80d5b0e6b1bb6d87cf Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 May 2012 14:31:31 -0700 Subject: document .hyphens() mixin --- less/mixins.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index b5c5352cf..8efe12b38 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -314,12 +314,12 @@ // Optional hyphenation .hyphens(@mode: auto) { + word-wrap: break-word; -webkit-hyphens: @mode; -moz-hyphens: @mode; -ms-hyphens: @mode; -o-hyphens: @mode; hyphens: @mode; - word-wrap: break-word; } // Opacity -- cgit v1.2.3 From a2fb9ed42f4fedbf2045601bedc8dace4d8bbd36 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 May 2012 17:43:04 -0700 Subject: #3449: make legend and form-actions the same border color --- less/forms.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 61e29b697..9f95dd64f 100644 --- a/less/forms.less +++ b/less/forms.less @@ -27,7 +27,7 @@ legend { line-height: @baseLineHeight * 2; color: @grayDark; border: 0; - border-bottom: 1px solid #eee; + border-bottom: 1px solid #e5e5e5; // Small small { @@ -329,7 +329,7 @@ select:focus:required:invalid { margin-top: @baseLineHeight; margin-bottom: @baseLineHeight; background-color: @formActionsBackground; - border-top: 1px solid #ddd; + border-top: 1px solid #e5e5e5; .clearfix(); // Adding clearfix to allow for .pull-right button containers } -- cgit v1.2.3 From ea156609736513a4ad5aa22ef574bccbc3d23330 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 May 2012 21:52:18 -0700 Subject: #3420: properly scope dropdown open state to immediate children only --- less/dropdowns.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/dropdowns.less b/less/dropdowns.less index 2bcd55687..96dfec223 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -103,7 +103,7 @@ // make the menu appear below buttons that appeared later on the page *z-index: @zindexDropdown; - .dropdown-menu { + & > .dropdown-menu { display: block; } } -- cgit v1.2.3 From 826a8714e266e488fc51bc9ca779556731b8afd3 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 May 2012 22:11:35 -0700 Subject: #3257: share .navbar-fixed-top styles with .navbar-fixed-bottom --- less/responsive-navbar.less | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'less') diff --git a/less/responsive-navbar.less b/less/responsive-navbar.less index d49b8ae12..8d31db531 100644 --- a/less/responsive-navbar.less +++ b/less/responsive-navbar.less @@ -9,11 +9,18 @@ padding-top: 0; } // Unfix the navbar - .navbar-fixed-top { + .navbar-fixed-top, + .navbar-fixed-bottom { position: static; + } + .navbar-fixed-top { margin-bottom: @baseLineHeight; } - .navbar-fixed-top .navbar-inner { + .navbar-fixed-bottom { + margin-top: @baseLineHeight; + } + .navbar-fixed-top .navbar-inner, + .navbar-fixed-bottom .navbar-inner { padding: 5px; } .navbar .container { -- cgit v1.2.3 From a0809ceebe5332a1c3e355a762d1bff3e477ce37 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 14 May 2012 23:40:06 -0700 Subject: add forms test page for all html5 input types and refactor selectors --- less/forms.less | 131 ++++++++++++++++++++++++++------------------------------ 1 file changed, 60 insertions(+), 71 deletions(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 9f95dd64f..f9a994a7b 100644 --- a/less/forms.less +++ b/less/forms.less @@ -58,69 +58,88 @@ label { color: @grayDark; } -// Inputs, Textareas, Selects -input, -textarea, +// Form controls +// ------------------------- + +// Shared resets select, -.uneditable-input { +textarea, +input[type="text"], +input[type="password"], +input[type="datetime"], +input[type="datetime-local"], +input[type="date"], +input[type="month"], +input[type="time"], +input[type="week"], +input[type="number"], +input[type="email"], +input[type="url"], +input[type="search"], +input[type="tel"], +input[type="color"] { display: inline-block; - width: 210px; height: @baseLineHeight; padding: 4px; margin-bottom: 9px; font-size: @baseFontSize; line-height: @baseLineHeight; color: @gray; +} + +// Textual inputs and textareas +textarea, +input[type="text"], +input[type="password"], +input[type="datetime"], +input[type="datetime-local"], +input[type="date"], +input[type="month"], +input[type="time"], +input[type="week"], +input[type="number"], +input[type="email"], +input[type="url"], +input[type="search"], +input[type="tel"], +input[type="color"] { background-color: @inputBackground; border: 1px solid @inputBorder; .border-radius(@inputBorderRadius); + .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); + @transition: border linear .2s, box-shadow linear .2s; + .transition(@transition); } -.uneditable-textarea { - width: auto; - height: auto; + +input[type="radio"], +input[type="checkbox"] { + } -// Inputs within a label -label input, -label textarea, -label select { - display: block; +input[type="button"], +input[type="submit"], +input[type="reset"] { + } -// Mini reset for unique input types -input[type="image"], -input[type="checkbox"], -input[type="radio"] { - width: auto; - height: auto; - padding: 0; - margin: 3px 0; - *margin-top: 0; /* IE7 */ - line-height: normal; - cursor: pointer; - background-color: transparent; - border: 0 \9; /* IE9 and down */ - .border-radius(0); +input[type="file"] { + +} + +input[type="hidden"] { + } + input[type="image"] { - border: 0; + } -// Reset the file input to browser defaults -input[type="file"] { - width: auto; - padding: initial; - line-height: initial; - background-color: @inputBackground; - background-color: initial; - border: initial; - .box-shadow(none); +input[type="range"] { + } -// Help out input buttons -input[type="button"], -input[type="reset"], -input[type="submit"] { +// Make uneditable textareas behave like a textarea +.uneditable-textarea { width: auto; height: auto; } @@ -133,37 +152,13 @@ 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 - background-color: @inputBackground; -} - // Make multiple select elements height not fixed select[multiple], select[size] { height: auto; } -// Remove shadow from image inputs -input[type="image"] { - .box-shadow(none); -} -// Make textarea height behave -textarea { - height: auto; -} - -// Hidden inputs -input[type="hidden"] { - display: none; -} @@ -207,12 +202,6 @@ input[type="hidden"] { // FOCUS STATE // ----------- -input, -textarea { - .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); - @transition: border linear .2s, box-shadow linear .2s; - .transition(@transition); -} input:focus, textarea:focus { border-color: rgba(82,168,236,.8); -- cgit v1.2.3 From e28efd7da07d20d706421b3c868ccc08e0e3077d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 14 May 2012 23:42:32 -0700 Subject: consolidate and relabel new form selectors --- less/forms.less | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index f9a994a7b..4a218033a 100644 --- a/less/forms.less +++ b/less/forms.less @@ -61,7 +61,7 @@ label { // Form controls // ------------------------- -// Shared resets +// Shared size and type resets select, textarea, input[type="text"], @@ -87,7 +87,7 @@ input[type="color"] { color: @gray; } -// Textual inputs and textareas +// Reset background, border, and box-shadow for textual inputs and textarea textarea, input[type="text"], input[type="password"], @@ -111,31 +111,21 @@ input[type="color"] { .transition(@transition); } +// Unused selectors input[type="radio"], input[type="checkbox"] { - } - input[type="button"], input[type="submit"], input[type="reset"] { - } - input[type="file"] { - } - input[type="hidden"] { - } - input[type="image"] { - } - input[type="range"] { - } // Make uneditable textareas behave like a textarea -- cgit v1.2.3 From c8cafa5d5a352d33e96b8580a4a68b943f71882e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 14 May 2012 23:45:25 -0700 Subject: move forms test to less/tests --- less/tests/forms.html | 175 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 less/tests/forms.html (limited to 'less') diff --git a/less/tests/forms.html b/less/tests/forms.html new file mode 100644 index 000000000..4b3328e2e --- /dev/null +++ b/less/tests/forms.html @@ -0,0 +1,175 @@ + + + + + Bootstrap, from Twitter + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ +
+ +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+
+ +
+ + + -- cgit v1.2.3 From 87f6e426b33590bf8b14d933cd9cbb101a9bed23 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 14 May 2012 23:50:34 -0700 Subject: three columns --- less/tests/forms.html | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'less') diff --git a/less/tests/forms.html b/less/tests/forms.html index 4b3328e2e..a63d728a0 100644 --- a/less/tests/forms.html +++ b/less/tests/forms.html @@ -10,6 +10,12 @@ + +
@@ -97,11 +104,7 @@ -
- -
- -
+
@@ -131,7 +134,8 @@ -
+
+
@@ -166,7 +170,7 @@ -
+
-- cgit v1.2.3 From ecf84bdac51a9c56d18c4a25b3d5b0c66a09151a Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 15 May 2012 00:17:02 -0700 Subject: correct regressions against 2.0.3 --- less/forms.less | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 4a218033a..277cdf42f 100644 --- a/less/forms.less +++ b/less/forms.less @@ -87,7 +87,13 @@ input[type="color"] { color: @gray; } -// Reset background, border, and box-shadow for textual inputs and textarea +// Reset appearance properties for textual inputs and textarea +// Declare width for legacy (can't be on input[type=*] selectors or it's too specific) +input, +textarea { + width: 210px; +} +// Everything else textarea, input[type="text"], input[type="password"], @@ -111,21 +117,22 @@ input[type="color"] { .transition(@transition); } -// Unused selectors +// Position radios and checkboxes better input[type="radio"], input[type="checkbox"] { + margin: 3px 0; + *margin-top: 0; /* IE7 */ + line-height: normal; + cursor: pointer; } -input[type="button"], + +// Reset width of input buttons, radios, checkboxes input[type="submit"], -input[type="reset"] { -} -input[type="file"] { -} -input[type="hidden"] { -} -input[type="image"] { -} -input[type="range"] { +input[type="reset"], +input[type="button"], +input[type="radio"], +input[type="checkbox"] { + width: auto; // Override of generic input selector } // Make uneditable textareas behave like a textarea @@ -142,6 +149,12 @@ input[type="file"] { line-height: 28px; } +// Make select elements obey height by applying a border +select { + width: 220px; // default input width + 10px of padding that doesn't get applied + border: 1px solid #bbb; +} + // Make multiple select elements height not fixed select[multiple], select[size] { -- cgit v1.2.3 From 532569fe59bbc8a1a74d7984279749f736cbdd3a Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 15 May 2012 09:04:44 -0700 Subject: updated forms to rearrange focus state, reinstate uneditable-input, and a few other cleanup tidbits --- less/forms.less | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 277cdf42f..f0fd90f8d 100644 --- a/less/forms.less +++ b/less/forms.less @@ -77,7 +77,8 @@ input[type="email"], input[type="url"], input[type="search"], input[type="tel"], -input[type="color"] { +input[type="color"], +.uneditable-input { display: inline-block; height: @baseLineHeight; padding: 4px; @@ -115,6 +116,14 @@ input[type="color"] { .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); @transition: border linear .2s, box-shadow linear .2s; .transition(@transition); + + // Focus state + &:focus { + border-color: rgba(82,168,236,.8); + outline: 0; + outline: thin dotted \9; /* IE6-9 */ + .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)"); + } } // Position radios and checkboxes better @@ -161,7 +170,13 @@ select[size] { height: auto; } - +// Focus for select, file, radio, and checkbox +select:focus, +input[type="file"]:focus, +input[type="radio"]:focus, +input[type="checkbox"]:focus { + .tab-focus(); +} @@ -202,26 +217,6 @@ select[size] { -// FOCUS STATE -// ----------- - -input:focus, -textarea:focus { - border-color: rgba(82,168,236,.8); - outline: 0; - outline: thin dotted \9; /* IE6-9 */ - .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)"); -} -input[type="file"]:focus, -input[type="radio"]:focus, -input[type="checkbox"]:focus, -select:focus { - .tab-focus(); - .box-shadow(none); // override for file inputs -} - - - // INPUT SIZES // ----------- @@ -252,8 +247,7 @@ textarea[class*="span"], // GRID SIZING FOR INPUTS // ---------------------- -#grid > .input (@gridColumnWidth, @gridGutterWidth); - +#grid > .input(@gridColumnWidth, @gridGutterWidth); -- cgit v1.2.3 From a9d4b667ff6349a54cdd470c82c7ef3c88de4165 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 15 May 2012 09:07:19 -0700 Subject: finish fixing uneditable-input and remake --- less/forms.less | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 277cdf42f..d70dd9c4d 100644 --- a/less/forms.less +++ b/less/forms.less @@ -77,7 +77,8 @@ input[type="email"], input[type="url"], input[type="search"], input[type="tel"], -input[type="color"] { +input[type="color"], +.uneditable-input { display: inline-block; height: @baseLineHeight; padding: 4px; @@ -108,7 +109,8 @@ input[type="email"], input[type="url"], input[type="search"], input[type="tel"], -input[type="color"] { +input[type="color"], +.uneditable-input { background-color: @inputBackground; border: 1px solid @inputBorder; .border-radius(@inputBorderRadius); -- cgit v1.2.3 From e009ed23fcdfa87cc773c2c08f546b30e0e35950 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 15 May 2012 09:45:53 -0700 Subject: move navbar and update paths so it sits in tests --- less/tests/navbar.html | 108 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 less/tests/navbar.html (limited to 'less') diff --git a/less/tests/navbar.html b/less/tests/navbar.html new file mode 100644 index 000000000..17754bf6e --- /dev/null +++ b/less/tests/navbar.html @@ -0,0 +1,108 @@ + + + + + Bootstrap, from Twitter + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Navbar example

+

This example is a quick exercise to illustrate how the default, static navbar and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.

+

+ View navbar docs » +

+
+ +
+ + + + + + + + + + + + + + + + + + + -- cgit v1.2.3 From 78790da03c2f18912215c6dc4c19d88e636c31dd Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 17 May 2012 22:00:49 -0700 Subject: fix resizing issues from incorrectly changing <767px grid classes to inline-block, fix height issue on textareas --- less/forms.less | 4 ++++ less/responsive-767px-max.less | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 606446638..582bb413b 100644 --- a/less/forms.less +++ b/less/forms.less @@ -94,6 +94,10 @@ input, textarea { width: 210px; } +// Reset height since textareas have rows +textarea { + height: auto; +} // Everything else textarea, input[type="text"], diff --git a/less/responsive-767px-max.less b/less/responsive-767px-max.less index e35e45d89..fc422d3a2 100644 --- a/less/responsive-767px-max.less +++ b/less/responsive-767px-max.less @@ -120,10 +120,14 @@ [class*="span"], .row-fluid [class*="span"] { float: none; - display: inline-block; + display: block; width: auto; margin-left: 0; } + .row-fluid .input-prepend [class*="span"], + .row-fluid .input-append [class*="span"] { + display: inline-block; + } // FORM FIELDS // ----------- -- cgit v1.2.3 From faf2866f96513dc1c2775974518d979feb554dbd Mon Sep 17 00:00:00 2001 From: Paul Vorbach Date: Sun, 20 May 2012 11:54:21 +0300 Subject: Remove re-declaration of font-fam, font-size, and line-height in p --- less/type.less | 3 --- 1 file changed, 3 deletions(-) (limited to 'less') diff --git a/less/type.less b/less/type.less index 0d5621934..11c871879 100644 --- a/less/type.less +++ b/less/type.less @@ -8,9 +8,6 @@ p { margin: 0 0 @baseLineHeight / 2; - font-family: @baseFontFamily; - font-size: @baseFontSize; - line-height: @baseLineHeight; small { font-size: @baseFontSize - 2; color: @grayLight; -- cgit v1.2.3 From 642f75141d96aa7a9bde3c2288112d09d34fb3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Arribas?= Date: Mon, 21 May 2012 02:56:57 +0200 Subject: Do not use filters in fade animations --- less/component-animations.less | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'less') diff --git a/less/component-animations.less b/less/component-animations.less index da1f2e535..1e1e78b85 100644 --- a/less/component-animations.less +++ b/less/component-animations.less @@ -2,10 +2,10 @@ // -------------------- .fade { - .opacity(0); + opacity: 0; .transition(opacity .15s linear); &.in { - .opacity(100); + opacity: 1; } } @@ -17,4 +17,4 @@ &.in { height: auto; } -} \ No newline at end of file +} -- cgit v1.2.3 From 3b6b6eb242e1e459d741d5edc475ce6b3130d063 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 23 May 2012 00:04:54 -0700 Subject: fix field state mixin --- less/mixins.less | 2 ++ 1 file changed, 2 insertions(+) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index 8efe12b38..068af63fa 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -166,6 +166,8 @@ color: @textColor; } // Style inputs accordingly + .checkbox, + .radio, input, select, textarea { -- cgit v1.2.3 From 34e5bc5f1d3ea24c7fa6249bc5103e1cf94c3d4e Mon Sep 17 00:00:00 2001 From: Ademaro Date: Thu, 24 May 2012 13:57:02 +0400 Subject: ie support placeholder color (http://msdn.microsoft.com/en-us/library/ie/hh772745(v=vs.85).aspx) --- less/mixins.less | 3 +++ 1 file changed, 3 insertions(+) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index b107955f5..002ee8634 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -84,6 +84,9 @@ :-moz-placeholder { color: @color; } + :-ms-input-placeholder { + color: @color; + } ::-webkit-input-placeholder { color: @color; } -- cgit v1.2.3 From fe30bd60553bea0f706725deb9a0ad9ef04f0247 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 24 May 2012 20:18:52 -0700 Subject: make bootstrap like google maps a bit more --- less/reset.less | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'less') diff --git a/less/reset.less b/less/reset.less index d9ce2b110..2332e03c3 100644 --- a/less/reset.less +++ b/less/reset.less @@ -81,6 +81,11 @@ img { -ms-interpolation-mode: bicubic; } +// Prevent max-width from affecting Google Maps +#map_canvas img { + max-width: none; +} + // Forms // ------------------------- -- cgit v1.2.3 From a7529e158be8153fd350d19445e9e93261050c55 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 25 May 2012 09:19:10 -0700 Subject: remove color from labels --- less/forms.less | 1 - 1 file changed, 1 deletion(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index 582bb413b..a7e525a76 100644 --- a/less/forms.less +++ b/less/forms.less @@ -55,7 +55,6 @@ textarea { label { display: block; margin-bottom: 5px; - color: @grayDark; } // Form controls -- cgit v1.2.3 From 8a06339501587f9ecc62f6a831162cf40e8a0c70 Mon Sep 17 00:00:00 2001 From: Corey Innis Date: Sun, 27 May 2012 18:12:08 -0700 Subject: fixes .placeholder to work as a "grouped selector" adding the `&` combinator to `.placeholder` makes it work for the global case (in forms.less) as well as within `.navbar-search .search-query` the result can be seen in the generated bootstrap.css, which include the -ms vendor extension. --- less/mixins.less | 6 +++--- less/navbar.less | 8 +------- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index ddc198535..c3b57ed14 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -81,13 +81,13 @@ // Placeholder text // ------------------------- .placeholder(@color: @placeholderText) { - :-moz-placeholder { + &:-moz-placeholder { color: @color; } - :-ms-input-placeholder { + &:-ms-input-placeholder { color: @color; } - ::-webkit-input-placeholder { + &::-webkit-input-placeholder { color: @color; } } diff --git a/less/navbar.less b/less/navbar.less index 4faa7255b..818f8a5a2 100644 --- a/less/navbar.less +++ b/less/navbar.less @@ -123,13 +123,7 @@ .box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)"); .transition(none); - // Placeholder text gets special styles; can't be a grouped selector - &:-moz-placeholder { - color: @navbarSearchPlaceholderColor; - } - &::-webkit-input-placeholder { - color: @navbarSearchPlaceholderColor; - } + .placeholder(@navbarSearchPlaceholderColor); // Focus states (we use .focused since IE7-8 and down doesn't support :focus) &:focus, -- cgit v1.2.3 From 9699e1d70783122f99b7de67e58a95ddaef1e241 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 28 May 2012 01:13:24 -0700 Subject: scope float right dropdown menus to immediate children --- less/dropdowns.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less') diff --git a/less/dropdowns.less b/less/dropdowns.less index 96dfec223..5e232556a 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -110,7 +110,7 @@ // Right aligned dropdowns // --------------------------- -.pull-right .dropdown-menu { +.pull-right > .dropdown-menu { right: 0; left: auto; } -- cgit v1.2.3 From 7875e4833cb7d00db2967078fd6f51adbfd4a351 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 28 May 2012 17:32:24 -0700 Subject: fix broken css tests, add fluid input-prepend/-append to tests, fix input-prepend/append for responsive for both fluid and fixed sizing --- less/forms.less | 9 ++++++ less/responsive-767px-max.less | 4 --- less/tests/css-tests.html | 71 ++++++++++++++++++++++++++++-------------- 3 files changed, 56 insertions(+), 28 deletions(-) (limited to 'less') diff --git a/less/forms.less b/less/forms.less index a7e525a76..1163fe914 100644 --- a/less/forms.less +++ b/less/forms.less @@ -245,6 +245,15 @@ textarea[class*="span"], float: none; margin-left: 0; } +// Ensure input-prepend/append never wraps +.input-append input[class*="span"], +.input-append .uneditable-input[class*="span"], +.input-prepend input[class*="span"], +.input-prepend .uneditable-input[class*="span"], +.row-fluid .input-prepend [class*="span"], +.row-fluid .input-append [class*="span"] { + display: inline-block; +} diff --git a/less/responsive-767px-max.less b/less/responsive-767px-max.less index fc422d3a2..614c6905c 100644 --- a/less/responsive-767px-max.less +++ b/less/responsive-767px-max.less @@ -124,10 +124,6 @@ width: auto; margin-left: 0; } - .row-fluid .input-prepend [class*="span"], - .row-fluid .input-append [class*="span"] { - display: inline-block; - } // FORM FIELDS // ----------- diff --git a/less/tests/css-tests.html b/less/tests/css-tests.html index 0e964e27f..b7177e5c6 100644 --- a/less/tests/css-tests.html +++ b/less/tests/css-tests.html @@ -500,68 +500,91 @@ +

Fluid prepended and appended inputs

+
+
+
+
+
+ @ +
+
+
+
+ @ +
+
+
+
+ $.00 +
+
+
+
+
+

Fixed row with inputs

Inputs should not extend past the light red background, set on their parent, a .span* column.

- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -572,62 +595,62 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
-- cgit v1.2.3