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

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


.materials, .result {
.ss14-rules th {
  background: #ffffff;
    background: #1a1a1e;
  padding: 12px 16px;
    color: #7daeff;
  border-radius: 8px;
    padding: 12px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
    text-transform: uppercase;
  flex: 1 1 40%; /* чуть шире */
    font-size: 0.9em;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a3a42;
}
}


.action {
.ss14-rules td:first-child,
  background: #ffffff;
.ss14-rules td:nth-child(2) {
  padding: 12px 20px;
    background: #25252b;
  border-radius: 8px;
    font-weight: bold;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
    color: #ffffff;
  flex: 0 0 120px; /* фиксированная ширина */
    vertical-align: top;
  display: flex;
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: #555;
  user-select: none;
  cursor: default;
}
}


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


 
/* Описание правила (третья колонка) */
.chem-container {
.ss14-rules td:last-child {
  display: flex;
    background: #1e1e22;
  flex-wrap: wrap;
    padding: 15px;
  gap: 20px;
    line-height: 1.6;
  justify-content: flex-start;
    border-right: 1px solid #3a3a42;
}
 
.infoblock {
  background: #f5f5f7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 16px;
  width: calc((100% - 40px) / 3); /* 3 колонки с отступом */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  transition: box-shadow 0.3s ease;
}
 
.infoblock:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
 
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1.2em;
  font-weight: 700;
}
 
.title {
  user-select: none;
}
 
.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
 
.recipe-block {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
 
.materials, .action, .result {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  flex: 1 1 30%;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}
}


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


.materials ul, .result ul, .section ul {
.ss14-rules ul {
  margin: 0;
    margin-top: 10px;
  padding-left: 18px;
    list-style-type: square;
}
}


.action {
.ss14-rules li {
  display: flex;
    margin-bottom: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1em;
  color: #555;
}
}


.action span {
.ss14-rules tr:hover td {
  margin-left: 6px;
    background-color: #2d2d35 !important;
  user-select: none;
    transition: background 0.2s ease;
}
 
.section {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}
 
.section ul li {
  margin-bottom: 4px;
}
 
/* Мобильная адаптация */
 
@media (max-width: 960px) {
  .infoblock {
    width: calc((100% - 20px) / 2); /* 2 колонки */
  }
}
}


@media (max-width: 600px) {
@media screen and (max-width: 720px) {
  .infoblock {
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
    width: 100%; /* 1 колонка */
        display: block;
  }
        width: 100%;
    }
    .ss14-rules td {
        box-sizing: border-box;
    }
    .ss14-rules td:first-child {
        border-bottom: none;
        padding-bottom: 5px;
    }
}
}

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