eduWeb/less/index.less

714 lines
17 KiB
Plaintext

@import './public.css';
@width: 1180px;
@color: #80C4AE;
@title_color: #333;
@high_color: #fff;
@font: 16px;
@fonts: 14px;
@font_high: #71FFDE;
@line: #74C6B3;
@shadow: #dad6d6;
.clearfix{
display: block;
clear: both;
content: '';
}
nav {
width: 100%;
height: 80px;
background: #fff;
box-shadow: 0 2px 3px @shadow;
vertical-align: top;
.main {
width: @width;
margin: 0 auto;
}
.logo {
width: 179px;
height: 53px;
margin: 13px 0 14px 0;
}
ul {
display: inline-block;
margin-left: 120px;
border: none;
font-size: 0;
li {
display: inline-block;
width: 80px;
height: 80px;
line-height: 80px;
margin-right: 17px;
text-align: center;
a {
color: @title_color;
font-size: @font;
}
}
li:last-child {
margin-right: 0;
}
.check {
background: @color;
color: @high_color;
a {
color: @high_color;
font-size: @font;
}
}
}
div.search {
display: inline-block;
margin-left: 120px;
border: 1px solid @color;
border-radius: 3px;
width: 280px;
height: 36px;
text-align: center;
font-size: 0;
padding: 0;
overflow: hidden;
vertical-align: middle;
position: relative;
.left {
width: 69px;
height: 36px;
border-right: 1px solid @color;
font-size: 14px;
text-align: center;
line-height: 36px;
float: left;
color: @color;
padding: 0;
i {
margin-left: 6px;
font-size: 5px;
}
}
input {
border: none;
outline: none;
display: inline-block;
height: 36px;
text-align: center;
font-weight: 400;
font-size: @fonts;
}
img {
width: 20px;
height: 20px;
position: absolute;
right: 7px;
top: 8px;
}
}
.login {
margin-left: 24px;
display: inline-block;
color: @color;
font-size: @fonts;
}
.user{
display: inline-block;
margin-left: 24px;
display: none;
img{
width: 36px;
height: 36px;
border-radius: 50%;
}
}
}
nav{
.main{
.user{
position: relative;
.userlist{
width: 122px;
height: 269px;
background: url('../img/login/jx.png') no-repeat;
background-size: cover;
position: absolute;
top: 35px;
right: -15px;
display: none;
z-index: 99999;
ul{
width: 122px;
height: 100%;
padding-top: 30px;
margin-left: 0;
li{
font-size: 16px;
color: #333;
line-height: 30px;
height: 40px;
text-align: center;
width: 100%;
cursor: pointer;
}
}
}
&:hover{
.userlist{
display: block;
}
}
}
}
}
main {
// banner
.banner {
width: @width;
height: 350px;
margin: 0 auto;
margin-top: 23px;
position: relative;
.img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
li {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
&.active {
opacity: 1;
}
img {
width: 100%;
height: 100%;
}
}
}
.list {
width: 198px;
height: 250px;
background: #000000;
border-radius: 4px;
opacity: 0.5;
position: absolute;
right: 20px;
top: 50px;
line-height: 20px;
box-sizing: border-box;
padding-top: 29px;
li {
padding-left: 33px;
height: 20px;
font-size: 14px;
font-weight: 600;
color: #E4E4E4;
line-height: 20px;
margin-bottom: 14px;
cursor: pointer;
&.high {
color: @font_high;
opacity: 1;
background: url(../img/index/left.png) no-repeat 20px 6px;
}
}
}
}
// online
.online {
width: @width;
margin: 44px auto 0;
.title {
height: auto;
span {
width: 80px;
height: 28px;
font-size: 20px;
font-weight: 400;
color: @title_color;
line-height: 28px;
display: inline-block;
vertical-align: middle;
&.line {
width: 6px;
height: 20px;
background: @line;
margin-right: 10px;
}
&.more {
display: block;
float: right;
margin-right: 11px;
width: auto;
color: @line;
i {
margin-left: 11px;
}
}
}
}
.onlineCont {
width: @width;
height: auto;
div.content {
width: @width;
margin: 20px auto 0;
ul {
li {
width: 280px;
height: 225px;
box-shadow: 0 2px 3px @shadow;
background: #fff;
position: relative;
overflow: hidden;
margin: 0 20px 20px 0;
float: left;
&:nth-child(4n) {
margin-right: 0;
}
.top {
width: 280px;
height: 163px;
vertical-align: top;
overflow: hidden;
.rj {
position: absolute;
left: 0;
top: 0;
border-radius: 4px 0px 12px 0px;
background: rgba(0, 0, 0, 1);
color: #000;
display: block;
width: 71px;
height: 33px;
font-size: @fonts;
line-height: 33px;
text-align: center;
color: @high_color;
opacity: 0.3;
}
img.m {
width: 280px;
height: 163px;
}
&>p {
position: absolute;
bottom: 63px;
left: 0;
width: 100%;
height: 33px;
line-height: 33px;
font-size: @fonts;
background: rgba(0, 0, 0, 1);
color: @high_color;
padding-left: 10px;
opacity: 0.3;
}
}
.bottom {
width: 100%;
height: 62px;
overflow: hidden;
line-height: 20px;
font-size: 14px;
color: @title_color;
margin-top: 10px;
padding-left: 10px;
.left {
float: left;
span {
display: block;
&.time {
margin-top: 5px;
font-size: @fonts;
line-height: 17px;
color: #7A7A7A;
}
}
}
.right {
float: right;
margin-top: 12px;
margin-right: 5px;
width: 86px;
height: 30px;
line-height: 30px;
font-size: 16px;
color: #fff;
background: @line;
text-align: center;
border-radius: 4px;
}
}
}
&::after {
display: block;
content: '';
clear: both;
zoom: 1;
}
}
}
}
}
.contBanner {
width: @width;
height: 186px;
margin: 31px auto 0;
img {
width: 100%;
height: 100%;
}
}
.testClass {
.online();
.onlineCont {
div.content {
ul {
li {
width: 379px;
height: 224px;
overflow: hidden;
.top {
width: 379px;
height: 163px;
img.m {
width: 100%;
height: 163px;
}
p {
padding-right: 28px;
}
span:nth-child(1) {
display: block;
float: right;
font-size: 12px;
}
span:nth-child(2) {
display: block;
float: left;
}
}
.bottom {
div.left {
width: 140px;
}
}
&:nth-child(3n) {
margin-right: 0;
}
&:nth-child(4n) {
margin-right: 20px;
}
}
}
}
}
}
.goodClass {
.online();
.onlineCont {
div.content {
width: 884px;
float: left;
ul {
li {
overflow: hidden;
&:nth-child(3n) {
margin-right: 0;
}
&:nth-child(4n) {
margin-right: 20px;
}
}
}
}
div.rightCont {
width: 296px;
height: 487px;
float: left;
margin-top: 20px;
overflow: hidden;
img {
width: 296px;
height: 487px;
margin-top: -6px;
}
}
&::after {
display: block;
content: '';
clear: both;
zoom: 1;
}
}
}
.footB {
.contBanner();
overflow: hidden;
margin-top: 19px;
height: 100px;
div {
width: 380px;
height: 100px;
margin-right: 20px;
float: left;
&:last-child {
margin-right: 0;
}
}
}
div.fix {
position: fixed;
width: 70px;
height: 220px;
bottom: 10px;
.lesson {
width: 70px;
height: 70px;
}
.test {
margin: 5px auto;
}
img {
width: 70px;
height: 70px;
}
}
}
footer {
width: 100%;
height: 264px;
background: @title_color;
margin-top: 36px;
padding-top: 87px;
.cont {
width: @width;
height: 100%;
margin: 0 auto;
.main {
width: 1153px;
height: 90px;
color: #ccc;
font-size: 14px;
line-height: 18px;
text-align: center;
margin: 0 auto;
p {
margin-top: 5px;
}
}
}
}
.pos {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: rgba(0, 0, 0, .2);
display: none;
z-index: 99999999;
.login {
width: 520px;
height: 522px;
background: #FFFFFF;
border-radius: 4px;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
margin: auto;
text-align: center;
padding-top: 30px;
span.close{
position: absolute;
right: 25px;
top: 25px;
color: #999;
z-index: 9999;
font-size: 20px;
}
img {
width: 136px;
height: 40px;
margin-bottom: 46px;
}
ul {
padding-left: 20px;
&::after{
.clearfix();
}
li {
width: 134px;
height: 1px;
float: left;
border-top: 1px solid rgba(236, 236, 236, 1);
margin-top: 12px;
&.phone {
float: left;
width: 162px;
height: 25px;
font-size: 18px;
font-weight: 400;
color: #333333;
line-height: 25px;
border: none;
margin: 0 18px;
margin-bottom: 21px;
}
}
}
input {
display: block;
margin-left: 110px;
width: 300px;
height: 40px;
border-radius: 4px;
border: 1px solid #80C4AE;
padding-left: 24px;
margin-bottom: 20px;
}
.loginbtn{
width: 300px;
height: 40px;
border-radius: 4px;
border: 1px solid #80C4AE;
background: #74C6B3;
color: #fff;
text-align: center;
font-size: 16px;
outline: none;
margin-bottom: 10px;
}
p{
width: 300px;
margin: 0 auto;
margin-bottom: 36px;
&::after{
.clearfix();
}
span{
display: inline-block;
color: #333;
font-size: 12px;
&:first-child{
float: left;
}
&:last-child{
float: right;
}
a{
font-size: 12px;
color: #74C6B3;
}
}
&.getCenter{
display: block;
img{
width: 36px;
height: 36px;
border-radius: 50%;
&:nth-child(2){
margin-left: 30px;
margin-right: 30px;
}
}
}
}
}
}