admin panel + edit entries - wrong css used

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

admin panel + edit entries - wrong css used

Post by gwilsonmail »

When you save an edited entry s9y displays the following

Code: Select all

Serendipity is now saving your entry, creating trackbacks and performing possible XML-RPC calls. This may take a while..

I'm using the MT-Rusty template and noticed that the admin panel seem to be using the MT-Rusty template/css styles in reporting progress (within the i-frame) because I get "Your entry has been saved" in a box, background and font that is not part of the admin style.
gw
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: admin panel + edit entries - wrong css used

Post by garvinhicking »

Yes, this is a general thing that inside the iframe it always uses the frontends CSS; technically this cannot be easily avoided because the iframe does not know if an entry gets saved or preview at the time the CSS is loaded.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

I later noticed that the iframe is also used to preview the entry.

Seems like a reasonable action.
gw
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

Just noticed that the preview displays the login name of the editor, while the rendered site page displays using the display name.

The preview uses the site style, but the font sizes are different - they are larger.
gw
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The iframe does not contain all the wrapping elements a template might define, so it can be that if the template is not propperly CSSed that it differs from the rest of the layout. That is up to the template author and cannot be solved within the iframe serendipity methods...

In 0.9 the realname vs. username preview issue should be fixed...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply