Files
wordpress-theme-aksrt/assets/css/frontend/enhancements/modal-motion/base.css
T

96 lines
2.1 KiB
CSS

/* ============================================================
* 21. 弹窗登录/注册
* ============================================================ */
.aksrt-modal-auth {
position: fixed;
inset: 0;
z-index: 99999;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s;
}
.aksrt-modal-auth.is-open {
opacity: 1;
visibility: visible;
}
.aksrt-modal-auth__overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
.aksrt-modal-auth__card {
position: relative;
background: var(--main-bg-color, #fff);
border-radius: var(--main-radius, 8px);
padding: 32px;
max-width: 400px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 0 10px var(--main-shadow, rgba(116, 116, 116, 0.08));
z-index: 1;
transform: scale(0.9);
transition: transform 0.5s cubic-bezier(0.32, 0.85, 0.45, 1.18);
}
.aksrt-modal-auth.is-open .aksrt-modal-auth__card {
transform: scale(1);
}
.aksrt-modal-auth__close {
position: absolute;
top: 12px;
right: 12px;
width: 36px;
height: 36px;
border: none;
border-radius: 50%;
background: var(--surface-2, #F4F5F7);
color: var(--color-ink-3);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
font-size: 16px;
}
.aksrt-modal-auth__close:hover {
background: var(--surface-3, #ECEEF1);
}
.aksrt-modal-auth__header {
text-align: center;
margin-bottom: 24px;
}
.aksrt-modal-auth__logo {
width: 56px;
height: 56px;
border-radius: var(--radius);
background: linear-gradient(135deg, var(--color-primary, var(--color-primary)), var(--color-primary-active, #5A85BD));
color: #fff;
font-size: 22px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 12px;
}
.aksrt-modal-auth__title {
margin: 0;
font-size: 20px;
font-weight: 600;
color: var(--color-ink);
}