|
|
| (не показаны 42 промежуточные версии этого же участника) |
| Строка 1: |
Строка 1: |
| :root { | | body:before { |
| --width-layout: 100vw;
| | content: ""; |
| --card-padding: 12px;
| | position: fixed; |
| --gap: 14px;
| | top: 0; |
| --primary-bg: #1a1a1a;
| | left: 0; |
| --secondary-bg: #2a2a2a;
| | right: 0; |
| --text-color: #e0e0e0;
| | bottom: 0; |
| --subtext-color: #b0b0b0;
| | background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif"); |
| --border-color: #444444;
| | background-repeat: repeat; |
| --shadow-color: rgba(0, 0, 0, 0.4);
| | pointer-events: none; |
| --header-bg: #333333;
| | opacity: 0.35; |
| --accent-color: #76c7c0;
| | z-index: 2; |
| --recipe-bg: #222222;
| | animation: snowmove 60s linear infinite; |
| } | | } |
|
| |
|
| body {
| | @keyframes snowmove { |
| font-family: sans-serif;
| | from { background-position: 0 0; } |
| margin: 0;
| | to { background-position: 500px 1000px; } |
| padding: 0;
| |
| color: var(--text-color);
| |
| font-size: 14px;
| |
| } | | } |
|
| |
|
| /* Возвращаем правило для action span */
| | h1, h2, h3, h4, h5 { |
| .action span {
| | text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4); |
| position: relative;
| | transition: text-shadow 0.3s; |
| top: 10px;
| |
| margin-left: 0;
| |
| } | | } |
|
| |
|
| .chem-container {
| | h1:hover, h2:hover, h3:hover, h4:hover, h5:hover { |
| display: flex;
| | text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6); |
| 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 {
| | a, a:visited { |
| display: flex;
| | transition: color 0.3s, text-shadow 0.3s; |
| flex-direction: column;
| |
| flex-grow: 1;
| |
| flex-basis: 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: 250px;
| |
| max-width: 100%;
| |
| } | | } |
|
| |
|
| .infoblock:hover {
| | a:hover { |
| box-shadow: 0 4px 12px var(--shadow-color);
| | color: #b3e5fc !important; |
| | text-shadow: 0 0 6px #b3e5fc; |
| } | | } |
|
| |
|
| .header { | | .wikitable { |
| display: flex;
| | border-color: rgba(179, 229, 252, 0.6) !important; |
| align-items: center;
| |
| gap: 6px;
| |
| margin-bottom: 10px;
| |
| padding: 4px 10px;
| |
| font-size: 1.1em;
| |
| font-weight: 700;
| |
| background: var(--header-bg);
| |
| border-radius: 6px;
| |
| color: var(--accent-color);
| |
| user-select: none;
| |
| }
| |
| | |
| .title {
| |
| font-weight: bold;
| |
| user-select: none;
| |
| }
| |
| | |
| .content {
| |
| flex-grow: 1;
| |
| display: flex;
| |
| flex-direction: column;
| |
| gap: 10px;
| |
| margin-bottom: 16px;
| |
| }
| |
| | |
| .recipe-block {
| |
| display: flex;
| |
| flex-wrap: nowrap; /* Не переносим элементы, они остаются в одну строку */
| |
| align-items: center;
| |
| gap: 10px;
| |
| margin-bottom: 10px;
| |
| padding: 10px;
| |
| background-color: var(--recipe-bg);
| |
| border: 1px solid var(--border-color);
| |
| border-radius: 6px;
| |
| min-width: 0;
| |
| max-width: 100%;
| |
| box-sizing: border-box;
| |
| overflow-x: auto; /* Позволяет прокручивать содержимое по горизонтали, если оно не помещается */
| |
| -webkit-overflow-scrolling: touch; /* Улучшает прокрутку на iOS */
| |
| }
| |
| | |
| .materials,
| |
| .result,
| |
| .action {
| |
| background: var(--secondary-bg);
| |
| border-radius: 6px;
| |
| box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
| |
| color: var(--text-color);
| |
| font-size: 0.9em;
| |
| padding: 8px 12px;
| |
| display: flex;
| |
| justify-content: flex-start;
| |
| align-items: center;
| |
| text-align: left;
| |
| flex-shrink: 0; /* Не сжимаем эти блоки, они сохраняют свой размер */
| |
| flex-grow: 0; /* Не позволяем им растягиваться */
| |
| flex-basis: auto; /* Базовый размер определяется содержимым */
| |
| min-width: max-content; /* Ширина будет такой, чтобы вместить все содержимое */
| |
| max-width: none; /* Убираем ограничение max-width */
| |
| flex-direction: column;
| |
| box-sizing: border-box;
| |
| }
| |
| | |
| .materials div,
| |
| .result div {
| |
| display: flex;
| |
| justify-content: flex-start;
| |
| align-items: center;
| |
| padding: 2px 0;
| |
| line-height: 1.3;
| |
| width: 100%;
| |
| box-sizing: border-box;
| |
| word-break: break-word; /* перенос слов внутри самого DIV */
| |
| }
| |
| | |
| .mat-name {
| |
| font-weight: bold;
| |
| flex-grow: 1;
| |
| overflow: visible;
| |
| text-overflow: unset;
| |
| white-space: normal;
| |
| word-break: break-word;
| |
| min-width: 0;
| |
| }
| |
| | |
| .mat-qty {
| |
| color: var(--subtext-color);
| |
| font-size: 0.95em;
| |
| width: 50px;
| |
| text-align: right;
| |
| flex-shrink: 0;
| |
| margin-left: 12px;
| |
| box-sizing: border-box;
| |
| }
| |
| | |
| .action {
| |
| flex: 0 0 auto; /* Убираем фиксированную ширину, позволяя ей быть авто */
| |
| padding: 0;
| |
| display: flex;
| |
| justify-content: center;
| |
| align-items: center;
| |
| font-weight: 100;
| |
| color: var(--subtext-color);
| |
| user-select: none;
| |
| cursor: default;
| |
| line-height: 1;
| |
| margin-top: 4px;
| |
| }
| |
| | |
| /* Правило для .action span возвращено в начале файла */
| |
| | |
| .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 {
| |
| flex-basis: calc((100% - 2 * var(--gap)) / 3);
| |
| }
| |
| }
| |
| | |
| @media (max-width: 960px) {
| |
| .infoblock {
| |
| flex-basis: calc((100% - var(--gap)) / 2);
| |
| }
| |
| }
| |
| | |
| @media (max-width: 600px) {
| |
| .infoblock {
| |
| flex-basis: 100%;
| |
| margin: 10px 0;
| |
| }
| |
| | |
| | |
| /* Стили для переключателей/кнопок сворачивания */
| |
| .section-toggle {
| |
| background-color: var(--header-bg); /* Используем цвет заголовка */
| |
| color: var(--accent-color); /* Используем акцентный цвет */
| |
| padding: 8px 10px;
| |
| margin-bottom: 10px; /* Отступ от следующего блока */
| |
| border-radius: 6px; | | border-radius: 6px; |
| cursor: pointer; /* Показываем, что это интерактивный элемент */
| |
| font-weight: bold;
| |
| user-select: none; /* Предотвращаем выделение текста при клике */
| |
| transition: background-color 0.2s ease;
| |
| }
| |
|
| |
| .section-toggle:hover {
| |
| background-color: #444; /* Немного темнее при наведении */
| |
| } | | } |
|
| |
|
| /* Стили для сворачиваемого контента */
| | .wikitable th { |
| .collapsible-content { | | background: rgba(179, 229, 252, 0.1); |
| /* Эти стили будут изменены JS для сворачивания/разворачивания */ | |
| max-height: 1000px; /* Достаточно большое значение для "развернутого" состояния */
| |
| overflow: hidden;
| |
| transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
| |
| opacity: 1;
| |
| } | | } |
|
| |
|
| .collapsible-content.collapsed { | | .mw-page-title-main:before { |
| max-height: 0;
| | content: " "; |
| opacity: 0;
| |
| margin-top: 0; /* Убираем лишний отступ, если блок свернут */
| |
| margin-bottom: 0; | |
| padding-top: 0;
| |
| padding-bottom: 0;
| |
| } | | } |
|
| |
|
| /* Дополнительные отступы для section-content внутри section, чтобы не было слипания с toggle */
| | .mw-page-title-main:after { |
| .section-content {
| | content: " "; |
| padding-top: 8px; /* Добавляем отступ сверху */
| |
| padding-bottom: 8px; /* Добавляем отступ снизу */ | |
| } | | } |