aboutsummaryrefslogtreecommitdiffstats
path: root/themes/base
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-04-20 17:18:15 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2011-04-20 17:18:15 +0200
commit34e3a2401afc831ad084af1942670118a3ccabb1 (patch)
tree4273482e7c1ee539c49c1080e9545e43a5b24d39 /themes/base
parentf0d5a0008f193c1ebabd808ff0a9f88455b02658 (diff)
downloadjquery-ui-34e3a2401afc831ad084af1942670118a3ccabb1.tar.gz
jquery-ui-34e3a2401afc831ad084af1942670118a3ccabb1.zip
Menu: Add icons support
Diffstat (limited to 'themes/base')
-rw-r--r--themes/base/jquery.ui.menu.css13
1 files changed, 11 insertions, 2 deletions
diff --git a/themes/base/jquery.ui.menu.css b/themes/base/jquery.ui.menu.css
index 20fd2ce56..a700d2895 100644
--- a/themes/base/jquery.ui.menu.css
+++ b/themes/base/jquery.ui.menu.css
@@ -39,6 +39,15 @@
margin: -1px;
}
-.ui-menu .ui-icon { float: right; }
-
+/* nested menus */
.ui-menu .ui-menu { position: absolute; }
+
+/* icon support */
+.ui-menu-icons { position: relative; }
+.ui-menu-icons .ui-menu-item a { position: relative; padding-left: 2em; }
+
+/* left-aligned */
+.ui-menu .ui-icon { position: absolute; top: .2em; left: .2em; }
+
+/* right-aligned */
+.ui-menu .ui-menu-icon { position: static; float: right; } \ No newline at end of file