@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; justify-content: 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; } } .story { .main-1 { .container { .item { .setColumnCenter; margin-bottom: 2rem; &:last-of-type { margin-bottom: 0; } .l{ .setColumnCenter; } .i { width: 12rem; height: 12rem; border-radius: 50%; background-color: #ccc; flex-shrink: 0; overflow: hidden; img{ width: 100%; height: 100%; object-fit: cover; } } .anchor { margin: 0 1.5rem; flex-shrink: 0; * { text-align: center; } h4 { font-size: 1.2rem; margin-bottom: 0.5rem; } p { line-height: 1.6; color: #666; } } .info { flex: 1; p { line-height: 1.8; color: #666; &,*{ font-family: "Microsoft YaHei" !important; } } } } } } } .story-details { .main-1 { .container { .tit { margin-bottom: 3rem; h1 { text-align: center; font-size: 1.6rem; color: @c1; margin-bottom: 1rem; } .field { display: flex; justify-content: center; span { margin: 0 1rem; color: #999; font-size: 0.7rem; } } } .content { .info { * { line-height: 1.6; } } .other { .setBetween; margin: 3rem 0; div { * { color: #999; } a { .a-hover; } } } .commit { .c-tit { margin-bottom: 2rem; span { font-size: 0.9rem; } } .list-con { margin-bottom: 3rem; .item { .setColumnCenter; margin-bottom: 1rem; &:last-of-type{ margin-bottom: 0; } .i { width: 3rem; height: 3rem; border-radius: 50%; background-color: #ccc; flex-shrink: 0; margin-right: 1rem; } h6 { .setColumnCenter; font-size: 1rem; span { font-size: 0.7rem; color: #999; font-weight: normal; margin-left: 2rem; } } p { color: #666; margin-top: .2rem; } } } form{ textarea{ width: 100%; height: 9rem; border: 1px solid #ebebeb; border-radius: .2rem; padding: .6rem; outline: none; transition: all ease .3s; line-height: 1.6; resize: none; &:focus{ border-color: @c1; box-shadow: 0px 6px 10px 0px rgb(19 36 162 / 10%); } } .more-btn{ text-align: center; } } } } } } } @media screen and (max-width:768px){ .story{ .main-1{ .container{ .item{ flex-wrap: wrap; align-items: flex-start; flex-direction: column; .i{ width: 7rem; height: 7rem; } .info{ flex: 1; width: 100%; margin-top: 1rem; } } } } } .story-details .main-1 .container .content .other{ flex-direction: column; &>div{ padding: .2rem 0; } } }