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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 60 промежуточных версий этого же участника)
Строка 1: Строка 1:
:root {
body:before {
     --width-layout: 100vw;
     content: "";
     --card-bg: #2b2b2b;
    position: fixed;
     --header-bg: #333;
    top: 0;
     --recipe-bg: #3a3a3a;
    left: 0;
     --section-bg: transparent;
     right: 0;
     --border-color: #555;
     bottom: 0;
     --accent-color: #ffd;
     background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
     --text-color: #e0e0e0;
     background-repeat: repeat;
     --subtext-color: #ccc;
     pointer-events: none;
  }
     opacity: 0.35;
     z-index: 2;
     animation: snowmove 60s linear infinite;
}


  .infoblocks {
@keyframes snowmove {
     column-count: 3;
     from { background-position: 0 0; }
     column-gap: 1.5em;
     to { background-position: 500px 1000px; }
    padding: 2em;
}
    max-width: var(--width-layout);
    margin: 0 auto;
  }


  .infoblock {
h1, h2, h3, h4, h5 {
     background: var(--card-bg);
     text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    color: var(--text-color);
     transition: text-shadow 0.3s;
    border: 1px solid var(--border-color);
}
     border-radius: 8px;
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5em;
    break-inside: avoid;
  }


  .infoblock .header {
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
    display: flex;
     text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
    align-items: center;
}
    padding: 0.75em 1em;
    background: var(--header-bg);
     border-bottom: 1px solid var(--border-color);
  }
  .infoblock .header img { width: 24px; margin-right: 0.5em; }
  .infoblock .header .title { font-weight: bold; font-size: 1.2em; }


  .infoblock .content {
a, a:visited {
     padding: 1em;
     transition: color 0.3s, text-shadow 0.3s;
    display: flex;
}
    flex-direction: column;
  }


  .recipe-block {
a:hover {
     display: flex;
     color: #b3e5fc !important;
     flex-direction: row;
     text-shadow: 0 0 6px #b3e5fc;
    justify-content: space-between;
}
    align-items: flex-start;
 
    gap: 0.75em;
.wikitable {
     padding: 0.5em 0.75em;
     border-color: rgba(179, 229, 252, 0.6) !important;
    background: var(--recipe-bg);
     border-radius: 6px;
     border-radius: 6px;
    margin-bottom: 1em;
}
  }
 
  .materials, .result {
    flex: 1;
  }


  .materials .section-title,
.wikitable th {
  .result .section-title {
     background: rgba(179, 229, 252, 0.1);
     font-weight: bold;
}
    font-size: 0.95em;
    color: var(--accent-color);
    margin-bottom: 0.3em;
  }
  .materials ul,
  .result ul {
    margin: 0;
    padding: 0 0 0 1.2em;
  }
  .materials li,
  .result li {
    font-size: 0.9em;
    line-height: 1.3;
  }


  .action {
.mw-page-title-main:before {
    text-align: center;
     content: " ";
    color: var(--subtext-color);
}
    font-size: 0.85em;
    display: flex;
    flex-direction: column;
     justify-content: center;
    align-items: center;
    padding: 0 0.5em;
  }
  .action img {
    width: 20px;
    margin-bottom: 0.2em;
  }


  .section {
.mw-page-title-main:after {
    margin-bottom: 1em;
     content: " ";
    background: var(--section-bg);
}
  }
  .section-title {
    font-weight: bold;
    font-size: 1em;
    color: var(--subtext-color);
    margin-bottom: 0.5em;
  }
  .section ul {
     margin: 0;
    padding-left: 1.4em;
  }
  .section ul li { margin-bottom: 0.4em; }

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