ionyse / ionyweb

An API drived, javascript modification UI CMS based on django framework
Other
11 stars 2 forks source link

Admin can be underneath themes sometimes #14

Open chrisfranklin opened 11 years ago

chrisfranklin commented 11 years ago

Hey,

The admin text editor can sometimes display below the content as the z-index is not set that high. This is only apparent with some themes.

I propose to change this:

.wa_panel {
  background: -moz-linear-gradient(center top , #333333 0%, #111111 100%) repeat scroll 0 0 transparent !important;
  box-shadow: 0 0 10px 2px #000000 !important;
  display: none;
  font-family: Verdana;
  font-size: 12px;
  z-index: 1000;
}

and add a zero on the end of z-index to make it 10, 000 this solved the issue for me.

All the best,

Chris

chrisfranklin commented 11 years ago

Obviously a change to the theme would fix this but I cannot envisage a case where and item would want to be above that popup.

Natim commented 11 years ago

You will always have the problem, but we can define a standard and say that Ionyweb z-index are above 9000 so that theme need to be below. Can you create a PR that verify that all z-index in Ionyweb are above 9000.

./ionyweb/static/admin/css/file_manager.less l.11
./ionyweb/static/admin/css/forms.less l.105
./ionyweb/static/admin/css/ionyweb_admin.less l.103
./ionyweb/static/admin/css/ionyweb_login.less l.42 (set back to 10000)
./ionyweb/static/admin/css/messages.less l.4 / l.50
./ionyweb/static/admin/css/panels.less

Put all 900 to 9100, 950 to 9200, 1000 to 9300, 1100 to 9400, 2000 to 9500

The PR should also upgrade the documentation to explain that theme should not use z-index above 9000.

chrisfranklin commented 11 years ago

I will do this today, thanks for your speedy reply =)