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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 139 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Общий контейнер, если нужно вывести несколько карточек */
body:before {
.recipe-container {
    content: "";
  display: flex;
    position: fixed;
  flex-wrap: wrap;
    top: 0;
  gap: 1em;
    left: 0;
  justify-content: center;
    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 {
.recipe-card {
    from { background-position: 0 0; }
  position: relative;
    to { background-position: 500px 1000px; }
  flex: 1 1 300px;
  max-width: 100%;
  min-width: 250px;
  box-sizing: border-box;
  background-color: #2a2a2a;
  border: 2px solid #444;
  border-radius: 6px;
  padding: 1em;
  color: #f5f5f5;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
}


/* Название вещества сверху */
h1, h2, h3, h4, h5 {
.card-substance {
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
  font-size: 1.1rem;
    transition: text-shadow 0.3s;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.5em;
  color: inherit;
}
}


/* Цветная линия под названием */
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
.card-substance::after {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
  content: "";
  display: block;
  height: 4px;
  width: 50%;
  margin: 0.3em auto 0;
  background-color: currentColor;
  border-radius: 2px;
}
}


/* Блоки внутри карточки */
a, a:visited {
.collapsible-block {
    transition: color 0.3s, text-shadow 0.3s;
  margin-bottom: 1em;
}
}


/* Заголовок (кнопка) */
a:hover {
.collapsible-header {
    color: #b3e5fc !important;
  display: flex;
    text-shadow: 0 0 6px #b3e5fc;
  align-items: center;
  background-color: #444;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  padding: 0.6em 1em;
  font-weight: bold;
  text-transform: uppercase;
  color: #81d4fa;
}
}


/* Иконка-спрайт */
.wikitable {
.collapsible-header .sprite {
    border-color: rgba(179, 229, 252, 0.6) !important;
  display: inline-block;
    border-radius: 6px;
  width: 32px;
  height: 32px;
  margin-right: 0.6em;
  background-image: url('path_to_beaker_image.png');
  background-size: contain;
  background-repeat: no-repeat;
}
}


/* Мелкая иконка в списке */
.wikitable th {
.instruction .sprite.small {
    background: rgba(179, 229, 252, 0.1);
  width: 20px;
  height: 20px;
  margin-right: 0.4em;
}
}


/* Ховер */
.mw-page-title-main:before {
.collapsible-header:hover {
    content: " ";
  background-color: #555;
  color: #b3e5fc;
}
}


/* Линия под заголовком, цвет зависит от data-border */
.mw-page-title-main:after {
.collapsible-header::after {
    content: " ";
  content: "";
  display: block;
  height: 3px;
  background-color: currentColor;
  margin-top: 0.4em;
  border-radius: 2px;
}
 
/* Контент */
.collapsible-content {
  display: none;
  margin-top: 0.8em;
  padding-left: 1.2em;
  border-left: 3px solid #81d4fa;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
 
/* Активное состояние */
.collapsible-content.show {
  display: block;
  max-height: 500px;
}
 
/* Описание */
.recipe-description {
  font-size: 0.9rem;
  color: #b0bec5;
  margin-top: 0.5em;
}
 
/* Список рецепта */
.recipe-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
 
.recipe-list li {
  margin-bottom: 0.4em;
}
}

Текущая версия от 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: " ";
}