From dcf6a051e71f73c6f53f36f4a3a9420535f70e42 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 14 Sep 2011 08:58:20 -0700 Subject: allow multi-select lists in forms --- lib/forms.less | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/forms.less b/lib/forms.less index 4c307fe08..944d16af6 100644 --- a/lib/forms.less +++ b/lib/forms.less @@ -110,6 +110,11 @@ input[type=file] { *margin-top: 4px; /* For IE7, add top margin to align select with labels */ } +// Make multiple select elements height not fixed +select[multiple] { + height: inherit; +} + textarea { height: auto; } -- cgit v1.2.3 From b188c0da8b51cd18d6fa3fa958e823a318ba5f10 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 16 Sep 2011 09:41:58 -0700 Subject: updated table styles a bit and floated the fluid columns to clear the row dropping problem we were having --- lib/scaffolding.less | 6 +++--- lib/tables.less | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/scaffolding.less b/lib/scaffolding.less index e4afa5aeb..13cc4f2b1 100644 --- a/lib/scaffolding.less +++ b/lib/scaffolding.less @@ -33,17 +33,17 @@ body { } // TODO in v2: rename this and .popover .content to be more specific > .content { + float: left; min-width: 700px; max-width: 1180px; - margin-left: 240px; - .clearfix(); + margin-left: 20px; } } +// Toggling content .hide { display: none; } - .show { display: block; } diff --git a/lib/tables.less b/lib/tables.less index e00250f0d..988483f0e 100644 --- a/lib/tables.less +++ b/lib/tables.less @@ -11,7 +11,8 @@ table { width: 100%; margin-bottom: @baseline; padding: 0; - border-collapse: separate; + border-collapse: separate; // Done so we can round those corners! + *border-collapse: collapse; /* IE7, collapse table to remove spacing */ font-size: @basefont; border: 1px solid #ddd; .border-radius(4px); -- cgit v1.2.3 From e663cfb43fdc9f0ce73865a2a9857579975ecb63 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 16 Sep 2011 10:14:35 -0700 Subject: fix tabs jitter bug when there is no active class --- lib/patterns.less | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/patterns.less b/lib/patterns.less index 543332086..cb92126aa 100644 --- a/lib/patterns.less +++ b/lib/patterns.less @@ -342,22 +342,22 @@ a.menu:after, position: relative; // For the dropdowns mostly top: 1px; > a { - margin-right: 2px; padding: 0 15px; - line-height: (@baseline * 2) - 1; + margin-right: 2px; + line-height: @baseline * 2; + border: 1px solid transparent; .border-radius(4px 4px 0 0); &:hover { - background-color: #eee; - border-bottom: 1px solid #ddd; text-decoration: none; + background-color: #eee; + border-color: #eee #eee #ddd; } } &.active > a { + color: @gray; background-color: @white; - padding: 0 14px; border: 1px solid #ddd; - border-bottom: 0; - color: @gray; + border-bottom-color: transparent; } } // first one for backwards compatibility -- cgit v1.2.3 From e8d9eb264c3ba8c263d37259f65eece7247b00b9 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 16 Sep 2011 10:51:44 -0700 Subject: update alert message for ie7 to adjust dismiss icon, update example pages to clean up a few things from testing --- lib/patterns.less | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/patterns.less b/lib/patterns.less index cb92126aa..ce387614e 100644 --- a/lib/patterns.less +++ b/lib/patterns.less @@ -641,6 +641,11 @@ input[type=submit].btn { .border-radius(4px); .box-shadow(inset 0 1px 0 rgba(255,255,255,.25)); + // Adjust close icon + .close { + *margin-top: 3px; /* IE7 spacing */ + } + // Remove extra margin from content h5 { line-height: @baseline; @@ -915,8 +920,8 @@ input[type=submit].btn { height: 0; } .inner { - background: #333; - background: rgba(0,0,0,.8); + background-color: @black; + background-color: rgba(0,0,0,.8); padding: 3px; overflow: hidden; width: 280px; -- cgit v1.2.3