blog_theme/assets/css/blog/post.css

125 lines
2.1 KiB
CSS
Raw Normal View History

2019-04-29 19:46:11 +03:00
.post-column {
margin-bottom: 30px;
}
.post {
display: flex;
flex-direction: column;
height: 100%;
}
.post-image {
width: 100%;
}
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;
}
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;
}
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: 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;
}
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: var(--secondary-text-color);
2019-05-01 11:20:04 +03:00
display: block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
}
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;
}
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;
}
.post-tags .tag {
font-weight: 700;
}
.post-tags .tag + .tag {
margin-left: 10px;
}
.post-tags .tag: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: 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;
}
.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
}
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;
}
.post-author-link:first-child {
z-index: 10;
}
.post-author-link:nth-child(2) {
z-index: 9;
}
.post-author-link:nth-child(3) {
z-index: 8;
}
.post-author-link:nth-child(4) {
z-index: 7;
}
.post-author-link:nth-child(5) {
z-index: 6;
}
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%;
}