wie kann man den Hintergrund einer Mail-Karte in der Kartenansicht in der Farbe des ersten zugeordneten Schlagwortes färben?
Dein Code oben färbt es statisch ein. Ich möchte gerne mit dynamischer Färbung testen.
Spoiler anzeigen
CSS
#threadTree tbody tr[data-properties~="unread"] .card-container {
background-color: #0082FC !important;
}
#threadTree tbody tr[data-properties~="unread"][data-properties~="new"] .card-container {
background-color: #006800 !important;
}
#threadTree tbody tr.selected .card-container {
background-color: #800 !important;
}
#threadTree tbody tr .card-container:hover,
#threadTree tbody tr[data-properties~="unread"] .card-container:hover,
#threadTree tbody tr[data-properties~="unread"][data-properties~="new"] .card-container:hover,
#threadTree tbody tr.selected .card-container:hover {
background-color: #D1E2F2 !important;
color: #000 !important;
}
Alles anzeigen
Geht das mit der Kartenansicht? Das wäre dann nämlich in etwa so, wie es in der Tabellenansicht möglich ist.
Gruß
Sehvornix