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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 50 промежуточных версий этого же участника)
Строка 1: Строка 1:
:root {
.ss14-rules {
 
    width: 100%;
}
    border-collapse: separate;
 
    border-spacing: 0 8px; /* Расстояние между строками */
@media (prefers-color-scheme: dark) {
    background-color: transparent;
  :root {
    color: #cecece;
 
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
}
 
body {
  font-family: sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
  color: var(--text-color);
}
 
.chem-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: flex-start;
  max-width: var(--width-layout);
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
 
.infoblock {
  background: var(--primary-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: var(--card-padding);
  width: calc((100% - 40px) / 3);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--border-color);
  margin: 15px;
}
}


.infoblock:hover {
.ss14-rules th {
  box-shadow: 0 6px 18px var(--shadow-color);
    background: #1a1a1e;
    color: #7daeff;
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a3a42;
}
}


.header {
.ss14-rules td:first-child,
  display: flex;
.ss14-rules td:nth-child(2) {
  align-items: center;
    background: #25252b;
  gap: 8px;
    font-weight: bold;
  margin-bottom: 12px;
    color: #ffffff;
  font-size: 1.2em;
    vertical-align: top;
  font-weight: 700;
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
  background: var(--header-bg);
  padding: 6px 12px;
  border-radius: 8px;
  user-select: none;
  color: var(--accent-color);
}
}


.title {
.ss14-rules td:first-child {
  color: #ff4d4d;
    white-space: nowrap;
  font-weight: bold;
    color: #ffca28; /* Золотистый цвет для номера */
  user-select: none;
    width: 10%;
}
}


.infoblock img,
/* Описание правила (третья колонка) */
.header img,
.ss14-rules td:last-child {
.action img {
    background: #1e1e22;
  width: 24px;
    padding: 15px;
  height: auto;
    line-height: 1.6;
  margin-right: 5px;
    border-right: 1px solid #3a3a42;
}
}


.content {
.ss14-rules td big {
  flex-grow: 1;
    display: block;
  display: flex;
    color: #7daeff; /* Голубой акцент */
  flex-direction: column;
    font-size: 1.1em;
  gap: 14px;
    margin-bottom: 10px;
  margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
}


.recipe-block {
.ss14-rules ul {
  display: flex;
    margin-top: 10px;
  gap: 12px;
    list-style-type: square;
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 12px;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 15px;
}
}


.materials,
.ss14-rules li {
.result {
    margin-bottom: 8px;
  background: var(--recipe-bg);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
  flex: 1 1 40%;
  color: var(--text-color);
  font-size: 0.95em;
  overflow-wrap: break-word;
  margin-bottom: 10px;
}
}


.action {
.ss14-rules tr:hover td {
  background: var(--recipe-bg);
    background-color: #2d2d35 !important;
  padding: 12px 20px;
    transition: background 0.2s ease;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
  flex: 0 0 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: var(--subtext-color);
  user-select: none;
  cursor: default;
  margin-bottom: 10px;
}
}


.action span {
@media screen and (max-width: 720px) {
  margin-left: 8px;
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
}
        display: block;
 
        width: 100%;
.section {
    }
  background: var(--recipe-bg);
    .ss14-rules td {
  padding: 10px 14px;
        box-sizing: border-box;
  border-radius: 8px;
    }
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
    .ss14-rules td:first-child {
  color: var(--text-color);
        border-bottom: none;
  font-size: 0.9em;
        padding-bottom: 5px;
  margin-top: 20px;
     }
}
 
.section-title {
  font-weight: bold;
  margin-bottom: 5px;
}
 
.section ul {
  list-style-type: disc;
  padding-left: 20px;
}
 
.section ul li {
  margin-bottom: 4px;
}
 
@media (max-width: 960px) {
  .infoblock {
    width: calc((100% - 20px) / 2);
  }
}
 
@media (max-width: 600px) {
  .infoblock {
    width: 100%;
  }
 
  .recipe-block {
    flex-wrap: wrap;
  }
 
  .materials,
  .result,
  .action {
    flex: 1 1 100%;
  }
 
  .action {
     margin-top: 8px;
  }
}
}

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