mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Slightly increase specificity for higher precedence, allowing default colors if the category has no color
This commit is contained in:
parent
14041ccde4
commit
30d02fc5f0
@ -36,7 +36,9 @@ foreach($categories as $cat)
|
||||
{
|
||||
if($cat['data']['color'])
|
||||
{
|
||||
$content .= ".cat_{$cat['id']} { background-color: {$cat['data']['color']};} /*{$cat['name']}*/\n";
|
||||
// Use slightly more specific selector that just class, to allow defaults
|
||||
// if the category has no color
|
||||
$content .= "tr.cat_{$cat['id']}, div.cat_{$cat['id']}, span.cat_{$cat['id']} { background-color: {$cat['data']['color']};} /*{$cat['name']}*/\n";
|
||||
}
|
||||
if($cat['data']['icon'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user