Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 49 промежуточных версий этого же участника)
Строка 1: Строка 1:
:root {
@media (max-width: 1280px) {
  --primary-bg: #2b2b2b;
    .chem-heading {
  --header-bg: #333;
        display: none;
  --recipe-bg: #3a3a3a;
    }
  --text-color: #e0e0e0;
  --subtext-color: #ccc;
  --accent-color: #ffd;
  --border-color: #555;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --width-layout: 100vw;
  --card-padding: 16px;
  --gap: 20px;
}
}
 
@media screen and (min-width: 1120px) {
body {
    body.page-Тест .citizen-body-container {
  font-family: sans-serif;
        grid-template-areas: 'void header header' 'sidebar content toc' 'footer footer footer';
  background-color: var(--primary-bg);
        grid-template-columns: 10% 70% 20%;
  margin: 0;
        margin-left: 8vw;
  padding: 0;
        max-width: none;
  color: var(--text-color);
    }
}
}
 
.chem-cards-container {
.chem-container {
    display: grid;
  display: flex;
    grid-template-columns: repeat(3, 1fr);
  flex-wrap: wrap;
    gap: 20px;
  gap: var(--gap);
    margin: 20px 0;
  justify-content: flex-start;
    width: 100%;
  max-width: var(--width-layout);
    box-sizing: border-box;
  margin: 0 auto;
}
  padding: 20px;
.chem-card {
  box-sizing: border-box;
    background-color: #121212;
    border: 3px solid var(--card-border, #444);
    border-radius: 12px;
    padding: 0;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    overflow: hidden;
}
.chem-name-header {
    background-color: var(--card-accent);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    padding: 14px 20px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin: 0;
}
.chem-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255,255,255,0.06);
    border-top: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}
.chem-heading-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
.heading-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--card-accent, #8cf);
}
.collapse-btn {
    border: 2px dotted #ffd700;
    padding: 2px 12px;
    border-radius: 9999px;
    font-size: 13px;
    color: #ffd700;
    background: rgba(0,0,0,0.3);
}
.collapsible {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    max-height: 0;
    padding: 0;
}
.collapsible.expanded {
    max-height: 2000px;
    padding: 12px 16px 16px;
}
}
 
.chem-recipe-block {
.infoblock {
    text-align: center;
  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;
}
}
 
.chem-recipe-steps {
.infoblock:hover {
    display: flex;
  box-shadow: 0 6px 18px var(--shadow-color);
    flex-direction: column;
    gap: 32px;
}
}
 
.recipe-variant-header {
.header {
    font-size: 15px;
  display: flex;
    font-weight: 700;
  align-items: center;
    color: #ffd700;
  gap: 8px;
    text-align: center;
  margin-bottom: 12px;
    padding: 8px 0;
  font-size: 1.2em;
    border-bottom: 1px dashed rgba(255,215,0,0.3);
  font-weight: 700;
    margin-bottom: 12px;
  background: var(--header-bg);
  padding: 6px 12px;
  border-radius: 8px;
  user-select: none;
  color: var(--accent-color);
}
}
 
.chem-recipe {
.title {
    width: 100%;
  color: #ff4d4d;
    max-width: 800px;
  font-weight: bold;
    margin: 0 auto;
  user-select: none;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
}
}
 
.recipe-inputs {
.infoblock img,
    flex: 1;
.header img,
    min-width: 240px;
.action img {
    display: flex;
  width: 24px;
    flex-direction: column;
  height: auto;
    gap: 10px;
  margin-right: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
}
}
 
.recipe-outputs {
.content {
    flex: 1;
  flex-grow: 1;
    min-width: 240px;
  display: flex;
    display: flex;
  flex-direction: column;
    flex-direction: column;
  gap: 14px;
    gap: 10px;
  margin-bottom: 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
}
}
 
.recipe-item {
.recipe-block {
    display: flex;
  display: flex;
    align-items: center;
  gap: 12px;
    gap: 12px;
  flex-wrap: nowrap;
    background: rgba(255,255,255,0.08);
  align-items: center;
    border-radius: 6px;
  margin-bottom: 12px;
    padding: 8px 14px;
  background-color: var(--recipe-bg);
    border-left: 4px solid var(--card-accent, #8cf);
  border: 1px solid var(--border-color);
    white-space: nowrap;
  padding: 15px;
}
}
 
.chem-beaker {
.materials,
    width: 38px;
.result {
    height: 38px;
  background: var(--recipe-bg);
    flex-shrink: 0;
  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;
}
}
 
.recipe-action {
.action {
    flex: 0 0 auto;
  background: var(--recipe-bg);
    display: flex;
  padding: 12px 20px;
    flex-direction: column;
  border-radius: 8px;
    align-items: center;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
    justify-content: center;
  flex: 0 0 120px;
    gap: 8px;
  display: flex;
    min-width: 130px;
  justify-content: center;
    align-self: center;
  align-items: center;
  font-weight: 600;
  color: var(--subtext-color);
  user-select: none;
  cursor: default;
  margin-bottom: 10px;
}
}
 
.recipe-action-content {
.action span {
    display: flex;
  margin-left: 8px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
}
 
.action-sprite .chem-beaker {
.section {
    width: 46px;
  background: var(--recipe-bg);
    height: 46px;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  font-size: 0.9em;
  margin-top: 20px;
}
}
 
.action-text {
.section-title {
    font-weight: 700;
  font-weight: bold;
    color: #ffd700;
  margin-bottom: 5px;
    font-style: italic;
    font-size: 16px;
    line-height: 1.3;
}
}
 
.chem-effects .chem-effect-line {
.section ul {
    margin-bottom: 10px;
  list-style-type: disc;
    font-size: 14px;
  padding-left: 20px;
    line-height: 1.45;
    padding-left: 4px;
}
}
 
.chem-desc {
.section ul li {
    margin: 12px 16px;
  margin-bottom: 4px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border-left: 4px solid var(--card-accent, #8cf);
    font-size: 14px;
    color: #aaa;
}
}
 
@media (max-width: 1024px) {
@media (max-width: 960px) {
    .chem-cards-container {
  .infoblock {
        grid-template-columns: repeat(2, 1fr);
    width: calc((100% - 20px) / 2);
    }
  }
}
}
 
@media (max-width: 768px) {
@media (max-width: 600px) {
    .chem-cards-container {
  .infoblock {
        grid-template-columns: 1fr;
    width: 100%;
    }
  }
    .chem-recipe {
 
        flex-direction: column;
  .recipe-block {
        gap: 18px;
    flex-wrap: wrap;
        max-width: 100%;
  }
    }
 
    .chem-beaker {
  .materials,
        width: 32px;
  .result,
        height: 32px;
  .action {
    }
    flex: 1 1 100%;
    .action-sprite .chem-beaker {
  }
        width: 38px;
 
        height: 38px;
  .action {
    }
    margin-top: 8px;
    .recipe-inputs,
  }
    .recipe-outputs {
        min-width: 100%;
    }
}
}

Текущая версия от 13:10, 4 апреля 2026

@media (max-width: 1280px) {
    .chem-heading {
        display: none;
    }
}
@media screen and (min-width: 1120px) {
    body.page-Тест .citizen-body-container {
        grid-template-areas: 'void header header' 'sidebar content toc' 'footer footer footer';
        grid-template-columns: 10% 70% 20%;
        margin-left: 8vw;
        max-width: none;
    }
}
.chem-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}
.chem-card {
    background-color: #121212;
    border: 3px solid var(--card-border, #444);
    border-radius: 12px;
    padding: 0;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    overflow: hidden;
}
.chem-name-header {
    background-color: var(--card-accent);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    padding: 14px 20px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin: 0;
}
.chem-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255,255,255,0.06);
    border-top: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}
.chem-heading-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
.heading-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--card-accent, #8cf);
}
.collapse-btn {
    border: 2px dotted #ffd700;
    padding: 2px 12px;
    border-radius: 9999px;
    font-size: 13px;
    color: #ffd700;
    background: rgba(0,0,0,0.3);
}
.collapsible {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    max-height: 0;
    padding: 0;
}
.collapsible.expanded {
    max-height: 2000px;
    padding: 12px 16px 16px;
}
.chem-recipe-block {
    text-align: center;
}
.chem-recipe-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.recipe-variant-header {
    font-size: 15px;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,215,0,0.3);
    margin-bottom: 12px;
}
.chem-recipe {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
}
.recipe-inputs {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
}
.recipe-outputs {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
}
.recipe-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 8px 14px;
    border-left: 4px solid var(--card-accent, #8cf);
    white-space: nowrap;
}
.chem-beaker {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.recipe-action {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    align-self: center;
}
.recipe-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.action-sprite .chem-beaker {
    width: 46px;
    height: 46px;
}
.action-text {
    font-weight: 700;
    color: #ffd700;
    font-style: italic;
    font-size: 16px;
    line-height: 1.3;
}
.chem-effects .chem-effect-line {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.45;
    padding-left: 4px;
}
.chem-desc {
    margin: 12px 16px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border-left: 4px solid var(--card-accent, #8cf);
    font-size: 14px;
    color: #aaa;
}
@media (max-width: 1024px) {
    .chem-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .chem-cards-container {
        grid-template-columns: 1fr;
    }
    .chem-recipe {
        flex-direction: column;
        gap: 18px;
        max-width: 100%;
    }
    .chem-beaker {
        width: 32px;
        height: 32px;
    }
    .action-sprite .chem-beaker {
        width: 38px;
        height: 38px;
    }
    .recipe-inputs,
    .recipe-outputs {
        min-width: 100%;
    }
}