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

405 lines
9.3 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;
}
.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: block;
padding: 0.9rem 0;
border-bottom: 1px solid #ebebeb;
}
.blog .main-1 .sec-left .link:last-of-type {
border-bottom: none;
}
.blog .main-1 .sec-left .link:hover h6 {
color: #3b52f6;
}
.blog .main-1 .sec-left .link h6 {
font-size: 0.9rem;
display: flex;
align-items: center;
}
.blog .main-1 .sec-left .link h6 em {
display: inline-block;
padding: 0.4rem;
background-color: #3b52f6;
color: #fff;
font-size: 0.9rem;
font-weight: normal;
margin-right: 0.3rem;
text-transform: uppercase;
}
.blog .main-1 .sec-left .link p {
line-height: 1.8;
margin: 0.5rem 0;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.blog .main-1 .sec-left .link .field {
display: flex;
align-items: center;
}
.blog .main-1 .sec-left .link .field span,
.blog .main-1 .sec-left .link .field span * {
font-size: 0.9rem;
color: #999;
}
.blog .main-1 .sec-left .link .field span:nth-of-type(2) {
margin-left: auto;
}
.blog .main-1 .sec-left .link .field span:nth-of-type(3) {
margin-left: 2rem;
}
.blog .main-1 .sec-left .link .field span .icon {
font-size: 0.9rem;
margin-right: 0.2rem;
}
.blog .main-1 .sec-left .link .field span:hover,
.blog .main-1 .sec-left .link .field span:hover * {
color: #3b52f6;
}
.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;
}
@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;
}
}