.login-form .group label .icon:before{ left:3px; width:5px; bottom:6px; -webkit-transform:scale(0) rotate(0); -ms-transform:scale(0) rotate(0); transform:scale(0) rotate(0); } .login-form .group label .icon:after{ top:6px; right:0; -webkit-transform:scale(0) rotate(0); -ms-transform:scale(0) rotate(0); transform:scale(0) rotate(0); } .login-form .group .check:checked + label{ color:#fff; } .login-form .group .check:checked + label .icon{ background:#1161ee; } .login-form .group .check:checked + label .icon:before{ -webkit-transform:scale(1) rotate(45deg); -ms-transform:scale(1) rotate(45deg); transform:scale(1) rotate(45deg); } .login-form .group .check:checked + label .icon:after{ -webkit-transform:scale(1) rotate(-45deg); -ms-transform:scale(1) rotate(-45deg); transform:scale(1) rotate(-45deg); } .login-html .sign-in:checked + .tab + .sign-up + .tab + .login-form .sign-in-htm{ -webkit-transform:rotate(0); -ms-transform:rotate(0); transform:rotate(0); } .login-html .sign-up:checked + .tab + .login-form .sign-up-htm{ -webkit-transform:rotate(0); -ms-transform:rotate(0); transform:rotate(0); }
时间: 2024-04-06 20:29:04 浏览: 14
这是一段 CSS 样式代码。它定义了一个登录表单的样式。具体来说,它包含了以下元素的样式定义:
- 输入框组(class 为 group)的样式
- 标签(class 为 label)的样式
- 选中状态下的样式(class 为 check)
- 复选框前面的图标(class 为 icon)的样式
- 登录和注册选项卡(class 分别为 sign-in 和 sign-up)的样式
- 登录和注册表单的样式(class 分别为 sign-in-htm 和 sign-up-htm)
这段代码的作用是使登录表单的样式更美观和易于使用。
相关问题
.login-form .group label .icon:before{ left:3px; width:5px; bottom:6px; -webkit-transform:scale(0) rotate(0); -ms-transform:scale(0) rotate(0); transform:scale(0) rotate(0); }
这段代码是用于设置登录表单中复选框前面的小图标的样式。具体来说,它设置了该图标的位置和大小,并将其旋转了0度(即不旋转)。其中:
- left:3px 表示将该图标距离左侧的边距设置为3像素。
- width:5px 表示将该图标的宽度设置为5像素。
- bottom:6px 表示将该图标距离底部的边距设置为6像素。
- -webkit-transform:scale(0) rotate(0)、-ms-transform:scale(0) rotate(0)、transform:scale(0) rotate(0) 表示将该图标进行缩放和旋转操作,但是缩放比例和旋转角度都为0,即不进行任何变换。
.login { display: flex; justify-content: center; align-items: center; height: 100%; background-color: rgba(184, 153, 90, 0.62); } .login-box { width: 1000px; height: 474.38px; border-radius: 8px; display: flex; } .login-box img { width: 60%; height: auto; } .title { margin: 0px auto 30px auto; text-align: center; color: #707070; } .login-form { background: #fdfdfd; width: 40%; border-radius: 0px 8px 8px 0px; display: flex; justify-content: center; align-items: center; } .login-form .el-form { width: 214px; height: 307px; } .login-form .el-form-item { margin-bottom: 30px; } .login-form .el-form-item.is-error .el-input__inner { border: 0 !important; border-bottom: 1px solid #fd7065 !important; background: #fff !important; } .login-form .input-icon { height: 32px; width: 18px; margin-left: -2px; } .login-form .el-input__inner { border: 0; border-bottom: 1px solid #e9e9e8; border-radius: 0; font-size: 14px; font-weight: 400; color: #333333; height: 32px; line-height: 32px; } .login-form .el-input__prefix { left: 0; } .login-form .el-input--prefix .el-input__inner { padding-left: 26px; } .login-form .el-input__inner::placeholder { color: #aeb5c4; } .login-form .el-form-item--medium .el-form-item__content { line-height: 32px; } .login-form .el-input--medium .el-input__icon { line-height: 32px; } .login-btn { border-radius: 17px; padding: 11px 20px !important; margin-top: 10px; font-weight: 500; font-size: 14px; border: 0; background-color: #ffc200; } .login-btn:hover, .login-btn:focus { /* background: #FFC200; */ /* color: #ffffff; */ } .login-form-title { height: 36px; display: flex; justify-content: center; align-items: center; margin-bottom: 40px; } .login-form-title .title-label { font-weight: 500; font-size: 20px; color: #333333; margin-left: 10px; }
这是一段 CSS 样式代码,用于设置登录页面的样式。其中包括登录框的大小、颜色、输入框的样式、按钮的样式等。它使用了 flex 布局来使页面元素居中对齐,并使用了 border-radius 属性来设置圆角。此外,它还定义了:hover 和:focus 状态下按钮的样式,使用户能够在鼠标悬停或聚焦时获得反馈。