Farmer Franklin
replaced with nth-child, seemed to work fine in test.
may i ask, was there particular reason you mentioned nth-of-type above? (performance or something?)
None really significant, just ease of use in most common case
For example you have 5 "ol" tags with one "center" tag slipped between them
ol - ol -ol - center - ol - ol
If you want to aim the fourth ol tags, you have to use nth-child(5) or nth-of-type(4). In more dynamic contents, this could pose a bit problem.
There is an advanced trick to this however, you can create a IF-ELSE situation with css using this. Like for example #id_details:nth-child(1) means it will only aim at details panel ONLY IF the details panel is the first panel of the column (aka first child) ELSE it is invalid. Of course nth-of-type cant create such situation since it will always valid even though.
With simple CSS like
/*--IF details panel is first child, then...--*/
.column #id_details:nth-child(1) {
color:black;
background:red;
}
/*---else...---*/
#id_details {
color:white;
background:blue;
}
This can be combined with some of the dynamic content of Gaia like the badge panel and precision aim of [attr*='value'] and specificity-overwrite rules selector could create some of the best tricks peeps ever seen in Gaia.