www.lightcourse.com/public/static/home/new/css/blog.css

547 lines
12 KiB
CSS

.dot {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.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);
}
.btn {
padding: 0.3rem 0.9rem;
background-color: #3b52f6;
color: #fff;
border-radius: 2rem;
font-size: 0.9rem;
}
.btn.s1 {
background-color: transparent;
border: 1px solid #3b52f6;
color: #3b52f6;
}
.a-hover:hover {
color: #3b52f6;
}
.blog .main-center{
max-width: 55rem;
}
.sec-container {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.sec-container .sec-left {
flex: 1;
}
.sec-container .sec-left > div {
padding: 0.9rem;
box-shadow: 0 0 0.3rem #ebebeb;
border-radius: 0.3rem;
}
.sec-container .sec-right {
width: 17.5rem;
margin-left: 0.9rem;
}
.sec-container .sec-right > aside {
padding: 0.9rem;
box-shadow: 0 0 0.3rem #ebebeb;
border-radius: 0.3rem;
margin-bottom: 0.9rem;
}
.sec-container .sec-right .side-search .form {
display: flex;
align-items: center;
border: 1px solid #3b52f6;
border-radius: 0.2rem;
padding: 0 2%;
}
.sec-container .sec-right .side-search .form i {
margin-right: 0.2rem;
font-size: 0.9rem;
color: #999;
}
.sec-container .sec-right .side-search .form input {
height: 2rem;
flex: 1;
}
.sec-container .sec-right .side-blog .keywords {
display: flex;
flex-wrap: wrap;
padding-bottom: 0;
}
.sec-container .sec-right .side-blog .keywords a {
white-space: nowrap;
margin-right: 0.9rem;
margin-bottom: 0.9rem;
}
.sec-container .sec-right .side-blog .keywords a:hover {
color: #3b52f6;
}
.sec-container .sec-right .side-blog .list .link {
display: block;
padding: 0.9rem 0;
border-top: 1px solid #ebebeb;
}
.sec-container .sec-right .side-blog .list .link > div {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.sec-container .sec-right .side-blog .list .link > div h6 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 80%;
font-size: 0.9rem;
}
.sec-container .sec-right .side-blog .list .link > div span {
color: #999;
font-size: 0.9rem;
}
.sec-container .sec-right .side-blog .list .link p {
font-size: 0.9rem;
line-height: 1.8;
color: #666;
}
.sec-container .sec-right .side-blog .list .link:hover h6 {
color: #3b52f6;
}
.blog .main-1 .newest-nav {
display: flex;
border-bottom: 1px solid #ebebeb;
}
.blog .main-1 .newest-nav a {
position: relative;
margin-right: 2rem;
}
.blog .main-1 .newest-nav a::after {
content: "";
position: absolute;
bottom: -0.9rem;
left: 0;
width: 100%;
border-bottom: 2px solid transparent;
}
.blog .main-1 .newest-nav a.active::after,
.blog .main-1 .newest-nav a:hover::after {
border-color: #3b52f6;
}
.blog .main-1 .newest {
margin-bottom: 0.9rem;
}
.blog .main-1 .sec-left .link {
display: flex;
align-items: center;
}
.blog .main-1 .sec-left .link:nth-of-type(2){
}
.blog .main-1 .sec-left .link:nth-of-type(even){
flex-direction: row-reverse;
}
.blog .main-1 .sec-left .link .img{
width: 50%;
height: 16rem;
position: relative;
}
.blog .main-1 .sec-left .link .img img{
min-height: 100%;
min-width: 100%;
max-width: 120%;
max-height: 120%;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
.blog .main-1 .sec-left .link:nth-of-type(2n) .img img{
min-height: 100%;
min-width: 100%;
max-width: 125%;
max-height: 125%;
}
.blog .main-1 .sec-left .link:nth-of-type(3n) .img img{
min-height: 100%;
min-width: 100%;
max-width: 130%;
max-height: 130%;
}
.blog .main-1 .sec-left .link:nth-of-type(5n) .img img{
min-height: 100%;
min-width: 100%;
max-width: 115%;
max-height: 115%;
}
.blog .main-1 .sec-left .link:nth-of-type(even) .img img{
left: auto;
right: 0;
}
.blog .main-1 .sec-left .link .text{
display: flex;
justify-content: flex-end;
width: 50%;
}
.blog .main-1 .sec-left .link .text>div{
display: flex;
justify-content: flex-end;
width: 100%;
border-top: 0.8rem solid #ffff1b;
}
.blog .main-1 .sec-left .link:nth-of-type(even) .text>div{
justify-content: flex-start;
}
.blog .main-1 .sec-left .link .text>div span{
width: 17rem;
position: relative;
transition: all .6s;
}
.blog .main-1 .sec-left .link:nth-of-type(even) .text{
justify-content: flex-start;
}
.blog .main-1 .sec-left .link .text h6{
font-size: 1.55rem;
line-height: 1.1;
margin: 0.2rem 0 0.5rem;
}
.blog .main-1 .sec-left .link .text p{
font-family: "HarmonyOS_Sans_Regular" !important;
font-size: 0.7rem;
line-height: 0.9rem;
display: -webkit-box;
max-height: 2.7rem;
-webkit-line-clamp: 3;
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.blog .main-1 .sec-left .link .text em{
display: block;
font-size: 0.85rem;
color: #333333;
position: absolute;
bottom: -0.5rem;
right: -0.2rem;
transform: scaleX(1.8);
transition: all .6s;
}
.blog .main-1 .sec-left .link:hover .text>div span{
opacity: .65;
}
.blog .main-1 .sec-left .link:hover .text em{
right: -0.5rem;
}
.blog-details .main-1 .sec-left .article {
margin-bottom: 0.9rem;
}
.blog-details .main-1 .sec-left .article .article-tit {
margin-bottom: 0.9rem;
}
.blog-details .main-1 .sec-left .article .article-tit h1 {
font-size: 1.3rem;
margin-bottom: 0.9rem;
}
.blog-details .main-1 .sec-left .article .article-tit .field {
display: flex;
align-items: center;
}
.blog-details .main-1 .sec-left .article .article-tit .field span {
margin-right: 0.5rem;
cursor: pointer;
}
.blog-details .main-1 .sec-left .article .article-tit .field span,
.blog-details .main-1 .sec-left .article .article-tit .field span * {
font-size: 0.9rem;
color: #999;
}
.blog-details .main-1 .sec-left .article .article-tit .field span .icon {
font-size: 0.9rem;
margin-right: 0.2rem;
}
.blog-details .main-1 .sec-left .article .article-tit .field span:hover,
.blog-details .main-1 .sec-left .article .article-tit .field span:hover * {
color: #3b52f6;
}
.blog-details .main-1 .sec-left .article .article-info {
padding: 0.9rem 0;
border-top: 1px solid #ebebeb;
}
.blog-details .main-1 .sec-left .article .article-info * {
line-height: 1.8;
font-size: 0.9rem;
}
.blog-details .main-1 .sec-left .article .article-info p{
font-size: 0.9rem;
color: #000;
font-family: 'robotoLight'!important;
}
.blog-details .main-1 .sec-left .comment .form textarea {
width: 100%;
height: 5rem;
resize: none;
border: 1px solid #ebebeb;
padding: 0.5rem;
outline: none;
font-size: 0.9rem;
}
.blog-details .main-1 .sec-left .comment .form .code-img {
display: flex;
margin-top: 0.9rem;
}
.blog-details .main-1 .sec-left .comment .form .code-img input {
border: 1px solid #ebebeb;
height: 2.4rem;
padding: 0.5rem;
box-sizing: border-box;
margin-right: 2rem;
}
.blog-details .main-1 .sec-left .comment .form .code-img img {
width: 6rem;
height: 2.4rem;
}
.blog-details .main-1 .sec-left .comment .form input[type="submit"] {
display: block;
padding: 0.3rem 0.9rem;
border-radius: 2rem;
font-size: 0.9rem;
color: #fff;
background-color: #3b52f6;
margin: 0.9rem auto 0;
cursor: pointer;
}
.blog-details .main-1 .sec-left .comment .comment-list {
background-color: transparent;
margin-top: 0.9rem;
padding: 0;
padding-top: 0.9rem;
border-top: 1px solid #ebebeb;
}
.blog-details .main-1 .sec-left .comment .comment-list > h5 {
font-size: 1.3rem;
font-weight: 500;
margin-bottom: 0.9rem;
}
.blog-details .main-1 .sec-left .comment .comment-list .item {
background-color: #fff;
display: flex;
padding: 0.9rem 0;
border-bottom: 1px solid #ebebeb;
}
.blog-details .main-1 .sec-left .comment .comment-list .item:last-of-type {
border-bottom: none;
}
.blog-details .main-1 .sec-left .comment .comment-list .i {
width: 4rem;
height: 4rem;
border-radius: 50%;
margin-right: 0.5rem;
background-color: #ccc;
overflow: hidden;
flex-shrink: 0;
margin-right: 0.9rem;
}
.blog-details .main-1 .sec-left .comment .comment-list .i img {
width: 100%;
height: 100%;
object-fit: cover;
}
.blog-details .main-1 .sec-left .comment .comment-list h6 {
font-size: 0.9rem;
font-weight: 500;
}
.blog-details .main-1 .sec-left .comment .comment-list .des {
line-height: 1.8;
padding: 0.5rem 0;
}
.blog-details .main-1 .sec-left .comment .comment-list .des,
.blog-details .main-1 .sec-left .comment .comment-list .des * {
font-size: 0.9rem;
color: #666;
}
.blog-details .main-1 .sec-left .comment .comment-list .time {
display: flex;
align-items: center;
}
.blog-details .main-1 .sec-left .comment .comment-list .time span,
.blog-details .main-1 .sec-left .comment .comment-list .time span * {
color: #999;
font-size: 0.9rem;
}
.blog-details .main-1 .sec-left .comment .comment-list .time span:nth-of-type(2) {
margin-left: auto;
margin-right: 0.9rem;
}
.blog-details .main-1 .share {
display: flex;
align-items: center;
margin-left: auto;
margin-right: 0;
}
.blog-details .main-1 .share span {
margin-right: 0.5rem;
}
.blog-details .main-1 .share span .iconf {
color: #999;
}
.blog-banner{
background-color: #18d777;
padding: 4.4rem 0;
position: relative;
}
.blog-banner .main-center{
max-width: 58.5rem;
position: relative;
padding: 0;
text-align: right;
}
.blog-banner .blog-txt{
max-width: 31rem;
text-align: left;
position: absolute;
top: 3.5rem;
left: 0;
z-index: 2;
}
.blog-banner .blog-txt h2{
font-size: 2.7rem;
line-height: 1.1;
color: #fff;
}
.blog-banner .blog-txt h2>em{
color: #ffff1b;
}
.blog-banner .blog-txt span{
display: block;
font-size: 1.25rem;
line-height: 1.4;
color: #ffff1b;
margin: 2rem 0 7rem;
}
.blog-banner .blog-img{
width: 35.8rem;
}
.blog-banner .blog-bg{
position: absolute;
right: 0;
bottom: 1.7rem;
z-index: 2;
}
.blog-banner .more-btn1{
box-sizing: border-box;
display: inline-block;
height: 2.4rem;
padding: 0 0.8rem;
border: 0.15rem solid #ffffff;
border-radius: 0.5rem;
transition: all .6s;
}
.blog-banner .more-btn1 a{
display: flex;
align-items: center;
border: 0;
height: 100%;
color: #ffffff;
padding-right: 1rem;
font-size: 0.9rem;
position: relative;
transition: all .6s;
}
.blog-banner .more-btn1 em{
font-family: "HarmonyOS_Sans_Regular" !important;
margin-left: 0.3rem;
margin-top: 0.1rem;
transition: all .6s;
position: absolute;
right: 0;
top: 50%;
transform: scaleY(1.8) translateY(-32.5%);
}
.blog-banner .more-btn1:hover{
border: 0.15rem solid #ffff1b;
}
.blog-banner .more-btn1:hover a{
color: #ffff1b;
}
.blog-banner .more-btn1:hover em{
right: -0.3rem;
}
@media screen and (max-width: 1024px) {
.social-share .social-share-icon {
width: 1.5rem !important;
height: 1.5rem !important;
font-size: 0.9rem !important;
line-height: 1.5rem !important;
}
}
@media screen and (max-width: 768px) {
.blog .main-1 .sec-left .link h6 {
font-size: 0.9rem;
}
.blog .main-1 .sec-left .link p {
margin: 0;
}
.sec-container {
flex-direction: column;
}
.sec-container .sec-left,
.sec-container .sec-right {
width: 100%;
flex: none;
margin-left: 0;
}
.sec-container .sec-right > aside {
margin-top: 0.9rem;
}
.blog-details .main-1 .sec-left .article .article-tit .field {
flex-wrap: wrap;
}
.blog-details .main-1 .sec-left .article .article-tit .field .share {
width: 100%;
margin-top: 0.9rem;
}
.social-share .social-share-icon {
font-size: 13px !important;
width: 26px !important;
height: 26px !important;
line-height: 26px !important;
}
}