325 lines
6.0 KiB
SCSS
325 lines
6.0 KiB
SCSS
/**
|
|
* Single Post Styles
|
|
*
|
|
* @package HomeProz
|
|
*/
|
|
|
|
.Single_Post {
|
|
.single-post-main {
|
|
padding: 0;
|
|
}
|
|
|
|
// Hero (Featured Image)
|
|
.single-post-hero {
|
|
width: 100%;
|
|
max-height: 60vh;
|
|
overflow: hidden;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: auto;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
// Layout
|
|
.single-post-section {
|
|
padding: 4rem 0;
|
|
background-color: var(--color-bg-dark);
|
|
|
|
@media (max-width: 768px) {
|
|
padding: 3rem 0;
|
|
}
|
|
}
|
|
|
|
.single-post-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 320px;
|
|
gap: 3rem;
|
|
|
|
@media (max-width: 1024px) {
|
|
grid-template-columns: 1fr;
|
|
gap: 3rem;
|
|
}
|
|
}
|
|
|
|
// Related Posts
|
|
.related-posts-section {
|
|
padding: 4rem 0;
|
|
background-color: var(--color-bg-card);
|
|
|
|
@media (max-width: 768px) {
|
|
padding: 3rem 0;
|
|
}
|
|
}
|
|
|
|
.related-posts-header {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.related-posts-title {
|
|
font-family: var(--font-display);
|
|
font-size: 1.875rem;
|
|
color: var(--color-text);
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.related-posts-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.5rem;
|
|
|
|
@media (max-width: 1024px) {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
}
|
|
|
|
.single-post {
|
|
padding: 0;
|
|
max-width: none;
|
|
}
|
|
|
|
// Post Header
|
|
.post-header {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.post-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.875rem;
|
|
color: var(--color-text-muted);
|
|
|
|
time {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.meta-separator {
|
|
color: var(--color-border);
|
|
}
|
|
|
|
.post-categories a {
|
|
color: var(--color-accent-light);
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: var(--color-accent-hover);
|
|
}
|
|
}
|
|
}
|
|
|
|
.post-title {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 0;
|
|
|
|
@media (max-width: 768px) {
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
|
|
// Featured Image
|
|
.post-featured-image {
|
|
margin-bottom: 2rem;
|
|
border-radius: 0.5rem;
|
|
overflow: hidden;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
// Post Footer
|
|
.post-footer {
|
|
margin-top: 3rem;
|
|
padding-top: 1.5rem;
|
|
border-top: 1px solid var(--color-border);
|
|
}
|
|
|
|
.post-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
|
|
.tags-label {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.tag-link {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.75rem;
|
|
background-color: var(--color-bg-card);
|
|
border-radius: 0.25rem;
|
|
font-size: 0.8125rem;
|
|
color: var(--color-text-muted);
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
background-color: var(--color-accent);
|
|
color: white;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Post Navigation
|
|
.post-navigation {
|
|
margin-top: 3rem;
|
|
padding: 1.5rem 0;
|
|
border-top: 1px solid var(--color-border);
|
|
border-bottom: 1px solid var(--color-border);
|
|
|
|
.nav-links {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
|
|
@media (min-width: 640px) {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
}
|
|
|
|
.nav-previous,
|
|
.nav-next {
|
|
a {
|
|
display: block;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.nav-next {
|
|
text-align: right;
|
|
}
|
|
|
|
.nav-subtitle {
|
|
display: block;
|
|
font-size: 0.8125rem;
|
|
color: var(--color-text-muted);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.nav-title {
|
|
display: block;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
color: var(--color-text);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
a:hover {
|
|
.nav-title {
|
|
color: var(--color-accent-light);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Comments area
|
|
.comments-area {
|
|
margin-top: 3rem;
|
|
padding-top: 2rem;
|
|
border-top: 1px solid var(--color-border);
|
|
}
|
|
|
|
.comments-title {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.comment-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
.comment {
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
.comment-body {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.comment-author {
|
|
flex-shrink: 0;
|
|
|
|
img {
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
|
|
.comment-content {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.fn {
|
|
font-weight: 600;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.comment-metadata {
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.8125rem;
|
|
color: var(--color-text-muted);
|
|
|
|
a {
|
|
color: var(--color-text-muted);
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: var(--color-accent-light);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Comment form
|
|
.comment-respond {
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.comment-reply-title {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.comment-form {
|
|
label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="email"],
|
|
input[type="url"],
|
|
textarea {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-submit {
|
|
margin-top: 1rem;
|
|
|
|
input[type="submit"] {
|
|
@extend .btn;
|
|
@extend .btn-primary;
|
|
}
|
|
}
|
|
}
|