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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 45 промежуточных версий этого же участника)
Строка 1: Строка 1:
:root {
body:before {
  --width-layout: 100vw;
    content: "";
  --card-padding: 16px;
    position: fixed;
  --gap: 20px;
    top: 0;
 
    left: 0;
  --primary-bg: #1a1a1a;
    right: 0;
  --secondary-bg: #2a2a2a;
    bottom: 0;
  --text-color: #e0e0e0;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
  --subtext-color: #b0b0b0;
    background-repeat: repeat;
  --border-color: #444444;
    pointer-events: none;
  --shadow-color: rgba(0, 0, 0, 0.4);
    opacity: 0.35;
  --header-bg: #333333;
    z-index: 2;
  --accent-color: #76c7c0;
    animation: snowmove 60s linear infinite;
  --recipe-bg: #222222;
}
 
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
}
 
.chem-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: flex-start;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
 
.infoblock {
  display: flex;
  flex-direction: column;
  width: calc((100% - 3 * var(--gap)) / 4);
  margin: 15px 0;
  padding: var(--card-padding);
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 2px 8px 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: 0;
  max-width: 100%;
}
 
.infoblock:hover {
  box-shadow: 0 6px 18px var(--shadow-color);
}
 
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  font-size: 1.2em;
  font-weight: 700;
  background: var(--header-bg);
  border-radius: 8px;
  color: var(--accent-color);
  user-select: none;
}
 
.title {
  color: #ff4d4d;
  font-weight: bold;
  user-select: none;
}
 
.infoblock img,
.header img,
.action img {
  width: 24px;
  height: auto;
  margin-right: 5px;
}
 
.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
}


.recipe-block {
@keyframes snowmove {
  display: flex;
    from { background-position: 0 0; }
  flex-wrap: nowrap;
    to { background-position: 500px 1000px; }
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 15px;
  background-color: var(--recipe-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 0;
  max-width: 100%;
}
}


.materials,
h1, h2, h3, h4, h5 {
.result,
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
.action {
    transition: text-shadow 0.3s;
  background: var(--secondary-bg);
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  font-size: 0.95em;
  overflow-wrap: break-word;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
}
}


.materials,
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
.result {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
  flex: 1 1 40%;
  flex-direction: column;
}
}


.action {
a, a:visited {
  flex: 0 0 auto;
    transition: color 0.3s, text-shadow 0.3s;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-weight: 100;
  color: var(--subtext-color);
  user-select: none;
  cursor: default;
  line-height: 1;
  min-width: 0;
  max-width: 100%;
}
}


.action span {
a:hover {
  position: relative;
    color: #b3e5fc !important;
  top: 10px;
    text-shadow: 0 0 6px #b3e5fc;
  margin-left: 0;
}
}


.section {
.wikitable {
  background: var(--secondary-bg);
    border-color: rgba(179, 229, 252, 0.6) !important;
  padding: 10px 14px;
    border-radius: 6px;
  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;
}
}


.section-title {
.wikitable th {
  font-weight: bold;
    background: rgba(179, 229, 252, 0.1);
  margin-bottom: 5px;
}
}


.section ul {
.mw-page-title-main:before {
  list-style-type: disc;
    content: " ";
  padding-left: 20px;
}
}


.section ul li {
.mw-page-title-main:after {
  margin-bottom: 4px;
     content: " ";
}
 
@media (max-width: 1200px) {
  .infoblock {
    width: calc((100% - 2 * var(--gap)) / 3);
  }
}
 
@media (max-width: 960px) {
  .infoblock {
     width: calc((100% - var(--gap)) / 2);
  }
}
 
@media (max-width: 600px) {
  .infoblock {
    width: 100%;
  }
 
  .recipe-block {
    flex-wrap: wrap;
  }
 
  .materials,
  .result,
  .action {
    flex: 1 1 100%;
    margin-top: 8px;
  }
 
  .action {
    margin-top: 8px;
  }
}
}

Текущая версия от 08:23, 13 ноября 2025

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.35;
    z-index: 2;
    animation: snowmove 60s linear infinite;
}

@keyframes snowmove {
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}

h1, h2, h3, h4, h5 {
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    transition: text-shadow 0.3s;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
}

a, a:visited {
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: #b3e5fc !important;
    text-shadow: 0 0 6px #b3e5fc;
}

.wikitable {
    border-color: rgba(179, 229, 252, 0.6) !important;
    border-radius: 6px;
}

.wikitable th {
    background: rgba(179, 229, 252, 0.1);
}

.mw-page-title-main:before {
    content: " ";
}

.mw-page-title-main:after {
    content: " ";
}