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 | ff0c05ca50898b4580df52e3ed6feb4596f69090 (patch) | |
| tree | 30cc3a0c20fa7c2e52c260db6abe6d4c7474a1e8 /assets/css/components/_libra.scss | |
| parent | 8a036184acbafae1a06528460a3758b282ad0878 (diff) | |
refactor: replace fancybox with libra
Former-commit-id: 1bf6de58ab13fc385a24467c84b9047bddea24da
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); +} |
