diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-15 17:51:59 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-15 17:51:59 +0800 |
| commit | 1bf6de58ab13fc385a24467c84b9047bddea24da (patch) | |
| tree | 59807122f56103a6566a5cb75fde8d6426e2fcb2 /assets/css/components/_libra.scss | |
| parent | b792bbf06fd202aea6e42fd6310e3cd670532c1e (diff) | |
refactor: replace fancybox with libra
Diffstat (limited to 'assets/css/components/_libra.scss')
| -rw-r--r-- | assets/css/components/_libra.scss | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/assets/css/components/_libra.scss b/assets/css/components/_libra.scss new file mode 100644 index 00000000..71ed6efd --- /dev/null +++ b/assets/css/components/_libra.scss @@ -0,0 +1,37 @@ +.libra-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + padding: 1rem; + transition: opacity 0.2s ease-in-out; + + backdrop-filter: blur(2rem); + background-color: rgba(255, 255, 255, 0.75); + + display: flex; + justify-content: center; + align-items: center; + + cursor: pointer; +} + +@media (prefers-color-scheme: dark) { + .libra-overlay { + background-color: rgba(0, 0, 0, 0.75); + } +} + +.libra-shadow { + position: fixed; + transition-duration: 0.2s; + transition-property: transform; + display: block; + max-width: 100%; + cursor: pointer; +} + +.libra-shadow.open { + box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5); +} |
