refactor: 登录页面极简暗色风格 + 登录注册加返回首页
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
login.css: 完全重写为 AkileCloud 风格 - 无卡片/边缘光晕/无边框深灰输入框 - 纯蓝按钮 #165DFF / 胶囊Tab / 暗色第三方登录 - 二维码区域/安全验证/语言切换暗色适配 login.php + regist.php: - 左上角新增「← 返回首页」按钮(fixed定位) - 悬停白色+微透明背景 regist.css: 补上 .back-home-link 样式
This commit is contained in:
@@ -1,391 +1,641 @@
|
|||||||
|
/* ============================================
|
||||||
|
登录页面 — 参考 AkileCloud 极简暗色风格
|
||||||
|
与 regist.css 统一配色
|
||||||
|
============================================ */
|
||||||
|
|
||||||
[v-cloak] {
|
[v-cloak] {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
#login {
|
||||||
|
min-height: 100vh;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background: #0d1117;
|
||||||
|
background-image:
|
||||||
|
radial-gradient(ellipse 50% 50% at 0% 0%, rgba(22, 93, 255, 0.12) 0%, transparent 70%),
|
||||||
|
radial-gradient(ellipse 50% 50% at 100% 0%, rgba(22, 93, 255, 0.08) 0%, transparent 70%),
|
||||||
|
radial-gradient(ellipse 50% 50% at 100% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
|
||||||
|
radial-gradient(ellipse 50% 50% at 0% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- 容器 ---- */
|
||||||
|
.login-container {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 420px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
padding: 40px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 隐藏左侧装饰 */
|
||||||
|
.container-back {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.lang-option {
|
|
||||||
|
/* 顶部按钮区 */
|
||||||
|
.login-jump-btn {
|
||||||
|
position: fixed;
|
||||||
|
top: 24px;
|
||||||
|
right: 24px;
|
||||||
|
z-index: 20;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 5px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
.lang-option .lang-img {
|
|
||||||
width: 30px;
|
.login-jump-btn .btn {
|
||||||
height: 20px;
|
background: rgba(22, 93, 255, 0.1);
|
||||||
display: inline-block;
|
border: 1px solid rgba(22, 93, 255, 0.25);
|
||||||
vertical-align: middle;
|
color: #165DFF;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
.read-text {
|
|
||||||
flex: 1;
|
.login-jump-btn .btn a {
|
||||||
font-size: 14px;
|
color: inherit;
|
||||||
line-height: 19px;
|
text-decoration: none;
|
||||||
padding: 0 10px;
|
|
||||||
color: #606266;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
#login {
|
|
||||||
height: 100vh;
|
/* 语言切换 */
|
||||||
width: 100vw;
|
.login-jump-btn .lang-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
gap: 8px;
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
.login-container {
|
|
||||||
width: 15.7rem;
|
.login-jump-btn .lang-box span {
|
||||||
height: 8.2rem;
|
color: rgba(139, 148, 158, 0.6);
|
||||||
display: flex;
|
cursor: pointer;
|
||||||
justify-content: center;
|
font-size: 13px;
|
||||||
align-items: center;
|
padding: 4px 8px;
|
||||||
position: relative;
|
border-radius: 4px;
|
||||||
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
.container-back {
|
|
||||||
width: 15.7rem;
|
.login-jump-btn .lang-box span:hover {
|
||||||
height: 6.8rem;
|
color: rgba(255, 255, 255, 0.8);
|
||||||
background: var(--color-primary);
|
|
||||||
border-radius: 20px;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
font-family: Source Han Sans CN;
|
|
||||||
}
|
}
|
||||||
.container-back .back-text {
|
|
||||||
font-size: 0.27rem;
|
.login-jump-btn .lang-box span.active {
|
||||||
z-index: 10;
|
color: #FFFFFF;
|
||||||
color: #ffffff;
|
background: rgba(22, 93, 255, 0.15);
|
||||||
margin-top: 1.39rem;
|
|
||||||
margin-left: 0.65rem;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
.container-back .text-welcome {
|
|
||||||
font-size: 0.74rem;
|
|
||||||
font-family: Bahnschrift;
|
|
||||||
line-height: 0.74rem;
|
|
||||||
}
|
|
||||||
.container-back .text-title {
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
.container-back .text-level {
|
|
||||||
font-size: 0.12rem;
|
|
||||||
margin-top: 0.81rem;
|
|
||||||
}
|
|
||||||
.back-line1,
|
|
||||||
.back-line2,
|
|
||||||
.back-line3 {
|
|
||||||
width: 0.6rem;
|
|
||||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
|
|
||||||
z-index: 2;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
.back-line1 {
|
|
||||||
height: 5rem;
|
|
||||||
opacity: 1;
|
|
||||||
transform: rotate(45deg);
|
|
||||||
top: -1.2rem;
|
|
||||||
left: 4.15rem;
|
|
||||||
}
|
|
||||||
.back-line2 {
|
|
||||||
height: 7rem;
|
|
||||||
transform: rotate(110deg);
|
|
||||||
top: 0;
|
|
||||||
left: 5rem;
|
|
||||||
}
|
|
||||||
.back-line3 {
|
|
||||||
height: 5rem;
|
|
||||||
transform: rotate(45deg);
|
|
||||||
top: 2.3rem;
|
|
||||||
left: 1.5rem;
|
|
||||||
clip-path: polygon(0px 0.3rem, 0.64rem 0px, 100% 100%, 0 100%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---- 表单区域 — 无卡片 ---- */
|
||||||
.container-before {
|
.container-before {
|
||||||
width: 7.5rem;
|
width: 100%;
|
||||||
height: 8rem;
|
background: transparent;
|
||||||
background: #ffffff;
|
box-shadow: none;
|
||||||
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.1);
|
border: none;
|
||||||
position: absolute;
|
position: static;
|
||||||
right: 0.9rem;
|
overflow: visible;
|
||||||
border: 4px;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login {
|
.login {
|
||||||
padding-top: 0.8rem;
|
padding: 0;
|
||||||
padding-left: 1.24rem;
|
|
||||||
padding-right: 1.05rem;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: PingFang SC;
|
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
|
||||||
font-weight: 400;
|
line-height: 1.5;
|
||||||
line-height: 14px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.login .lang-box {
|
|
||||||
position: absolute;
|
/* 二维码切换按钮 */
|
||||||
right: 0.1rem;
|
|
||||||
top: 0.1rem;
|
|
||||||
}
|
|
||||||
.login .qr-code {
|
.login .qr-code {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 1.05rem;
|
right: 0;
|
||||||
top: 0.8rem;
|
top: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 0.48rem;
|
width: 36px;
|
||||||
height: 0.48rem;
|
height: 36px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: 8px;
|
||||||
|
transition: background 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login .qr-code:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.login .qr-code svg,
|
||||||
.login .qr-code .login-icon {
|
.login .qr-code .login-icon {
|
||||||
fill: var(--color-primary);
|
width: 28px;
|
||||||
width: 100%;
|
height: 28px;
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 二维码区域 */
|
||||||
.login .qr-box {
|
.login .qr-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 100%;
|
padding: 20px 0;
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .qr-box .qr-box-img {
|
.login .qr-box .qr-box-img {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
border-radius: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #1c2028;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .qr-box .qr-box-img img {
|
.login .qr-box .qr-box-img img {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .qr-box .qr-box-img .qr-expire-time {
|
.login .qr-box .qr-box-img .qr-expire-time {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
inset: 0;
|
||||||
left: 0;
|
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
background: rgba(0, 0, 0, 0.5);
|
background: rgba(0, 0, 0, 0.7);
|
||||||
color: #ffffff;
|
color: #FFFFFF;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
|
||||||
line-height: 14px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .qr-box .qr-box-img .qr-expire-time .el-icon-refresh-right {
|
.login .qr-box .qr-box-img .qr-expire-time .el-icon-refresh-right {
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .qr-box .qr-box-tips {
|
.login .qr-box .qr-box-tips {
|
||||||
margin-top: 10px;
|
margin-top: 14px;
|
||||||
font-size: 14px;
|
font-size: 13px;
|
||||||
color: #666;
|
color: rgba(139, 148, 158, 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 微信选择账户 */
|
||||||
.login .qr-box-select-account {
|
.login .qr-box-select-account {
|
||||||
box-sizing: border-box;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0.2rem;
|
gap: 16px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
padding: 20px;
|
||||||
padding: 0.2rem;
|
border-radius: 12px;
|
||||||
border-radius: 10px;
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
border: 1px solid #e5e5e5;
|
background: rgba(28, 32, 40, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .qr-box-select-account .qr-box-back {
|
.login .qr-box-select-account .qr-box-back {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
color: var(--color-primary);
|
color: #165DFF;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .qr-box-select-account .qr-box-select-account-title {
|
.login .qr-box-select-account .qr-box-select-account-title {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #666;
|
color: rgba(139, 148, 158, 0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---- 标题 ---- */
|
||||||
.login-text {
|
.login-text {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-text-title {
|
.login-text-title {
|
||||||
font-size: 0.32rem;
|
font-size: 28px;
|
||||||
color: #1e2736;
|
color: #FFFFFF;
|
||||||
line-height: 0.32rem;
|
line-height: 1.2;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-text-regist {
|
.login-text-regist {
|
||||||
font-weight: Regular;
|
margin-top: 10px;
|
||||||
margin-top: 0.08rem;
|
color: rgba(139, 148, 158, 0.8);
|
||||||
color: #1e2736;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-text-regist a {
|
.login-text-regist a {
|
||||||
color: var(--color-primary);
|
color: #165DFF;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login-text-regist a:hover {
|
||||||
|
color: #4080FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- Tab 切换 ---- */
|
||||||
.login-form {
|
.login-form {
|
||||||
margin-top: 0.68rem;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-top {
|
.login-top {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
gap: 0;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
background: rgba(255, 255, 255, 0.04);
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-email,
|
.login-email,
|
||||||
.login-phone {
|
.login-phone {
|
||||||
height: 0.34rem;
|
flex: 1;
|
||||||
color: #666b80;
|
padding: 10px 0;
|
||||||
|
color: rgba(139, 148, 158, 0.7);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
transition: all 0.25s ease;
|
||||||
|
border: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
border-bottom: none;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login-email:hover,
|
||||||
|
.login-phone:hover {
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
color: var(--color-primary);
|
color: #FFFFFF !important;
|
||||||
border-bottom: 2px solid var(--color-primary);
|
background: rgba(22, 93, 255, 0.15) !important;
|
||||||
}
|
border-bottom: none !important;
|
||||||
.login-email {
|
|
||||||
margin-right: 0.4rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---- 输入框 ---- */
|
||||||
.form-main {
|
.form-main {
|
||||||
margin-top: 0.3rem;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-item {
|
.form-item {
|
||||||
margin-top: 0.3rem;
|
margin-top: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-item:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-main .el-input__inner,
|
||||||
|
.form-main .el-textarea__inner,
|
||||||
|
.form-main .el-select .el-input__inner {
|
||||||
|
background: #1c2028 !important;
|
||||||
|
border: 1px solid transparent !important;
|
||||||
|
color: #E6E8EB !important;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
height: 46px !important;
|
||||||
|
line-height: 46px !important;
|
||||||
|
font-size: 14px !important;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-main .el-input__inner:hover {
|
||||||
|
border-color: rgba(22, 93, 255, 0.2) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-main .el-input__inner:focus,
|
||||||
|
.form-main .el-textarea__inner:focus {
|
||||||
|
border-color: #165DFF !important;
|
||||||
|
box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.12) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-main .el-input__inner::placeholder {
|
||||||
|
color: rgba(139, 148, 158, 0.5) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.input-with-select .el-input-group__prepend {
|
.input-with-select .el-input-group__prepend {
|
||||||
background: #ffffff;
|
background: #1c2028 !important;
|
||||||
width: 60px;
|
border: 1px solid transparent !important;
|
||||||
|
border-right: 1px solid rgba(255,255,255,0.06) !important;
|
||||||
|
border-radius: 8px 0 0 8px !important;
|
||||||
|
color: #E6E8EB !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 验证码 */
|
||||||
.code-item {
|
.code-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.code-btn {
|
.code-btn {
|
||||||
margin-left: 0.1rem;
|
background: #1c2028 !important;
|
||||||
color: #ffffff;
|
border: none !important;
|
||||||
|
color: #165DFF !important;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
white-space: nowrap;
|
||||||
|
padding: 0 16px !important;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.code-btn:hover {
|
||||||
|
background: rgba(22, 93, 255, 0.12) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- 记住密码 / 忘记密码 ---- */
|
||||||
.rember-item {
|
.rember-item {
|
||||||
margin-top: 0.2rem;
|
margin-top: 14px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rember-item a {
|
.rember-item a {
|
||||||
color: var(--color-primary);
|
color: #165DFF;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rember-item a:hover {
|
||||||
|
color: #4080FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rember-item .el-checkbox__inner {
|
||||||
|
background: #1c2028 !important;
|
||||||
|
border-color: rgba(255, 255, 255, 0.1) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rember-item .el-checkbox__input.is-checked .el-checkbox__inner {
|
||||||
|
background: #165DFF !important;
|
||||||
|
border-color: #165DFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-text {
|
||||||
|
flex: 1;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.6;
|
||||||
|
padding: 0 6px;
|
||||||
|
color: rgba(139, 148, 158, 0.55);
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-text a {
|
||||||
|
color: #165DFF;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 错误提示 */
|
||||||
|
.read-item {
|
||||||
|
margin-top: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-item .el-alert--error {
|
||||||
|
background: rgba(239, 68, 68, 0.08) !important;
|
||||||
|
border: 1px solid rgba(239, 68, 68, 0.15);
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-item .el-alert--error .el-alert__title {
|
||||||
|
color: #F87171 !important;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- 登录按钮 ---- */
|
||||||
.login-btn {
|
.login-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 46px;
|
height: 46px;
|
||||||
|
background: #165DFF !important;
|
||||||
|
border: none !important;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
font-size: 15px !important;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login-btn:hover {
|
||||||
|
background: #4080FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-btn:active {
|
||||||
|
background: #0E42D2 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 切换登录方式按钮 */
|
||||||
.pass-btn {
|
.pass-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 46px;
|
height: 42px;
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
margin-top: 0.15rem;
|
margin-top: 10px;
|
||||||
|
background: transparent !important;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
color: rgba(139, 148, 158, 0.8) !important;
|
||||||
|
font-size: 14px !important;
|
||||||
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
.read-item {
|
|
||||||
margin-top: 0.2rem;
|
.pass-btn:hover {
|
||||||
}
|
color: #FFFFFF !important;
|
||||||
.read-item a {
|
border-color: rgba(22, 93, 255, 0.3) !important;
|
||||||
color: var(--color-primary);
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---- 第三方登录 ---- */
|
||||||
.line-item {
|
.line-item {
|
||||||
margin-top: 0.4rem;
|
margin-top: 24px;
|
||||||
}
|
}
|
||||||
.line-item text {
|
|
||||||
font-size: 16px;
|
.line-item .el-divider__text {
|
||||||
color: #1e2736;
|
background: #0d1117 !important;
|
||||||
|
color: rgba(139, 148, 158, 0.4) !important;
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
.type-btn {
|
|
||||||
width: 100%;
|
.line-item .el-divider {
|
||||||
height: 46px;
|
border-color: rgba(255, 255, 255, 0.06) !important;
|
||||||
font-size: 0.16rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-type {
|
.login-type {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 0.15rem;
|
justify-content: center;
|
||||||
|
gap: 16px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
.a-text {
|
|
||||||
color: var(--color-primary);
|
|
||||||
cursor: pointer;
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
.oauth-item {
|
.oauth-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #1c2028;
|
||||||
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
.oauth-item:hover .oauth-img {
|
|
||||||
filter: brightness(0.8);
|
.oauth-item:hover {
|
||||||
|
background: rgba(22, 93, 255, 0.1);
|
||||||
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.oauth-img {
|
.oauth-img {
|
||||||
width: 40px;
|
width: 32px;
|
||||||
height: 40px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 语言选项 */
|
||||||
|
.lang-option {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lang-option .lang-img {
|
||||||
|
width: 24px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Element UI 下拉暗色 */
|
||||||
|
.el-select-dropdown {
|
||||||
|
background: #1c2028 !important;
|
||||||
|
border: 1px solid rgba(255,255,255,0.06) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-select-dropdown__item {
|
||||||
|
color: #E6E8EB !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-select-dropdown__item.hover,
|
||||||
|
.el-select-dropdown__item:hover {
|
||||||
|
background: rgba(22, 93, 255, 0.1) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 安全验证对话框暗色 */
|
||||||
|
.el-dialog {
|
||||||
|
background: #1c2028 !important;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog__title {
|
||||||
|
color: #E6E8EB !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog__headerbtn .el-dialog__close {
|
||||||
|
color: rgba(139, 148, 158, 0.6) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- 返回首页按钮(公共) ---- */
|
||||||
|
.back-home-link {
|
||||||
|
position: fixed;
|
||||||
|
top: 24px;
|
||||||
|
left: 24px;
|
||||||
|
z-index: 20;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
color: rgba(139, 148, 158, 0.6);
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 13px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-home-link:hover {
|
||||||
|
color: #FFFFFF;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-home-link svg {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- 移动端 ---- */
|
||||||
@media screen and (max-width: 750px) {
|
@media screen and (max-width: 750px) {
|
||||||
|
#login {
|
||||||
|
background-image:
|
||||||
|
radial-gradient(ellipse 80% 40% at 50% 0%, rgba(22, 93, 255, 0.12) 0%, transparent 70%),
|
||||||
|
radial-gradient(ellipse 80% 40% at 50% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
|
||||||
|
}
|
||||||
|
|
||||||
.login-container {
|
.login-container {
|
||||||
height: calc(100vh - 1.2rem);
|
padding: 80px 24px 40px;
|
||||||
width: 100vw;
|
max-width: 100%;
|
||||||
background: #f2f2fe;
|
align-items: flex-start;
|
||||||
padding: 0.6rem 0;
|
|
||||||
}
|
|
||||||
.container-back {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.container-before {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
margin: 0rem 0.3rem;
|
|
||||||
position: unset;
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
.login {
|
|
||||||
padding-top: 1.17rem;
|
|
||||||
padding-left: 0.3rem;
|
|
||||||
padding-right: 0.3rem;
|
|
||||||
font-size: 0.26rem;
|
|
||||||
line-height: 0.3rem;
|
|
||||||
}
|
|
||||||
.login .qr-code {
|
|
||||||
right: 0.3rem;
|
|
||||||
top: 1.17rem;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-text-title {
|
.login-text-title {
|
||||||
font-size: 0.4rem;
|
font-size: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-text-regist {
|
.login-text-regist {
|
||||||
margin-top: 0.16rem;
|
font-size: 13px;
|
||||||
font-size: 0.28rem;
|
|
||||||
}
|
}
|
||||||
.login-form {
|
|
||||||
margin-top: 1.21rem;
|
.login-text {
|
||||||
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
.form-main {
|
|
||||||
margin-top: 0.6rem;
|
.form-main .el-input__inner {
|
||||||
}
|
height: 44px !important;
|
||||||
.login-email,
|
line-height: 44px !important;
|
||||||
.login-phone {
|
|
||||||
height: 0.34rem;
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
color: #666b80;
|
|
||||||
cursor: pointer;
|
|
||||||
padding-bottom: 0.13rem;
|
|
||||||
}
|
|
||||||
.el-checkbox__label {
|
|
||||||
font-size: 0.22rem;
|
|
||||||
}
|
|
||||||
.read-item {
|
|
||||||
line-height: 0.3rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-btn {
|
.login-btn {
|
||||||
font-size: 0.34rem;
|
height: 44px;
|
||||||
height: 0.8rem;
|
|
||||||
}
|
}
|
||||||
.type-btn {
|
|
||||||
border: none;
|
.login-jump-btn {
|
||||||
color: var(--color-primary);
|
top: 16px;
|
||||||
font-size: 0.34rem;
|
right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-home-link {
|
||||||
|
top: 16px;
|
||||||
|
left: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login .qr-code {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login .qr-code svg,
|
||||||
|
.login .qr-code .login-icon {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-text {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oauth-item {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oauth-img {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -401,7 +401,39 @@
|
|||||||
right: 16px;
|
right: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.back-home-link {
|
||||||
|
top: 16px;
|
||||||
|
left: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.read-text {
|
.read-text {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---- 返回首页按钮 ---- */
|
||||||
|
.back-home-link {
|
||||||
|
position: fixed;
|
||||||
|
top: 24px;
|
||||||
|
left: 24px;
|
||||||
|
z-index: 20;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
color: rgba(139, 148, 158, 0.6);
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 13px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-home-link:hover {
|
||||||
|
color: #FFFFFF;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-home-link svg {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -17,6 +17,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="template">
|
<div class="template">
|
||||||
<div id="login" v-cloak>
|
<div id="login" v-cloak>
|
||||||
|
<a href="/" class="back-home-link">
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M19 12H5"/><path d="M12 19l-7-7 7-7"/></svg>
|
||||||
|
返回首页
|
||||||
|
</a>
|
||||||
<div class="login-container">
|
<div class="login-container">
|
||||||
<div class="login-jump-btn">
|
<div class="login-jump-btn">
|
||||||
<div class="lang-box">
|
<div class="lang-box">
|
||||||
|
|||||||
@@ -13,6 +13,10 @@
|
|||||||
<div class="template">
|
<div class="template">
|
||||||
<div id="regist">
|
<div id="regist">
|
||||||
|
|
||||||
|
<a href="/" class="back-home-link">
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M19 12H5"/><path d="M12 19l-7-7 7-7"/></svg>
|
||||||
|
返回首页
|
||||||
|
</a>
|
||||||
<div class="login-container">
|
<div class="login-container">
|
||||||
<div class="login-jump-btn">
|
<div class="login-jump-btn">
|
||||||
<el-button type="primary" class="btn" v-if="commonData.login_register_redirect_show">
|
<el-button type="primary" class="btn" v-if="commonData.login_register_redirect_show">
|
||||||
|
|||||||
Reference in New Issue
Block a user