summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/base/styles.css
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2009-12-15 08:57:08 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2009-12-15 08:57:08 +0000
commita49a419ed21071d32836212f06f79ccedabc78ae (patch)
tree303bdb8a33b7db5d305171f38f86c633d879fe6f /WebContent/VAADIN/themes/base/styles.css
parent9e5e4ae16817d4c753f839fb4d366a7e7f372404 (diff)
downloadvaadin-framework-a49a419ed21071d32836212f06f79ccedabc78ae.tar.gz
vaadin-framework-a49a419ed21071d32836212f06f79ccedabc78ae.zip
Fixes #3850: Submenu icon is placed outside the menu in IE7
* Refactored VMenuBar to not use TABLE element. Now uses DIVs all the way. * Note, the theme for MenuBar sub-menus seems to be quite fragile in IE6 and IE7. IE6 doesn't allow any of the contained elements to get "hasLayout", otherwise the popup will be too wide. IE7 needs some DeferredCommand magic to make it render separator items correctly. svn changeset:10301/svn branch:6.2
Diffstat (limited to 'WebContent/VAADIN/themes/base/styles.css')
-rw-r--r--WebContent/VAADIN/themes/base/styles.css67
1 files changed, 26 insertions, 41 deletions
diff --git a/WebContent/VAADIN/themes/base/styles.css b/WebContent/VAADIN/themes/base/styles.css
index 5294a04291..2c508ca59e 100644
--- a/WebContent/VAADIN/themes/base/styles.css
+++ b/WebContent/VAADIN/themes/base/styles.css
@@ -645,46 +645,38 @@ div.v-app-loading {
float: left; /* Force minimum width for button */
}
-.v-ie6 .v-menubar {
- float: left; /* Force minimum width in IE6 */
-}
-.v-menubar table {
- border-collapse: collapse;
- padding: 0;
- margin: 0;
+.v-menubar {
+ float: left; /* Force minimum width */
+ overflow: hidden;
}
.v-menubar .v-menubar-menuitem {
cursor: default;
vertical-align: middle;
white-space: nowrap;
+ float: left;
}
-.v-menubar .v-menubar-menuitem * {
+.v-menubar .v-menubar-menuitem-caption * {
vertical-align: middle;
+ white-space: nowrap;
}
.v-menubar-submenu {
background: #fff;
}
-.v-menubar-submenu table {
- border-collapse: collapse;
- padding: 0;
- margin: 0;
-}
-.v-menubar-submenu table td {
- white-space: nowrap;
- padding: 0;
- margin: 0;
-}
-.v-menubar-menuitem-selected{
+.v-menubar-menuitem-selected {
background: #333;
color: #fff;
}
.v-menubar-submenu .v-menubar-menuitem {
cursor: default;
- vertical-align: middle;
- white-space: nowrap;
+ position: relative;
+ padding-right: 1.5em;
}
-.v-menubar-submenu .v-menubar-menuitem * {
- vertical-align: middle;
+.v-menubar-submenu .v-menubar-menuitem-caption {
+ display: block;
+}
+.v-menubar-submenu .v-menubar-menuitem *,
+.v-menubar-submenu .v-menubar-menuitem-caption * {
+ white-space: nowrap;
}
.v-menubar-submenu-indicator {
display: none;
@@ -692,23 +684,12 @@ div.v-app-loading {
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-ie6 .v-menubar-submenu .v-menubar-submenu-indicator {
+ display: block;
position: absolute;
right: 0;
- margin-right: 0;
- margin-top: -2px;
-}
-.v-ie7 .v-menubar-submenu .v-menubar-submenu-indicator {
- position: relative;
- margin-left: 0;
+ width: 1em;
+ height: 1em;
+ font-size: 0.9em;
}
.v-menubar-menuitem-disabled {
color: #999;
@@ -717,13 +698,17 @@ div.v-app-loading {
/* Arial has the most coverage for geometric entity characters */
font-family: arial, helvetica, sans-serif;
}
+.v-menubar-separator {
+ overflow: hidden;
+}
.v-menubar-separator span {
display: block;
text-indent: -9999px;
- height: 1px;
- margin: 3px 0;
+ font-size: 1px;
+ line-height: 1px;
+ border-top: 1px solid #ddd;
+ margin: 3px 0 2px;
overflow: hidden;
- background: #ddd;
}
.v-menubar .v-icon,
.v-menubar-submenu .v-icon {