Styling of the Admin Menu

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Styling of the Admin Menu

Post by cmb » Sun Sep 23, 2012 3:35 pm

Hello Community,

I've noticed, that the admin menu hides behind the info button of Socialshareprivacy_XH. That's due to the z-index of the button being 1000, but the admin menu has only 99. IMO the z-index of the admin menu should be higher than that, but it would be even better, if this could be changed in core.css. Unfortunately the <div> surrounding the admin menu has neither an ID nor a class, so it cannot be reliably styled in core.css.

So I suggest adding something like the following to core.css:

Code: Select all

#editmenu_scrolling {z-index: 999;}
#editmenu_fixed {position: fixed; top: 0; left: 0; width: 100%; z-index: 999;}
and changing cmsimple/cms.php function final_clean_up() accordingly.

I'm well aware, that it should be easy to fix the z-index in Socialshareprivacy_XH, but other plugins and templates may have the same problem, and sometimes the simplest solution would be to adapt core.css. And IMO inline styling should best be avoided anyway.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply