blob: 3915b62a0048bfd3c3a02daf63c0cc5aada93f46 [file] [log] [blame]
Adrià Vilanova Martínez7ad72fe2023-11-02 21:54:41 +01001/**
2 * Some fixes for the interop PE badge components in the Community Console.
3 *
4 * The |.scTailwindThreadPost_headerUserinfotag| elements have a
5 * |style="--color:#aaaaaa"| attribute which indicates the color of the badge,
6 * and we are transforming it to the dark mode color accordingly.
7 *
8 * The | .scTailwindThreadMessageMessageinteractionsuser-label| elements have a
9 * |style="--userLabelColor: #aaaaaa"| attribute, so we do the same there.
10 *
11 * We match only the hex color instead of the whole attribute because over time
12 * the attributes have changed (spaces have been removed, for instance).
13 */
14
15// Alumnus
16.scTailwindThreadPost_headerUserinfotag[style*="#0F9D58" i],
17 .scTailwindThreadMessageMessageinteractionsuser-label[style*="#0F9D58" i] {
18 --color: #C4EED0!important;
19 --userLabelColor: #C4EED0!important;
20}
21
22// Bronze
23.scTailwindThreadPost_headerUserinfotag[style*="#896E63" i],
24 .scTailwindThreadMessageMessageinteractionsuser-label[style*="#896E63" i] {
25 --color: #B9ABA3!important;
26 --userLabelColor: #B9ABA3!important;
27}
28
29// Silver
30.scTailwindThreadPost_headerUserinfotag[style*="#5F6368" i],
31 .scTailwindThreadMessageMessageinteractionsuser-label[style*="#5F6368" i] {
32 --color: #C4C7C5!important;
33 --userLabelColor: #C4C7C5!important;
34}
35
36// Gold
37.scTailwindThreadPost_headerUserinfotag[style*="#E37400" i],
38 .scTailwindThreadMessageMessageinteractionsuser-label[style*="#E37400" i] {
39 --color: #F09D00!important;
40 --userLabelColor: #F09D00!important;
41}
42
43// Platinum
44.scTailwindThreadPost_headerUserinfotag[style*="#455A64" i],
45 .scTailwindThreadMessageMessageinteractionsuser-label[style*="#455A64" i] {
46 --color: #E3E3E3!important;
47 --userLabelColor: #E3E3E3!important;
48}
49
50// Diamond, Community Specialist, Community Manager and Google Employee
51.scTailwindThreadPost_headerUserinfotag[style*="#1A73E8" i],
52 .scTailwindThreadMessageMessageinteractionsuser-label[style*="#1A73E8" i] {
53 --color: #A8C7FA!important;
54 --userLabelColor: #A8C7FA!important;
55}