LoveIt/assets/css/_page/_posts.scss

130 lines
2.2 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;
2019-08-24 13:32:41 +02:00
margin-bottom: 1rem;
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;
object-fit: scale-down;
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 {
2019-08-24 13:32:41 +02:00
padding-top: .2rem;
font-size: .9rem;
2019-08-18 19:36:52 +02:00
width: 100%;
2019-08-24 17:41:57 +02:00
max-height: 7rem;
2019-08-18 19:36:52 +02:00
overflow: hidden;
h2,
h3,
h4,
h5,
h6 {
2019-08-24 13:32:41 +02:00
font-size: 1rem;
line-height: 1rem;
padding-top: .3rem;
padding-bottom: .3rem;
2019-08-18 19:36:52 +02:00
}
p {
margin: 0;
2019-08-24 13:32:41 +02:00
padding-top: .3rem;
padding-bottom: .3rem;
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;
}
}
}
}
}
}