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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показаны 143 промежуточные версии этого же участника)
Строка 1: Строка 1:
/* Основной стиль для карточек рецептов */
body:before {
.recipe-card {
    content: "";
  width: 100%;
    position: fixed;
  max-width: 320px;
    top: 0;
  box-sizing: border-box;
    left: 0;
  padding: 0.8em 1.2em;
    right: 0;
  margin: 1em auto;
    bottom: 0;
  display: inline-block;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
  vertical-align: top;
    background-repeat: repeat;
  background-color: #2a2a2a;
    pointer-events: none;
  border: 2px solid #444;
    opacity: 0.35;
  border-radius: 6px;
    z-index: 2;
  color: #f5f5f5;
    animation: snowmove 60s linear infinite;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
}


/* Стиль для блоков с контентом */
@keyframes snowmove {
.collapsible-block {
    from { background-position: 0 0; }
  margin-bottom: 1em;
    to { background-position: 500px 1000px; }
}
}


/* Заголовок карточки */
h1, h2, h3, h4, h5 {
.collapsible-header {
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
  background-color: #444;
    transition: text-shadow 0.3s;
  border: none;
  font-weight: bold;
  color: #81d4fa;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0.6em 1em;
}
}


/* Ховер-эффект для заголовка */
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
.collapsible-header:hover {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
  background-color: #555;
  color: #b3e5fc;
}
}


/* Контент карточки */
a, a:visited {
.collapsible-content {
    transition: color 0.3s, text-shadow 0.3s;
  display: none;
  margin-top: 1em;
  padding-left: 1.5em;
  border-left: 2px solid #81d4fa;
  font-size: 14px;
  max-height: 200px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}
}


/* Показать контент при активной карточке */
a:hover {
.collapsible-content.show {
    color: #b3e5fc !important;
  display: block;
    text-shadow: 0 0 6px #b3e5fc;
  max-height: 500px;
}
}


/* Описание рецепта */
.wikitable {
.recipe-description {
    border-color: rgba(179, 229, 252, 0.6) !important;
  margin-top: 1em;
    border-radius: 6px;
  font-size: 13px;
  color: #b0bec5;
}
}


/* Стиль для списка рецепта */
.wikitable th {
.recipe-list {
    background: rgba(179, 229, 252, 0.1);
  list-style-type: none;
  padding: 0;
  margin: 0;
}
}


/* Стиль для элемента инструкции */
.mw-page-title-main:before {
.instruction {
    content: " ";
  color: #ffcc00; /* Цвет для выделения действия */
}
  font-weight: bold;
 
  font-size: 16px;  /* Увеличиваем размер шрифта */
.mw-page-title-main:after {
  text-align: center;  /* Центрируем текст */
    content: " ";
  margin: 1em 0; /* Добавляем отступы сверху и снизу */
}
}

Текущая версия от 08:23, 13 ноября 2025

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.35;
    z-index: 2;
    animation: snowmove 60s linear infinite;
}

@keyframes snowmove {
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}

h1, h2, h3, h4, h5 {
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    transition: text-shadow 0.3s;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
}

a, a:visited {
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: #b3e5fc !important;
    text-shadow: 0 0 6px #b3e5fc;
}

.wikitable {
    border-color: rgba(179, 229, 252, 0.6) !important;
    border-radius: 6px;
}

.wikitable th {
    background: rgba(179, 229, 252, 0.1);
}

.mw-page-title-main:before {
    content: " ";
}

.mw-page-title-main:after {
    content: " ";
}