From dd2c8caaa8ac62e726ba0ddef08942519fd64037 Mon Sep 17 00:00:00 2001 From: eltrac Date: Mon, 9 Nov 2026 15:28:18 +0800 Subject: =?UTF-8?q?js:=20=E4=BD=BF=E7=94=A8=20libra.js=20=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E5=9B=BE=E7=89=87=E7=81=AF=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/libra.css | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 assets/css/libra.css (limited to 'assets/css') diff --git a/assets/css/libra.css b/assets/css/libra.css new file mode 100644 index 0000000..84216ee --- /dev/null +++ b/assets/css/libra.css @@ -0,0 +1,43 @@ +.libra-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + padding: 1rem; + transition: opacity ease-in-out; + + backdrop-filter: blur(2rem); + background-color: rgba(255, 255, 255, 0.75); + + display: flex; + justify-content: center; + align-items: center; +} + +.libra-overlay.libra-visible { + opacity: 1; + z-index: 900; +} + +.libra-overlay.libra-hidden { + opacity: 0; + z-index: -100; +} + +@media (prefers-color-scheme: dark) { + .libra-overlay { + background-color: rgba(0, 0, 0, 0.75); + } +} + +.libra-shadow { + position: absolute; + transition-property: transform; + z-index: 1000; +} + +.libra-shadow.open { + box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5); +} + -- cgit v1.2.3