Skip to main content
Minor CSS stuffz Started by Antechinus · · Read 1880 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Minor CSS stuffz

If I can figure out how my old GitHub account works (assuming it still does) I may even post an issue thingy over there. In the meantime...

Code: (index_light.css) [Select]
legend {
background: url(../../images/selected_open.png) no-repeat scroll left center transparent;
cursor: pointer;
padding: 0 0 2px 20px;
color: #333;
font-size: 1.071em;
margin-left: 15px;
}
.collapsed legend {
background: url(../../images/selected.png) no-repeat scroll left center transparent;
}

You don't need to get that verbose with background declarations. If you don't declare a background colour, it will default to transparent anyway. If you don't declare fixed positioning, it will default to scroll anyway. If you want to save yerself some extra bytes, you can use teh numbahz for the positioning too. So this lot will do exactly the same job as the previous lot, but save you a pile of goop:

Code: [Select]
legend {
background: url(../../images/selected_open.png) 0 50% no-repeat;
cursor: pointer;
padding: 0 0 2px 20px;
color: #333;
font-size: 1.071em;
margin-left: 15px;
}
.collapsed legend {
background: url(../../images/selected.png) 0 50% no-repeat;
}

 :)

(Same goop is in index_besociopathic.css too)
Last Edit: August 26, 2015, 10:51:41 pm by Antechinus
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P


 

Re: Minor CSS stuffz

Reply #2

Thanks .. should be able to add that in to 1.0.5