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

Страница интерфейса MediaWiki
Нет описания правки
Метка: отменено
Нет описания правки
 
(не показано 19 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* ==================== Сетка карточек ==================== */
.ss14-rules {
.recipes-grid {
    width: 100%;
  display: flex;
    border-collapse: separate;
  flex-wrap: wrap;
    border-spacing: 0 8px; /* Расстояние между строками */
  gap: var(--card-gap);
    background-color: transparent;
  margin: 8px 0;
    color: #cecece;
  justify-content: flex-start;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-left: var(--content-left);
  padding-right: var(--content-right);
  box-sizing: border-box;
}
}


.recipe-card {
.ss14-rules th {
  background: #1a1a1a;
    background: #1a1a1e;
  border: 1px solid #444;
    color: #7daeff;
  border-radius: 8px;
    padding: 12px;
  padding: 8px 10px;
    text-transform: uppercase;
  flex: 1 1 calc((100% - 3 * var(--card-gap)) / 4);
    font-size: 0.9em;
  min-width: 220px;
    letter-spacing: 1px;
  max-width: 1fr;
    border-bottom: 2px solid #3a3a42;
  box-sizing: border-box;
  color: #ddd;
  font-size: 13px;
  line-height: 1.3em;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}
}


.recipe-card:hover {
.ss14-rules td:first-child,
  border-color: #7CFC00;
.ss14-rules td:nth-child(2) {
  box-shadow: 0 0 10px rgba(124,252,0,0.6);
    background: #25252b;
    font-weight: bold;
    color: #ffffff;
    vertical-align: top;
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}
}


.element-title {
.ss14-rules td:first-child {
  display: block;
    white-space: nowrap;
  text-align: center;
    color: #ffca28; /* Золотистый цвет для номера */
  font-weight: bold;
    width: 10%;
  color: #7CFC00;
  font-size: 14px;
  margin-bottom: 6px;
}
}


.element-description {
/* Описание правила (третья колонка) */
  font-size: 12px;
.ss14-rules td:last-child {
  color: #bbb;
    background: #1e1e22;
  text-align: center;
    padding: 15px;
  margin-bottom: 6px;
    line-height: 1.6;
  font-style: italic;
    border-right: 1px solid #3a3a42;
}
}


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


.recipe-line {
.ss14-rules ul {
  display: flex;
    margin-top: 10px;
  flex-wrap: wrap; /* разрешаем перенос внутри карточки, чтобы рецепт не вылезал */
    list-style-type: square;
  gap: 4px;
  margin-bottom: 6px;
  word-break: break-word; /* длинные слова будут переноситься */
}
}


/* ==================== Ингредиенты ==================== */
.ss14-rules li {
.ingredient {
    margin-bottom: 8px;
  background: #333;
  color: #ffcc00;
  border-radius: 4px;
  padding: 2px 5px;
  font-weight: bold;
  display: inline-block;
  flex-shrink: 0; /* не уменьшаем сильно */
}
}


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


.arrow {
@media screen and (max-width: 720px) {
  font-weight: bold;
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
  color: #ccc;
        display: block;
  flex-shrink: 0;
        width: 100%;
}
     }
 
    .ss14-rules td {
/* ==================== Мобильная версия ==================== */
        box-sizing: border-box;
@media (max-width: 600px) {
    }
  .recipe-card {
    .ss14-rules td:first-child {
    flex: 1 1 100%;
        border-bottom: none;
     min-width: 0;
        padding-bottom: 5px;
  }
    }
}
 
/* ==================== Широкие экраны ≥1120px ==================== */
@media screen and (min-width: 1120px) {
  .recipe-card {
    flex: 1 1 calc((100% - 3 * var(--card-gap)) / 4); /* 4 карточки в ряд */
  }
}
}

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