From: Michael M Slusarz Date: Thu, 8 Oct 2009 17:08:39 +0000 (-0600) Subject: Improve dimpactions buttons styling X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=60276c1968eeed6a628313f4412bbe81df63dcdc;p=horde.git Improve dimpactions buttons styling --- diff --git a/imp/templates/chunks/compose.php b/imp/templates/chunks/compose.php index e7356ab4c..dfb502827 100644 --- a/imp/templates/chunks/compose.php +++ b/imp/templates/chunks/compose.php @@ -28,7 +28,7 @@ function _createDAcompose($text, $image, $id) } else { $params['title'] = $text; } - echo IMP_Dimp::actionButton($params); + echo '
' . IMP_Dimp::actionButton($params) . '
'; } ?> @@ -42,16 +42,10 @@ function _createDAcompose($text, $image, $id)
- - - + - - - - - - + +
diff --git a/imp/templates/chunks/message.php b/imp/templates/chunks/message.php index 133639ff1..c0335549f 100644 --- a/imp/templates/chunks/message.php +++ b/imp/templates/chunks/message.php @@ -19,7 +19,7 @@ function _createDAfmsg($text, $image, $id, $class = '', $show_text = true) } else { $params['tooltip'] = $text; } - echo IMP_Dimp::actionButton($params); + echo '
' . IMP_Dimp::actionButton($params) . '
'; } ?> @@ -29,26 +29,16 @@ function _createDAfmsg($text, $image, $id, $class = '', $show_text = true)
- - - - - - + + getValue('spam_folder'), true)))): ?> - - - + getValue('spam_folder'), true)))): ?> - - - + - - - +
diff --git a/imp/templates/index/index-dimp.inc b/imp/templates/index/index-dimp.inc index d4c8e62c6..cb11a5eab 100644 --- a/imp/templates/index/index-dimp.inc +++ b/imp/templates/index/index-dimp.inc @@ -22,7 +22,8 @@ $flag_list = $imp_flags->getList(array('imap' => true)); // Small utility functions to simplify creating dimpactions buttons. // As of right now, we don't show text only links. -function _createDA($text, $image, $id = null, $class = '', $show_text = true) +function _createDA($text, $image, $id = null, $class = '', $show_text = true, + $div_text = '') { $params = array('icon' => $image, 'id' => $id, 'class' => $class); if ($show_text) { @@ -30,7 +31,7 @@ function _createDA($text, $image, $id = null, $class = '', $show_text = true) } else { $params['tooltip'] = $text; } - echo IMP_Dimp::actionButton($params); + echo '' . IMP_Dimp::actionButton($params) . ''; } function _simpleButton($id, $text, $image, $imagedir = null) @@ -181,34 +182,18 @@ function _simpleButton($id, $text, $image, $imagedir = null) - - - - - - + + - - - + - - - + - - - - - - - - - - - - + + + +
diff --git a/imp/themes/screen-dimp.css b/imp/themes/screen-dimp.css index b03547e77..30896163a 100644 --- a/imp/themes/screen-dimp.css +++ b/imp/themes/screen-dimp.css @@ -400,13 +400,16 @@ div.vpRow.flagDeleted { /* Actions */ .dimpActions { background: #efefef; - padding: 4px 2px 7px; + padding: 4px 2px; border: 1px silver solid; border-bottom: 0; background: transparent url("graphics/backhead_s2.png") repeat-x; + height: 16px; } -.dimpActions span { +.dimpActions div { cursor: pointer; + float: left; + padding-right: 6px; } .dimpActions a, .dimpActions a:visited, .dimpActions label { color: #000; @@ -416,40 +419,30 @@ div.vpRow.flagDeleted { padding: 2px 4px 4px 4px; } .dimpActions a img { + margin-right: 4px; vertical-align: top; - padding-right: 3px; } -.dimpActions a:hover { +.dimpActions a:hover, .dimpActions span.popdown:hover, .dimpActions span.spellcheckPopdownImg:hover { + background-color: #e3e3e3; text-decoration: none; - border-left: 1px solid #fff; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - padding: 1px 3px 3px 3px; - cursor: pointer; +} +.dimpActions span.spellcheckPopdownImg:hover { + border: 0; + margin: 0; +} +.dimpActions .disabled a:hover { + background-color: transparent; } .dimpActions .disabled a, .dimpActions .disabled a:visited, .dimpActions .disabled a:active, .dimpActions .disabled a:hover { cursor: default; text-decoration: none; color: silver; } -.dimpActions .disabled a:hover { - border: 0; - padding-left: 4px; - padding-right: 4px; -} .dimpActions .disabled span.iconImg, .dimpActions .disabled span.spellcheckPopdownImg { filter: alpha(opacity=25); -moz-opacity: .25; opacity: .25; } -.dimpActions span.popdown:hover, .dimpActions span.spellcheckPopdownImg:hover { - border-left: 1px solid #fff; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - margin: -1px; -} .dimpActions .disabled span.popdown:hover, .dimpActions .disabled span.spellcheckPopdownImg { border: 0; cursor: default; @@ -799,11 +792,13 @@ a.address:hover img { /* Search-related styles */ #qsearch { - padding-left: 1px; - float: right; + background-color: #f3f3f3; border: 1px solid #999; cursor: default; - background-color: #f3f3f3; + float: right; + margin-top: -2px; + padding-left: 1px; + padding-right: 1px; -moz-border-radius: 4px; -webkit-border-radius: 4px; } @@ -811,6 +806,7 @@ a.address:hover img { display: inline; } #qsearch_icon, #qsearch_close { + cursor: pointer; padding: 2px 0 0; } #qsearch_icon { @@ -846,7 +842,7 @@ a.address:hover img { /* Popup message styling. */ .headercloseimg { - float: right; + float: right !important; padding-right: 2px; cursor: pointer; }