203 lines
3.9 KiB
Plaintext
203 lines
3.9 KiB
Plaintext
@c1: #3b52f6;
|
|
.item-wrap(@num,@between,@mb) {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.item {
|
|
width: calc((100% - (@num - 1) * @between) / @num);
|
|
margin-right: @between;
|
|
margin-bottom: @mb;
|
|
&:nth-of-type(@{num}n) {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
.dot {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.dots(@num) {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: @num; //行数
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
.setBetween {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
.setRowCenter {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.setColumnCenter {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.setCenter {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.ra {
|
|
border-radius: 0.2rem;
|
|
overflow: hidden;
|
|
}
|
|
.bs {
|
|
box-shadow: 0 0 0.5rem #ebebeb;
|
|
}
|
|
.box-shadow {
|
|
box-shadow: 0rem 0.3rem 0.5rem 0rem rgba(36, 65, 116, 0.1);
|
|
}
|
|
.tit-line(@fs,@pb,@mb,@width,@height,@color) {
|
|
font-size: @fs;
|
|
padding-bottom: @pb;
|
|
margin-bottom: @mb;
|
|
position: relative;
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: @width;
|
|
border-bottom: @height solid @color;
|
|
}
|
|
}
|
|
.tit-line-center(@fs,@pb,@mb,@width,@height,@color) {
|
|
font-size: @fs;
|
|
padding-bottom: @pb;
|
|
margin-bottom: @mb;
|
|
position: relative;
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
width: @width;
|
|
border-bottom: @height solid @color;
|
|
transform: translateX(-50%);
|
|
}
|
|
}
|
|
.btn {
|
|
padding: 0.3rem 1rem;
|
|
background-color: @c1;
|
|
color: #fff;
|
|
border-radius: 2rem;
|
|
font-size: 0.7rem;
|
|
&.s1 {
|
|
background-color: transparent;
|
|
border: 1px solid @c1;
|
|
color: @c1;
|
|
}
|
|
}
|
|
.a-hover {
|
|
&:hover {
|
|
color: @c1;
|
|
}
|
|
}
|
|
|
|
.program {
|
|
.main-1 {
|
|
padding-top: 0;
|
|
.container {
|
|
.link {
|
|
display: block;
|
|
margin: 3rem 0;
|
|
.con {
|
|
.setBetween;
|
|
}
|
|
.img {
|
|
width: 23rem;
|
|
height: 13.7rem;
|
|
flex-shrink: 0;
|
|
background-color: #ccc;
|
|
img{
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
.text {
|
|
flex: 1;
|
|
margin-left: 1.5rem;
|
|
h3 {
|
|
font-size: 1.2rem;
|
|
line-height: 2;
|
|
span {
|
|
font: inherit;
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
.field {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
margin-top: 1rem;
|
|
|
|
& > div {
|
|
width: 48%;
|
|
line-height: 3;
|
|
font-size: 0.9rem;
|
|
.setColumnCenter;
|
|
}
|
|
}
|
|
}
|
|
.link-btn {
|
|
margin-top: 1rem;
|
|
.setColumnCenter;
|
|
justify-content: flex-end;
|
|
a {
|
|
.setCenter;
|
|
width: 8rem;
|
|
height: 2rem;
|
|
border: 1px solid #ebebeb;
|
|
border-radius: 0.4rem;
|
|
color: #999;
|
|
margin-left: 1rem;
|
|
&.b {
|
|
background-color: @c1;
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@media screen and (max-width:820px){
|
|
.program .main-1 .container .link .img{
|
|
width: 18rem;
|
|
height: 12rem;
|
|
}
|
|
}
|
|
@media screen and (max-width:768px){
|
|
.program{
|
|
.main-1{
|
|
.container{
|
|
.link{
|
|
.con{
|
|
flex-direction: column;
|
|
.img{
|
|
width: 100%;
|
|
height: 10rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.text{
|
|
margin-left: 0;
|
|
h3{
|
|
.dot;
|
|
}
|
|
.field{
|
|
&>div{
|
|
width: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |