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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 56 промежуточных версий этого же участника)
Строка 1: Строка 1:
:root {
.ss14-rules {
  --width-layout: 100vw;
     width: 100%;
  --card-bg: #f5f5f7;
     border-collapse: separate;
  --header-bg: #ddd;
     border-spacing: 0 8px; /* Расстояние между строками */
  --recipe-bg: #e5e5e5;
     background-color: transparent;
  --section-bg: transparent;
     color: #cecece;
  --border-color: #ccc;
     font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --accent-color: #995500;
  --text-color: #222;
  --subtext-color: #555;
  --shadow-color: rgba(0,0,0,0.1);
}
 
@media (prefers-color-scheme: dark) {
  :root {
     --card-bg: #2b2b2b;
     --header-bg: #333;
    --recipe-bg: #3a3a3a;
    --section-bg: transparent;
     --border-color: #555;
     --accent-color: #ffd;
    --text-color: #e0e0e0;
     --subtext-color: #ccc;
     --shadow-color: rgba(0,0,0,0.5);
  }
}
 
.chem-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  max-width: var(--width-layout);
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}
 
.infoblock {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 16px;
  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);
}
 
.infoblock:hover {
  box-shadow: 0 6px 18px var(--shadow-color);
}
 
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1.2em;
  font-weight: 700;
  background: var(--header-bg);
  padding: 6px 12px;
  border-radius: 8px;
  user-select: none;
  color: var(--accent-color);
}
 
.title {
  user-select: none;
}
 
.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
}


.recipe-block {
.ss14-rules th {
  display: flex;
    background: #1a1a1e;
  gap: 12px;
    color: #7daeff;
  flex-wrap: nowrap;
    padding: 12px;
  align-items: center;
    text-transform: uppercase;
  margin-bottom: 12px;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a3a42;
}
}


.materials, .result {
.ss14-rules td:first-child,  
  background: var(--recipe-bg);
.ss14-rules td:nth-child(2) {
  padding: 12px 16px;
    background: #25252b;
  border-radius: 8px;
    font-weight: bold;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
    color: #ffffff;
  flex: 1 1 40%;
    vertical-align: top;
  color: var(--text-color);
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
  font-size: 0.95em;
  overflow-wrap: break-word;
}
}


.action {
.ss14-rules td:first-child {
  background: var(--recipe-bg);
    white-space: nowrap;
  padding: 12px 20px;
    color: #ffca28; /* Золотистый цвет для номера */
  border-radius: 8px;
    width: 10%;
  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;
}
}


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


.section {
.ss14-rules td big {
  background: var(--recipe-bg);
    display: block;
  padding: 10px 14px;
    color: #7daeff; /* Голубой акцент */
  border-radius: 8px;
    font-size: 1.1em;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
  color: var(--text-color);
    border-bottom: 1px solid #333;
  font-size: 0.9em;
    padding-bottom: 5px;
}
}


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


.section ul li {
.ss14-rules li {
  margin-bottom: 4px;
    margin-bottom: 8px;
}
}


@media (max-width: 960px) {
.ss14-rules tr:hover td {
  .infoblock {
    background-color: #2d2d35 !important;
     width: calc((100% - 20px) / 2);
     transition: background 0.2s ease;
  }
}
}


@media (max-width: 600px) {
@media screen and (max-width: 720px) {
  .infoblock {
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
    width: 100%;
        display: block;
  }
        width: 100%;
  .recipe-block {
    }
    flex-wrap: wrap;
    .ss14-rules td {
  }
        box-sizing: border-box;
  .materials, .result, .action {
    }
    flex: 1 1 100%;
    .ss14-rules td:first-child {
  }
        border-bottom: none;
  .action {
        padding-bottom: 5px;
    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;
    }
}