MediaWiki:Common.js: различия между версиями
Внешний вид
Glamyr (обсуждение | вклад) Отмена версии 8880, сделанной Glamyr (обсуждение) Метка: отмена |
Glamyr (обсуждение | вклад) Нет описания правки |
||
| Строка 20: | Строка 20: | ||
applyTheme(activeTheme); | applyTheme(activeTheme); | ||
let selectHtml = '<div id="p-tg-theme" style="margin: 0 10px; display: inline-block | let selectHtml = '<div id="p-tg-theme" style="margin: 0 10px; display: inline-block; vertical-align: middle; position: relative; width: 36px; height: 36px;">'; | ||
selectHtml += '<input type="checkbox" id="p-tg-theme-dropdown-checkbox" role="button" aria-haspopup="true" class="vector-dropdown-checkbox" style="display: none !important;">'; | selectHtml += '<input type="checkbox" id="p-tg-theme-dropdown-checkbox" role="button" aria-haspopup="true" class="vector-dropdown-checkbox" style="display: none !important;">'; | ||
selectHtml += '<label id="p-tg-theme-dropdown-label" for="p-tg-theme-dropdown-checkbox" aria-label="Смена темы" title="Выбрать тему фракции" style="display: flex | selectHtml += '<label id="p-tg-theme-dropdown-label" for="p-tg-theme-dropdown-checkbox" aria-label="Смена темы" title="Выбрать тему фракции" style="display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin: 0; border: none; background: transparent;">'; | ||
selectHtml += '<span class="tg-custom-palette-icon"></span>'; | selectHtml += '<span class="tg-custom-palette-icon"></span>'; | ||
selectHtml += '</label>'; | selectHtml += '</label>'; | ||