blog_theme/assets/css/blog/post.css

150 lines
2.2 KiB
CSS
Raw Normal View History

2019-04-29 19:46:11 +03:00
.post-column {
margin-bottom: 30px;
}
2020-09-24 05:18:34 +03:00
2019-04-29 19:46:11 +03:00
.post {
display: flex;
flex-direction: column;
height: 100%;
}
2020-09-24 05:18:34 +03:00
.post-image {
width: 100%;
}
2020-09-24 05:18:34 +03:00
2019-04-29 19:46:11 +03:00
.post-wrapper {
background-color: var(--white-color);
2019-04-29 19:46:11 +03:00
flex-grow: 1;
padding: 20px;
}
2020-09-24 05:18:34 +03:00
2019-05-01 09:19:36 +03:00
.post-tag {
background-color: var(--primary-color);
border-radius: 15px;
color: var(--white-color);
2019-05-01 09:19:36 +03:00
display: inline-block;
font-size: 12px;
font-weight: 700;
line-height: 1;
margin-bottom: 8px;
padding: 4px 8px;
}
2020-09-24 05:18:34 +03:00
2019-04-29 19:46:11 +03:00
.post-header {
margin-bottom: 10px;
}
2020-09-24 05:18:34 +03:00
2019-04-29 19:46:11 +03:00
.post-title {
font-size: 18px;
margin-bottom: 0;
}
2020-09-24 05:18:34 +03:00
2019-04-30 18:00:55 +03:00
.post-meta {
background-color: var(--white-color);
border-top: 1px solid var(--light-gray-color);
color: var(--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;
}
2020-09-24 05:18:34 +03:00
.post-meta-length::before {
2019-05-09 14:14:57 +03:00
content: "\02022";
font-family: serif;
padding: 0 8px;
}
2020-09-24 05:18:34 +03:00
2019-05-01 11:20:04 +03:00
.post-date {
color: var(--secondary-text-color);
2019-05-01 11:20:04 +03:00
display: block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
}
2020-09-24 05:18:34 +03:00
2019-04-29 19:46:11 +03:00
.post-excerpt {
color: var(--secondary-text-color);
2019-04-29 19:46:11 +03:00
font-size: 14px;
}
2020-09-24 05:18:34 +03:00
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
}
2020-09-24 05:18:34 +03:00
2019-05-03 18:11:39 +03:00
.post-tags {
margin-top: 15px;
}
2020-09-24 05:18:34 +03:00
.post-tags .tag {
font-weight: 700;
}
2020-09-24 05:18:34 +03:00
.post-tags .tag + .tag {
margin-left: 10px;
}
2020-09-24 05:18:34 +03:00
.post-tags .tag::before {
content: "#";
}
2020-09-24 05:18:34 +03:00
2019-04-30 18:00:55 +03:00
.post-footer {
2019-04-29 19:46:11 +03:00
align-items: center;
background-color: var(--white-color);
border-top: 1px solid var(--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;
}
2020-09-24 05:18:34 +03:00
2019-04-30 18:00:55 +03:00
.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: 0.5px;
2019-04-30 18:00:55 +03:00
line-height: 1;
text-transform: uppercase;
2019-04-29 19:46:11 +03:00
}
2020-09-24 05:18:34 +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;
}
2020-09-24 05:18:34 +03:00
2019-04-30 18:00:55 +03:00
.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;
}
2020-09-24 05:18:34 +03:00
.post-author-link:first-child {
z-index: 10;
}
2020-09-24 05:18:34 +03:00
.post-author-link:nth-child(2) {
z-index: 9;
}
2020-09-24 05:18:34 +03:00
.post-author-link:nth-child(3) {
z-index: 8;
}
2020-09-24 05:18:34 +03:00
.post-author-link:nth-child(4) {
z-index: 7;
}
2020-09-24 05:18:34 +03:00
.post-author-link:nth-child(5) {
z-index: 6;
}
2020-09-24 05:18:34 +03:00
2019-04-29 19:46:11 +03:00
.post-author-image {
border: 2px solid var(--white-color);
2019-04-29 19:46:11 +03:00
border-radius: 50%;
height: 100%;
object-fit: cover;
width: 100%;
}