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

Страница интерфейса MediaWiki
Нет описания правки
Метка: ручная отмена
Нет описания правки
 
(не показаны 123 промежуточные версии этого же участника)
Строка 1: Строка 1:
.recipe-card {
.ss14-rules {
  width: 100%;
    width: 100%;
  max-width: 340px;
    border-collapse: separate;
  margin: 1em auto;
    border-spacing: 0 8px; /* Расстояние между строками */
  padding: 1rem;
    background-color: transparent;
  box-sizing: border-box;
    color: #cecece;
  background-color: #2a2a2a;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  border: 2px solid #4fc3f7;
  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;
}
}


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


.collapsible-header {
.ss14-rules td:first-child {
  background-color: #37474f;
    white-space: nowrap;
  color: #81d4fa;
    color: #ffca28; /* Золотистый цвет для номера */
  font-weight: 600;
    width: 10%;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s ease;
}
}


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


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


.collapsible-header:hover .sprite {
.ss14-rules ul {
  transform: scale(1.1);
    margin-top: 10px;
    list-style-type: square;
}
}


.collapsible-content {
.ss14-rules li {
  overflow: hidden;
    margin-bottom: 8px;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.35s ease-out, opacity 0.3s ease-out;
  border-left: 3px solid #4fc3f7;
  padding-left: 1.8rem;
}
}


.collapsible-content.active {
.ss14-rules tr:hover td {
  max-height: 500px;
    background-color: #2d2d35 !important;
  opacity: 1;
    transition: background 0.2s ease;
  margin-top: 1rem;
}
}


.recipe-list, .effect-list {
@media screen and (max-width: 720px) {
  list-style: none;
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
  margin: 0;
        display: block;
  padding: 0;
        width: 100%;
  display: grid;
    }
  gap: 8px;
    .ss14-rules td {
}
        box-sizing: border-box;
 
    }
.recipe-list li, .effect-list li {
    .ss14-rules td:first-child {
  display: flex;
        border-bottom: none;
  align-items: center;
        padding-bottom: 5px;
  gap: 6px;
     }
  padding: 6px 0;
  border-bottom: 1px solid #37474f;
  position: relative;
  padding-left: 24px;
}
 
.effect-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #4fc3f7;
  font-size: 1.4em;
  line-height: 0.8;
}
 
.chem-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px #4fc3f7);
}
 
.instruction {
  color: #81d4fa;
  font-weight: 600;
  font-size: 15px;
  background: rgba(129, 212, 250, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
}
 
.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;
}
 
@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;
    }
}