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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 118 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Стили для темной темы */
body:before {
body {
    content: "";
  background-color: #121212;
    position: fixed;
  color: white;
    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 {
.dropdown {
    from { background-position: 0 0; }
  position: relative;
    to { background-position: 500px 1000px; }
  display: inline-block;
}
}


.dropdown-button {
h1, h2, h3, h4, h5 {
  background-color: #333;
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
  color: white;
    transition: text-shadow 0.3s;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
}


.dropdown-button:hover {
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
  background-color: #444;
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
}
}


.dropdown-content {
a, a:visited {
  display: none;
    transition: color 0.3s, text-shadow 0.3s;
  position: absolute;
  background-color: #333;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: 200px;
}
}


.dropdown-content ul {
a:hover {
  list-style-type: none;
    color: #b3e5fc !important;
  margin: 0;
    text-shadow: 0 0 6px #b3e5fc;
  padding: 0;
}
}


.dropdown-content li {
.wikitable {
  padding: 10px;
    border-color: rgba(179, 229, 252, 0.6) !important;
  color: white;
    border-radius: 6px;
}
}


.dropdown-content li:hover {
.wikitable th {
  background-color: #555;
    background: rgba(179, 229, 252, 0.1);
}
}


/* Показывать выпадающий список при клике */
.mw-page-title-main:before {
.dropdown.open .dropdown-content {
    content: " ";
  display: block;
}
 
.mw-page-title-main:after {
    content: " ";
}
}

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