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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показаны 72 промежуточные версии этого же участника)
Строка 1: Строка 1:
  .infoblocks {
body:before {
     display: flex;
     content: "";
     flex-wrap: wrap;
     position: fixed;
     gap: 1em;
     top: 0;
     justify-content: center;
     left: 0;
     margin: 1em 0;
     right: 0;
  }
     bottom: 0;
  .infobocks-container {
     background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
     /* Ничего не задаем: фон и цвета наследуются от темы вики */
     background-repeat: repeat;
  }
     pointer-events: none;
  .infoblocks .infoblock {
     opacity: 0.35;
     background: transparent;
     z-index: 2;
    color: inherit;
     animation: snowmove 60s linear infinite;
     width: 300px;
}
     border: 1px solid #a2a9b1;
 
     border-radius: 0 0 8px 8px;
@keyframes snowmove {
     font-family: sans-serif;
     from { background-position: 0 0; }
     overflow: hidden;
     to { background-position: 500px 1000px; }
     display: flex;
}
     flex-direction: column;
 
  }
h1, h2, h3, h4, h5 {
  .infoblock .header {
     text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
     display: flex;
     transition: text-shadow 0.3s;
    align-items: center;
}
    padding: 0.5em;
 
    gap: 0.5em;
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
     background: #3e3e3e; /* темный заголовок */
     text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
    border-bottom: 1px solid #a2a9b1;
}
  }
 
  .infoblock .header img {
a, a:visited {
    width: 20px;
     transition: color 0.3s, text-shadow 0.3s;
    height: auto;
}
  }
 
  .infoblock .header .title {
a:hover {
     font-weight: bold;
     color: #b3e5fc !important;
  }
     text-shadow: 0 0 6px #b3e5fc;
  .infoblock .content {
}
     padding: 0.75em;
 
    display: flex;
.wikitable {
    flex-direction: column;
     border-color: rgba(179, 229, 252, 0.6) !important;
     line-height: 1.4;
     border-radius: 6px;
  }
}
  .infoblock .section {
 
     margin-bottom: 0.75em;
.wikitable th {
  }
     background: rgba(179, 229, 252, 0.1);
  .infoblock .section h4 {
}
     margin: 0 0 0.5em;
 
     font-weight: bold;
.mw-page-title-main:before {
     font-size: 0.95em;
     content: " ";
  }
}
  .infoblock .section ul {
 
     margin: 0;
.mw-page-title-main:after {
    padding-left: 1.2em;
     content: " ";
  }
}
  .infoblock .section ul li {
     margin-bottom: 0.3em;
  }

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