MediaWiki:Vector.css — различия между версиями

Материал из КинтВики
Перейти к: навигация, поиск
(Полностью удалено содержимое страницы)
(Метка: очистка)
 
Строка 1: Строка 1:
/* === Выравнивание и позиционирование Яндекс-поиска === */
 
#p-search {
 
    padding-top: 8px !important;    /* ← увеличивает отступ сверху — опускает всю строку вниз */
 
    padding-bottom: 6px !important;
 
    vertical-align: middle;
 
}
 
  
/* Основной контейнер формы Яндекса */
 
.ya-site-form {
 
    width: 100% !important;
 
    max-width: 320px !important;    /* подберите ширину под свой вкус (280–350px) */
 
    margin: 0 !important;
 
    padding: 0 !important;
 
}
 
 
/* Сам инпут (поле поиска) — увеличиваем высоту и выравниваем по центру */
 
.ya-site-form input[type="search"],
 
.ya-site-form input[type="text"] {
 
    height: 34px !important;        /* высота поля — можно поставить 32px или 36px */
 
    line-height: 34px !important;
 
    padding: 0 10px !important;
 
    box-sizing: border-box !important;
 
    vertical-align: middle !important;
 
    margin: 0 !important;
 
}
 
 
/* Кнопка "Найти" */
 
.ya-site-form input[type="submit"] {
 
    height: 34px !important;
 
    padding: 0 12px !important;
 
    line-height: 34px !important;
 
    vertical-align: middle !important;
 
    margin-left: 4px !important;
 
}
 
 
/* Убираем лишние отступы внутри формы Яндекса */
 
.ya-site-form form {
 
    margin: 0 !important;
 
    padding: 0 !important;
 
    display: flex !important;
 
    align-items: center !important;
 
}
 

Текущая версия на 15:56, 17 марта 2026