2019-11-15 19:01:33 +03:00
|
|
|
---
|
|
|
|
---
|
|
|
|
/*!
|
2020-02-21 22:15:13 +03:00
|
|
|
Post-specific style
|
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-21 22:15:13 +03:00
|
|
|
$prompt-older: "{{ site.data.label.post.button.previous }}";
|
|
|
|
$prompt-newer: "{{ site.data.label.post.button.next }}";
|
|
|
|
|
2019-12-23 20:21:55 +03:00
|
|
|
.post img {
|
|
|
|
margin-top: .5rem;
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
2020-01-03 14:41:29 +03:00
|
|
|
// filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.08));
|
|
|
|
position: relative;
|
|
|
|
left: 50%;
|
|
|
|
-webkit-transform: translateX(-50%);
|
|
|
|
-ms-transform: translateX(-50%);
|
|
|
|
transform: translateX(-50%);
|
2019-12-23 20:21:55 +03:00
|
|
|
}
|
|
|
|
|
2020-02-16 22:01:48 +03:00
|
|
|
.post-tail-wrapper {
|
2020-02-17 18:44:10 +03:00
|
|
|
margin-top: 5rem;
|
2020-01-03 16:22:11 +03:00
|
|
|
border-bottom: 1px double var(--main-border, #e9ecef);
|
2019-12-23 20:21:55 +03:00
|
|
|
font-size: 0.85rem;
|
|
|
|
}
|
|
|
|
|
2020-01-03 14:33:49 +03:00
|
|
|
.post-navigation {
|
2020-02-17 18:44:10 +03:00
|
|
|
padding-top: 3rem;
|
|
|
|
padding-bottom: 2rem;
|
2019-12-23 20:21:55 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
@mixin post-nav-btn {
|
2020-02-21 21:45:07 +03:00
|
|
|
width: 50%;
|
|
|
|
position: relative;
|
|
|
|
border-color: var(--main-border, #e9ecef);
|
|
|
|
}
|
2019-12-23 20:21:55 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.btn {
|
|
|
|
@include post-nav-btn;
|
|
|
|
color: var(--link-color, #2a408e);
|
|
|
|
}
|
|
|
|
|
2020-02-21 21:45:07 +03:00
|
|
|
.btn:hover {
|
|
|
|
background: #2a408e;
|
|
|
|
color: #fff;
|
|
|
|
border-color: #2a408e;
|
|
|
|
}
|
2019-12-23 20:21:55 +03:00
|
|
|
|
2020-02-21 21:45:07 +03:00
|
|
|
.btn.disabled {
|
2020-02-21 22:15:13 +03:00
|
|
|
@include post-nav-btn;
|
2020-02-21 21:45:07 +03:00
|
|
|
pointer-events: auto;
|
|
|
|
cursor: not-allowed;
|
|
|
|
background: none;
|
|
|
|
color: gray;
|
2020-02-21 22:15:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.disabled:hover {
|
|
|
|
border-color: none;
|
2020-02-21 21:45:07 +03:00
|
|
|
}
|
2020-01-03 14:33:49 +03:00
|
|
|
|
2020-02-21 21:45:07 +03:00
|
|
|
.btn.btn-outline-primary.disabled:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2019-12-23 20:21:55 +03:00
|
|
|
|
2020-02-21 21:45:07 +03:00
|
|
|
p {
|
|
|
|
font-size: 1.1rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
margin-top: .3rem;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
2020-01-02 19:37:56 +03:00
|
|
|
|
2020-02-21 21:45:07 +03:00
|
|
|
a::before,
|
|
|
|
span::before {
|
|
|
|
color: var(--text-muted-color, gray);
|
|
|
|
font-size: .65rem;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
2020-01-03 14:33:49 +03:00
|
|
|
|
2020-02-21 21:45:07 +03:00
|
|
|
a:first-child,
|
|
|
|
span:first-child {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
left: .5px;
|
|
|
|
}
|
2020-01-03 14:33:49 +03:00
|
|
|
|
2020-02-21 21:45:07 +03:00
|
|
|
a:last-child,
|
|
|
|
span:last-child {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
right: .5px;
|
|
|
|
}
|
2020-01-02 19:37:56 +03:00
|
|
|
|
2020-02-21 21:45:07 +03:00
|
|
|
a:first-child::before,
|
|
|
|
span:first-child::before {
|
|
|
|
content: $prompt-older
|
|
|
|
}
|
2020-01-02 19:37:56 +03:00
|
|
|
|
2020-02-21 21:45:07 +03:00
|
|
|
a:last-child::before,
|
|
|
|
span:last-child::before {
|
|
|
|
content: $prompt-newer
|
|
|
|
}
|
2020-01-02 19:37:56 +03:00
|
|
|
}
|
|
|
|
|
2020-02-21 21:45:07 +03:00
|
|
|
|
2019-11-24 17:08:17 +03:00
|
|
|
@keyframes fade-up {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
position: relative;
|
|
|
|
top: 2rem;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
position: relative;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-31 18:17:27 +03:00
|
|
|
#toc-wrapper {
|
2019-11-15 19:01:33 +03:00
|
|
|
border-left: 1px solid rgba(158, 158, 158, 0.17);
|
|
|
|
position: -webkit-sticky;
|
|
|
|
position: sticky;
|
|
|
|
top: 2rem;
|
|
|
|
transition: top 0.2s ease-in-out;
|
2019-11-24 17:08:17 +03:00
|
|
|
animation: fade-up .8s;
|
2019-11-15 19:01:33 +03:00
|
|
|
}
|
|
|
|
|
2019-12-31 18:17:27 +03:00
|
|
|
#toc-wrapper.topbar-down {
|
2019-11-15 19:01:33 +03:00
|
|
|
top: 6rem;
|
|
|
|
}
|
|
|
|
|
2019-12-31 18:17:27 +03:00
|
|
|
#toc-wrapper>h3 {
|
2019-11-15 19:01:33 +03:00
|
|
|
font-size: 1rem;
|
|
|
|
font-family: 'Oswald', sans-serif;
|
|
|
|
color: gray;
|
|
|
|
}
|
|
|
|
|
|
|
|
#toc li>a {
|
2020-01-14 23:41:31 +03:00
|
|
|
line-height: 1rem;
|
|
|
|
padding-top: .5rem;
|
|
|
|
padding-bottom: .5rem;
|
2019-11-15 19:01:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*--- Related Posts ---*/
|
|
|
|
|
2020-01-02 19:37:56 +03:00
|
|
|
#related-posts > h3 {
|
2019-11-15 19:01:33 +03:00
|
|
|
color: gray;
|
|
|
|
font-size: 1.1rem;
|
|
|
|
font-family: 'Oswald', sans-serif;
|
|
|
|
}
|
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
#related-posts {
|
|
|
|
.card {
|
|
|
|
border: 1px solid var(--main-wrapper-bg, #f1f1f1);
|
|
|
|
background-color: var(--card-bg);
|
|
|
|
box-shadow: 0 0 5px 0 var(--main-wrapper-bg, rgba(234, 234, 234, 0.7686274509803922));
|
|
|
|
-webkit-transition: all .3s ease-in-out;
|
|
|
|
-moz-transition: all .3s ease-in-out;
|
|
|
|
transition: all .3s ease-in-out;
|
|
|
|
h3 {
|
|
|
|
color: var(--relate-post-title, #353a3d);
|
|
|
|
}
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.card:hover {
|
|
|
|
-webkit-transform: translate3d(0, -3px, 0);
|
|
|
|
transform: translate3d(0, -3px, 0);
|
|
|
|
filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.08));
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.timeago {
|
|
|
|
color: var(--text-muted-color, rgba(30, 55, 70, .4));
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
p {
|
|
|
|
font-size: .9rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
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-21 22:15:13 +03:00
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
ul {
|
|
|
|
list-style-type: none;
|
|
|
|
padding-inline-start: 1.5rem;
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
ul>li::before {
|
|
|
|
background: #c2c9d4;
|
|
|
|
width: 5px;
|
|
|
|
height: 5px;
|
|
|
|
border-radius: 1px;
|
|
|
|
display: block;
|
|
|
|
content: "";
|
|
|
|
position: relative;
|
|
|
|
top: 1rem;
|
|
|
|
right: 1rem;
|
|
|
|
}
|
2019-11-25 15:56:50 +03:00
|
|
|
}
|
|
|
|
|
2019-12-31 18:17:27 +03:00
|
|
|
#post-extend-wrapper {
|
2019-11-25 15:56:50 +03:00
|
|
|
min-height: 2rem;
|
|
|
|
}
|
|
|
|
|
2020-02-16 22:01:48 +03:00
|
|
|
.post-tail-bottom a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.share-wrapper {
|
|
|
|
vertical-align: middle;
|
|
|
|
user-select: none;
|
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
a:hover,
|
|
|
|
i:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
color: var(--link-color, #2a408e)!important;
|
|
|
|
}
|
2020-02-16 22:01:48 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.share-icon {
|
|
|
|
font-size: 1.2rem;
|
2020-02-16 22:01:48 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.fab.fa-twitter {
|
|
|
|
color: var(--btn-sharing, rgba(29, 161, 242, 1.00));
|
|
|
|
}
|
2020-02-16 22:01:48 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.fab.fa-facebook-square {
|
|
|
|
color: var(--btn-sharing, rgb(66, 95, 156));
|
|
|
|
}
|
|
|
|
.fab.fa-telegram {
|
|
|
|
color: var(--btn-sharing, rgb(39, 159, 217));
|
|
|
|
}
|
2020-02-16 22:01:48 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.fab.fa-weibo {
|
|
|
|
color: var(--btn-sharing, rgb(229, 20, 43));
|
|
|
|
}
|
2020-02-16 22:01:48 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
} // .share-icon
|
2020-02-16 22:01:48 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.fas.fa-link {
|
|
|
|
color: var(--btn-sharing, rgb(171, 171, 171));
|
|
|
|
}
|
2020-02-16 22:01:48 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
} // .share-wrapper
|
|
|
|
|
|
|
|
|
|
|
|
.share-label {
|
|
|
|
font-family: 'Oswald', sans-serif;
|
2020-02-16 22:01:48 +03:00
|
|
|
}
|
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.share-label::after {
|
|
|
|
content: ":";
|
2020-02-16 22:01:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.license-wrapper {
|
|
|
|
line-height: 1.2rem;
|
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.license-text>a {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
|
|
|
span:last-child {
|
|
|
|
font-size: .85rem;
|
|
|
|
}
|
|
|
|
} // .license-wrapper
|
2020-02-16 22:01:48 +03:00
|
|
|
|
|
|
|
|
|
|
|
@media all and (max-width: 576px) {
|
|
|
|
.post-tail-bottom {
|
|
|
|
-ms-flex-wrap: wrap!important;
|
|
|
|
flex-wrap: wrap!important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-tail-bottom>div:first-child {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-23 20:21:55 +03:00
|
|
|
@media all and (max-width: 768px) {
|
|
|
|
.post img {
|
|
|
|
max-width: calc(100% + 1rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width: 768px) {
|
2020-01-02 19:37:56 +03:00
|
|
|
.post .post-meta > div:not(:first-child)::before {
|
2019-12-23 20:21:55 +03:00
|
|
|
content: "\2022";
|
|
|
|
color: rgba(158, 158, 158, 0.8);
|
|
|
|
font-weight: bold;
|
|
|
|
padding-left: .5rem;
|
|
|
|
padding-right: .3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post .post-meta.flex-column {
|
|
|
|
-webkit-box-orient: horizontal!important;
|
|
|
|
-webkit-box-direction: normal!important;
|
|
|
|
-ms-flex-direction: row!important;
|
|
|
|
flex-direction: row!important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width: 768px) and (max-width: 830px) {
|
|
|
|
.post img {
|
|
|
|
max-width: calc(100% + 2rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide SideBar and TOC */
|
|
|
|
@media all and (max-width: 830px) {
|
|
|
|
.post img {
|
|
|
|
position: relative;
|
|
|
|
left: 50%;
|
|
|
|
-webkit-transform: translateX(-50%);
|
|
|
|
-ms-transform: translateX(-50%);
|
|
|
|
transform: translateX(-50%);
|
|
|
|
}
|
2020-01-02 19:37:56 +03:00
|
|
|
|
2020-01-03 14:33:49 +03:00
|
|
|
.post-navigation {
|
2020-01-02 19:37:56 +03:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
2020-01-28 20:18:25 +03:00
|
|
|
margin-left: -.5rem;
|
|
|
|
margin-right: -.5rem;
|
2020-01-02 19:37:56 +03:00
|
|
|
}
|
2020-02-16 22:01:48 +03:00
|
|
|
|
2019-12-23 20:21:55 +03:00
|
|
|
}
|
|
|
|
|
2019-11-25 15:56:50 +03:00
|
|
|
/*
|
2020-02-21 22:15:13 +03:00
|
|
|
The following resposive design aim to
|
|
|
|
make #post-extend-wrapper margin-right same as pannel's width
|
2019-11-25 15:56:50 +03:00
|
|
|
*/
|
2019-11-27 20:59:01 +03:00
|
|
|
@media all and (min-width: 1200px) {
|
2019-12-31 18:17:27 +03:00
|
|
|
#post-extend-wrapper {
|
2019-11-25 15:56:50 +03:00
|
|
|
margin-right: 25%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width: 1460px) {
|
2019-12-31 18:17:27 +03:00
|
|
|
#post-extend-wrapper {
|
2019-11-25 15:56:50 +03:00
|
|
|
margin-right: 300px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width: 1650px) {
|
2019-12-31 18:17:27 +03:00
|
|
|
#post-extend-wrapper {
|
2019-11-25 15:56:50 +03:00
|
|
|
margin-right: calc((100% - 1150px) / 10 + 300px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width: 1700px) {
|
2019-12-31 18:17:27 +03:00
|
|
|
#post-extend-wrapper {
|
2019-11-25 15:56:50 +03:00
|
|
|
margin-right: calc((100% - 1150px) / 8 + 300px);
|
|
|
|
}
|
2020-01-03 14:41:29 +03:00
|
|
|
}
|