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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 137 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Основной стиль для карточек рецептов */
body:before {
.recipe-card {
    content: "";
  width: 100%;
    position: fixed;
  max-width: 340px; /* Немного увеличил максимальную ширину */
    top: 0;
  box-sizing: border-box;
    left: 0;
  padding: 1rem;
    right: 0;
  margin: 1em auto;
    bottom: 0;
  background-color: #2a2a2a;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
  border: 2px solid;
    background-repeat: repeat;
  border-radius: 8px; /* Увеличил радиус скругления */
    pointer-events: none;
  color: #f5f5f5;
    opacity: 0.35;
  font-size: 15px; /* Увеличил базовый размер шрифта */
    z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Более выраженная тень */
    animation: snowmove 60s linear infinite;
  transition: transform 0.2s ease; /* Добавил анимацию при наведении */
}
}


.recipe-card:hover {
@keyframes snowmove {
  transform: translateY(-2px); /* Эффект поднятия при наведении */
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}
}


/* Анимация для раскрытия контента */
h1, h2, h3, h4, h5 {
@keyframes slideDown {
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
  from { opacity: 0; transform: translateY(-10px); }
    transition: text-shadow 0.3s;
  to { opacity: 1; transform: translateY(0); }
}
}


/* Стиль для блоков с контентом */
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
.collapsible-block {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
  margin-bottom: 1.2rem;
  position: relative;
}
}


/* Заголовок карточки */
a, a:visited {
.collapsible-header {
    transition: color 0.3s, text-shadow 0.3s;
  background-color: #37474f; /* Изменил цвет фона */
  border: none;
  font-weight: 600; /* Более умеренное начертание */
  color: #81d4fa;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px; /* Современный способ отступов между элементами */
}
}


/* Иконка спрайта */
a:hover {
.collapsible-header .sprite {
    color: #b3e5fc !important;
  width: 28px;
    text-shadow: 0 0 6px #b3e5fc;
  height: 28px;
  background-image: url('path_to_beaker_image.png');
  background-size: contain;
  transition: transform 0.2s ease;
}
}


/* Ховер-эффекты */
.wikitable {
.collapsible-header:hover {
    border-color: rgba(179, 229, 252, 0.6) !important;
  background-color: #455a64;
    border-radius: 6px;
  color: #b3e5fc;
}
}


.collapsible-header:hover .sprite {
.wikitable th {
  transform: scale(1.1); /* Анимация иконки при наведении */
    background: rgba(179, 229, 252, 0.1);
}
}


/* Контент карточки */
.mw-page-title-main:before {
.collapsible-content {
    content: " ";
  margin-top: 1rem;
  padding-left: 1.8rem;
  border-left: 3px solid; /* Более толстая линия */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s ease-out,
    opacity 0.3s ease-out,
    padding 0.3s ease-out;
}
}


/* Активное состояние */
.mw-page-title-main:after {
.collapsible-content.active {
    content: " ";
  max-height: 500px;
  opacity: 1;
  padding: 0.8rem 0 0.8rem 1.8rem;
  animation: slideDown 0.4s ease-out;
}
 
/* Списки */
.recipe-list, .collapsible-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px; /* Управление отступами между элементами */
}
 
.recipe-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #37474f; /* Разделители между элементами */
}
 
/* Элемент инструкции */
.instruction {
  color: #81d4fa; /* Соответствует основной цветовой схеме */
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  background: rgba(129, 212, 250, 0.1); /* Подсветка фона */
  border-radius: 4px;
  margin: 12px 0;
  display: inline-flex;
  align-items: center;
}
 
.instruction::before {
  content: '➤';
  margin-right: 8px;
  color: #4fc3f7;
}
 
/* Описание рецепта */
.recipe-description {
  margin-top: 1.2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #cfd8dc; /* Более светлый цвет текста */
  border-left: 3px solid #4fc3f7; /* Акцентная полоса */
}
 
/* Эффекты */
.collapsible-content ul li {
  position: relative;
  padding-left: 24px;
}
 
.collapsible-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #4fc3f7;
  font-size: 1.4em;
  line-height: 0.8;
}
 
/* Адаптивность */
@media (max-width: 480px) {
  .recipe-card {
    font-size: 14px;
    padding: 0.8rem;
  }
 
  .collapsible-header {
    padding: 0.6rem 1rem;
  }
 
  .instruction {
    font-size: 14px;
  }
}
}

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