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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 169 промежуточных версий этого же участника)
Строка 1: Строка 1:
body {
body:before {
  background-color: #121212;
    content: "";
  color: #e0e0e0;
    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;
}
}


#chemistry-recipes {
@keyframes snowmove {
  margin-top: 1em;
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}
}


/* Общий стиль карточек */
h1, h2, h3, h4, h5 {
.chem-recipe {
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
  border-radius: 10px;
    transition: text-shadow 0.3s;
  margin-bottom: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  overflow: hidden;
  background-color: #1e1e1e;
  color: #e0e0e0;
}
}


/* Шапка карточки */
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
.chem-header {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
  padding: 0.8em 1em;
  font-weight: bold;
  font-size: 1.2em;
  cursor: pointer;
  user-select: none;
  color: #fff;
}
}


/* Контент карточки */
a, a:visited {
.chem-content {
    transition: color 0.3s, text-shadow 0.3s;
  padding: 1em;
  background-color: #262626;
  display: none;
}
}


.chem-content ul {
a:hover {
  margin: 0.4em 0 0.8em 1.2em;
    color: #b3e5fc !important;
  padding-left: 1em;
    text-shadow: 0 0 6px #b3e5fc;
}
}


.chem-content p {
.wikitable {
  margin: 0.4em 0;
    border-color: rgba(179, 229, 252, 0.6) !important;
    border-radius: 6px;
}
}


.chem-content hr {
.wikitable th {
  border: none;
    background: rgba(179, 229, 252, 0.1);
  border-top: 1px solid #444;
  margin: 0.5em 0;
}
}


/* Индивидуальные цвета */
.mw-page-title-main:before {
.chem-mannitol .chem-header {
    content: " ";
  background-color: #6a5acd; /* фиолетовый */
}
}


.chem-chlorine .chem-header {
.mw-page-title-main:after {
  background-color: #9acd32; /* жёлто-зелёный */
    content: " ";
}
 
.chem-fluorine .chem-header {
  background-color: #ffcc00; /* бледно-жёлтый */
  color: #000;
}
 
.chem-iron .chem-header {
  background-color: #b0b0b0; /* стальной серый */
  color: #000;
}
}

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