From 8120b0d6dfcb325066a7b22f428619882835e6fd Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Thu, 22 Sep 2011 21:20:49 +0200 Subject: [PATCH] Selectmenu: improved visual style --- themes/base/jquery.ui.selectmenu.css | 5 +++-- ui/jquery.ui.selectmenu.js | 33 +++++++++++++++++++++++----- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/themes/base/jquery.ui.selectmenu.css b/themes/base/jquery.ui.selectmenu.css index d64084d60..6149a0bb7 100644 --- a/themes/base/jquery.ui.selectmenu.css +++ b/themes/base/jquery.ui.selectmenu.css @@ -10,7 +10,8 @@ .ui-selectmenu-menu { padding: 0; margin: 0; position:absolute; top: 0; display: none; } .ui-selectmenu-menu .ui-menu { padding: 0; } +.ui-selectmenu-menu li.ui-selectmenu-optgroup { font-weight: bold; line-height: 1.5; padding: 2px 0.4em; margin: 0.5em 0 0 0; } .ui-selectmenu-open { display: block; } -.ui-button span.ui-icon { right: 0.5em; left: auto; } -.ui-button span.ui-button-text { text-align: left; padding: 0.4em 2.1em 0.4em 1em } \ No newline at end of file +.ui-selectmenu-button span.ui-icon { right: 0.5em; left: auto; } +.ui-selectmenu-button span.ui-button-text { text-align: left; padding: 0.4em 2.1em 0.4em 1em } \ No newline at end of file diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index cf2c175fb..7d6269d2b 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -23,6 +23,7 @@ $.widget( "ui.selectmenu", { version: "@VERSION", defaultElement: "