MediaWiki:Gadget-AbsyFancyBoxy.css: различия между версиями
Ланселот (обсуждение | вклад) Нет описания правки |
Ланселот (обсуждение | вклад) Нет описания правки |
||
| Строка 33: | Строка 33: | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
justify-content: | justify-content: flex-start; | ||
max-width: 90vw; | max-width: 90vw; | ||
max-height: 90vh; | max-height: 90vh; | ||
z-index: 1; | z-index: 1; | ||
overflow: hidden; | overflow: hidden; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| Строка 47: | Строка 47: | ||
max-width: 90vw; | max-width: 90vw; | ||
max-height: 80vh; | max-height: 80vh; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
min-height: 0; | min-height: 0; | ||
} | } | ||
| Строка 71: | Строка 71: | ||
text-shadow: 1px 1px 3px #000; | text-shadow: 1px 1px 3px #000; | ||
max-width: 90vw; | max-width: 90vw; | ||
flex: 1 1 auto; | flex: 1 1 auto; | ||
min-height: | min-height: 0; | ||
max-height: 30vh; | |||
overflow-y: auto; | overflow-y: auto; | ||
overflow-x: hidden; | overflow-x: hidden; | ||
-webkit-overflow-scrolling: touch; | -webkit-overflow-scrolling: touch; | ||
overscroll-behavior: contain; | overscroll-behavior: contain; | ||
scrollbar-width: thin; | scrollbar-width: thin; | ||
scrollbar-color: rgba(255,255,255,0.4) transparent; | scrollbar-color: rgba(255,255,255,0.4) transparent; | ||
pointer-events: auto; | pointer-events: auto; | ||
line-height: 1.4; | line-height: 1.4; | ||
| Строка 86: | Строка 85: | ||
word-break: break-word; | word-break: break-word; | ||
white-space: normal; | white-space: normal; | ||
padding: 0 4px; | padding: 0 4px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
#absyfancyboxy-caption::-webkit-scrollbar { | #absyfancyboxy-caption::-webkit-scrollbar { | ||
width: 6px; | width: 6px; | ||
| Строка 107: | Строка 105: | ||
#absyfancyboxy-filelink { | #absyfancyboxy-filelink { | ||
align-self: center; | align-self: center; | ||
margin-top: | margin-top: 8px; | ||
margin-bottom: 8px; | margin-bottom: 8px; | ||
color: #8ecbff; | color: #8ecbff; | ||
font-size: 12px; | font-size: 12px; | ||
| Строка 120: | Строка 118: | ||
transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s; | transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s; | ||
outline: none; | outline: none; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
} | } | ||
| Строка 139: | Строка 137: | ||
#absyfancyboxy-counter { | #absyfancyboxy-counter { | ||
position: absolute; | position: absolute; | ||
color: #fff; | color: #fff; | ||
| Строка 147: | Строка 144: | ||
font-family: sans-serif; | font-family: sans-serif; | ||
white-space: nowrap; | white-space: nowrap; | ||
pointer-events: none; | pointer-events: none; | ||
z-index: 5; | z-index: 5; | ||
transform: translateX(-50%); | transform: translateX(-50%); | ||
} | } | ||
| Строка 154: | Строка 151: | ||
#absyfancyboxy-close { | #absyfancyboxy-close { | ||
position: absolute; | position: absolute; | ||
width: 18px; | |||
height: 18px; | |||
width: | |||
height: | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Строка 222: | Строка 217: | ||
outline-offset: 2px; | outline-offset: 2px; | ||
border-radius: 4px; | border-radius: 4px; | ||
} | |||
/* ===== Только альбомная ориентация: уменьшаем картинку до 70vh ===== */ | |||
@media (orientation: landscape) { | |||
.absyfancyboxy-imagewrap, | |||
#absyfancyboxy-image { | |||
max-height: 70vh; /* в альбоме 80vh не влезает — уменьшаем */ | |||
} | |||
#absyfancyboxy-caption { | |||
max-height: 15vh; /* и подпись уменьшаем, чтобы кнопка не уезжала */ | |||
} | |||
} | |||
/* На низких альбомных экранах (телефон) скрываем «ФАЙЛ» и счётчик */ | |||
@media (orientation: landscape) and (max-height: 500px) { | |||
#absyfancyboxy-filelink, | |||
#absyfancyboxy-counter { | |||
display: none !important; | |||
} | |||
} | } | ||