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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показаны 134 промежуточные версии этого же участника)
Строка 1: Строка 1:
/* Стили для иконок химии */
body:before {
.chem-icon {
    content: "";
  width: 18px;
    position: fixed;
  height: 18px;
    top: 0;
  margin-right: 8px;
    left: 0;
  filter: invert(0.85) brightness(0.9) sepia(0.2) hue-rotate(160deg);
    right: 0;
  vertical-align: middle;
    bottom: 0;
  transition: filter 0.2s ease;
    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 {
.recipe-card::after {
    from { background-position: 0 0; }
  content: attr(data-output);
    to { background-position: 500px 1000px; }
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(79, 195, 247, 0.15);
  color: #4fc3f7;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(79, 195, 247, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
}


/* Адаптация для мобильных */
h1, h2, h3, h4, h5 {
@media (max-width: 480px) {
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
  .chem-icon {
    transition: text-shadow 0.3s;
     width: 16px;
}
     height: 16px;
 
  }
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);
  .recipe-card::after {
}
     font-size: 11px;
 
     padding: 3px 8px;
a, a:visited {
     top: 8px;
    transition: color 0.3s, text-shadow 0.3s;
     right: 8px;
}
  }
 
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: " ";
}
}

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