MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 5: Line 5:
     border: 2px solid #000;
     border: 2px solid #000;
     border-radius: 8px;
     border-radius: 8px;
     background-color: #fff;
     background-color: transparent; /* Прозрачный фон */
     cursor: pointer;
     cursor: pointer;
     transition: all 0.2s ease;
     transition: all 0.2s ease;
    /* Добавляем внутренние отступы */
     padding: 5px;
     padding: 5px; /* Отступы со всех сторон */
     box-sizing: border-box;
     box-sizing: border-box; /* Учитываем padding в размерах */
     display: flex;
     /* Фоновое изображение */
     justify-content: center;
    background-image: url('your-image.png');
     align-items: center;
     background-size: 80%; /* Уменьшаем размер фона, чтобы были отступы */
     background-position: center center; /* Центрируем */
    background-repeat: no-repeat; /* Без повторения */
    background-clip: content-box; /* Фон не выходит за пределы padding */
}
}


Line 25: Line 21:
.social-media:active {
.social-media:active {
     background-color: #ccc;
     background-color: #ccc;
}
.social-media a {
    width: 100%;
    height: 100%;
    background-image: url('your-image.png');
    background-size: 80%;
    background-position: center center;
    background-repeat: no-repeat;
    background-clip: content-box;
    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

Help

Help Image

Here's pages that you can help us to get more information about them.

Stand with Ukraine

Ukrainian Flag