189 lines
3 KiB
SCSS
189 lines
3 KiB
SCSS
/*
|
|
Style for Homepage
|
|
*/
|
|
|
|
#post-list {
|
|
margin-top: 2rem;
|
|
|
|
.card-wrapper {
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
&:not(:last-child) {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
}
|
|
|
|
.card {
|
|
border: 0;
|
|
background: none;
|
|
|
|
%img-radius {
|
|
border-radius: $base-radius $base-radius 0 0;
|
|
}
|
|
|
|
.preview-img {
|
|
@extend %img-radius;
|
|
|
|
img {
|
|
@extend %img-radius;
|
|
}
|
|
}
|
|
|
|
.card-body {
|
|
height: 100%;
|
|
padding: 1rem;
|
|
|
|
.card-title {
|
|
@extend %text-clip;
|
|
|
|
color: var(--heading-color) !important;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
%muted {
|
|
color: var(--text-muted-color) !important;
|
|
}
|
|
|
|
.card-text.content {
|
|
@extend %muted;
|
|
|
|
p {
|
|
@extend %text-clip;
|
|
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.post-meta {
|
|
@extend %muted;
|
|
|
|
i {
|
|
&:not(:first-child) {
|
|
margin-left: 1.5rem;
|
|
}
|
|
}
|
|
|
|
em {
|
|
@extend %normal-font-style;
|
|
|
|
color: inherit;
|
|
}
|
|
|
|
> div:first-child {
|
|
display: block;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} /* #post-list */
|
|
|
|
.pagination {
|
|
color: var(--text-color);
|
|
font-family: Lato, sans-serif;
|
|
justify-content: space-evenly;
|
|
|
|
a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.page-item {
|
|
.page-link {
|
|
color: var(--btn-patinator-text-color);
|
|
padding: 0 0.6rem;
|
|
display: -webkit-box;
|
|
-webkit-box-pack: center;
|
|
-webkit-box-align: center;
|
|
border-radius: 0.5rem;
|
|
border: 0;
|
|
background-color: inherit;
|
|
}
|
|
|
|
&.active {
|
|
.page-link {
|
|
background-color: var(--btn-paginator-hover-color);
|
|
}
|
|
}
|
|
|
|
&:not(.active) {
|
|
.page-link {
|
|
&:hover {
|
|
box-shadow: inset var(--btn-border-color) 0 0 0 1px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.disabled {
|
|
cursor: not-allowed;
|
|
|
|
.page-link {
|
|
color: rgba(108, 117, 125, 0.57);
|
|
}
|
|
}
|
|
} /* .page-item */
|
|
} /* .pagination */
|
|
|
|
/* Tablet */
|
|
@media all and (min-width: 768px) {
|
|
%img-radius {
|
|
border-radius: 0 $base-radius $base-radius 0;
|
|
}
|
|
|
|
#post-list {
|
|
.card {
|
|
.card-body {
|
|
padding: 1.75rem 1.75rem 1.25rem 1.75rem;
|
|
|
|
.card-text {
|
|
display: inherit !important;
|
|
}
|
|
|
|
.post-meta {
|
|
i {
|
|
&:not(:first-child) {
|
|
margin-left: 1.75rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Hide SideBar and TOC */
|
|
@media all and (max-width: 830px) {
|
|
.pagination {
|
|
.page-item {
|
|
&:not(:first-child):not(:last-child) {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Sidebar is visible */
|
|
@media all and (min-width: 831px) {
|
|
#post-list {
|
|
margin-top: 2.5rem;
|
|
}
|
|
|
|
.pagination {
|
|
font-size: 0.85rem;
|
|
justify-content: center;
|
|
|
|
.page-item {
|
|
&:not(:last-child) {
|
|
margin-right: 0.7rem;
|
|
}
|
|
}
|
|
|
|
.page-index {
|
|
display: none;
|
|
}
|
|
} /* .pagination */
|
|
}
|