MediaWiki:Gadget-AbsyFancyBoxy.css: различия между версиями
Ланселот (обсуждение | вклад) попробую эстетичней |
Ланселот (обсуждение | вклад) Нет описания правки |
||
| Строка 33: | Строка 33: | ||
max-height: 90vh; | max-height: 90vh; | ||
z-index: 1; | z-index: 1; | ||
} | |||
.absyfancyboxy-imagewrap { | |||
position: relative; | |||
display: inline-block; | |||
line-height: 0; | |||
max-width: 90vw; | |||
max-height: 80vh; | |||
} | } | ||
| Строка 110: | Строка 118: | ||
#absyfancyboxy-close { | #absyfancyboxy-close { | ||
position: absolute; | position: absolute; | ||
top: | top: 8px; | ||
right: | right: 8px; | ||
width: 32px; | |||
height: 32px; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
color: #fff; | color: #fff; | ||
font-size: | font-size: 24px; | ||
line-height: 1; | line-height: 1; | ||
cursor: pointer; | cursor: pointer; | ||
opacity: 0. | opacity: 0.85; | ||
font-family: sans-serif; | font-family: sans-serif; | ||
z-index: 10; | z-index: 10; | ||
outline: none; | outline: none; | ||
background: rgba(0, 0, 0, 0.55); | |||
border-radius: 50%; | |||
transition: opacity 0.15s, background 0.15s; | |||
} | } | ||
| Строка 125: | Строка 141: | ||
#absyfancyboxy-close:focus { | #absyfancyboxy-close:focus { | ||
opacity: 1; | opacity: 1; | ||
background: rgba(0, 0, 0, 0.8); | |||
} | } | ||
#absyfancyboxy-close:focus-visible { | #absyfancyboxy-close:focus-visible { | ||
outline: 2px solid #fff; | outline: 2px solid #fff; | ||
outline-offset: | outline-offset: 2px; | ||
border-radius: | border-radius: 50%; | ||
} | } | ||