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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 140 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Общий контейнер, если нужно вывести несколько карточек */
.ss14-rules {
.recipe-container {
    width: 100%;
  display: flex;
    border-collapse: separate;
  flex-wrap: wrap;
    border-spacing: 0 8px; /* Расстояние между строками */
  gap: 1em;
    background-color: transparent;
  justify-content: center;
    color: #cecece;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
}


/* Карточка рецепта */
.ss14-rules th {
.recipe-card {
    background: #1a1a1e;
  position: relative;
    color: #7daeff;
  flex: 1 1 300px;
    padding: 12px;
  max-width: 100%;
    text-transform: uppercase;
  min-width: 250px;
    font-size: 0.9em;
  box-sizing: border-box;
    letter-spacing: 1px;
  background-color: #2a2a2a;
    border-bottom: 2px solid #3a3a42;
  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);
}
}


/* Название вещества сверху */
.ss14-rules td:first-child,
.card-substance {
.ss14-rules td:nth-child(2) {
  font-size: 1.1rem;
    background: #25252b;
  font-weight: bold;
    font-weight: bold;
  text-align: center;
    color: #ffffff;
  margin-bottom: 0.5em;
    vertical-align: top;
  color: inherit;
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}
}


/* Цветная линия под названием */
.ss14-rules td:first-child {
.card-substance::after {
    white-space: nowrap;
  content: "";
    color: #ffca28; /* Золотистый цвет для номера */
  display: block;
    width: 10%;
  height: 4px;
  width: 50%;
  margin: 0.3em auto 0;
  background-color: currentColor;
  border-radius: 2px;
}
}


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


/* Заголовок (кнопка) */
.ss14-rules td big {
.collapsible-header {
    display: block;
  display: flex;
    color: #7daeff; /* Голубой акцент */
  align-items: center;
    font-size: 1.1em;
  background-color: #444;
    margin-bottom: 10px;
  border: none;
    border-bottom: 1px solid #333;
  border-radius: 4px;
    padding-bottom: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  padding: 0.6em 1em;
  font-weight: bold;
  text-transform: uppercase;
  color: #81d4fa;
}
}


/* Иконка-спрайт */
.ss14-rules ul {
.collapsible-header .sprite {
    margin-top: 10px;
  display: inline-block;
    list-style-type: square;
  width: 32px;
  height: 32px;
  margin-right: 0.6em;
  background-image: url('path_to_beaker_image.png');
  background-size: contain;
  background-repeat: no-repeat;
}
}


/* Мелкая иконка в списке */
.ss14-rules li {
.instruction .sprite.small {
    margin-bottom: 8px;
  width: 20px;
  height: 20px;
  margin-right: 0.4em;
}
}


/* Ховер */
.ss14-rules tr:hover td {
.collapsible-header:hover {
    background-color: #2d2d35 !important;
  background-color: #555;
    transition: background 0.2s ease;
  color: #b3e5fc;
}
}


/* Линия под заголовком, цвет зависит от data-border */
@media screen and (max-width: 720px) {
.collapsible-header::after {
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
  content: "";
        display: block;
  display: block;
        width: 100%;
  height: 3px;
    }
  background-color: currentColor;
    .ss14-rules td {
  margin-top: 0.4em;
        box-sizing: border-box;
  border-radius: 2px;
    }
}
    .ss14-rules td:first-child {
 
        border-bottom: none;
/* Контент */
        padding-bottom: 5px;
.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;
}
}

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