forgeplus-react/src/modules/loginRegister/LoginRegisterPage.scss

294 lines
6.1 KiB
SCSS

.loginRegister{
height: 100vh;
}
.clear{
clear: both;
}
.login_register_left,.login_register_right,.right_cont{
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.login_register_left{
height: 100%;
background-image: url(./img/bg.png);
float: left;
width: 30%;
overflow: hidden;
position: relative;
.logo{
width: 54%;
margin-left: 22%;
margin-top: 20%;
&:hover{cursor: pointer; }
}
.spinningBall{
width: 100%;
position: absolute;
bottom: -10%;
}
.banner{
height: auto;
width: 100%;
}
.ball{
position: relative;
width: 50%;
left: 24%;
bottom: -15vh;
z-index: 2;
animation: moving2 10s linear infinite;
}
@keyframes moving2 {
0% { transform: rotate(0deg); }
50% { transform: rotate(180deg); }
100% { transform: rotate(360deg); }
}
}
.login_register_right{
height: 100%;
background-image: url(./img/rightBg.png);
.logoInSmall{
display: none;
}
.img1{
width: 15vw;
margin-top: 40vh;
margin-left: 8vw;
}
.img2{
width: 15vw;
margin-top: 60vh;
margin-left: 22vw;
}
.right_cont{
position: absolute;
z-index: 2;
left: 45vw;
padding: 2.5em 5em;
border-radius: 7px;
font-size: 15px;
top: 50%;
margin-top: -329px;
.login_register_head{
display: flex;
justify-content: space-between;
align-items: center;
&>span:first-child{
font-size: 1.5em;
font-weight: 600;
color: #000000;
line-height: 1.5;
}
//注册页面的获取验证码输入框
.ant-input{width: 18rem; }
}
//所有的链接
.link_span a{
color: #466AFF;
&:hover{opacity:0.8; }
}
//登录 注册 重置密码并登录按钮
.login_register_cofBut{
font-size: 1em;
width: 100%;
height: 3.1em;
background: #466AFF;
border-color: #466AFF;
border-radius: 7px;
margin-top: 2.5vh;
&:hover{
background: #3456E5;
border-color: #3456E5;
}
}
//验证码一栏
.codeBut{
height: 3.1em;
background: #F7F7F7;
border-radius: 7px;
border: 1px solid rgba(167, 177, 200, 0.33);
width: 102px;
color: #466AFF;
font-size: 1em;
}
.codeBut.disable{
color: rgba(0, 0, 0, 0.25);
background-color: #f5f5f5;
border-color: #d9d9d9;
}
//输入密码提示框
.password_tips{
margin-top: -10px;
padding-bottom: 8px;
color: #808080;
font-size: 0.9em;
}
.message, .ant-form-explain{
color: #D40000;
font-size: 13px;
}
//antd 输入框样式
.ant-input{
height: 3.1em;
background-color: #F7F7F7 !important;
font-size: 1em;
color: #333333;
&:hover{border-color:#466AFF; }
}
.ant-form-explain{
margin-top: 0.5vh;
margin-bottom: -10px;
}
//输入框
.ant-form-item{
margin-bottom: 15px;
}
//取消antd表单默认样式
.has-error .ant-input{
background: #F7F7F7;
border-color: #D40000;
}
//修改复选框默认antd样式
.ant-checkbox-checked .ant-checkbox-inner {
background-color: #466AFF;
border: #466AFF;
}
.ant-checkbox-checked::after{
border: 1px solid #466AFF;
}
.ant-checkbox-wrapper:hover .ant-checkbox-inner, .ant-checkbox:hover .ant-checkbox-inner, .ant-checkbox-input:focus + .ant-checkbox-inner,.ant-radio-checked .ant-radio-inner,.ant-radio-wrapper:hover .ant-radio, .ant-radio:hover .ant-radio-inner, .ant-radio-input:focus + .ant-radio-inner {
border-color: #466AFF;
}
}
//登录框样式
.login_content{
top: 50%;
margin-top: -220px;
background-image: url(./img/loginBg.png);
//下次自动登录&&忘记密码
.login_register_head.login{
.ant-form-item{
margin-bottom: 0;
margin-top: -1vh;
}
}
}
.quick_login{
text-align: center;
.quick_login_Divider{
margin-top: 13px;
&::before, &::after{
border-top: 1px solid #979797;
}
}
.startlogin{
color: #8D8D8D;
}
}
//注册框样式
.Register_content{
// top: 8em;
background-image: url(./img/registerBg.png);
.register_last_form .ant-form-item-control{
line-height: 0.5;
}
.login_register_cofBut{margin-top: 0.5vh; }
.message.active{
margin: -5px 0 10px 0 !important;
}
}
//找回密码框样式
.ResetPassword_content{
// top: 12vh;
background-image: url(./img/resetPasswordBg.png);
// height: 550px;
.resetFailCaptcha{
position: absolute;
top: 25px;
color: #D40000;
font-size: 13px;
}
.login_register_cofBut{margin-top: 1.5vh; }
}
}
.registerNav{
.type{color: #000;}
.activeRegisterNav{
color: $primary-color;
display: inline-block;
border-bottom: 2px solid;
}
}
/*当页面宽度大于1000px*/
@media screen and (min-width:1000px) {
.right_cont{width: 540px; }
.ResetPassword_content{top: 12vh; }
}
/*当页面宽度大于1680px*/
@media screen and (min-width:1680px) {
.right_cont{width: 580px; }
.ResetPassword_content{top: 16vh; }
}
@media screen and (max-width:1280px) {
.login_register_left .ball{
width: 40%;
bottom: -8vh;
left: 28%;
}
}
// 小屏或者手机端隐藏左侧banner
@media screen and (max-width:786px) {
#root{
width: auto;
}
.login_register_left{
display: none;
}
.login_register_right{
padding-top: 30px;
.right_cont{
position: static;
margin: 0 auto;
width: fit-content;
}
.img1, .img2{
display: none;
}
.logoInSmall{
display: block;
margin: 0 auto 30px;
}
}
}
@media screen and (max-width:500px) {
.login_register_right{
background-color: #f4f7ff;
background-image: none;
}
.login_register_right .right_cont{
padding: 20px;
width: auto;
}
}
@media screen and (max-width:360px) {
.login_register_right .right_cont{
.login_register_head>span:first-child{
font-size: 1.2em;
}
}
.quick_login img{
width: 40px !important;
}
}