|
|
| (не показаны 53 промежуточные версии этого же участника) |
| Строка 1: |
Строка 1: |
| :root { | | body:before { |
| --primary-bg: #f5f5f7;
| | content: ""; |
| --header-bg: #ddd;
| | position: fixed; |
| --recipe-bg: #e5e5e5;
| | top: 0; |
| --text-color: #222;
| | left: 0; |
| --subtext-color: #555;
| | right: 0; |
| --accent-color: #995500;
| | bottom: 0; |
| --border-color: #ccc;
| | background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif"); |
| --shadow-color: rgba(0, 0, 0, 0.1);
| | background-repeat: repeat; |
| --width-layout: 100vw;
| | pointer-events: none; |
| --card-padding: 16px;
| | opacity: 0.35; |
| --gap: 20px;
| | z-index: 2; |
| | animation: snowmove 60s linear infinite; |
| } | | } |
|
| |
|
| @media (prefers-color-scheme: dark) { | | @keyframes snowmove { |
| :root {
| | from { background-position: 0 0; } |
| --primary-bg: #2b2b2b;
| | to { background-position: 500px 1000px; } |
| --header-bg: #333; | |
| --recipe-bg: #3a3a3a;
| |
| --text-color: #e0e0e0;
| |
| --subtext-color: #ccc;
| |
| --accent-color: #ffd;
| |
| --border-color: #555;
| |
| --shadow-color: rgba(0, 0, 0, 0.5);
| |
| }
| |
| } | | } |
|
| |
|
| .chem-container {
| | h1, h2, h3, h4, h5 { |
| display: flex;
| | text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4); |
| flex-wrap: wrap;
| | transition: text-shadow 0.3s; |
| gap: var(--gap);
| |
| justify-content: flex-start;
| |
| max-width: var(--width-layout);
| |
| margin: 0 auto;
| |
| padding: 10px;
| |
| box-sizing: border-box;
| |
| } | | } |
|
| |
|
| .infoblock {
| | h1:hover, h2:hover, h3:hover, h4:hover, h5:hover { |
| background: var(--primary-bg);
| | text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6); |
| 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);
| |
| } | | } |
|
| |
|
| .infoblock:hover {
| | a, a:visited { |
| box-shadow: 0 6px 18px var(--shadow-color);
| | transition: color 0.3s, text-shadow 0.3s; |
| } | | } |
|
| |
|
| .header {
| | a:hover { |
| display: flex;
| | color: #b3e5fc !important; |
| align-items: center;
| | text-shadow: 0 0 6px #b3e5fc; |
| 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 { | | .wikitable { |
| user-select: none;
| | border-color: rgba(179, 229, 252, 0.6) !important; |
| | border-radius: 6px; |
| } | | } |
|
| |
|
| .content { | | .wikitable th { |
| flex-grow: 1;
| | background: rgba(179, 229, 252, 0.1); |
| display: flex;
| |
| flex-direction: column;
| |
| gap: 14px;
| |
| } | | } |
|
| |
|
| .recipe-block { | | .mw-page-title-main:before { |
| display: flex;
| | content: " "; |
| gap: 12px;
| |
| flex-wrap: nowrap;
| |
| align-items: center;
| |
| margin-bottom: 12px;
| |
| } | | } |
|
| |
|
| .materials, | | .mw-page-title-main:after { |
| .result {
| | content: " "; |
| 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;
| |
| }
| |
| | |
| .action {
| |
| background: var(--recipe-bg);
| |
| padding: 12px 20px;
| |
| 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;
| |
| }
| |
| | |
| .action span {
| |
| margin-left: 8px;
| |
| }
| |
| | |
| .section {
| |
| background: var(--recipe-bg);
| |
| 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;
| |
| }
| |
| | |
| .section ul {
| |
| padding-left: 18px;
| |
| }
| |
| | |
| .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; | |
| }
| |
| }
| |
| | |
| body {
| |
| font-family: sans-serif;
| |
| background-color: #f0f0f0;
| |
| margin: 0;
| |
| padding: 0;
| |
| }
| |
| | |
| .chem-container {
| |
| display: flex;
| |
| flex-wrap: wrap;
| |
| justify-content: space-around;
| |
| padding: 20px;
| |
| gap: 20px;
| |
| }
| |
| | |
| .infoblock {
| |
| background-color: #fff;
| |
| border: 1px solid #ccc;
| |
| margin: 15px;
| |
| padding: 20px;
| |
| width: calc(30% - 30px);
| |
| box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
| |
| box-sizing: border-box;
| |
| display: flex;
| |
| flex-direction: column;
| |
| }
| |
| | |
| .infoblock .header {
| |
| display: flex;
| |
| align-items: center;
| |
| margin-bottom: 10px;
| |
| }
| |
| | |
| .infoblock img {
| |
| width: 24px;
| |
| height: auto;
| |
| margin-right: 5px;
| |
| }
| |
| | |
| .title {
| |
| color: #ff4d4d;
| |
| font-weight: bold;
| |
| }
| |
| | |
| .infoblock .content {
| |
| margin-bottom: 20px;
| |
| display: flex;
| |
| flex-direction: column;
| |
| gap: 14px;
| |
| }
| |
| | |
| .recipe-block {
| |
| border: 1px solid #eee;
| |
| padding: 15px;
| |
| background-color: #f9f9f9;
| |
| display: flex;
| |
| gap: 12px;
| |
| flex-wrap: wrap;
| |
| align-items: center;
| |
| }
| |
| | |
| .materials,
| |
| .result,
| |
| .action {
| |
| 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 {
| |
| display: flex;
| |
| align-items: center;
| |
| justify-content: center;
| |
| flex: 0 0 120px;
| |
| font-weight: 600;
| |
| color: #555;
| |
| user-select: none;
| |
| cursor: default;
| |
| }
| |
| | |
| .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;
| |
| }
| |
| } | | } |