From ff991344bb16604fd60a1302c370edcaaf8f9cd1 Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Mon, 9 Nov 2009 14:36:28 +0000 Subject: MenuBar fixes & enhancements * fixes #3507: Menubar.MenuItem needs setEnabled() * "More" menuitem now presented as an arrow * menu opening/closing now more intuitive * client side stylename for menuitems changed to v-menuitem svn changeset:9688/svn branch:6.2 --- WebContent/VAADIN/themes/base/menubar/menubar.css | 25 ++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'WebContent/VAADIN/themes/base/menubar') diff --git a/WebContent/VAADIN/themes/base/menubar/menubar.css b/WebContent/VAADIN/themes/base/menubar/menubar.css index 610fb4d9b4..909d714f13 100644 --- a/WebContent/VAADIN/themes/base/menubar/menubar.css +++ b/WebContent/VAADIN/themes/base/menubar/menubar.css @@ -3,12 +3,12 @@ padding: 0; margin: 0; } -.v-menubar .menuitem { +.v-menubar .v-menubar-menuitem { cursor: default; vertical-align: middle; white-space: nowrap; } -.v-menubar .menuitem * { +.v-menubar .v-menubar-menuitem * { vertical-align: middle; } .v-menubar-submenu { @@ -24,25 +24,36 @@ padding: 0; margin: 0; } -.v-menubar .menuitem-selected, -.v-menubar-submenu .menuitem-selected { +.v-menubar-menuitem-selected{ background: #333; color: #fff; } -.v-menubar-submenu .menuitem { +.v-menubar-submenu .v-menubar-menuitem { cursor: default; vertical-align: middle; white-space: nowrap; } -.v-menubar-submenu .menuitem * { +.v-menubar-submenu .v-menubar-menuitem * { vertical-align: middle; } -.v-menubar .v-menubar-submenu-indicator { +.v-menubar-submenu-indicator { display: none; + /* Arial has the most coverage for geometric entity characters */ + font-family: arial, helvetica, sans-serif; } .v-menubar-submenu .v-menubar-submenu-indicator { + display: inline; + display: inline-block; + zoom: 1; margin-left: 1em; float: right; height: 100%; font-size: 0.9em; +} +.v-menubar-menuitem-disabled { + color: #999; +} +.v-menubar-more-menuitem { + /* Arial has the most coverage for geometric entity characters */ + font-family: arial, helvetica, sans-serif; } \ No newline at end of file -- cgit v1.2.3