Files
copenlight/styles/_post.scss
Ivan Carlos de Almeida 6fa41a771d
Some checks failed
Build, Push, Publish / Build & Release (push) Failing after 2s
Sync Repo / sync (push) Failing after 2s
first load
2025-12-16 04:40:00 -03:00

153 lines
2.4 KiB
SCSS

/***** Post *****/
/*
* The post grid is defined this way:
* Content | Sidebar
* 70% | 30%
*/
.post {
@include desktop {
flex: 1 0 70%;
max-width: 70%;
}
flex: 1;
margin-bottom: 10px;
&-container {
@include desktop {
flex-direction: row;
}
display: flex;
flex-direction: column;
}
&-header {
@include tablet {
align-items: baseline;
flex-direction: row;
}
align-items: center;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-bottom: 10px;
.status-label { vertical-align: super; }
}
&-title {
@include tablet {
margin-bottom: 0;
padding-right: 10px;
}
margin-bottom: 20px;
width: 100%;
h1 {
@include tablet { margin-right: 5px; }
display: inline;
vertical-align: middle;
}
}
&-author {
align-items: flex-start;
display: flex;
justify-content: space-between;
}
&-avatar {
margin-bottom: 30px;
}
&-content {
font-family: $text_font;
line-height: 1.6;
word-break: break-word;
}
&-info-container {
display: flex;
margin-bottom: 40px;
}
&-info {
min-width: 0;
padding-right: 20px;
width: 100%;
[dir="rtl"] & {
padding-right: 0;
padding-left: 20px;
}
}
&-meta {
display: inline-block;
flex: 1;
margin-left: 10px;
vertical-align: middle;
[dir="rtl"] & {
margin-left: 0;
margin-right: 10px;
}
}
&-body {
@include content-body;
}
&-footer {
align-items: center;
display: flex;
justify-content: space-between;
padding-bottom: 20px;
}
&-comment-count {
color: $secondary-text-color;
&:hover {
text-decoration: none;
}
.icon-comments {
color: $brand_color;
display: inline-block;
width: 18px;
height: 18px;
margin: 5px;
vertical-align: middle;
}
}
&-sidebar {
@include desktop {
border: 0;
flex: 1 0 30%;
padding: 0 0 0 50px;
text-align: initial;
[dir="rtl"] & { padding: 0 50px 0 0; }
}
border-top: 1px solid $low-contrast-border-color;
flex: 1;
padding: 30px 0;
text-align: center;
&-title {
font-size: 18px;
font-weight: $font-weight-semibold;
}
}
&-comments {
@include desktop { margin-bottom: 0; }
margin-bottom: 20px;
}
}