2021-01-23 08:20:58 +03:00
|
|
|
/*
|
|
|
|
Style for Homepage
|
|
|
|
*/
|
2023-03-18 01:28:44 +03:00
|
|
|
|
|
|
|
#post-list {
|
2023-03-29 00:01:25 +03:00
|
|
|
margin-top: 2rem;
|
2023-03-18 01:28:44 +03:00
|
|
|
|
2023-09-08 17:48:37 +03:00
|
|
|
.card-wrapper {
|
2023-03-18 01:28:44 +03:00
|
|
|
display: block;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 1.25rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.card {
|
|
|
|
%img-radius {
|
2023-03-21 05:59:20 +03:00
|
|
|
border-radius: $base-radius $base-radius 0 0;
|
2023-03-18 01:28:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.preview-img {
|
|
|
|
height: 10rem;
|
|
|
|
|
|
|
|
@extend %img-radius;
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
-o-object-fit: cover;
|
|
|
|
object-fit: cover;
|
|
|
|
|
|
|
|
@extend %img-radius;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-body {
|
|
|
|
min-height: 10.5rem;
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
|
|
.card-title {
|
|
|
|
@extend %text-clip;
|
|
|
|
|
2023-09-09 17:38:19 +03:00
|
|
|
color: var(--heading-color) !important;
|
2023-03-18 01:28:44 +03:00
|
|
|
font-size: 1.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
%muted {
|
|
|
|
color: var(--text-muted-color) !important;
|
|
|
|
}
|
|
|
|
|
2023-09-08 17:48:37 +03:00
|
|
|
.card-text.content {
|
2023-03-18 01:28:44 +03:00
|
|
|
@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 */
|
2020-02-27 16:05:50 +03:00
|
|
|
|
2019-11-15 19:01:33 +03:00
|
|
|
.pagination {
|
2023-09-05 19:13:10 +03:00
|
|
|
color: var(--text-color);
|
2022-10-19 21:05:29 +03:00
|
|
|
font-family: Lato, sans-serif;
|
2023-09-05 19:13:10 +03:00
|
|
|
justify-content: space-evenly;
|
2021-05-19 06:09:52 +03:00
|
|
|
|
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 {
|
2023-09-05 19:13:10 +03:00
|
|
|
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;
|
2023-09-05 19:13:10 +03:00
|
|
|
border-radius: 0.5rem;
|
|
|
|
border: 0;
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
2021-10-25 22:04:15 +03:00
|
|
|
|
2023-09-05 19:13:10 +03:00
|
|
|
&.active {
|
|
|
|
.page-link {
|
2021-01-27 15:06:31 +03:00
|
|
|
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
|
|
|
|
2023-09-05 19:13:10 +03:00
|
|
|
&:not(.active) {
|
2020-06-06 19:42:21 +03:00
|
|
|
.page-link {
|
2023-09-05 19:13:10 +03:00
|
|
|
&: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
|
|
|
|
2023-03-18 01:28:44 +03:00
|
|
|
/* Tablet */
|
2023-07-02 15:16:36 +03:00
|
|
|
@media all and (min-width: 768px) {
|
2023-03-18 01:28:44 +03:00
|
|
|
#post-list {
|
|
|
|
%img-radius {
|
2023-03-21 05:59:20 +03:00
|
|
|
border-radius: 0 $base-radius $base-radius 0;
|
2021-01-27 15:06:31 +03:00
|
|
|
}
|
|
|
|
|
2023-03-18 01:28:44 +03:00
|
|
|
.card {
|
|
|
|
.preview-img {
|
|
|
|
width: 20rem;
|
2023-05-25 17:14:46 +03:00
|
|
|
height: 11.55rem; // can hold 2 lines each for title and content
|
2021-01-27 15:06:31 +03:00
|
|
|
}
|
2021-10-25 22:04:15 +03:00
|
|
|
|
2023-03-18 01:28:44 +03:00
|
|
|
.card-body {
|
|
|
|
min-height: 10.75rem;
|
|
|
|
width: 60%;
|
|
|
|
padding: 1.75rem 1.75rem 1.25rem 1.75rem;
|
2022-10-19 21:05:29 +03:00
|
|
|
|
2023-03-18 01:28:44 +03:00
|
|
|
.card-text {
|
|
|
|
display: inherit !important;
|
2022-10-19 21:05:29 +03:00
|
|
|
}
|
2021-10-25 22:04:15 +03:00
|
|
|
|
2023-03-18 01:28:44 +03:00
|
|
|
.post-meta {
|
|
|
|
i {
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-left: 1.75rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-27 15:06:31 +03:00
|
|
|
}
|
|
|
|
}
|
2023-03-17 19:31:52 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-21 17:32:28 +03:00
|
|
|
/* Hide SideBar and TOC */
|
2023-07-02 15:16:36 +03:00
|
|
|
@media all and (max-width: 830px) {
|
2019-12-21 17:32:28 +03:00
|
|
|
.pagination {
|
2021-05-19 06:09:52 +03:00
|
|
|
.page-item {
|
|
|
|
&:not(:first-child):not(:last-child) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2019-12-21 17:32:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-25 17:01:40 +03:00
|
|
|
/* Sidebar is visible */
|
2023-07-02 15:16:36 +03:00
|
|
|
@media all and (min-width: 831px) {
|
2020-04-18 14:13:10 +03:00
|
|
|
#post-list {
|
2023-03-18 01:28:44 +03:00
|
|
|
margin-top: 2.5rem;
|
2020-04-18 14:13:10 +03:00
|
|
|
}
|
|
|
|
|
2019-11-22 19:27:41 +03:00
|
|
|
.pagination {
|
2020-10-27 17:08:04 +03:00
|
|
|
font-size: 0.85rem;
|
2023-09-05 19:13:10 +03:00
|
|
|
justify-content: center;
|
2021-05-19 06:09:52 +03:00
|
|
|
|
|
|
|
.page-item {
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 0.7rem;
|
|
|
|
}
|
2020-06-06 19:42:21 +03:00
|
|
|
}
|
2021-05-19 06:09:52 +03:00
|
|
|
|
|
|
|
.page-index {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-10-19 21:05:29 +03:00
|
|
|
} /* .pagination */
|
2019-11-22 19:27:41 +03:00
|
|
|
}
|