Difference between revisions of "MediaWiki talk:Common.css"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Redundant Code)
 
m (making it able to read for everyone ;-))
 
Line 1: Line 1:
 
== Redundant Code ==
 
== Redundant Code ==
  
I took out a lot of redundant code, keep in mind that you can have multiple classes that overwrite each other (the segments that differ) simply by writing <div class="class1 class2 class3"> etc. so you can make everything easier to edit if you have a basic code (class1) and just put the parts that need changing (for example background-image:url('EXAMPLE.png') which cannot be easily overwritten by HTML code).
+
I took out a lot of redundant code, keep in mind that you can have multiple classes that overwrite each other (the segments that differ) simply by writing ''<nowiki><div class="class1 class2 class3"></nowiki>'' etc. so you can make everything easier to edit if you have a basic code (class1) and just put the parts that need changing (for example ''background-image:url('EXAMPLE.png')'' which cannot be easily overwritten by HTML code).
 
I did this for .infobox and .build. I also added some comments to make everything a little more readable, I hope.  I have not yet touched on the main menu or the navbars, but I think there might be redundant code aswell.  
 
I did this for .infobox and .build. I also added some comments to make everything a little more readable, I hope.  I have not yet touched on the main menu or the navbars, but I think there might be redundant code aswell.  
  
 
Another small thing that needs noting, right now making text bold (with the '''TEXT''' markup) in parts of the main menu style will automatically set an arrow next to it. This can be a little irritating and I will try to change it, so we have more control over what appears and what not.
 
Another small thing that needs noting, right now making text bold (with the '''TEXT''' markup) in parts of the main menu style will automatically set an arrow next to it. This can be a little irritating and I will try to change it, so we have more control over what appears and what not.
 
--[[User:Wyeth|Wyeth]] 10:36, 22 November 2011 (UTC)
 
--[[User:Wyeth|Wyeth]] 10:36, 22 November 2011 (UTC)

Latest revision as of 01:41, 23 November 2011

Redundant Code

I took out a lot of redundant code, keep in mind that you can have multiple classes that overwrite each other (the segments that differ) simply by writing <div class="class1 class2 class3"> etc. so you can make everything easier to edit if you have a basic code (class1) and just put the parts that need changing (for example background-image:url('EXAMPLE.png') which cannot be easily overwritten by HTML code). I did this for .infobox and .build. I also added some comments to make everything a little more readable, I hope. I have not yet touched on the main menu or the navbars, but I think there might be redundant code aswell.

Another small thing that needs noting, right now making text bold (with the TEXT markup) in parts of the main menu style will automatically set an arrow next to it. This can be a little irritating and I will try to change it, so we have more control over what appears and what not. --Wyeth 10:36, 22 November 2011 (UTC)