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

Страница интерфейса MediaWiki
Нет описания правки
Метка: ручная отмена
Нет описания правки
 
(не показано 136 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Основной стиль для карточек рецептов */
.ss14-rules {
.recipe-card {
    width: 100%;
  width: 100%;
    border-collapse: separate;
  max-width: 340px; /* Немного увеличил максимальную ширину */
    border-spacing: 0 8px; /* Расстояние между строками */
  box-sizing: border-box;
    background-color: transparent;
  padding: 1rem;
    color: #cecece;
  margin: 1em auto;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #2a2a2a;
  border: 2px solid;
  border-radius: 8px; /* Увеличил радиус скругления */
  color: #f5f5f5;
  font-size: 15px; /* Увеличил базовый размер шрифта */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Более выраженная тень */
  transition: transform 0.2s ease; /* Добавил анимацию при наведении */
}
}


.recipe-card:hover {
.ss14-rules th {
  transform: translateY(-2px); /* Эффект поднятия при наведении */
    background: #1a1a1e;
    color: #7daeff;
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a3a42;
}
}


/* Анимация для раскрытия контента */
.ss14-rules td:first-child,
@keyframes slideDown {
.ss14-rules td:nth-child(2) {
  from { opacity: 0; transform: translateY(-10px); }
    background: #25252b;
  to { opacity: 1; transform: translateY(0); }
    font-weight: bold;
    color: #ffffff;
    vertical-align: top;
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}
}


/* Стиль для блоков с контентом */
.ss14-rules td:first-child {
.collapsible-block {
    white-space: nowrap;
  margin-bottom: 1.2rem;
    color: #ffca28; /* Золотистый цвет для номера */
  position: relative;
    width: 10%;
}
}


/* Заголовок карточки */
/* Описание правила (третья колонка) */
.collapsible-header {
.ss14-rules td:last-child {
  background-color: #37474f; /* Изменил цвет фона */
    background: #1e1e22;
  border: none;
    padding: 15px;
  font-weight: 600; /* Более умеренное начертание */
    line-height: 1.6;
  color: #81d4fa;
    border-right: 1px solid #3a3a42;
  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; /* Современный способ отступов между элементами */
}
}


/* Иконка спрайта */
.ss14-rules td big {
.collapsible-header .sprite {
    display: block;
  width: 28px;
    color: #7daeff; /* Голубой акцент */
  height: 28px;
    font-size: 1.1em;
  background-image: url('path_to_beaker_image.png');
    margin-bottom: 10px;
  background-size: contain;
    border-bottom: 1px solid #333;
  transition: transform 0.2s ease;
    padding-bottom: 5px;
}
}


/* Ховер-эффекты */
.ss14-rules ul {
.collapsible-header:hover {
    margin-top: 10px;
  background-color: #455a64;
    list-style-type: square;
  color: #b3e5fc;
}
}


.collapsible-header:hover .sprite {
.ss14-rules li {
  transform: scale(1.1); /* Анимация иконки при наведении */
    margin-bottom: 8px;
}
}


/* Контент карточки */
.ss14-rules tr:hover td {
.collapsible-content {
    background-color: #2d2d35 !important;
  margin-top: 1rem;
    transition: background 0.2s ease;
  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;
}
}


/* Активное состояние */
@media screen and (max-width: 720px) {
.collapsible-content.active {
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
  max-height: 500px;
        display: block;
  opacity: 1;
        width: 100%;
  padding: 0.8rem 0 0.8rem 1.8rem;
    }
  animation: slideDown 0.4s ease-out;
    .ss14-rules td {
}
        box-sizing: border-box;
 
    }
/* Списки */
    .ss14-rules td:first-child {
.recipe-list, .collapsible-content ul {
        border-bottom: none;
  list-style: none;
        padding-bottom: 5px;
  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;
  }
}
}

Текущая версия от 14:16, 25 февраля 2026

.ss14-rules {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Расстояние между строками */
    background-color: transparent;
    color: #cecece;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ss14-rules th {
    background: #1a1a1e;
    color: #7daeff;
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a3a42;
}

.ss14-rules td:first-child, 
.ss14-rules td:nth-child(2) {
    background: #25252b;
    font-weight: bold;
    color: #ffffff;
    vertical-align: top;
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}

.ss14-rules td:first-child {
    white-space: nowrap;
    color: #ffca28; /* Золотистый цвет для номера */
    width: 10%;
}

/* Описание правила (третья колонка) */
.ss14-rules td:last-child {
    background: #1e1e22;
    padding: 15px;
    line-height: 1.6;
    border-right: 1px solid #3a3a42;
}

.ss14-rules td big {
    display: block;
    color: #7daeff; /* Голубой акцент */
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.ss14-rules ul {
    margin-top: 10px;
    list-style-type: square;
}

.ss14-rules li {
    margin-bottom: 8px;
}

.ss14-rules tr:hover td {
    background-color: #2d2d35 !important;
    transition: background 0.2s ease;
}

@media screen and (max-width: 720px) {
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
        display: block;
        width: 100%;
    }
    .ss14-rules td {
        box-sizing: border-box;
    }
    .ss14-rules td:first-child {
        border-bottom: none;
        padding-bottom: 5px;
    }
}