ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Antechinus on August 26, 2015, 10:42:02 pm

Title: Minor CSS stuffz
Post by: Antechinus on August 26, 2015, 10:42:02 pm
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)
Title: Re: Minor CSS stuffz
Post by: Flavio93Zena on August 27, 2015, 01:27:27 am
Ahahahahahahah ;D
Title: Re: Minor CSS stuffz
Post by: Spuds on August 27, 2015, 07:33:24 am
Thanks .. should be able to add that in to 1.0.5