/* * oaer.css * Copyright (C) 2024 veypi * * Distributed under terms of the MIT license. */ @import "./animate.scss"; :root { --bg-base: #efefef; --fg-base: #090909 } .voa { user-select: none; cursor: pointer; height: inherit; width: inherit; display: flex; justify-content: center; align-items: center; .voa-off {} .voa-on { border-radius: 100%; background: #999; height: inherit; width: inherit; img { height: inherit; width: inherit; vertical-align: middle; border-radius: 50%; } } :hover { opacity: 0.9; } } .voa-modal { user-select: none; position: fixed; top: 50%; left: 50%; translate: -50% -50%; padding: 2rem; z-index: 10000; width: 40%; min-width: 20rem; &::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 2rem; background-color: rgba(240, 240, 240, 0.5); backdrop-filter: blur(20px); /* 模糊效果 */ z-index: -1; } } .voa-slide-mask { position: fixed; visibility: hidden; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 999; &::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.11); /* 半透明白色遮罩 */ backdrop-filter: blur(1px); /* 模糊效果 */ } .voa-slide { position: absolute; top: 0; right: 0; height: 100vh; width: 20rem; .voa-slide-header { position: relative; width: 100%; height: 4rem; background: linear-gradient(90deg, #6849E1, #b09ef4); z-index: 1; } .voa-slide-body { position: relative; width: 100%; height: calc(100% - 4rem); background: var(--bg-base); color: var(--fg-base); transform: translateY(-140%); .voa-slide-main { height: calc(100% - 3rem); overflow: auto; } .voa-slide-footer { border-top: solid 2px #000; height: 3rem; font-size: 1.5rem; line-height: 3rem; text-align: center; cursor: pointer; box-sizing: border-box; opacity: 0.6; &:hover { opacity: 1; } } } } } .voa-logo { background-image: url("../favicon.svg"); background-size: cover; background-position: center; } .voa-btn { position: relative; text-align: center; display: block; border: none; &::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transition: 0.3s; } &:active::after { box-shadow: 0 1px 0px 0px rgba(0, 0, 0, 0.5); /* opacity: 0; */ } &:active { opacity: 0.8; } }