diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-02-29 14:41:48 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-02-29 14:41:48 +0000 |
| commit | af03e29c0f7d1c43301ab12a452e69dfd6e95ae3 (patch) | |
| tree | cef3b6dadf4dffff60ac331982603fe523258757 /roundcubemail/skins | |
| parent | 558b2469c6bf6fee347a7f23b60fc501b39cd50a (diff) | |
More styles for decorated selects
git-svn-id: https://svn.roundcube.net/trunk@5931 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/skins')
| -rw-r--r-- | roundcubemail/skins/larry/styles.css | 28 | ||||
| -rw-r--r-- | roundcubemail/skins/larry/ui.js | 3 |
2 files changed, 25 insertions, 6 deletions
diff --git a/roundcubemail/skins/larry/styles.css b/roundcubemail/skins/larry/styles.css index ab704539c..94121356e 100644 --- a/roundcubemail/skins/larry/styles.css +++ b/roundcubemail/skins/larry/styles.css @@ -1451,13 +1451,27 @@ select.decorated { position: relative; z-index: 10; opacity: 0; - -khtml-appearance: none; - padding: 2px 4px; + height: 22px; cursor: pointer; + filter: alpha(opacity=0); + -khtml-appearance: none; + -webkit-appearance: none; } html.opera select.decorated { opacity: 1; + height: auto; +} + +select.decorated option { + color: #fff; + background: #444; + border: 1px solid #999; + border-top-color: #5a5a5a; + border-bottom-color: #333; + text-shadow: 0px 1px 1px #333; + padding: 6px 10px; + outline: none; } @@ -1504,12 +1518,14 @@ ul.toolbarmenu li, } .googie_list tr:first-child td, -ul.toolbarmenu li:first-child { +ul.toolbarmenu li:first-child, +select.decorated option:first-child { border-top: 0; } .googie_list tr:last-child td, -ul.toolbarmenu li:last-child { +ul.toolbarmenu li:last-child, +select.decorated option:last-child { border-bottom: 0; } @@ -1535,7 +1551,9 @@ ul.toolbarmenu li a.active { .googie_list td.googie_list_onhover, ul.toolbarmenu li a.active:hover, -#rcmKSearchpane ul li.selected { +#rcmKSearchpane ul li.selected, +select.decorated option:hover, +select.decorated option[selected='selected'] { background-color: #00aad6; background: -moz-linear-gradient(top, #00aad6 0%, #008fc9 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00aad6), color-stop(100%,#008fc9)); diff --git a/roundcubemail/skins/larry/ui.js b/roundcubemail/skins/larry/ui.js index 5e1218639..d7ef9ae0c 100644 --- a/roundcubemail/skins/larry/ui.js +++ b/roundcubemail/skins/larry/ui.js @@ -186,9 +186,10 @@ function rcube_mail_ui() }); $('<a class="menuselector dropdownselector"><span class="handle">' + title + '</span></a>') + .css('position', 'absolute') .offset(select.position()) .insertAfter(select) - .children().width(select.width() - 5); + .children().width(select.outerWidth() - 40); select.parent().css('position', 'relative'); }); |
