web/_sass/layout/home.scss

189 lines
3 KiB
SCSS
Raw Permalink Normal View History

2021-01-23 08:20:58 +03:00
/*
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: $radius-lg $radius-lg 0 0;
}
.preview-img {
@extend %img-radius;
img {
@extend %img-radius;
}
}
.card-body {
height: 100%;
padding: 1rem;
.card-title {
@extend %text-clip;
2023-09-09 17:38:19 +03:00
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;
2024-10-20 08:47:54 +03:00
@extend %text-ellipsis;
}
}
}
}
} /* #post-list */
2019-11-15 19:01:33 +03:00
.pagination {
color: var(--text-color);
2022-10-19 21:05:29 +03:00
font-family: Lato, sans-serif;
justify-content: space-evenly;
2020-02-25 12:56:03 +03:00
a:hover {
text-decoration: none;
}
2019-11-15 19:01:33 +03:00
2020-06-06 19:42:21 +03:00
.page-item {
.page-link {
color: var(--btn-patinator-text-color);
padding: 0 0.6rem;
2020-02-25 12:56:03 +03:00
display: -webkit-box;
2020-06-06 19:42:21 +03:00
-webkit-box-pack: center;
-webkit-box-align: center;
border-radius: 0.5rem;
border: 0;
background-color: inherit;
}
2021-10-25 22:04:15 +03:00
&.active {
.page-link {
background-color: var(--btn-paginator-hover-color);
2020-06-17 11:17:03 +03:00
}
2020-02-25 12:56:03 +03:00
}
2021-10-25 22:04:15 +03:00
&:not(.active) {
2020-06-06 19:42:21 +03:00
.page-link {
&:hover {
box-shadow: inset var(--btn-border-color) 0 0 0 1px;
}
2020-06-06 19:42:21 +03:00
}
2020-02-25 12:56:03 +03:00
}
2021-10-25 22:04:15 +03:00
2020-06-06 19:42:21 +03:00
&.disabled {
cursor: not-allowed;
2021-10-25 22:04:15 +03:00
2020-06-06 19:42:21 +03:00
.page-link {
color: rgba(108, 117, 125, 0.57);
}
2020-02-25 12:56:03 +03:00
}
2022-10-19 21:05:29 +03:00
} /* .page-item */
} /* .pagination */
2019-11-15 19:01:33 +03:00
/* Tablet */
@media all and (min-width: 768px) {
%img-radius {
border-radius: 0 $radius-lg $radius-lg 0;
}
#post-list {
.card {
.card-body {
padding: 1.75rem 1.75rem 1.25rem 1.75rem;
2022-10-19 21:05:29 +03:00
.card-text {
display: inherit !important;
2022-10-19 21:05:29 +03:00
}
2021-10-25 22:04:15 +03:00
.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;
}
}
}
}
2019-11-25 17:01:40 +03:00
/* Sidebar is visible */
@media all and (min-width: 831px) {
#post-list {
margin-top: 2.5rem;
}
2019-11-22 19:27:41 +03:00
.pagination {
2020-10-27 17:08:04 +03:00
font-size: 0.85rem;
justify-content: center;
.page-item {
&:not(:last-child) {
margin-right: 0.7rem;
}
2020-06-06 19:42:21 +03:00
}
.page-index {
display: none;
}
2022-10-19 21:05:29 +03:00
} /* .pagination */
2019-11-22 19:27:41 +03:00
}