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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показаны 63 промежуточные версии этого же участника)
Строка 1: Строка 1:
  :root {
body:before {
     --width-layout: 100vw;
     content: "";
  }
     position: fixed;
  .infoblocks {
     top: 0;
     display: flex;
     left: 0;
     flex-wrap: wrap;
     right: 0;
     gap: 1.2em;
     bottom: 0;
     justify-content: flex-start;
     background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
     padding: 2em;
     background-repeat: repeat;
     max-width: var(--width-layout);
     pointer-events: none;
    margin: 0 auto;
     opacity: 0.35;
  }
     z-index: 2;
  .infoblock {
     animation: snowmove 60s linear infinite;
    background: #2b2b2b;
}
    color: #e0e0e0;
    flex: 1 1 calc(25% - 1.2em);
     min-width: 280px;
     border: 1px solid #555;
    border-radius: 8px;
     display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .infoblock .header {
    display: flex;
     align-items: center;
     padding: 0.75em 1em;
    gap: 0.6em;
    background: #333;
    border-bottom: 1px solid #555;
  }
  .infoblock .header img { width: 22px; }
  .infoblock .header .title { font-weight: bold; font-size: 1.15em; }


  .infoblock .content {
@keyframes snowmove {
     padding: 1em;
     from { background-position: 0 0; }
    display: flex;
     to { background-position: 500px 1000px; }
    flex-direction: column;
}
    line-height: 1.5;
    flex: 1;
  }
  /* Блок рецептов: сетка материалов, действия, результата */
  .recipe-block {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5em;
    border: 1px dashed #666;
    padding: 0.75em;
    margin-bottom: 1em;
    background: #2f2f2f;
  }
  .materials, .result {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
  }
  .materials .section-title, .result .section-title {
    font-weight: bold;
    font-size: 1em;
    color: #fff;
    margin-bottom: 0.4em;
  }
  .materials ul, .result ul {
    margin: 0;
    padding: 0;
     list-style: none;
  }
  .materials li, .result li { font-size: 0.95em; }
  .action {
    text-align: center;
  }
  .action img {
    width: 20px;
    display: block;
    margin: 0 auto 0.2em;
  }
  .action span { color: #ccc; font-size: 0.95em; }


  .section { margin-bottom: 1em; }
h1, h2, h3, h4, h5 {
  .section:last-child { margin-bottom: 0; }
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
  .section-title { font-weight: bold; font-size: 1.05em; color: #ccc; margin-bottom: 0.6em; }
    transition: text-shadow 0.3s;
  .section ul { margin: 0; padding-left: 1.4em; }
}
  .section ul li { margin-bottom: 0.4em; }
 
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: " ";
}

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