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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 45 промежуточных версий этого же участника)
Строка 1: Строка 1:
:root {
.ss14-rules {
  --width-layout: 100vw;
    width: 100%;
  --card-padding: 12px;
    border-collapse: separate;
  --gap: 14px;
    border-spacing: 0 8px; /* Расстояние между строками */
  --primary-bg: #1a1a1a;
    background-color: transparent;
  --secondary-bg: #2a2a2a;
    color: #cecece;
  --text-color: #e0e0e0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --subtext-color: #b0b0b0;
  --border-color: #444444;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --header-bg: #333333;
  --accent-color: #76c7c0;
  --recipe-bg: #222222;
}
 
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  font-size: 14px;
}
 
.action span {
  position: relative;
  top: 10px;
  margin-left: 0;
}
 
.chem-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: flex-start;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
}
 
.infoblock {
  display: flex;
  flex-direction: column;
  width: calc((100% - 3 * var(--gap)) / 4);
  margin: 10px 0;
  padding: var(--card-padding);
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 1px 6px var(--shadow-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
 
.infoblock:hover {
  box-shadow: 0 4px 12px var(--shadow-color);
}
}


.header {
.ss14-rules th {
  display: flex;
    background: #1a1a1e;
  align-items: center;
    color: #7daeff;
  gap: 6px;
    padding: 12px;
  margin-bottom: 10px;
    text-transform: uppercase;
  padding: 4px 10px;
    font-size: 0.9em;
  font-size: 1.1em;
    letter-spacing: 1px;
  font-weight: 700;
    border-bottom: 2px solid #3a3a42;
  background: var(--header-bg);
  border-radius: 6px;
  color: var(--accent-color);
  user-select: none;
}
}


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


.content {
.ss14-rules td:first-child {
  flex-grow: 1;
    white-space: nowrap;
  display: flex;
    color: #ffca28; /* Золотистый цвет для номера */
  flex-direction: column;
    width: 10%;
  gap: 10px;
  margin-bottom: 16px;
}
}


.recipe-block {
/* Описание правила (третья колонка) */
  display: flex;
.ss14-rules td:last-child {
  flex-wrap: nowrap;
    background: #1e1e22;
  align-items: center;
    padding: 15px;
  gap: 10px;
    line-height: 1.6;
  margin-bottom: 10px;
    border-right: 1px solid #3a3a42;
  padding: 10px;
  background-color: var(--recipe-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  min-width: 0;
  max-width: 100%;
}
}


.materials,
.ss14-rules td big {
.result,
    display: block;
.action {
    color: #7daeff; /* Голубой акцент */
  background: var(--secondary-bg);
    font-size: 1.1em;
  border-radius: 6px;
    margin-bottom: 10px;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #333;
  color: var(--text-color);
    padding-bottom: 5px;
  font-size: 0.9em;
  padding: 8px 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
  flex-direction: column;
}
}


.materials div,
.ss14-rules ul {
.result div {
    margin-top: 10px;
  display: flex;
    list-style-type: square;
  justify-content: flex-start; /* выравниваем содержимое слева */
  align-items: center;
  padding: 2px 0;
  line-height: 1.3;
  width: 100%;
  box-sizing: border-box;
}
}


.mat-name {
.ss14-rules li {
  font-weight: bold;
    margin-bottom: 8px;
  flex-grow: 1; /* название занимает всё доступное пространство */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
}


.mat-qty {
.ss14-rules tr:hover td {
  color: var(--subtext-color);
    background-color: #2d2d35 !important;
  font-size: 0.95em;
    transition: background 0.2s ease;
  width: 40px;      /* фиксированная ширина */
  text-align: right; /* цифры прижаты к правому краю блока */
  flex-shrink: 0;    /* не сжимается */
  margin-left: 12px;
  box-sizing: border-box;
}
}


.action {
@media screen and (max-width: 720px) {
  flex: 0 0 auto;
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
  padding: 0;
        display: block;
  display: flex;
        width: 100%;
  justify-content: center;
    }
  align-items: center;
    .ss14-rules td {
  font-weight: 100;
        box-sizing: border-box;
  color: var(--subtext-color);
    }
  user-select: none;
    .ss14-rules td:first-child {
  cursor: default;
        border-bottom: none;
  line-height: 1;
        padding-bottom: 5px;
  margin-top: 4px;
     }
}
 
.action span {
  margin: 0;
}
 
.section {
  background: var(--secondary-bg);
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  font-size: 0.85em;
  margin-top: 16px;
}
 
.section-title {
  font-weight: bold;
  margin-bottom: 4px;
}
 
@media (max-width: 1200px) {
  .infoblock {
    width: calc((100% - 2 * var(--gap)) / 3);
  }
}
 
@media (max-width: 960px) {
  .infoblock {
    width: calc((100% - var(--gap)) / 2);
  }
}
 
@media (max-width: 600px) {
  .infoblock {
    width: 100%;
  }
 
  .recipe-block {
    flex-wrap: wrap;
  }
 
  .materials,
  .result,
  .action {
    flex: 1 1 100%;
    margin-top: 6px;
  }
 
  .action {
     margin-top: 6px;
  }
}
}

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