2019-11-15 19:01:33 +03:00
|
|
|
---
|
|
|
|
---
|
|
|
|
/*!
|
|
|
|
Style for Homepage
|
2020-01-02 16:17:49 +03:00
|
|
|
v2.0
|
|
|
|
https://github.com/cotes2020/jekyll-theme-chirpy
|
2019-11-15 19:01:33 +03:00
|
|
|
© 2019 Cotes Chung
|
|
|
|
MIT License
|
|
|
|
*/
|
|
|
|
|
2020-02-27 16:05:50 +03:00
|
|
|
|
2019-11-15 19:01:33 +03:00
|
|
|
#post-list {
|
|
|
|
margin-top: 1rem;
|
|
|
|
padding-right: .5rem;
|
2020-02-25 12:56:03 +03:00
|
|
|
.post-meta {
|
|
|
|
i:not(:first-child) { // post-meta icons on HOME
|
|
|
|
margin-left: 1.5rem;
|
|
|
|
}
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.pagination {
|
|
|
|
font-size: 1rem;
|
2020-02-25 12:56:03 +03:00
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.post-preview {
|
|
|
|
padding-top: 1.5rem;
|
|
|
|
padding-bottom: 1rem;
|
2020-02-27 16:05:50 +03:00
|
|
|
border-bottom: 1px solid var(--main-border-color);
|
2020-02-25 12:56:03 +03:00
|
|
|
>h1 {
|
|
|
|
font-size: 1.4rem;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
i.far { /* fontawesome icons */
|
|
|
|
font-size: 86%;
|
|
|
|
}
|
|
|
|
.post-content {
|
|
|
|
margin-top: .6rem;
|
|
|
|
margin-bottom: .6rem;
|
2020-02-27 16:05:50 +03:00
|
|
|
color: var(--post-list-text-color);
|
2020-02-25 12:56:03 +03:00
|
|
|
>p { /* Make preview shorter in Home page*/
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
}
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
}
|
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
.page-item {
|
|
|
|
.page-link {
|
2020-02-27 16:05:50 +03:00
|
|
|
color: var(--btn-patinator-text-color);
|
2020-02-25 12:56:03 +03:00
|
|
|
width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
|
|
|
padding: 0;
|
|
|
|
text-align: center;
|
|
|
|
display: -webkit-box;
|
|
|
|
display: flex;
|
|
|
|
-webkit-box-pack: center;
|
|
|
|
justify-content: center;
|
|
|
|
-webkit-box-align: center;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 50%;
|
2020-02-27 16:05:50 +03:00
|
|
|
border: 1px solid var(--btn-paginator-border-color);
|
2020-02-25 12:56:03 +03:00
|
|
|
font-family: 'Lato', sans-serif;
|
|
|
|
background-color: var(--button-bg);
|
|
|
|
}
|
|
|
|
&.active {
|
|
|
|
.page-link {
|
2020-02-27 16:05:50 +03:00
|
|
|
background-color: var(--btn-active-bg);
|
|
|
|
border-color: var(--btn-active-border-color);
|
|
|
|
box-shadow: 0 0 8px 0 var(--btn-paginator-shadow) !important;
|
|
|
|
color: var(--btn-text-color);
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
.page-link {
|
|
|
|
color: rgba(108, 117, 125, 0.57);
|
2020-02-27 16:05:50 +03:00
|
|
|
border-color: var(--btn-paginator-border-color);
|
2020-02-25 12:56:03 +03:00
|
|
|
background-color: var(--button-bg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:first-child .page-link,
|
|
|
|
&:last-child .page-link {
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 0.6rem;
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
} // .page-item
|
2019-11-15 19:01:33 +03:00
|
|
|
|
|
|
|
|
|
|
|
@media all and (max-width: 576px) {
|
|
|
|
#post-list .post-meta>span i:not(:first-child) {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-21 17:32:28 +03:00
|
|
|
/* Hide SideBar and TOC */
|
|
|
|
@media all and (max-width: 830px) {
|
|
|
|
.pagination {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2019-11-22 19:27:41 +03:00
|
|
|
.pagination {
|
|
|
|
font-size: .85rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-item .page-link {
|
|
|
|
width: 2.2rem;
|
|
|
|
height: 2.2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 19:01:33 +03:00
|
|
|
/* Pannel hidden */
|
|
|
|
@media all and (max-width: 1200px) {
|
|
|
|
#post-list {
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
}
|