FS#5815 - Global declarations in Arch.css causing issues on Forums and Wiki

Attached to Project: Arch Linux
Opened by James Rayner (iphitus) - Friday, 10 November 2006, 23:42 GMT
Last edited by James Rayner (iphitus) - Saturday, 11 November 2006, 23:46 GMT
Task Type Bug Report
Category Web Sites
Status Closed
Assigned To Simo Leone (neotuli)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

http://www.archlinux.org/media/arch.css

First line:
[code]
* { margin: 0; padding: 0; }
[/code]

It applies to EVERYTHING. Hence the problems in the Forum's Arch theme, and the wiki's total lack of spacing anywhere.

Further down in the CSS, there's code thats applies to the wiki -- this should not be in the global header file. It should be in the mediawiki CSS.

This CSS file needs to be rewritten, with local things inside declared locally. Things for the main page do not need to be specified for the wiki and the forums, and thus can be included in a seperate CSS file on the homepage only. Likewise for forum and wiki formatting.

Solution:
Just like any good application, the CSS needs attention to variable scope
a) Create a seperate CSS file for the homepage, making the CSS for the header a global CSS. It's fine to include more than one CSS file.
b) Remove the wiki specific and any forum specific CSS from the header, and move it to the forum/wiki CSS. Any further forum/wiki issues can be resolved within their own templates.

Would it also be possible, for me to have access to the website/forum/wiki admin(for wiki)/templates/css/source, so that issues with formatting and appearance can be resolved quicker and save you the trouble? There's also some mediawiki extensions that may be useful that could be installed.
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Tuesday, 03 April 2007, 16:04 GMT
Reason for closing:  Fixed
Comment by Roman Kyrylych (Romashka) - Saturday, 11 November 2006, 10:54 GMT
Forums issues are fixed now.
http://bugs.archlinux.org/task/5703
But you are right. All CSS need to be rewritten.
Comment by James Rayner (iphitus) - Saturday, 11 November 2006, 23:27 GMT
The forum issues are not fixed. There's still some spacing issues. The solution you posted was only a basic workaround. See the screenshots linked in that bug where I reopened it.

James
Comment by Roman Kyrylych (Romashka) - Monday, 13 November 2006, 19:46 GMT
Mmm.... Judd, what's going on with padding now? Some [code] sections have _double_ padding now, some _zero_ at all. :-/
Comment by Simo Leone (neotuli) - Saturday, 02 December 2006, 03:38 GMT
I think it's a good thing, since it makes the CSS more cross-browser compatible and forces the rest of the CSS code to be more explicit. If anything, we should be fixing our other sites, and/or finding software that uses CSS the way it's supposed to be used (not mixed in with in-html tags).
Comment by James Rayner (iphitus) - Saturday, 02 December 2006, 05:45 GMT
because of that attribute, *everything* has to explicitly set, and I mean, every div, span and table, when the defaults, are consistent and standard across browsers and have been for a long time.

that'd also make the CSS fairly large and unwieldly, having definitions for everything. not a great idea.

James
Comment by Simo Leone (neotuli) - Wednesday, 24 January 2007, 00:51 GMT
The punbb forum theme does not directly use the arch stylesheet. That problem will disappear this friday.

I'm working on the wiki.
Comment by Andreas Radke (AndyRTR) - Tuesday, 03 April 2007, 12:03 GMT
can it be closed?

Loading...