/
githubmirror
/
obsidian-clipper
Обзор
Документация
Войти
/
githubmirror
/
obsidian-clipper
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/styles/reader/lightbox.scss
135 строк
2 KB
Steph Ango
Highlights viewer (#778)
15 апр 2026, 06:20
Не верифицирован
15 апр 2026, 06:20
e535a5b
Код
Авторство
О чём код?
.obsidian-reader-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--background-primary); z-index: 9999999999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; &.active { display: flex; opacity: 1; } .lightbox-content { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing: border-box; overflow-y: auto; } .lightbox-image-container { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; img { max-width: 100vw; max-height: calc(90vh - 100px); height: 100%; width: 100%; object-fit: contain; border-radius: var(--radius-s); mix-blend-mode: normal !important; filter: none !important; cursor: default; } } .lightbox-caption { width: 800px; max-width: 90vw; margin-top: 10px; color: var(--text-muted); font-family: var(--font-ui); font-size: 0.8em; line-height: 1.4; text-align: center; padding-bottom: 40px; } .lightbox-close { position: fixed; top: var(--size-4-5); right: var(--size-4-5); width: 40px; height: 40px; border: none; padding: 0; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; z-index: 1; svg { width: var(--icon-m); height: var(--icon-m); } } } .obsidian-reader-active { img:not(a img):not(figure img) { position: relative; cursor: zoom-in; &:hover::after { opacity: 1; } + img { margin-top: 0.5em; } } .image-wrapper { position: relative; display: inline-block; img { display: block; } .image-expand-button { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; padding: 0; border: none; background: var(--text-normal); border-radius: var(--radius-s); color: var(--background-primary); cursor: pointer; display: flex; align-items: center; opacity: 0; justify-content: center; z-index: 1; outline: none; svg { mix-blend-mode: normal !important; } } &:hover { .image-expand-button { opacity: 1; } } } }