PC-questions-answers/css/1.less

777 lines
16 KiB
Plaintext
Raw Normal View History

2023-11-24 10:51:45 +00:00
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
[v-cloak]{
display: none;
}
.noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Chrome/Safari/Opera */
-khtml-user-select: none; /* Konqueror */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
not supported by any browser */
}
#loading{
text-align: center;
padding: 100px 0;
}
.loading{
width: 80px;
height: 40px;
margin: 0 auto;
display: inline-block;
}
.loading span{
display: inline-block;
width: 8px;
height: 100%;
border-radius: 4px;
background: lightgreen;
-webkit-animation: load 1s ease infinite;
}
@-webkit-keyframes load{
0%,100%{
height: 40px;
background: lightgreen;
}
50%{
height: 70px;
margin: -15px 0;
background: lightblue;
}
}
.loading span:nth-child(2){
-webkit-animation-delay:0.2s;
}
.loading span:nth-child(3){
-webkit-animation-delay:0.4s;
}
.loading span:nth-child(4){
-webkit-animation-delay:0.6s;
}
.loading span:nth-child(5){
-webkit-animation-delay:0.8s;
}
body{
background: #f1f1f1;
font-family: "microsoft yahei", "San Francisco", '微软雅黑', 'tahoma', 'arial', 'simsun', '宋体';
}
ul{
list-style: none;
}
a{
text-decoration: none;
}
.inner{
width: 1200px;
margin: 0 auto;
max-width: 98vw;
min-width: 1100px;
}
.page-header{
background: #0170fe;
padding-bottom: 2px;
.nav-tab{
.inner;
display: flex;
align-items:center;
justify-content:flex-end;
position: relative;
.line{
position: absolute;
right: 0;
bottom: 16px;
width: 30px;
height: 2px;
background: #fff;
transition:all 0.2s;
}
.url-list{
display: flex;
align-items:center;
justify-content:flex-end;
color:rgba(255, 255, 255, 0.702);
font-size: 13px;
list-style: none;
padding: 16px 0 ;
.item{
margin-left: 30px;
display: inline-flex;
border-bottom: 2px solid transparent;
position: relative;
a{
display: inline-flex;
padding: 9px 0;
cursor: pointer;
color: inherit;
}
}
.item:hover,.active{
color: rgb(255, 255, 255);
}
// .item:after{
// content: '';
// position: absolute;
// bottom: 0;
// left: 100%;
// width: 0;
// height: 2px;
// background-color: #fff;
// transition: all 0.3s ease-out;
// }
// .item:hover +.item:after {
// width: 100%;
// left: 0;
// }
.user{
margin-left: 40px;
display: inline-flex;
width: 30px;
height: 30px;
align-items:center;
justify-content:center;
// border:1px solid #ccc;
border-radius: 50%;
color: #ccc;
cursor: pointer;
position: relative;
img{
width: 28px;
height: 28px;
border-radius: 50%;
overflow:hidden;
}
i{
display: block;
background: url(../img/helloofficer-user.png) no-repeat;
width: 30px;
height: 30px;
background-size: 100%;
}
}
.user:hover .quit{
display: block;
}
}
.quit{
display: none;
position: absolute;
bottom: -40px;
left: calc(~'50% - 22px');
z-index: 10;
text-align: center;
width: 45px;
height: 30px;
line-height: 30px;
border-radius: 5px;
background: #02d7b5;
color: #233160;
font-size: 13px;
.noselect;
}
.quit:after{
position: absolute;
left: calc(~'50% - 4px');
top: -8px;
content: "";
border:4px solid transparent;
border-bottom-color: #02d7b5;
}
.quit:before{
position: absolute;
content: "";
display: block;
background: transparent;
left: -20px;
top: -30px;
width: 80px;
height: 80px;
}
.quit:active{
background: #09b6a4;
}
.quit:active:after{
border-bottom-color: #09b6a4;
}
.language{
display: inline-flex;
margin-left: 30px;
}
}
.logo{
display: block;
background: url(../img/helloofficer-logo.png) no-repeat;
width: 178px;
height: 46px;
background-size: 178px 46px;
.inner;
position: relative;
top: -17px;
cursor: pointer;
}
}
.el-custom-select{
position: relative;
.show-text{
border-radius: 5px;
background-color: rgba(255, 255, 255,0.102);
width: 80px;
height: 28px;
line-height: 28px;
text-align: center;
font-size: 13px;
color: #fff;
cursor: pointer;
.arrow{
margin-left: 4px;
display: inline-block;
width: 0;
height: 0;
border:4px solid transparent;
border-top-color: #a4ccff;
position: relative;
top: 2px;
border-radius: 2px;
}
}
.option-list{
position: absolute;
display: none;
left: 0;
top: 0px;
border: 1px rgba(255, 255, 255,0.102) solid;
border-radius: 5px;
width: 80px;
background-color: rgba(255, 255, 255,0.102);
font-size: 13px;
color: rgba(255, 255, 255, 0.302);
list-style: none;
transition:all 0.3s;
z-index: 100;
.option-item{
line-height: 29px;
text-align: center;
cursor: pointer;
}
.active{
color: #fff;
}
}
.option-list.show{
top: 31px;
display: block;
}
}
.intro-container{
background: url(../img/helloofficer-bg.png) no-repeat center;
background-size: 100% 100%;
border-bottom: 5px solid #0170fe;
height: 565px;
width: 100%;
padding-top: 14px;
.container{
margin: 0 auto;
.inner;
}
.swiper-container{
margin: 0 auto 0px;
padding: 20px 0;
// overflow: visible;
.swiper-pagination{
bottom: 15px;
}
}
.intro-text{
margin: 0 auto 64px;
width: 700px;
height: 50px;
display: flex;
color: #fff;
font-size: 14px;
align-items:flex-start;
justify-content:space-between;
.yellow{
color: #e6b300;
font-size: 18px;
display: inline;
}
.text{
display: inline;
line-height: 24px;
}
.l{
display: inline-flex;
width: 32px;
height: 27px;
background: url(../img/helloofficer-ql.png) no-repeat;
background-size: 100%;
}
.r{
display: inline-flex;
width: 32px;
height: 27px;
background: url(../img/helloofficer-qr.png) no-repeat;
background-size: 100%;
}
}
.swiper-container {
width: 100%;
height: 100%;
}
.swiper-slide {
text-align: center;
font-size: 18px;
// background: #fff;
/* Center slide text vertically */
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
transition: 300ms;
transform: scale(0.6);
position: relative;
}
.swiper-slide a:after{
content: "";
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.4)
}
.swiper-slide-active,.swiper-slide-duplicate-active{
transform: scale(1);
z-index: 100;
img{
width: 740px;
height: 270px;
}
}
.swiper-slide-active a:after,.swiper-slide-duplicate-active a:after{
content: none;
}
.swiper-button-next:after,.swiper-button-prev:after{
content: none;
}
.swiper-button-next{
right: 0;
border: 2px rgba(255, 255, 255,0.2) solid;
border-radius: 50%;
width: 46px;
height: 46px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAQCAYAAADESFVDAAAAoklEQVQokZ2ROwrCUBBFT4LLsdQ2rfa2biCCnRIbGwsLa9cjGFBSuBEXEEuPTQKP5wM/AwMzcJh7ZwZ1r9bqRCWVmdoAA+AJrICaKHLgGNQHoIihfmSp3rq8quNQLtReBuBFHaUg1CoAz+qwNx6qZ8AGmHV9C5Qx1C+wA6Zdf8/fNklEDGVAFUxpgfVXxn86weLTMecB0KjF3w8+AQ9gmwIAXuBOCgjMsl3AAAAAAElFTkSuQmCC) no-repeat center;
background-size: 9px 16px;
}
.swiper-button-prev{
left: 0;
border: 2px rgba(255, 255, 255,0.2) solid;
border-radius: 50%;
width: 46px;
height: 46px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAQCAYAAADESFVDAAAAn0lEQVQokY3SOwoCMRCA4T+Ld/AOYqmtrV5FwXJZRPAAYmHhVQRbQa28jp3422RhfAQ2MMWQDzKPJJXCmQJr4JIKaALsgAp4VgWwzQDggBpjrN7Ue465SgQj9RrAsr1rwVA9B9DEF1AHX2ClpoiSegT6ucgTsAFesZN/3f2cCqiBR85nQAOkD9W18M4jKA1z0XZXWksv5/tOCy4hCF/lDZ6V8agJLeFBAAAAAElFTkSuQmCC) no-repeat center;
background-size: 9px 16px;
}
.swiper-button-next:hover,.swiper-button-prev:hover{
background-color: rgba(0,0,0,0.2);
border:none;
}
.swiper-pagination-bullet-active{
background: #ccc
}
img{
display: block;
max-width: 100%;
max-height: 100%;
}
a{
display: block;
}
.tab-container{
display: block;
align-items:center;
font-size: 0px;
color: rgb(255, 255, 255);
.tab-item{
display: inline-block;
font-size: 20px;
background: rgba(255, 255, 255,0.2);
width: 220px;
height: 64px;
line-height: 64px;
text-align: center;
border-radius: 10px 10px 0 0;
margin-right: 1px;
cursor: pointer;
}
.tab-item:hover{
background: rgba(255, 255, 255,0.1);
}
.active{
background: #0170fe !important;
}
}
}
.page-footer{
font-size: 14px;
color: rgb(255, 255, 255);
line-height: 2;
text-align: center;
height: 135px;
background: #2d3038;
display: flex;
align-items: center;
justify-content: center;
span{
margin: 0 26px;
}
}
.main-container{
.inner;
padding: 44px 0 80px;
font-size: 0;
vertical-align: top;
display: flex;
.start{
vertical-align: top;
display: inline-flex;
flex:1;
flex-direction: column;
width: calc(~'100% - 414px');
.title{
display: block;
margin: 0 auto 40px;
width: 162px;
height: 48px;
background: url(../img/helloofficer-start.png) no-repeat;
background-size: 100%;
}
.list{
.item{
margin-bottom: 20px;
padding: 20px 40px;
border-radius: 10px;
background-color: rgb(255, 255, 255);
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.08);
}
.school{
margin-bottom: 20px;
display: flex;
align-items:center;
justify-content: flex-start;
.avatar{
margin: 0 auto;
display: block;
max-width: 44px;
max-height: 44px;
}
.logo{
margin-right: 14px;
display: inline-flex;
border: 1px rgb(237, 237, 237) solid;
border-radius: 50%;
width: 54px;
height: 54px;
flex:0 0 54px;
overflow: hidden;
align-items: center;
justify-content: center;
}
.name{
font-size: 23px;
color: #333;
font-weight: 600
}
}
.intro{
display: block;
.text{
display: inline-block;
width: calc(~'100% - 264px');
font-size: 14px;
color: rgb(102, 102, 102);
line-height: 25px;
word-break:break-all;
padding-bottom: 22px;
position: relative;
overflow: hidden;
.t{
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 4;
line-clamp: 4;
-webkit-box-orient: vertical;
}
.open-more{
position: absolute;
right: 0px;
bottom: 18px;
cursor: pointer;
display: block;
padding: 0 4px 0 10px;
background: #ffffff;
// background: linear-gradient(90deg, transparent,#fff, #fff);
height: 24px;
line-height: 24px;
}
}
.textl{
width: 100%;
}
.image{
margin-left: 84px;
display: inline-block;
border-radius: 10px;
width: 180px;
vertical-align: top;
}
}
.time{
margin-top: -5px;
font-size: 16px;
font-family: "DIN";
color: rgb(0, 0, 0);
line-height: 20px;
.yellow{
font-size: 14px;
color: #e6b200;
line-height: 20px;
display: inline;
margin-right: 6px;
}
}
.lesson{
margin-top: 26px;
.lesson-item{
margin-bottom: 10px;
display: flex;
justify-content:space-between;
align-items:center;
padding: 4px 30px 4px 25px;
border-radius: 6px;
background-color: rgba(1, 112, 254,0.059);
min-height: 46px;
font-size: 16px;
color: #333;
cursor: pointer;
transition:all 0.3s;
.icon{
transition:all 0.8s;
display: inline-flex;
border-radius: 50%;
background: rgb(1, 112, 254) url(../img/arrow-white.png) no-repeat center;
background-size: 15px 10px;
width: 36px;
flex:0 0 36px;
height: 36px;
}
}
.lesson-item:hover{
background-color: #0170fe;
font-size: 16px;
color: rgb(255, 255, 255);
font-weight: bold;
.icon{
background: #fff url(../img/arrow-blue.png) no-repeat center;
background-size: 15px 10px;
}
}
}
}
}
.review{
display: inline-flex;
flex-direction: column;
width: 384px;
margin-left: 30px;
.title{
display: block;
margin: 0 auto 40px;
width: 164px;
height: 48px;
background: url(../img/helloofficer-review.png) no-repeat;
background-size: 100%;
}
.time-tab{
margin-bottom: 20px;
background-color: rgb(229, 229, 229);
width: 385px;
height: 50px;
padding: 0 6px;
border-radius: 25px;
display: flex;
align-items:center;
position: relative;
.tab-item{
display: inline-flex;
flex:1;
align-items:center;
justify-content:center;
font-size: 18px;
color: rgb(153, 153, 153);
cursor: pointer;
transition:all 0.3s;
height: 42px;
border-radius: 21px;
position: relative;
z-index: 10;
}
.tab-item:hover{
color: #333;
font-weight: bold;
}
.active{
color: rgb(241, 241, 241) !important;
font-weight: bold;
width: 82px;
border-radius: 21px;
background-color: rgb(45, 48, 56);
}
.backblack{
background: rgb(45, 48, 56);
z-index: 5;
position: absolute;
left: 6px;
top: 4px;
height: 42px;
transition:all 0.2s;
border-radius: 21px;
}
}
.list{
}
.item{
margin-bottom: 20px;
border-radius: 10px;
background-color: rgb(255, 255, 255);
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.08);
.school{
display: flex;
align-items:center;
padding: 10px 30px;
border-bottom:1px solid #ededed;
justify-content: flex-start;
.avatar{
margin: 0 auto;
display: block;
max-width: 28px;
max-height: 28px;
}
.logo{
margin-right: 8px;
display: inline-flex;
border: 1px #ededed solid;
border-radius: 50%;
width: 34px;
height: 34px;
flex: 0 0 34px;
overflow: hidden;
align-items: center;
justify-content: center;
}
.name{
font-size: 18px;
color: #333;
font-weight: 600;
}
}
.contents{
padding: 26px 30px 20px;
}
.type{
// margin-bottom: 24px;
color: #999999;
font-size: 14px;
.yellow{
display: inline-block;
margin-right: 6px;
color: #e6b200;
}
}
.link-list{
padding-bottom: 6px;
.i{
display: block;
margin-bottom: 20px;
cursor: pointer;
padding-left: 30px;
background: url(../img/arrow-black.png) no-repeat left center;
background-size: 15px 10px;
font-size: 15px;
color: rgb(51, 51, 51);
line-height: 1.4;
transition:all 0.3s;
}
.i:hover{
color: rgba(51, 51, 51, 0.8);
background: url(../img/arrow-yellow.png) no-repeat left center;
background-size: 15px 10px;
}
}
}
}
}
.to-top-btn{
position: fixed;
right: 37px;
bottom: 156px;
background-size: 100%;
width: 40px;
height: 40px;
border-radius: 50%;
border:none;
background:url(../img/zsj-top.png) no-repeat;
background-size: 100%;
cursor: pointer;
}