From ba08055a7be248582ce6b5ba00bf04f5c821bcdd Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 8 Sep 2011 23:01:28 -0700 Subject: update the modals and alert-messages to use the same .close styles, save for some positioning in the modal after knocking down the modal padding --- lib/patterns.less | 54 +++++++++++++++++++++++++++--------------------------- lib/tables.less | 27 +++++++++++++++++++++++---- lib/type.less | 1 - 3 files changed, 50 insertions(+), 32 deletions(-) (limited to 'lib') diff --git a/lib/patterns.less b/lib/patterns.less index b2c0d1365..9cd688c22 100644 --- a/lib/patterns.less +++ b/lib/patterns.less @@ -553,15 +553,34 @@ input[type=submit].btn { } +// CLOSE ICONS +// ----------- +.close { + float: right; + color: @black; + font-size: 20px; + font-weight: bold; + line-height: @baseline * .75; + text-shadow: 0 1px 0 rgba(255,255,255,1); + .opacity(20); + &:hover { + color: @black; + text-decoration: none; + .opacity(40); + } +} + + // ERROR STYLES // ------------ // Base alert styles .alert-message { - .gradientBar(#fceec1, #eedc94); // warning by default + position: relative; + padding: 7px 15px; margin-bottom: @baseline; - padding: 7px 14px; color: @grayDark; + .gradientBar(#fceec1, #eedc94); // warning by default text-shadow: 0 1px 0 rgba(255,255,255,.5); border-width: 1px; border-style: solid; @@ -584,20 +603,6 @@ input[type=submit].btn { // Provide actions with buttons .box-shadow(0 1px 0 rgba(255,255,255,.25)); } - .close { - float: right; - margin-top: -2px; - color: @black; - font-size: 20px; - font-weight: bold; - text-shadow: 0 1px 0 rgba(255,255,255,1); - .opacity(20); - &:hover { - color: @black; - text-decoration: none; - .opacity(40); - } - } &.block-message { background-image: none; @@ -731,25 +736,20 @@ input[type=submit].btn { .border-radius(6px); .box-shadow(0 3px 7px rgba(0,0,0,0.3)); .background-clip(padding-box); + .close { + margin-top: 7px; + } } .modal-header { border-bottom: 1px solid #eee; - padding: 5px 20px; - .close { - position: absolute; - right: 10px; - top: 10px; - color: #999; - line-height:10px; - font-size: 18px; - } + padding: 5px 15px; } .modal-body { - padding: 20px; + padding: 15px; } .modal-footer { background-color: #f5f5f5; - padding: 14px 20px 15px; + padding: 14px 15px 15px; border-top: 1px solid #ddd; .border-radius(0 0 6px 6px); .box-shadow(inset 0 1px 0 #fff); diff --git a/lib/tables.less b/lib/tables.less index 4fff7bd64..e00250f0d 100644 --- a/lib/tables.less +++ b/lib/tables.less @@ -11,23 +11,43 @@ table { width: 100%; margin-bottom: @baseline; padding: 0; - border-collapse: collapse; + border-collapse: separate; font-size: @basefont; + border: 1px solid #ddd; + .border-radius(4px); th, td { padding: 10px 10px 9px; line-height: @baseline; text-align: left; - border: 1px solid #ddd; } th { padding-top: 9px; font-weight: bold; vertical-align: middle; - border-bottom-width: 2px; + border-bottom: 1px solid #ddd; } td { vertical-align: top; } + th + th, + td + td { + border-left: 1px solid #ddd; + } + tr + tr td { + border-top: 1px solid #ddd; + } + tbody tr:first-child td:first-child { + .border-radius(4px 0 0 0); + } + tbody tr:first-child td:last-child { + .border-radius(0 4px 0 0); + } + tbody tr:last-child td:first-child { + .border-radius(0 0 0 4px); + } + tbody tr:last-child td:last-child { + .border-radius(0 0 4px 0); + } } @@ -63,7 +83,6 @@ table { .headerSortDown { background-color: rgba(141,192,219,.25); text-shadow: 0 1px 1px rgba(255,255,255,.75); - .border-radius(3px 3px 0 0); } // Style the ascending (reverse alphabetical) column header .header:hover { diff --git a/lib/type.less b/lib/type.less index 7ee69f2f5..c0c706462 100644 --- a/lib/type.less +++ b/lib/type.less @@ -122,7 +122,6 @@ hr { strong { font-style: inherit; font-weight: bold; - line-height: inherit; } em { font-style: italic; -- cgit v1.2.3