|
28 | 28 | --ifm-color-primary-lightest: #4fddbf; |
29 | 29 | --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); |
30 | 30 | } |
| 31 | + |
| 32 | +/* Force white text color for version dropdown badges with high specificity */ |
| 33 | +.navbar__item .dropdown__menu [class*="badge"] { |
| 34 | + color: white !important; |
| 35 | + background-color: var(--ifm-color-primary) !important; |
| 36 | +} |
| 37 | + |
| 38 | +/* Target badges in dropdown links specifically */ |
| 39 | +.navbar__item .dropdown__menu .dropdown__link [class*="badge"] { |
| 40 | + color: white !important; |
| 41 | + background-color: var(--ifm-color-primary) !important; |
| 42 | +} |
| 43 | + |
| 44 | +/* Target badges in active dropdown items */ |
| 45 | +.navbar__item .dropdown__menu [class*="dropdown"][class*="Active"] [class*="badge"] { |
| 46 | + color: white !important; |
| 47 | + background-color: var(--ifm-color-primary) !important; |
| 48 | +} |
| 49 | + |
| 50 | +/* Global targeting for any element with badge class pattern in navbar dropdown */ |
| 51 | +.navbar .dropdown__menu span[class*="badge"] { |
| 52 | + color: white !important; |
| 53 | + background-color: var(--ifm-color-primary) !important; |
| 54 | +} |
| 55 | + |
| 56 | +/* Additional targeting with CSS attribute selectors */ |
| 57 | +.navbar .dropdown__menu span[class^="badge"], |
| 58 | +.navbar .dropdown__menu span[class*="_badge"] { |
| 59 | + color: white !important; |
| 60 | + background-color: var(--ifm-color-primary) !important; |
| 61 | +} |
| 62 | + |
| 63 | +/* Ultra-specific targeting for CSS modules hashed badge classes */ |
| 64 | +.navbar__item .dropdown__menu li.dropdown__link--active span[class*="badge"], |
| 65 | +.navbar__item .dropdown__menu li[class*="dropdownItemActive"] span[class*="badge"] { |
| 66 | + color: white !important; |
| 67 | + background-color: var(--ifm-color-primary) !important; |
| 68 | + -webkit-text-fill-color: white !important; |
| 69 | +} |
| 70 | + |
| 71 | +/* Target any span element in dropdown that contains "Next" text */ |
| 72 | +.navbar .dropdown__menu span:not([class=""]):not([class*="group"]):not([class*="header"]) { |
| 73 | + color: white !important; |
| 74 | +} |
| 75 | + |
| 76 | +/* Specifically target version badge spans with maximum specificity */ |
| 77 | +html .navbar__item .dropdown__menu .dropdown__link span[class*="badge"] { |
| 78 | + color: white !important; |
| 79 | + background-color: var(--ifm-color-primary) !important; |
| 80 | + -webkit-text-fill-color: white !important; |
| 81 | + text-fill-color: white !important; |
| 82 | +} |
| 83 | + |
| 84 | +/* Nuclear option - target all spans in dropdown that might be badges */ |
| 85 | +body .navbar .dropdown__menu a.dropdown__link span { |
| 86 | + color: white !important; |
| 87 | + background-color: var(--ifm-color-primary) !important; |
| 88 | + -webkit-text-fill-color: white !important; |
| 89 | +} |
| 90 | + |
| 91 | +/* Target the exact pattern from developer tools */ |
| 92 | +.navbar .dropdown__menu .dropdown__link--active span[class^="badge_"], |
| 93 | +.navbar .dropdown__menu [class*="dropdownItemActive"] span[class^="badge_"] { |
| 94 | + color: white !important; |
| 95 | + background-color: var(--ifm-color-primary) !important; |
| 96 | + -webkit-text-fill-color: white !important; |
| 97 | +} |
| 98 | + |
| 99 | +/* Super specific - target any span that contains "Next" text */ |
| 100 | +.navbar .dropdown__menu span:contains("Next") { |
| 101 | + color: white !important; |
| 102 | + background-color: var(--ifm-color-primary) !important; |
| 103 | +} |
| 104 | + |
| 105 | +/* Ultimate fallback - style all small spans in dropdown menu */ |
| 106 | +html body .navbar__item .dropdown__menu span[class] { |
| 107 | + color: white !important; |
| 108 | +} |
| 109 | + |
| 110 | +/* Maximum specificity CSS - target exact structure from developer tools */ |
| 111 | +html body div.navbar__item div.dropdown__menu ul li.dropdown__link--active a.dropdown__link span[class*="badge"] { |
| 112 | + color: white !important; |
| 113 | + background-color: var(--ifm-color-primary) !important; |
| 114 | + -webkit-text-fill-color: white !important; |
| 115 | +} |
| 116 | + |
| 117 | +/* Try targeting by the exact hash pattern */ |
| 118 | +html body .navbar__item .dropdown__menu span[class*="badge_"] { |
| 119 | + color: white !important; |
| 120 | + background-color: var(--ifm-color-primary) !important; |
| 121 | + -webkit-text-fill-color: white !important; |
| 122 | +} |
0 commit comments