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:
        ul {
.image-zoom {
            list-style-type: none;
    position: relative;
            padding: 0;
    display: inline-block;
        }
    width: 300px; /* Измените на нужную ширину */
}


        .image-zoom {
.image-zoom img {
            position: relative;
    width: 100%;
            display: inline-block;
    height: auto;
            width: 300px; /* Задайте желаемую ширину изображения */
    transition: transform 0.3s ease-in-out;
        }
}


        .image-zoom img {
.zoom-btn {
            width: 100%;
    position: absolute;
            height: auto;
    bottom: 10px;
            transition: transform 0.3s ease-in-out;
    right: 10px;
        }
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1;
}


        .zoom-btn {
.zoom-btn:hover {
            position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
            bottom: 10px;
}
            right: 10px;
            padding: 5px 10px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }


        .zoom-btn:hover {
            background-color: rgba(0, 0, 0, 0.9);
        }




Navigation menu