blog_theme/assets/css/blog/post.css

163 lines
2.6 KiB
CSS
Raw Normal View History

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