|
| 1 | +/* Version switcher and language switcher */ |
| 2 | +.version-switcher__button, |
| 3 | +#language-switcher-button { |
| 4 | + font-size: 1rem !important; |
| 5 | + color: #495057 !important; |
| 6 | + border: 1px solid #dee2e6 !important; |
| 7 | +} |
| 8 | + |
| 9 | +.version-switcher__button:hover, |
| 10 | +#language-switcher-button:hover, |
| 11 | +.version-switcher__button:focus, |
| 12 | +#language-switcher-button:focus { |
| 13 | + background-color: #f8f9fa !important; |
| 14 | + border-color: transparent !important; |
| 15 | + box-shadow: 0 0 0 0.1875rem #e89217 !important; |
| 16 | +} |
| 17 | + |
| 18 | +.version-switcher__button:hover, |
| 19 | +#language-switcher-button:hover { |
| 20 | + color: #222832 !important; |
| 21 | +} |
| 22 | + |
| 23 | +.version-switcher__button:focus, |
| 24 | +#language-switcher-button:focus { |
| 25 | + outline: none !important; |
| 26 | +} |
| 27 | + |
| 28 | +.version-switcher__button::after, |
| 29 | +#language-switcher-button::after { |
| 30 | + content: "" !important; |
| 31 | + display: inline-block !important; |
| 32 | + margin-left: 0.5rem !important; |
| 33 | + vertical-align: 0.125em !important; |
| 34 | + border: 0.3em solid transparent !important; |
| 35 | + border-top-color: #495057 !important; |
| 36 | + border-bottom-width: 0 !important; |
| 37 | +} |
| 38 | + |
| 39 | +.version-switcher__button:hover::after, |
| 40 | +#language-switcher-button:hover::after { |
| 41 | + border-top-color: #222832 !important; |
| 42 | +} |
| 43 | + |
| 44 | +.version-switcher__button .caret, |
| 45 | +.version-switcher__button::before { |
| 46 | + display: none !important; |
| 47 | +} |
| 48 | + |
| 49 | +.version-switcher__menu .list-group-item:hover, |
| 50 | +.dropdown-item:hover { |
| 51 | + background-color: #f8f9fa !important; |
| 52 | + color: #e89217 !important; |
| 53 | + text-decoration: underline !important; |
| 54 | + text-decoration-thickness: 0.15rem !important; |
| 55 | +} |
| 56 | + |
| 57 | +.dropdown-item.active { |
| 58 | + color: #528fe4 !important; |
| 59 | + background-color: #ffffff !important; |
| 60 | + box-shadow: inset 3px 0 0 #528fe4 !important; |
| 61 | +} |
| 62 | + |
| 63 | +.dropdown-menu > li:not(:last-child) { |
| 64 | + border-bottom: 1px solid #dee2e6 !important; |
| 65 | +} |
| 66 | + |
| 67 | +.dropdown-item.active:hover { |
| 68 | + background-color: #f8f9fa !important; |
| 69 | + color: #e89217 !important; |
| 70 | +} |
| 71 | + |
| 72 | + |
| 73 | +html[data-theme=dark] .version-switcher__button, |
| 74 | +html[data-theme=dark] #language-switcher-button { |
| 75 | + color: #9ca4af !important; |
| 76 | + background-color: #121212 !important; |
| 77 | + border-color: #48566b !important; |
| 78 | +} |
| 79 | + |
| 80 | +html[data-theme=dark] .version-switcher__button:hover, |
| 81 | +html[data-theme=dark] #language-switcher-button:hover, |
| 82 | +html[data-theme=dark] .version-switcher__button:focus, |
| 83 | +html[data-theme=dark] #language-switcher-button:focus{ |
| 84 | + color: #ced6dd !important; |
| 85 | + border-color: transparent !important; |
| 86 | +} |
| 87 | + |
| 88 | +html[data-theme=dark] .version-switcher__button:focus, |
| 89 | +html[data-theme=dark] #language-switcher-button:focus{ |
| 90 | + outline: none !important; |
| 91 | +} |
| 92 | + |
| 93 | +html[data-theme=dark] .version-switcher__button::after, |
| 94 | +html[data-theme=dark] #language-switcher-button::after { |
| 95 | + border-top-color: #9ca4af !important; |
| 96 | +} |
| 97 | + |
| 98 | +html[data-theme=dark] .version-switcher__button:hover::after, |
| 99 | +html[data-theme=dark] #language-switcher-button:hover::after { |
| 100 | + border-top-color: #ced6dd !important; |
| 101 | +} |
| 102 | + |
| 103 | +html[data-theme=dark] .version-switcher__menu, |
| 104 | +html[data-theme=dark] .version-switcher__menu .list-group-item { |
| 105 | + background-color: #121212 !important; |
| 106 | +} |
| 107 | + |
| 108 | +html[data-theme=dark] .version-switcher__menu .list-group-item:hover, |
| 109 | +html[data-theme=dark] .dropdown-item:hover { |
| 110 | + background-color: #0D0D0D !important; |
| 111 | + color: #e89217 !important; |
| 112 | + text-decoration: underline !important; |
| 113 | + text-decoration-thickness: 0.15rem !important; |
| 114 | +} |
| 115 | + |
| 116 | +html[data-theme=dark] .dropdown-item.active { |
| 117 | + background-color: #121212 !important; |
| 118 | +} |
| 119 | + |
| 120 | +html[data-theme=dark] .dropdown-item.active:hover { |
| 121 | + background-color: #0D0D0D !important; |
| 122 | +} |
| 123 | + |
| 124 | +.bd-header-article .version-switcher__button, |
| 125 | +.bd-header-article #language-switcher-button { |
| 126 | + margin: 0 !important; |
| 127 | +} |
| 128 | + |
| 129 | +html[data-theme=dark] .dropdown-menu > li:not(:last-child) { |
| 130 | + border-bottom: 1px solid #48566b !important; |
| 131 | +} |
0 commit comments