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

Материал из Свободное время
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
/*ТУТ ПРО ЛОГОТИП */
/*ТУТ ПРО ЛОГОТИП */
/* Центрировать весь хедер */
/* Центрированный хедер */
#mw-head-base {
#mw-head-base {
     display: flex !important;
     display: flex !important;
     justify-content: center !important;
     justify-content: center !important;
     align-items: center !important;
     align-items: center !important;
    height: 160px !important;
     position: relative !important;
     position: relative !important;
    height: 160px !important;
    padding: 0 !important;
}
}


/* Логотип слева в центре */
/* Логотип слева */
.mw-logo-container {
.mw-logo-container {
     position: absolute !important;
     position: absolute !important;
Строка 16: Строка 15:
     top: 50% !important;
     top: 50% !important;
     transform: translateY(-50%) !important;
     transform: translateY(-50%) !important;
    z-index: 10 !important;
     width: 150px !important;
     width: 150px !important;
     height: 150px !important;
     height: 150px !important;
    z-index: 10 !important;
}
}


Строка 30: Строка 29:
}
}


/* Название по центру */
/* ТОЧНОЕ центрирование названия - ВСЕ селекторы Vector-2022 */
.mw-h1-title,
#firstHeading,
#firstHeading,
.siteTitle {
.mw-first-heading,
.vector-header-container .mw-h1-title,
#mw-head-base h1,
#mw-panel h1,
.siteName,
#siteName {
     position: absolute !important;
     position: absolute !important;
     left: 50% !important;
     left: 50% !important;
Строка 39: Строка 42:
     transform: translate(-50%, -50%) !important;
     transform: translate(-50%, -50%) !important;
     margin: 0 !important;
     margin: 0 !important;
    padding: 0 !important;
    font-size: 1.8em !important;
     z-index: 5 !important;
     z-index: 5 !important;
     font-size: 1.8em !important;
     text-align: center !important;
}
}



Версия от 15:11, 30 декабря 2025

/*ТУТ ПРО ЛОГОТИП */
/* Центрированный хедер */
#mw-head-base {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 160px !important;
    position: relative !important;
}

/* Логотип слева */
.mw-logo-container {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 150px !important;
    height: 150px !important;
    z-index: 10 !important;
}

.mw-logo {
    background-image: url('https://svremya.org/images/logo.png') !important;
    background-size: 150px 150px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 150px !important;
    height: 150px !important;
}

/* ТОЧНОЕ центрирование названия - ВСЕ селекторы Vector-2022 */
#firstHeading,
.mw-first-heading,
.vector-header-container .mw-h1-title,
#mw-head-base h1,
#mw-panel h1,
.siteName,
#siteName {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.8em !important;
    z-index: 5 !important;
    text-align: center !important;
}

/*ДАЛЕЕ НЕ ПРО ЛОГОТИП */


.extimg-400 img {
    width: 400px !important;
    height: auto;
    display: block;
}

.ext-right {
    float: right;
    margin: 0 0 1em 1em;
    clear: right;
}