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

212 lines
4.6 KiB
CSS

.dot {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.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);
}
.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;
}
.story .main-1 .container .item {
display: flex;
align-items: center;
margin-bottom: 2rem;
}
.story .main-1 .container .item:last-of-type {
margin-bottom: 0;
}
.story .main-1 .container .item .l {
display: flex;
align-items: center;
}
.story .main-1 .container .item .i {
width: 12rem;
height: 12rem;
border-radius: 50%;
background-color: #ccc;
flex-shrink: 0;
overflow: hidden;
}
.story .main-1 .container .item .i img {
width: 100%;
height: 100%;
object-fit: cover;
}
.story .main-1 .container .item .anchor {
margin: 0 1.3rem;
flex-shrink: 0;
}
.story .main-1 .container .item .anchor * {
text-align: center;
}
.story .main-1 .container .item .anchor h4 {
font-size: 1.3rem;
margin-bottom: 0.5rem;
}
.story .main-1 .container .item .anchor p {
line-height: 1.6;
color: #666;
}
.story .main-1 .container .item .info {
flex: 1;
}
.story .main-1 .container .item .info p {
line-height: 1.8;
color: #666;
}
.story .main-1 .container .item .info p,
.story .main-1 .container .item .info p * {
font-family: "robotoMedium";
}
.story-details .main-1 .container .tit {
margin-bottom: 3rem;
}
.story-details .main-1 .container .tit h1 {
text-align: center;
font-size: 1.3rem;
color: #3b52f6;
margin-bottom: 0.9rem;
}
.story-details .main-1 .container .tit .field {
display: flex;
justify-content: center;
}
.story-details .main-1 .container .tit .field span {
margin: 0 0.9rem;
color: #999;
font-size: 0.9rem;
}
.story-details .main-1 .container .content .info * {
line-height: 1.6;
}
.story-details .main-1 .container .content .other {
display: flex;
justify-content: space-between;
margin: 3rem 0;
}
.story-details .main-1 .container .content .other div * {
color: #999;
}
.story-details .main-1 .container .content .other div a:hover {
color: #3b52f6;
}
.story-details .main-1 .container .content .commit .c-tit {
margin-bottom: 2rem;
}
.story-details .main-1 .container .content .commit .c-tit span {
font-size: 0.9rem;
}
.story-details .main-1 .container .content .commit .list-con {
margin-bottom: 3rem;
}
.story-details .main-1 .container .content .commit .list-con .item {
display: flex;
align-items: center;
margin-bottom: 0.9rem;
}
.story-details .main-1 .container .content .commit .list-con .item:last-of-type {
margin-bottom: 0;
}
.story-details .main-1 .container .content .commit .list-con .item .i {
width: 3rem;
height: 3rem;
border-radius: 50%;
background-color: #ccc;
flex-shrink: 0;
margin-right: 0.9rem;
}
.story-details .main-1 .container .content .commit .list-con .item h6 {
display: flex;
align-items: center;
font-size: 0.9rem;
}
.story-details .main-1 .container .content .commit .list-con .item h6 span {
font-size: 0.9rem;
color: #999;
font-weight: normal;
margin-left: 2rem;
}
.story-details .main-1 .container .content .commit .list-con .item p {
color: #666;
margin-top: 0.2rem;
}
.story-details .main-1 .container .content .commit form textarea {
width: 100%;
height: 9rem;
border: 1px solid #ebebeb;
border-radius: 0.2rem;
padding: 0.6rem;
outline: none;
transition: all ease 0.3s;
line-height: 1.6;
resize: none;
}
.story-details .main-1 .container .content .commit form textarea:focus {
border-color: #3b52f6;
box-shadow: 0px 6px 10px 0px rgba(19, 36, 162, 0.1);
}
.story-details .main-1 .container .content .commit form .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;
}
.story .main-1 .container .item .i {
width: 7rem;
height: 7rem;
}
.story .main-1 .container .item .info {
flex: 1;
width: 100%;
margin-top: 0.9rem;
}
.story-details .main-1 .container .content .other {
flex-direction: column;
}
.story-details .main-1 .container .content .other > div {
padding: 0.2rem 0;
}
}