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

Нет описания правки
Skin deploy: shared notice component + hatnote templates
 
(не показано 17 промежуточных версий 1 участника)
Строка 1: Строка 1:
.Program {
/* Контейнер инфобокса */
     background: #252525;
.infobox {
     border: 1px solid #aaa;
     display: flex;                  /* Используем flexbox для размещения элементов */
     float: right;
    flex-direction: column;        /* Элементы располагаются вертикально */
     margin: 0 0 1em 1em;
    width: 250px;                  /* Фиксированная ширина инфобокса */
    padding: 1em;
    padding: 10px;                 /* Отступы внутри инфобокса */
    width: 400px;
     border: 1px solid #ccc;        /* Рамка вокруг инфобокса */
    border-radius: 8px;             /* Округленные углы */
    background-color: #fafafa;      /* Светлый фон */
    margin-left: 10px;              /* Отступ слева */
     float: right;                   /* Позиционирование инфобокса справа */
     margin-bottom: 10px;            /* Отступ снизу */
}
 
/* Изображение в инфобоксе */
.infobox img {
    width: 100%;                    /* Изображение растягивается по ширине блока */
    height: auto;                  /* Высота подстраивается по пропорциям */
    border-radius: 8px;            /* Округленные углы */
    margin-bottom: 10px;            /* Отступ снизу от изображения */
}
 
/* Заголовок инфобокса */
.infobox-title {
    font-size: 18px;                /* Размер шрифта для заголовка */
    font-weight: bold;              /* Жирный шрифт */
    color: #0044cc;                /* Синий цвет */
    margin-bottom: 5px;            /* Отступ снизу */
}
 
/* Текстовое содержимое инфобокса */
.infobox-content p {
    font-size: 14px;                /* Размер шрифта для текста */
    margin: 5px 0;                  /* Отступы между строками */
}
 
/* Основные стили для временной линии */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}
 
.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #ddd;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
 
.timeline-event {
  position: relative;
  margin-bottom: 40px;
  padding-left: 50%;
}
 
.timeline-event .date {
  font-size: 16px;
  font-weight: bold;
  position: absolute;
  left: -100px;
  top: 0;
  text-align: right;
  width: 90px;
}
 
.timeline-event .event {
  background-color: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 80%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
}
.Program-title {
 
    font-size: 2em;
.timeline-event:nth-child(odd) {
    text-align: center;
  padding-right: 50%;
  padding-left: 0;
}
 
.timeline-event:nth-child(odd) .date {
  left: auto;
  right: -100px;
  text-align: left;
}
}
.Program-logo {
 
    text-align: center;
.timeline-event:nth-child(odd) .event {
  background-color: #e0f7fa;
  border-color: #00bcd4;
}
}
.Program th {
 
     text-align: right;
/* Увеличить логотип в Vector 2022 */
    vertical-align: top;
.mw-logo img {
     width: 120px;
     height: 80px !important;
     width: auto !important;
}
}
.Program td {
 
     vertical-align: top;
/* Разместить логотип над текстом */
.mw-logo {
     flex-direction: column !important;
    align-items: flex-start !important;
}
}


/* Стиль для инфобокса */
/* Убрать текст рядом с логотипом */
.infobox {
.mw-logo-wordmark {
    border: 1px solid #aaa;
     display: none !important;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 250px;
    padding: 10px;
    margin: 10px;
     float: right;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
}


.infobox h3 {
/* Сужаем левую панель в Vector 2022 */
     margin-top: 0;
:root {
    font-size: 1.2em;
     --vector-sidebar-width: 176px;
    color: #333;
    font-weight: bold;
    text-align: center;
}
}


.infobox img {
/* Убираем лишний отступ контейнера */
     width: 100%;
.mw-page-container {
    height: auto;
     max-width: none;
    border-radius: 5px;
    margin-bottom: 10px;
}
}


.infobox p {
/* Убрать иконку (букву П) слева от логотипа в Vector 2022 */
    font-size: 0.9em;
.vector-header .mw-logo-icon,
    line-height: 1.4;
.vector-header .mw-logo-icon img {
    color: #555;
     display: none !important;
     margin: 5px 0;
}
}


.infobox .infobox-label {
/* ==== Пометки о доработке — шаблон «Доработка» ====
     font-weight: bold;
  Блочные плашки перенесены в общий компонент {{Плашка}}; их оформление
     color: #333;
  (карточка, кружок-маркер, типографика, ссылки) живёт в CSS скина —
     margin-right: 5px;
  resources/css/content/media.css, селекторы .protest-notice*.
  Здесь остаётся только то, что НЕ является блочной плашкой. */
 
/* инлайновая метка — «Источник», «Проверить|формат=метка» */
.dorabotka-metka {
    white-space: nowrap;
     font-size: 78%;
    margin-left: 2px;
}
.dorabotka-metka .dorabotka-metka-in {
    padding: 0 4px;
     color: #8a6d1f;
    background: #fdf6e3;
     border: 1px solid #e0d3a3;
    border-radius: 2px;
    cursor: help;
}
}


.infobox .infobox-value {
/* подсветка проблемного фрагмента — шаблон {{Дп}} */
     color: #555;
.dorabotka-target {
     font-style: italic;
     background: #fdf3d5;
    box-shadow: inset 0 -2px 0 #e6c34a;
     border-radius: 2px;
}
}

Текущая версия от 09:30, 19 августа 2026

/* Контейнер инфобокса */
.infobox {
    display: flex;                  /* Используем flexbox для размещения элементов */
    flex-direction: column;         /* Элементы располагаются вертикально */
    width: 250px;                   /* Фиксированная ширина инфобокса */
    padding: 10px;                  /* Отступы внутри инфобокса */
    border: 1px solid #ccc;         /* Рамка вокруг инфобокса */
    border-radius: 8px;             /* Округленные углы */
    background-color: #fafafa;      /* Светлый фон */
    margin-left: 10px;              /* Отступ слева */
    float: right;                   /* Позиционирование инфобокса справа */
    margin-bottom: 10px;            /* Отступ снизу */
}

/* Изображение в инфобоксе */
.infobox img {
    width: 100%;                    /* Изображение растягивается по ширине блока */
    height: auto;                   /* Высота подстраивается по пропорциям */
    border-radius: 8px;             /* Округленные углы */
    margin-bottom: 10px;            /* Отступ снизу от изображения */
}

/* Заголовок инфобокса */
.infobox-title {
    font-size: 18px;                /* Размер шрифта для заголовка */
    font-weight: bold;              /* Жирный шрифт */
    color: #0044cc;                 /* Синий цвет */
    margin-bottom: 5px;             /* Отступ снизу */
}

/* Текстовое содержимое инфобокса */
.infobox-content p {
    font-size: 14px;                /* Размер шрифта для текста */
    margin: 5px 0;                  /* Отступы между строками */
}

/* Основные стили для временной линии */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #ddd;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-event {
  position: relative;
  margin-bottom: 40px;
  padding-left: 50%;
}

.timeline-event .date {
  font-size: 16px;
  font-weight: bold;
  position: absolute;
  left: -100px;
  top: 0;
  text-align: right;
  width: 90px;
}

.timeline-event .event {
  background-color: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 80%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-event:nth-child(odd) {
  padding-right: 50%;
  padding-left: 0;
}

.timeline-event:nth-child(odd) .date {
  left: auto;
  right: -100px;
  text-align: left;
}

.timeline-event:nth-child(odd) .event {
  background-color: #e0f7fa;
  border-color: #00bcd4;
}

/* Увеличить логотип в Vector 2022 */
.mw-logo img {
    height: 80px !important;
    width: auto !important;
}

/* Разместить логотип над текстом */
.mw-logo {
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* Убрать текст рядом с логотипом */
.mw-logo-wordmark {
    display: none !important;
}

/* Сужаем левую панель в Vector 2022 */
:root {
    --vector-sidebar-width: 176px;
}

/* Убираем лишний отступ контейнера */
.mw-page-container {
    max-width: none;
}

/* Убрать иконку (букву П) слева от логотипа в Vector 2022 */
.vector-header .mw-logo-icon,
.vector-header .mw-logo-icon img {
    display: none !important;
}

/* ==== Пометки о доработке — шаблон «Доработка» ====
   Блочные плашки перенесены в общий компонент {{Плашка}}; их оформление
   (карточка, кружок-маркер, типографика, ссылки) живёт в CSS скина —
   resources/css/content/media.css, селекторы .protest-notice*.
   Здесь остаётся только то, что НЕ является блочной плашкой. */

/* инлайновая метка — «Источник», «Проверить|формат=метка» */
.dorabotka-metka {
    white-space: nowrap;
    font-size: 78%;
    margin-left: 2px;
}
.dorabotka-metka .dorabotka-metka-in {
    padding: 0 4px;
    color: #8a6d1f;
    background: #fdf6e3;
    border: 1px solid #e0d3a3;
    border-radius: 2px;
    cursor: help;
}

/* подсветка проблемного фрагмента — шаблон {{Дп}} */
.dorabotka-target {
    background: #fdf3d5;
    box-shadow: inset 0 -2px 0 #e6c34a;
    border-radius: 2px;
}