MediaWiki talk:Common.css

From Lotro-Wiki.com
Jump to navigation Jump to search
I had to cancle this
/* DEFAULT "sortable" tables alternating colors. */
table tr.odd {
	background-color:#EEEEFF;
}
table tr.even {
	background-color:white;
}

I had to cancle it -- turns out the Monster Play table designs, where sortable, had their colors destroyed by this so I had to roll it back...
--Eleazaros 12:50, 30 January 2008 (PST)

just add 'em as an alternative design like you did with mp tables, or does it require more work? --Xander 13:00, 30 January 2008 (PST)

I'm putting in a "default" sortable color schema for the site. By this I mean the built-in class="sortable" allows for support of 1 and only 1 alternating row color scheme to be used for a site. To implement multiple color schemas I'll need to rework the altRows code to work with sortable directly but, until then, I figured I'll put in a 'stock' alternating set of colors for use...

NOTE: this may cause some unexpected behavior. Existing "plain" tables that are sortable will auto-color based upon this change. If this messes with apps, simply remove/undo this change.

--Eleazaros 12:31, 30 January 2008 (PST)

ttipDemo added

This is a temporary addition. It's a preliminary for "look and feel" of the tooltips layout that I've been working on so folks can see it on my user page.

--Eleazaros 19:42, 5 February 2008 (PST)

altRowsMed

altRowsMed doesnt seem to work... --Xander 04:56, 20 March 2008 (PDT)

!important

Does someone know why we got those "!important" entries on each AltRow table header? I would like to get rid of it, as it blocks some edits I'd like to do. --EoD (talk) 11:50, 22 April 2012 (EDT)

Well, after our discussion in IRC I don't see the point in having them there. The worst that could happen is later down the road if we add another color that would effect the headers somewhere else in the .css file that is higher priority the color will change. Not a huge deal in my opinion anyway. So I say go for it EoD! Thanks for asking! Rogue (talk) 12:59, 22 April 2012 (EDT)

Where is the css file really ?

Trying to run the W3 css validator on the url: http://lotro-wiki.com/index.php/MediaWiki:Common.css -- it chokes on all of the extraneous "stuff." (In reference to EoD's question above about !Important.)

Is there an "easy" way to run it? Or do I have to copy the contents out and save in a text file and run that?

Wm Magill - Valamar - OTG/OTC (talk) 16:26, 11 July 2012 (EDT)
Without knowing my way around the Mediawiki software, I'm going to guess that it somehow pulls the text from this page on the fly for styling pages as it goes along (caching as appropriate). That's not even close to a professional estimate, but the short of it is that I dunno if there's an actual CSS file we can link to and validate. Meaning you're probably better off copying and running it through the validator (which it will fail miserably, I don't doubt) manually. If you really don't want to, you could try http://lotro-wiki.com/index.php?title=MediaWiki:Common.css&oldid=461554 (with or without the oldid part). That will probably choke it too, though, because it still displays all the other content that we ordinarily see on the wiki page - sidebar and headers and all. One final option is to use the Mediawiki Read API, which (if I understand correctly) will just feed you the content of the editable section of the page - the CSS that you want to validate. Don't ask me how to do that, though. :-P Sethladan 16:46, 12 July 2012 (EDT)

Looking for consistency in color names

As LOTRO it self has "just growed," so too has the Wiki. In "updating" numerous T7 issues, I have encountered not simply missing stuff, but bunches of "duplicate" things, (than you Turbine), which have had no kind of cross references... so they go undetected and therefore un-updated. Creating entries for "The Turbine Dev's definition" of "Armour Sets" (which are level linked, not necessarily "bonus linked") I discovered that certain items are in fact the same and available from multiple sources, with similar names but different classifications. Sheesh -- it's no wonder the Lorebook is broken!!!!


In trying to build a table of "standard colors" User:Magill/Sandbox-6#Named_Color_Chart to use in updating Help:Editing I am finding quite a number of inconsistencies in the color definitions in the Common.css file. (I have not even looked at the Common.js file to see what it redefines, as notes on the Help:editing page imply that it does.)

  • Some use standard names -- very good - the color names I have found are defined as "Accepted across all Standard Browsers."
  • Some use Hex values -- ok, but the resulting displays are not guaranteed across all "standard" browsers. Is that of concern?
I'm thinking forward here to the probability that the site will be displayed on "tablet" type devices, which may not have any sort of "reasonable" color renditions.
The underlying question is -- do these selections need to be unique or can we use standard names?
I realize that the 147 or 216 standard names do not have named colors close.
I suppose that if the table I've been building is "filled in" with all the numeric values used, then it won't be an issue as it becomes possible to visualize what is being used and allow someone to duplicate/modify things independent of the CSS, for individual tables.
  • Some use a 3 digit Hex value -- an depricated technique, which can easily lead to confusion. (From what I can tell, the technique is not even "taught" anymore.)
Minimally these should be converted to 6 digit hex. Easily fixed.

Then there is the big can of worms. It appears that some of the definitions are redundant (as in no longer needed) -- maybe.

Is there any way to tell ..."What links here" for these various CSS usages? —The preceding unsigned comment was added by Magill (Contribs • User Talk).
As far as I know, there is unfortunately no way to identify where a certain CSS definition is being used on the wiki. If we were to clean up and update them, we'd probably have to send bots crawling across pretty much every page to ensure that outdated definitions were brought into "compliance" lest we end up with ugly displays. This is probably one of the major reasons that this file has grown so much - it's much easier to just add a new definition instead of risking something going wrong if you tweak an old one. That said, I've complained to EoD (and probably Lotroadmin) about how many extraneous CSS declarations there are here that we don't need/use anywhere. Cleaning them out is another member of my I-wish-I-could-sit-down-and-do list.
Regarding colors, I know that I've used the shortcut three-digit hex codes because a) they're shorter and b) I thought they were generally more web-safe. Turns out that based on lists like this - which only includes a few said triplets - they're not. Oops! Live and learn. According to Wikipedia, they're still valid for use in CSS, but as you point out, their display is likely to be inconsistent unless they fit in those magical 147 standard colors.
Further, most of the color declarations on this CSS file seem to just be shortcuts - td.lightblue is just an abbreviation for | style="color:lightblue;" and has nothing to do with whether or not the color "lightblue" is supported or not by Lotrowiki - there's nothing to prevent me from doing this irrespective of whether or not a CSS declaration has been made in this (or any other) file. The point of this example is that we don't actually need declarations here for all 147 of those named colors, just the ones that are used often/required by templates.
This brings me to the question, I guess, of, "So what?" Not in the sense of "it doesn't mean anything," but "so what should we do about it?" Sethladan 16:46, 12 July 2012 (EDT)

Sadly, the "So what?" question is probably the dominant one. I got involved with the .css file simply because I wanted to create a table of the colors considered "standard" on the Wiki so that I can do the same thing you pointed out... this ... when creating pages/tables. I don't have much doubt (except maybe for IE) that the current versions of the currently popular browsers -- Safari, FireFox, Crome and IE, will all display things "pretty equally" -- more dependent upon the User's hardware than the browser. Similarly, one can always make the assumption, since the Wiki is aimed at those who play LOTRO, which is a demanding Graphics game, that the hardware being used to view the site will, itself, be capable of displaying pretty much "all" colors. Of course, what I have very minimal experience with is the current generation of Tablets. I happen to have an iPad I, so I'm probably in a minority. One wonders, what the Wiki looks like on a Kindle and similar devices? And, of course, do we care?

Wm Magill - Valamar - OTG/OTC (talk) 19:06, 13 July 2012 (EDT)