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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 16 промежуточных версий этого же участника)
Строка 1: Строка 1:
.chem-grid {
body:before {
  display: grid;
    content: "";
  grid-template-columns: repeat(4, 1fr);
    position: fixed;
  gap: 12px;
    top: 0;
  align-items: start;
    left: 0;
  margin: 8px 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;
}
}


@media (max-width: 1200px) {
@keyframes snowmove {
  .chem-grid { grid-template-columns: repeat(3, 1fr); }
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}
}
@media (max-width: 900px) {
 
  .chem-grid { grid-template-columns: repeat(2, 1fr); }
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;
}
}
@media (max-width: 520px) {
 
  .chem-grid { grid-template-columns: 1fr; }
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);
}
}


.chem-card {
a, a:visited {
  --card-bg: #0f1113;          /* по умолчанию фон карточки (тёмный) */
    transition: color 0.3s, text-shadow 0.3s;
  --card-accent: #2a9d8f;      /* акцент/градиент (можно задавать) */
  --card-border: #203030;      /* цвет рамки по умолчанию */
  --section-bg: rgba(255,255,255,0.02);
  color: #e6eef1;
  background: linear-gradient(90deg, var(--card-bg) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  min-height: 120px;
  transition: transform .08s ease, box-shadow .08s ease;
}
}


.chem-card:hover {
a:hover {
  transform: translateY(-4px);
    color: #b3e5fc !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.65);
    text-shadow: 0 0 6px #b3e5fc;
}
}


.chem-header {
.wikitable {
  display: flex;
    border-color: rgba(179, 229, 252, 0.6) !important;
  justify-content: space-between;
    border-radius: 6px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
}
.chem-header h3 {
 
  margin: 0;
.wikitable th {
  font-size: 1.05rem;
    background: rgba(179, 229, 252, 0.1);
  line-height: 1;
}
.chem-header .formula {
  opacity: 0.9;
  font-size: 0.95rem;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02));
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.03);
}
}


.chem-section {
.mw-page-title-main:before {
  margin: 6px 0;
    content: " ";
  padding: 6px;
  background: var(--section-bg);
  border-radius: 6px;
  font-size: 0.95rem;
}
}


.chem-recipe {
.mw-page-title-main:after {
  display: flex;
    content: " ";
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.chem-recipe .recipe-group {
  flex: 1 1 48%;
  min-width: 160px;
  background: rgba(0,0,0,0.12);
  padding: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.03);
}
.chem-recipe .recipe-group b { display:block; margin-bottom:6px; }
.chem-recipe .recipe-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 0.9rem;
}
}
.chem-recipe .recipe-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chem-recipe .recipe-item .qty { opacity: 0.85; }
.chem-effects { margin: 0; padding-left: 18px; }
.chem-effects li { margin: 4px 0; font-size: 0.92rem; }
.chem-desc { font-size: 0.9rem; opacity: 0.95; }

Текущая версия от 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: " ";
}