With .8 from SVN, I tried porting a module. I notice though that the style sheet designed to globally style the admin pages (admin.css) is not working for me. I tried this in ExtraLite and andreas08; both themes seem to call the sheet, but neither will render the styles such as .pn-adminformrow, for instance.
I hardcoded URLs into the sheet paths, but same result.
It's not a showstopper, but does leave the admin panel in a bit of a mess. Am I just missing something new?
Thanks,
- Alar
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Can't get admin.css styles to work.
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
John,
What do you mean by 'doesn't work'? The stylesheet is never referenced in the templates? The styles don't seem to apply?
If the latter then there are a few additions to the .8x admin templates - see the Wiki article Admin Template Structure.
-Mark
--
Visit My homepage and Zikula themes. -
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2330
Thanks for the link, Mark. I also created a bug-report for this, just in case.
"Doesn't work" means that the styles are not being applied to elements on a module's admin form (this is site-wide, not just the module I'm porting.)
I read the article at the link and the very last section ("Admin form styling and standard buttons") is what's not working...the basic .pn-adminform* classes.
- Alar -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
John,
Everything is dependent on the PN-admincontainer div - see the first section of the referenced Wiki article. Your admin output MUST be wrapped in this. My guess is that once this is added then things will be fine
-Mark
--
Visit My homepage and Zikula themes. -
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2330
Thanks Mark. It is actually wrapped in that tag. This seems to be a x-browser CSS compatibility issue as in FF it looks great, but in IE(6) the inputs are misaligned badly.
Thanks for taking a look at this.
- John -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
John,
So there styles are being applied but don't look right in IE6... I'll see if I can dig out a machine with IE6 to test this!
-Mark
--
Visit My homepage and Zikula themes. -
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2330
Yes, I'd say that's a fair characterization. I see that there is equal whitespace between a label and it's corresponding element, so that part seems to work.
The main issue seems to be that everything is left-aligned within the PN-admincontainer div. Since texts of arbitrary lengths are on the left side of a label/input pair, this places inputs wherever they happen to "land" based on the length of the label.
Thanks for looking,
- John -
- Rank: Registered User
- Registered: Jan 28, 2007
- Last visit: Apr 16, 2009
- Posts: 43
Mark, I might be wrong, but if you have IE7 installed it might be easier just to change the DTD to put it into quirks mode. I believe that this is very similar to IE6's rendering engine?
As an aside, I know this goes against the standard ethos, but I wish developers didn't bother with backward compatibility! Then perhaps there would be even more incentive for the minority of users with older browsers to update them. Thus making it easier for people like me who can't possibly test their small sites on dozens of browsers!
Not that it'll ever happen!
-
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2330
The DOCTYPE in the page is XHTML 1.0 Strict, if that helps.
I am def. going to update my browser soon; I noticed some features I've been waiting for in IE7 (such as proper png transparency support!) I'm a bit stuck at the moment with IE6 though as I need to use what's still a widespread version.
ntward, while I don't have any solid facts on it, I'd guess that IE6 users aren't a minority. ;) -
- Rank: Registered User
- Registered: Jan 28, 2007
- Last visit: Apr 16, 2009
- Posts: 43
Yes, even set to strict IE6 won't necessarily follow the rules, whereas IE7 should. But by changing the DTD I think you can make IE7 behave as IE6 - I think it was meant so webmasters can ensure compatibility. Might be useful for testing this on IE7 though. Just thought I'd suggest it!
Sorry, that wasn't meant to be a snipe at you John! Just a general comment, didn't want to open a can of worms!
From my stats (which admittedly only reflect a tiny portion of users from a small locality) IE6 is now a minority - if a significant one. IE7 last month had over 60% of the hits, with IE6 in the mid 30%, and about 2% were FF (it's not a tech oriented site at all, which is why I think this is so low compared to the general stats you sometimes see).
Cheers
- Moderated by:
- Support
