CSS Clearfix for `admin-contents`

css

(Dean Taylor) #1

Can I get a CSS clearfix for admin-content DIV ?


CSS Clearfix for `admin-contents` - part deux
Custom CSS not always picked up in Admin
(Kane York) #2

Aren’t CSS styles removed when you view the admin pages? Unless you apply the CSS in the </head> section I suppose. Is that how you got that bright blue background?


(Sam Saffron) #3

no, but I discussed this with @eviltrout before, we want to remove them unconditionally when you enter admin.


(Jens Maier) #4

Why? I quite like having my admin interface match the main forum’s design.


(Kane York) #5

You need, at minimum, an obvious way to recover if a CSS compilation error or CSS bonehead error occurs though.

(Boneheaded: body { display: none; })


(Jens Maier) #6

Sure, but that’s why the admin interface is loaded sans customizations when it’s entered directly (i.e. browse to /admin in an empty tab) instead of via an Ember transition, no?


(RĂ©gis Hanol) #7

Yeah but that behavior isn’t consistent and is generating support requests.


(Dean Taylor) #8

This request does stem from admin having an issue directly because of “user styles” being applied in admin…
… When visiting admin from an initial normal page load which happens frequently.

For these screenshots I simply added the blue background to the <HTML> tag in Chrome Dev tools after loading admin directly with a dark color only theme (no CSS).


Best way to customize the header?
(RĂ©gis Hanol) #9

I just pushed a fix that will automagically disable custom stylesheets when you’re entering the /admin section and enable them back when you’re leaving it :bouquet:


CSS admin-contents reloaded
(RĂ©gis Hanol) #10