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

Нет описания правки
Нет описания правки
Строка 2: Строка 2:


#absyfancyboxy-overlay {
#absyfancyboxy-overlay {
     z-index: 10000 !important;
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
     z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
}


#absyfancyboxy-overlay img {
#absyfancyboxy-overlay.is-open {
    display: flex;
}
 
.absyfancyboxy-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    cursor: zoom-out;
}
 
.absyfancyboxy-stage {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}
 
#absyfancyboxy-image {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
     user-select: none;
     user-select: none;
     -webkit-user-drag: none;
     -webkit-user-drag: none;
}
}


#absyfancyboxy-close:hover {
#absyfancyboxy-caption {
     opacity: 1 !important;
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    text-shadow: 1px 1px 3px #000;
    max-width: 90vw;
    line-height: 1.4;
    pointer-events: none;
}
 
#absyfancyboxy-counter {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    opacity: 0.8;
    text-shadow: 1px 1px 3px #000;
    font-family: sans-serif;
    white-space: nowrap;
}
 
#absyfancyboxy-close {
    position: absolute;
    top: 12px;
    right: 20px;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    font-family: sans-serif;
    z-index: 10;
    outline: none;
}
 
#absyfancyboxy-close:hover,
#absyfancyboxy-close:focus {
    opacity: 1;
}
 
#absyfancyboxy-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 4px;
}
 
.absyfancyboxy-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    user-select: none;
    font-family: sans-serif;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    z-index: 10;
    transition: opacity 0.15s, background 0.15s;
    outline: none;
}
 
.absyfancyboxy-arrow[data-dir="prev"] { left: 12px; }
.absyfancyboxy-arrow[data-dir="next"] { right: 12px; }
 
.absyfancyboxy-arrow:hover,
.absyfancyboxy-arrow:focus {
     opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}
}


.absyfancyboxy-arrow:hover {
.absyfancyboxy-arrow:focus-visible {
     opacity: 1 !important;
     outline: 2px solid #fff;
     background: rgba(0,0,0,0.7) !important;
     outline-offset: 2px;
}
}