MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
/* Media */
/* Media */
.social-media-row {
    display: flex; /* Располагаем элементы в ряд */
    gap: 10px; /* Отступ между контейнерами */
}
/* Стили для каждого контейнера */
.social-media {
.social-media {
     width: 50px;
     width: 50px;
Line 5: Line 11:
     border: 2px solid #000;
     border: 2px solid #000;
     border-radius: 8px;
     border-radius: 8px;
     background-color: transparent; /* Прозрачный фон */
     background-color: transparent;
     cursor: pointer;
     cursor: pointer;
     transition: all 0.2s ease;
     transition: all 0.2s ease;
Line 32: Line 38:
     background-clip: content-box;
     background-clip: content-box;
     display: block;
     display: block;
}
.mw-parser-output a[href="/index.php/Special:Random"],
.social-media a[href="/index.php/Special:Random"] {
    position: relative;
    display: inline-block;
}
.mw-parser-output a[href="/index.php/Special:Random"]::before,
.social-media a[href="/index.php/Special:Random"]::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: 1;
}
}


Navigation menu