Page 1 of 1

admin panel + edit entries - wrong css used

Posted: Tue Jul 26, 2005 11:45 pm
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.

Re: admin panel + edit entries - wrong css used

Posted: Tue Jul 26, 2005 11:49 pm
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

Posted: Wed Jul 27, 2005 12:00 am
by gwilsonmail
I later noticed that the iframe is also used to preview the entry.

Seems like a reasonable action.

Posted: Wed Jul 27, 2005 8:52 am
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.

Posted: Wed Jul 27, 2005 1:22 pm
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