2024-11-25 00:05:28 +08:00
|
|
|
@use '../abstracts/variables' as v;
|
|
|
|
@use '../abstracts/breakpoints' as bp;
|
|
|
|
@use '../abstracts/placeholders';
|
2023-03-18 06:28:44 +08:00
|
|
|
|
|
|
|
#post-list {
|
2023-03-29 05:01:25 +08:00
|
|
|
margin-top: 2rem;
|
2023-03-18 06:28:44 +08:00
|
|
|
|
2024-11-25 00:05:28 +08:00
|
|
|
@include bp.lg {
|
|
|
|
margin-top: 2.5rem;
|
|
|
|
}
|
|
|
|
|
2023-09-08 22:48:37 +08:00
|
|
|
.card-wrapper {
|
2023-03-18 06:28:44 +08:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 1.25rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.card {
|
2023-09-27 04:44:32 +08:00
|
|
|
border: 0;
|
|
|
|
background: none;
|
|
|
|
|
2023-03-18 06:28:44 +08:00
|
|
|
%img-radius {
|
2024-11-25 00:05:28 +08:00
|
|
|
border-radius: v.$radius-lg v.$radius-lg 0 0;
|
|
|
|
|
|
|
|
@include bp.md {
|
|
|
|
border-radius: 0 v.$radius-lg v.$radius-lg 0;
|
|
|
|
}
|
2023-03-18 06:28:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.preview-img {
|
|
|
|
@extend %img-radius;
|
|
|
|
|
|
|
|
img {
|
|
|
|
@extend %img-radius;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-body {
|
2023-09-27 04:44:32 +08:00
|
|
|
height: 100%;
|
2023-03-18 06:28:44 +08:00
|
|
|
padding: 1rem;
|
|
|
|
|
2024-11-25 00:05:28 +08:00
|
|
|
@include bp.md {
|
|
|
|
padding: 1.75rem 1.75rem 1.25rem;
|
|
|
|
}
|
|
|
|
|
2023-03-18 06:28:44 +08:00
|
|
|
.card-title {
|
|
|
|
@extend %text-clip;
|
|
|
|
|
2023-09-09 22:38:19 +08:00
|
|
|
color: var(--heading-color) !important;
|
2023-03-18 06:28:44 +08:00
|
|
|
font-size: 1.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
%muted {
|
|
|
|
color: var(--text-muted-color) !important;
|
|
|
|
}
|
|
|
|
|
2024-11-25 00:05:28 +08:00
|
|
|
.card-text {
|
|
|
|
@include bp.md {
|
|
|
|
display: inherit !important;
|
|
|
|
}
|
2023-03-18 06:28:44 +08:00
|
|
|
|
2024-11-25 00:05:28 +08:00
|
|
|
&.content {
|
|
|
|
@extend %muted;
|
2023-03-18 06:28:44 +08:00
|
|
|
|
2024-11-25 00:05:28 +08:00
|
|
|
p {
|
|
|
|
@extend %text-clip;
|
|
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2023-03-18 06:28:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-meta {
|
|
|
|
@extend %muted;
|
|
|
|
|
|
|
|
i {
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-left: 1.5rem;
|
2024-11-25 00:05:28 +08:00
|
|
|
|
|
|
|
@include bp.md {
|
|
|
|
margin-left: 1.75rem;
|
|
|
|
}
|
2023-03-18 06:28:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
em {
|
|
|
|
@extend %normal-font-style;
|
|
|
|
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
> div:first-child {
|
|
|
|
display: block;
|
2024-10-20 13:47:54 +08:00
|
|
|
|
|
|
|
@extend %text-ellipsis;
|
2023-03-18 06:28:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} /* #post-list */
|
2020-02-27 21:05:50 +08:00
|
|
|
|
2019-11-16 00:01:33 +08:00
|
|
|
.pagination {
|
2023-09-06 00:13:10 +08:00
|
|
|
color: var(--text-color);
|
2022-10-20 02:05:29 +08:00
|
|
|
font-family: Lato, sans-serif;
|
2023-09-06 00:13:10 +08:00
|
|
|
justify-content: space-evenly;
|
2021-05-19 11:09:52 +08:00
|
|
|
|
2024-11-25 00:05:28 +08:00
|
|
|
@include bp.lg {
|
|
|
|
font-size: 0.85rem;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2020-02-25 17:56:03 +08:00
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-11-16 00:01:33 +08:00
|
|
|
|
2020-06-07 00:42:21 +08:00
|
|
|
.page-item {
|
2024-11-25 00:05:28 +08:00
|
|
|
@include bp.lt(bp.get(lg)) {
|
|
|
|
&:not(:first-child):not(:last-child) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include bp.lg {
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 0.7rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-07 00:42:21 +08:00
|
|
|
.page-link {
|
2023-09-06 00:13:10 +08:00
|
|
|
color: var(--btn-patinator-text-color);
|
|
|
|
padding: 0 0.6rem;
|
2020-02-25 17:56:03 +08:00
|
|
|
display: -webkit-box;
|
2020-06-07 00:42:21 +08:00
|
|
|
-webkit-box-pack: center;
|
|
|
|
-webkit-box-align: center;
|
2023-09-06 00:13:10 +08:00
|
|
|
border-radius: 0.5rem;
|
|
|
|
border: 0;
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
2021-10-26 03:04:15 +08:00
|
|
|
|
2023-09-06 00:13:10 +08:00
|
|
|
&.active {
|
|
|
|
.page-link {
|
2021-01-27 20:06:31 +08:00
|
|
|
background-color: var(--btn-paginator-hover-color);
|
2020-06-17 16:17:03 +08:00
|
|
|
}
|
2020-02-25 17:56:03 +08:00
|
|
|
}
|
2021-10-26 03:04:15 +08:00
|
|
|
|
2023-09-06 00:13:10 +08:00
|
|
|
&:not(.active) {
|
2020-06-07 00:42:21 +08:00
|
|
|
.page-link {
|
2023-09-06 00:13:10 +08:00
|
|
|
&:hover {
|
|
|
|
box-shadow: inset var(--btn-border-color) 0 0 0 1px;
|
|
|
|
}
|
2020-06-07 00:42:21 +08:00
|
|
|
}
|
2020-02-25 17:56:03 +08:00
|
|
|
}
|
2021-10-26 03:04:15 +08:00
|
|
|
|
2020-06-07 00:42:21 +08:00
|
|
|
&.disabled {
|
|
|
|
cursor: not-allowed;
|
2021-10-26 03:04:15 +08:00
|
|
|
|
2020-06-07 00:42:21 +08:00
|
|
|
.page-link {
|
|
|
|
color: rgba(108, 117, 125, 0.57);
|
|
|
|
}
|
2020-02-25 17:56:03 +08:00
|
|
|
}
|
2022-10-20 02:05:29 +08:00
|
|
|
} /* .page-item */
|
|
|
|
|
2024-11-25 00:05:28 +08:00
|
|
|
.page-index {
|
|
|
|
@include bp.lg {
|
2021-05-19 11:09:52 +08:00
|
|
|
display: none;
|
|
|
|
}
|
2024-11-25 00:05:28 +08:00
|
|
|
}
|
2019-11-23 00:27:41 +08:00
|
|
|
}
|