blog_theme/assets/less/blog/post.less

145 lines
2.0 KiB
Plaintext
Raw Normal View History

2019-04-29 19:46:11 +03:00
.post-column {
margin-bottom: 30px;
}
.post {
border-radius: 5px;
box-shadow: @shadow-base;
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.post-wrapper {
background-color: @white-color;
flex-grow: 1;
padding: 20px;
}
2019-05-01 09:19:36 +03:00
.post-tag {
background-color: var(--primary-color);
border-radius: 15px;
color: @white-color;
display: inline-block;
font-size: 12px;
font-weight: 700;
line-height: 1;
margin-bottom: 8px;
padding: 4px 8px;
}
2019-04-29 19:46:11 +03:00
.post-header {
margin-bottom: 10px;
}
.post-title {
font-size: 18px;
margin-bottom: 0;
}
2019-04-30 18:00:55 +03:00
.post-meta {
background-color: @white-color;
border-top: 1px solid @mid-gray-color;
color: @secondary-text-color;
2019-05-03 18:11:39 +03:00
display: flex;
2019-04-30 18:00:55 +03:00
font-size: 13px;
font-weight: 700;
padding: 10px 30px;
}
2019-05-09 14:14:57 +03:00
.post-meta-length:before {
content: "\02022";
font-family: serif;
padding: 0 8px;
}
2019-05-01 11:20:04 +03:00
.post-date {
color: @secondary-text-color;
display: block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
}
2019-04-29 19:46:11 +03:00
.post-excerpt {
color: @secondary-text-color;
font-size: 14px;
}
2019-04-30 18:00:55 +03:00
.post-content {
font-size: 15px;
2019-05-14 18:48:55 +03:00
line-height: 1.8;
2019-04-30 18:00:55 +03:00
}
2019-05-03 18:11:39 +03:00
.post-tags {
margin-top: 15px;
.tag {
font-weight: 700;
& + .tag {
margin-left: 10px;
}
&:before {
content: "#";
}
}
}
2019-04-30 18:00:55 +03:00
.post-footer {
2019-04-29 19:46:11 +03:00
align-items: center;
background-color: @white-color;
2019-04-30 18:00:55 +03:00
border-top: 1px solid @light-gray-color;
2019-04-29 19:46:11 +03:00
display: flex;
2019-04-30 18:00:55 +03:00
height: 42px;
justify-content: space-between;
padding: 0 20px;
}
.post-link {
2019-05-01 09:19:36 +03:00
font-size: 11px;
2019-04-30 18:00:55 +03:00
font-weight: 700;
letter-spacing: .5px;
line-height: 1;
text-transform: uppercase;
2019-04-29 19:46:11 +03:00
}
2019-04-30 18:00:55 +03:00
.post-author {
2019-05-14 18:48:55 +03:00
display: flex;
2019-04-30 18:00:55 +03:00
margin-right: 2px;
}
.post-author-link {
2019-04-29 19:46:11 +03:00
display: block;
2019-04-30 18:00:55 +03:00
height: 28px;
2019-04-29 19:46:11 +03:00
margin: 0 -4px;
position: relative;
2019-04-30 18:00:55 +03:00
width: 28px;
2019-04-29 19:46:11 +03:00
&:first-child {
z-index: 10;
}
&:nth-child(2) {
z-index: 9;
}
&:nth-child(3) {
z-index: 8;
}
&:nth-child(4) {
z-index: 7;
}
&:nth-child(5) {
z-index: 6;
}
}
.post-author-image {
border: 2px solid @white-color;
border-radius: 50%;
}