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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показаны 52 промежуточные версии этого же участника)
Строка 1: Строка 1:
body {
.ss14-rules {
  font-family: sans-serif;
    width: 100%;
  background-color: #f0f0f0;
    border-collapse: separate;
  margin: 0;
    border-spacing: 0 8px; /* Расстояние между строками */
  padding: 0;
    background-color: transparent;
    color: #cecece;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
}


.chem-container {
.ss14-rules th {
  display: flex;
    background: #1a1a1e;
  flex-wrap: wrap;
    color: #7daeff;
  justify-content: space-around;
    padding: 12px;
  padding: 20px;
    text-transform: uppercase;
  gap: 20px;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a3a42;
}
}


.infoblock {
.ss14-rules td:first-child,
  background-color: #fff;
.ss14-rules td:nth-child(2) {
  border: 1px solid #ccc;
    background: #25252b;
  margin: 15px;
    font-weight: bold;
  padding: 20px;
    color: #ffffff;
  width: calc(30% - 30px);
    vertical-align: top;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
}


.infoblock .header {
.ss14-rules td:first-child {
  display: flex;
    white-space: nowrap;
  align-items: center;
    color: #ffca28; /* Золотистый цвет для номера */
  margin-bottom: 10px;
    width: 10%;
}
}


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


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


.infoblock .content {
.ss14-rules ul {
  margin-bottom: 20px;
    margin-top: 10px;
  display: flex;
    list-style-type: square;
  flex-direction: column;
  gap: 14px;
}
}


.recipe-block {
.ss14-rules li {
  border: 1px solid #eee;
    margin-bottom: 8px;
  padding: 15px;
  background-color: #f9f9f9;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
}


.materials,
.ss14-rules tr:hover td {
.result,
    background-color: #2d2d35 !important;
.action {
    transition: background 0.2s ease;
  background-color: #f9f9f9;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
  flex: 1 1 40%;
  font-size: 0.95em;
  overflow-wrap: break-word;
}
}


.action {
@media screen and (max-width: 720px) {
  display: flex;
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
  align-items: center;
        display: block;
  justify-content: center;
        width: 100%;
  flex: 0 0 120px;
    }
  font-weight: 600;
    .ss14-rules td {
  color: #555;
        box-sizing: border-box;
  user-select: none;
    }
  cursor: default;
    .ss14-rules td:first-child {
}
        border-bottom: none;
 
        padding-bottom: 5px;
.action img {
     }
  width: 24px;
  height: auto;
  margin-right: 5px;
}
 
.section-title {
  font-weight: bold;
  margin-bottom: 5px;
}
 
ul {
  list-style-type: disc;
  padding-left: 20px;
}
 
.section {
  margin-top: 20px;
  background-color: #f9f9f9;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9em;
  color: #222;
}
 
.section ul li {
  margin-bottom: 4px;
}
 
@media (max-width: 768px) {
  .infoblock {
    width: calc(50% - 30px);
  }
}
 
@media (max-width: 480px) {
  .infoblock {
    width: calc(100% - 30px);
  }
 
  .recipe-block {
    flex-direction: column;
  }
 
  .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;
    }
}