LoveIt/assets/css/_page/_posts.scss

133 lines
2.3 KiB
SCSS
Raw Normal View History

2019-08-24 13:32:41 +02:00
.home-intro {
2019-08-18 19:36:52 +02:00
transform: translateY(0);
2019-08-24 13:32:41 +02:00
padding: 2rem 0 2rem 0;
2019-08-18 19:36:52 +02:00
2019-08-24 13:32:41 +02:00
.home-avatar {
2019-08-18 19:36:52 +02:00
img {
2019-08-24 13:32:41 +02:00
width: 6rem;
2019-08-18 19:36:52 +02:00
}
}
}
.post {
2019-08-24 13:32:41 +02:00
padding-top: 1rem;
padding-bottom: .8rem;
2019-08-18 19:36:52 +02:00
color: $global-font-color;
border-bottom: 1px dashed $global-border-color;
.dark-theme & {
color: $global-font-color-dark;
border-bottom: 1px dashed $global-border-color-dark;
}
.post-featured-image-preview {
2019-08-18 19:36:52 +02:00
width: 100%;
padding: 30% 0 0;
position: relative;
2020-01-31 11:46:28 +01:00
margin: 0.6rem auto;
2019-08-18 19:36:52 +02:00
img {
position: absolute;
2020-01-30 05:35:34 +01:00
width: 100%;
height: 100%;
left: 0;
top: 0;
2020-01-31 11:46:28 +01:00
object-fit: cover;
2019-08-18 19:36:52 +02:00
}
}
.post-list-title {
2019-08-24 13:32:41 +02:00
font-size: 1.6rem;
2019-08-18 19:36:52 +02:00
}
.post-meta {
2019-08-24 13:32:41 +02:00
font-size: .875rem !important;
2019-08-18 19:36:52 +02:00
a {
color: $global-font-secondary-color !important;
.dark-theme & {
color: $global-font-secondary-color-dark !important;
}
&:hover {
color: $global-link-hover-color !important;
.dark-theme & {
color: $global-link-hover-color-dark !important;
}
}
}
}
.post-content {
2020-02-10 15:16:30 +01:00
display: -webkit-box;
margin-top: .3rem;
2019-08-18 19:36:52 +02:00
width: 100%;
2020-02-10 15:16:30 +01:00
max-height: 10rem;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
2019-08-18 19:36:52 +02:00
h2,
h3,
h4,
h5,
2020-02-10 15:16:30 +01:00
h6,
p {
font-size: 1rem;
2020-02-10 15:16:30 +01:00
margin: 0;
padding: .2rem 0;
2020-02-10 15:16:30 +01:00
overflow: hidden;
overflow-wrap: break-word;
text-overflow: ellipsis;
2019-08-18 19:36:52 +02:00
}
2020-02-10 15:16:30 +01:00
a {
word-break: break-all;
2019-08-18 19:36:52 +02:00
}
}
.post-footer {
2019-08-24 13:32:41 +02:00
margin-top: .5rem;
2019-08-18 19:36:52 +02:00
display: flex;
justify-content: space-between;
align-items: center;
2019-08-24 13:32:41 +02:00
font-size: .875rem !important;
2019-08-18 19:36:52 +02:00
a {
color: $post-link-color !important;
.dark-theme & {
color: $post-link-color-dark !important;
}
&:hover {
color: $post-link-hover-color !important;
.dark-theme & {
color: $post-link-hover-color-dark !important;
}
}
}
.post-tags {
padding: 0;
a {
color: $global-link-color !important;
.dark-theme & {
color: $global-link-color-dark !important;
}
&:hover {
color: $global-link-hover-color !important;
.dark-theme & {
color: $global-link-hover-color-dark !important;
}
}
}
}
}
}