mishunov / webcouturier.dropdownmenu

7 stars 24 forks source link

z-index problem with personaltools #8

Open tkimnguyen opened 13 years ago

tkimnguyen commented 13 years ago

In Plone 4.1 when I install dropdownmenu 2.2 the personaltools drop down (when I'm logged in) is hidden where it overlaps with the globalnav (portal tabs) because dropdownmenu specifies z-index 3 in some places and 10 in others. The workaround for personaltools is to add this to ploneCustom.css:

dl #portal-personaltools { z-index:20!important; }

Is there a specific reason for having z-index 3 or 10 in your product? If so, could you include a z-index value for personaltools too?

allnode commented 13 years ago

Where in the ploneCustomer.css should I add

dl #portal-personaltools { z-index:20!important; }

/* uncomment the below selector to get a fixed-width layout. *

/* #visual-portal-wrapper { width: 60em; margin: 0 auto; } */

/* To change the link color (or the navigation link background), uncomment *

/* a:link, a:visited, #content a:link, #content a:visited, dl.portlet a:link, dl.portlet a:visited { color: red; }

portal-globalnav .selected a, #portal-globalnav a:hover {

background-color: red; } */

/* To change the edit bar color, uncomment the selectors below, and insert *

/*

contentActionMenus,

dl.actionMenu.activated dd,

content-views,

edit-bar {

background-color: blue; border-color: blue; } dl.actionMenu a { background-color: blue; } */

/* If you want to hide the path bar (aka. breadcrumbs), uncomment the below: */

/*

breadcrumbs-you-are-here,

breadcrumbs-home,

breadcrumbs-current,

breadcrumbs-1 {

display: none; } */

/* If you want variables in the CSS (for example for colors that are used *

/*

/*

#content a:link { color: &dtml-linkColor;; }

*/

tkimnguyen commented 13 years ago

It looks like everything in your ploneCustom.css above is already commented out, so I'd say add those lines I suggested anywhere.

allnode commented 13 years ago

I am not familiar with the CSS syntax and tried a number of things including the following to no avail. Appreciate if you can give me some more details. BTW, I changed the sunburst plone.Customer css.

portal-globalnav dl #portal-personaltools {

z-index:20!important; }

/* uncomment the below selector to get a fixed-width layout. *

/* #visual-portal-wrapper { width: 60em; margin: 0 auto; } */

/* To change the link color (or the navigation link background), uncomment *

/* a:link, a:visited, #content a:link, #content a:visited, dl.portlet a:link, dl.portlet a:visited { color: red; }

portal-globalnav .selected a, #portal-globalnav a:hover {

background-color: red;

} */

/* To change the edit bar color, uncomment the selectors below, and insert *

/*

contentActionMenus,

dl.actionMenu.activated dd,

content-views,

edit-bar {

background-color: blue;
border-color: blue;

} dl.actionMenu a { background-color: blue; } */

/* If you want to hide the path bar (aka. breadcrumbs), uncomment the below: */

/*

breadcrumbs-you-are-here,

breadcrumbs-home,

breadcrumbs-current,

breadcrumbs-1 {

display: none;

} */

/* If you want variables in the CSS (for example for colors that are used *

/*

/*

#content a:link { color: &dtml-linkColor;; }

*/

tkimnguyen commented 13 years ago

Sorry, if you're not familiar with CSS syntax you should probably not try to do this.