Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

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

Страница интерфейса MediaWiki
Нет описания правки
мНет описания правки
 
(не показано 29 промежуточных версий этого же участника)
Строка 1: Строка 1:
.infobox {
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded');
width: auto;
 
    max-width: 400px;
:root {
    min-width: 100px;
--bg-hover: #222631;
    border: 1px solid #3A3D4A;
--bg-main: #12141A;
     border-radius: 0 0 8px 8px;
--bg-nav: #1A1D26;
     background-color: #12141A;
--accent: #2962ff;
     color: #e0e0e0;
--border: #3A3D4A;
     font-size: 90%;
--text-main: #e0e0e0;
--text-muted: #b0b0b0;
--white: #ffffff;
}
 
.wikinotice {
    margin: 1em 0;
    padding: 12px;
     border-radius: 4px;
    border-left: 4px solid #444;
     background-color: #1a1b26;
     color: #e1e1e1;
}
 
.wikinotice-title {
    font-weight: bold;
    margin-bottom: 5px;
     font-size: 1.1em;
}
 
.wikinotice-content {
     line-height: 1.5;
     line-height: 1.5;
    float: right;
    margin: 0.5em 0 0.5em 1em;
    clear: right;
}
}


.infobox .infobox-title {
.wikinotice.notice-warning {
     font-size: 125%;
     background-color: #2a2415;
     font-weight: bold;
     border-left-color: #ffab00;
     text-align: center;
}
     padding: 0.5em;
.wikinotice.notice-warning .wikinotice-title {
     background-color: #000;
    color: #ffd54f;
     border: 1px solid #222;
}
     border-radius: 8px 8px 0 0;
 
.wikinotice.notice-info {
     background-color: #151d2a;
     border-left-color: #2962ff;
}
.wikinotice.notice-info .wikinotice-title {
    color: #90caf9;
}
 
.wikinotice.notice-success {
     background-color: #162317;
     border-left-color: #4caf50;
}
.wikinotice.notice-success .wikinotice-title {
    color: #a5d6a7;
}
 
.yastre-carousel-container {
    position: relative;
     width: 100%;
    max-width: 700px;
    margin: 20px auto;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
}


.infobox .infobox-image {
.yastre-carousel {
     text-align: center;
     position: relative;
     padding: 10px;
    width: 100%;
     height: 100%;
}
}


.infobox .infobox-header {
.carousel-item {
     font-weight: bold;
     position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    width: 300px;
    height: fit-content;
    transition: transform 0.4s ease, opacity 0.4s ease, z-index 0s;
     text-align: center;
     text-align: center;
     padding: 0.4em;
     opacity: 0;
     background-color: #22242B;
     z-index: 0;
    pointer-events: none;
}
}


.infobox .infobox-row {
.carousel-item.active {
     display: flex;
     transform: translateX(0) scale(1);
     justify-content: space-between;
     opacity: 1;
     border-top: 1px solid #3A3D4A;
     z-index: 3;
     padding: 0.4em;
     pointer-events: auto;
}
}


.infobox .infobox-label {
.carousel-item.prev {
width: 100%;
    transform: translateX(-60%) scale(0.8);
max-width: 30%;
    opacity: 0.6;
min-width: 10%;
     z-index: 2;
     font-weight: bold;
     pointer-events: auto;
     padding-right: 1em;
     cursor: pointer;
     color: #b0b0b0;
}
}


.infobox .infobox-data {
.carousel-item.next {
width: 100%;
    transform: translateX(60%) scale(0.8);
max-width: 70%;
    opacity: 0.6;
min-width: 10%;
    z-index: 2;
     text-align: left;
     pointer-events: auto;
     width: 60%;
     cursor: pointer;
}
}


.infobox .infobox-image a.mw-file-description {
.carousel-item .carousel-image img {
     display: block;
    max-width: 100%;
     margin-bottom: 0.5em;
    height: auto;
     border-radius: 8px;
     box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
}


.infobox .infobox-data ul {
.trend-up, .trend-down, .trend-neutral {
     margin: 0;
     font-size: 1.4em;
     padding-left: 1.5em;
     vertical-align: middle;
     list-style-position: inside;
     user-select: none;
}
}


.infobox .infobox-data pre,
.trend-up { color: #66bb6a; }
.infobox .infobox-data p {
.trend-down { color: red; }
    background-color: transparent;
.trend-neutral { color: gray; }
    border: none;
 
    margin: 0;
.material-symbols-rounded {
    padding: 0;
user-select: none;
    font-family: inherit;
vertical-align: middle;
    line-height: inherit;
    white-space: normal;
}
}

Текущая версия от 06:45, 17 мая 2026

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded');

:root {
	--bg-hover: #222631;
	--bg-main: #12141A;
	--bg-nav: #1A1D26;
	--accent: #2962ff;
	--border: #3A3D4A;
	--text-main: #e0e0e0;
	--text-muted: #b0b0b0;
	--white: #ffffff;
}

.wikinotice {
    margin: 1em 0;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #444;
    background-color: #1a1b26;
    color: #e1e1e1;
}

.wikinotice-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.wikinotice-content {
    line-height: 1.5;
}

.wikinotice.notice-warning {
    background-color: #2a2415;
    border-left-color: #ffab00;
}
.wikinotice.notice-warning .wikinotice-title {
    color: #ffd54f;
}

.wikinotice.notice-info {
    background-color: #151d2a;
    border-left-color: #2962ff;
}
.wikinotice.notice-info .wikinotice-title {
    color: #90caf9;
}

.wikinotice.notice-success {
    background-color: #162317;
    border-left-color: #4caf50;
}
.wikinotice.notice-success .wikinotice-title {
    color: #a5d6a7;
}

.yastre-carousel-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.yastre-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    width: 300px;
    height: fit-content;
    transition: transform 0.4s ease, opacity 0.4s ease, z-index 0s;
    text-align: center;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.carousel-item.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
}

.carousel-item.prev {
    transform: translateX(-60%) scale(0.8);
    opacity: 0.6;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.carousel-item.next {
    transform: translateX(60%) scale(0.8);
    opacity: 0.6;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.carousel-item .carousel-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.trend-up, .trend-down, .trend-neutral {
    font-size: 1.4em;
    vertical-align: middle;
    user-select: none;
}

.trend-up { color: #66bb6a; }
.trend-down { color: red; }
.trend-neutral { color: gray; }

.material-symbols-rounded {
	user-select: none;
	vertical-align: middle;
}