mirror of https://github.com/veypi/OneAuth.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
225 lines
3.6 KiB
SCSS
225 lines
3.6 KiB
SCSS
/*
|
|
* oaer.css
|
|
* Copyright (C) 2024 veypi
|
|
*
|
|
* Distributed under terms of the MIT license.
|
|
*/
|
|
|
|
@import "./animate.scss";
|
|
|
|
|
|
div[voa] {
|
|
box-sizing: border-box;
|
|
--oabg-base: var(--bg-base, #efefef);
|
|
--oafg-base: var(--fg-base, #090909);
|
|
--oaheader-bg: linear-gradient(90deg, #6849E1, #b09ef4);
|
|
|
|
div {
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
|
|
.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: var(--oaheader-bg);
|
|
z-index: 1;
|
|
}
|
|
|
|
.voa-slide-body {
|
|
position: relative;
|
|
width: 100%;
|
|
height: calc(100% - 4rem);
|
|
background: var(--oabg-base);
|
|
color: var(--oafg-base);
|
|
transform: translateY(-140%);
|
|
|
|
.voa-slide-main {
|
|
height: calc(100% - 3rem);
|
|
overflow: auto;
|
|
padding: 1rem;
|
|
|
|
.voa-sm-separate {
|
|
height: 1px;
|
|
margin: 1rem 0;
|
|
background: var(--oafg-base);
|
|
width: 100%;
|
|
opacity: 0.4;
|
|
}
|
|
}
|
|
|
|
.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-account {
|
|
padding: 0 1rem;
|
|
|
|
.voa-account-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: 3rem;
|
|
line-height: 3rem;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.voa-account-body {
|
|
width: 100%;
|
|
height: 7rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
|
|
.voa-ab-ico {
|
|
display: contents;
|
|
|
|
img {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
vertical-align: middle;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
|
|
.voa-ab-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.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;
|
|
}
|
|
}
|