2021-01-23 08:20:58 +03:00
|
|
|
/*
|
|
|
|
Style for Homepage
|
|
|
|
*/
|
2020-02-27 16:05:50 +03:00
|
|
|
|
2019-11-15 19:01:33 +03:00
|
|
|
.pagination {
|
2021-05-19 06:09:52 +03:00
|
|
|
color: var(--btn-patinator-text-color);
|
|
|
|
font-family: 'Lato', sans-serif;
|
|
|
|
|
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 {
|
2021-05-19 06:09:52 +03:00
|
|
|
color: inherit;
|
2020-06-06 19:42:21 +03:00
|
|
|
width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
|
|
|
padding: 0;
|
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: 50%;
|
|
|
|
border: 1px solid var(--btn-paginator-border-color);
|
|
|
|
background-color: var(--button-bg);
|
2020-06-17 11:17:03 +03:00
|
|
|
&:hover {
|
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
|
|
|
}
|
2020-06-06 19:42:21 +03:00
|
|
|
&.active {
|
|
|
|
.page-link {
|
2021-09-21 13:00:29 +03:00
|
|
|
background-color: var(--btn-paginator-hover-color);
|
2020-06-06 19:42:21 +03:00
|
|
|
color: var(--btn-text-color);
|
|
|
|
}
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
2020-06-06 19:42:21 +03:00
|
|
|
&.disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
.page-link {
|
|
|
|
color: rgba(108, 117, 125, 0.57);
|
|
|
|
border-color: var(--btn-paginator-border-color);
|
|
|
|
background-color: var(--button-bg);
|
|
|
|
}
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
2020-06-06 19:42:21 +03:00
|
|
|
&:first-child .page-link,
|
|
|
|
&:last-child .page-link {
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
} // .page-item
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-06-06 19:42:21 +03:00
|
|
|
} // .pagination
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2021-01-27 15:06:31 +03:00
|
|
|
#post-list {
|
|
|
|
margin-top: 1rem;
|
|
|
|
padding-right: 0.5rem;
|
|
|
|
|
|
|
|
.post-preview {
|
|
|
|
padding-top: 1.5rem;
|
|
|
|
padding-bottom: 1rem;
|
|
|
|
border-bottom: 1px solid var(--main-border-color);
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
@extend %link-hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 1.4rem;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-meta {
|
|
|
|
i {
|
|
|
|
font-size: 0.73rem;
|
|
|
|
}
|
|
|
|
span:not(:last-child) {
|
|
|
|
margin-right: 1.2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-content {
|
|
|
|
margin-top: 0.6rem;
|
|
|
|
margin-bottom: 0.6rem;
|
|
|
|
color: var(--post-list-text-color);
|
|
|
|
> p {
|
|
|
|
/* Make preview shorter on the homepage */
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pin {
|
|
|
|
> i {
|
|
|
|
transform: rotate(45deg);
|
|
|
|
padding-left: 3px;
|
|
|
|
color: var(--pin-color);
|
|
|
|
}
|
|
|
|
> span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} // .post-preview
|
|
|
|
|
|
|
|
} // #post-list
|
|
|
|
|
2019-12-21 17:32:28 +03:00
|
|
|
/* Hide SideBar and TOC */
|
|
|
|
@media all and (max-width: 830px) {
|
|
|
|
.pagination {
|
2021-05-19 06:09:52 +03:00
|
|
|
justify-content: space-evenly;
|
|
|
|
|
|
|
|
.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 */
|
2019-11-22 19:27:41 +03:00
|
|
|
@media all and (min-width: 831px) {
|
2020-04-18 14:13:10 +03:00
|
|
|
|
|
|
|
#post-list {
|
|
|
|
margin-top: 1.5rem;
|
2020-12-17 10:18:02 +03:00
|
|
|
.post-preview .post-meta {
|
|
|
|
.pin {
|
|
|
|
background: var(--pin-bg);
|
|
|
|
border-radius: 5px;
|
|
|
|
line-height: 1.4rem;
|
|
|
|
height: 1.3rem;
|
|
|
|
margin-top: 3px;
|
|
|
|
padding-left: 1px;
|
|
|
|
padding-right: 6px;
|
|
|
|
|
|
|
|
> span {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
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;
|
2021-05-19 06:09:52 +03:00
|
|
|
|
|
|
|
.page-item {
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 0.7rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-link {
|
|
|
|
width: 2rem;
|
|
|
|
height: 2rem;
|
|
|
|
}
|
|
|
|
|
2020-06-06 19:42:21 +03:00
|
|
|
}
|
2021-05-19 06:09:52 +03:00
|
|
|
|
|
|
|
.page-index {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // .pagination
|
2019-11-22 19:27:41 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-11-15 19:01:33 +03:00
|
|
|
/* Pannel hidden */
|
|
|
|
@media all and (max-width: 1200px) {
|
|
|
|
#post-list {
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2020-10-27 17:08:04 +03:00
|
|
|
}
|