2021-01-23 08:20:58 +03:00
|
|
|
/*
|
|
|
|
Post-specific style
|
|
|
|
*/
|
2020-05-03 22:52:23 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
@mixin btn-sharing-color($light-color, $important: false) {
|
|
|
|
@if $important {
|
2021-01-27 15:06:31 +03:00
|
|
|
color: var(--btn-share-color, $light-color) !important;
|
2020-02-25 12:56:03 +03:00
|
|
|
} @else {
|
2020-02-27 16:05:50 +03:00
|
|
|
color: var(--btn-share-color, $light-color);
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-post-nav {
|
|
|
|
width: 50%;
|
|
|
|
position: relative;
|
2020-02-27 16:05:50 +03:00
|
|
|
border-color: var(--btn-border-color);
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
|
|
|
|
2021-12-04 01:56:33 +03:00
|
|
|
@mixin dot($pl: 0.25rem, $pr: 0.25rem) {
|
2023-03-15 21:56:54 +03:00
|
|
|
content: '\2022';
|
2020-12-17 10:17:21 +03:00
|
|
|
padding-left: $pl;
|
|
|
|
padding-right: $pr;
|
|
|
|
}
|
|
|
|
|
2021-12-04 21:29:40 +03:00
|
|
|
%text-color {
|
|
|
|
color: var(--text-color);
|
|
|
|
}
|
|
|
|
|
2022-12-13 16:41:32 +03:00
|
|
|
.preview-img {
|
2023-03-18 01:28:44 +03:00
|
|
|
overflow: hidden;
|
|
|
|
aspect-ratio: 40 / 21;
|
|
|
|
|
2022-12-20 11:04:39 +03:00
|
|
|
@extend %rounded;
|
2022-10-19 21:05:29 +03:00
|
|
|
|
2022-12-11 02:09:40 +03:00
|
|
|
&:not(.no-bg) {
|
2022-12-13 16:41:32 +03:00
|
|
|
img.lazyloaded {
|
|
|
|
background: var(--img-bg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
2022-12-14 22:18:27 +03:00
|
|
|
-o-object-fit: cover;
|
|
|
|
object-fit: cover;
|
|
|
|
|
2022-12-20 11:04:39 +03:00
|
|
|
@extend %rounded;
|
2022-10-19 21:05:29 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-01 16:49:51 +03:00
|
|
|
h1 + .post-meta {
|
2021-12-04 01:56:33 +03:00
|
|
|
span + span::before {
|
|
|
|
@include dot;
|
|
|
|
}
|
|
|
|
|
|
|
|
em {
|
2021-12-04 21:29:40 +03:00
|
|
|
@extend %text-color;
|
|
|
|
|
|
|
|
a {
|
|
|
|
@extend %text-color;
|
2020-12-17 10:17:21 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-16 22:01:48 +03:00
|
|
|
.post-tail-wrapper {
|
2020-07-29 23:58:05 +03:00
|
|
|
margin-top: 6rem;
|
2020-02-27 16:05:50 +03:00
|
|
|
border-bottom: 1px double var(--main-border-color);
|
2019-12-23 20:21:55 +03:00
|
|
|
font-size: 0.85rem;
|
2021-12-04 21:29:40 +03:00
|
|
|
|
2022-10-19 21:05:29 +03:00
|
|
|
.post-tail-bottom a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.license-wrapper {
|
|
|
|
line-height: 1.2rem;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
color: var(--text-color);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@extend %link-hover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
span:last-child {
|
|
|
|
font-size: 0.85rem;
|
|
|
|
}
|
|
|
|
} /* .license-wrapper */
|
|
|
|
|
2022-01-27 13:47:03 +03:00
|
|
|
.post-meta a:not(:hover) {
|
2021-12-04 21:29:40 +03:00
|
|
|
@extend %link-underline;
|
|
|
|
}
|
2022-10-19 21:05:29 +03:00
|
|
|
|
|
|
|
.share-wrapper {
|
|
|
|
vertical-align: middle;
|
2022-10-21 16:34:41 +03:00
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
2023-03-15 21:56:54 +03:00
|
|
|
-ms-user-select: none;
|
2022-10-19 21:05:29 +03:00
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
.share-icons {
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
|
|
|
> i {
|
|
|
|
position: relative;
|
|
|
|
bottom: 1px;
|
|
|
|
|
|
|
|
@extend %cursor-pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@extend %btn-share-hovor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
|
2023-03-15 21:56:54 +03:00
|
|
|
> i {
|
2022-10-19 21:05:29 +03:00
|
|
|
@extend %btn-share-hovor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fab {
|
|
|
|
&.fa-twitter {
|
|
|
|
@include btn-sharing-color(rgba(29, 161, 242, 1));
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fa-facebook-square {
|
|
|
|
@include btn-sharing-color(rgb(66, 95, 156));
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fa-telegram {
|
|
|
|
@include btn-sharing-color(rgb(39, 159, 217));
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fa-linkedin {
|
|
|
|
@include btn-sharing-color(rgb(0, 119, 181));
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fa-weibo {
|
|
|
|
@include btn-sharing-color(rgb(229, 20, 43));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} /* .share-icons */
|
|
|
|
|
|
|
|
.fas.fa-link {
|
|
|
|
@include btn-sharing-color(rgb(171, 171, 171));
|
|
|
|
}
|
|
|
|
} /* .share-wrapper */
|
2019-12-23 20:21:55 +03:00
|
|
|
}
|
|
|
|
|
2020-04-06 21:11:50 +03:00
|
|
|
.post-tags {
|
|
|
|
line-height: 2rem;
|
|
|
|
}
|
|
|
|
|
2020-01-03 14:33:49 +03:00
|
|
|
.post-navigation {
|
2020-02-17 18:44:10 +03:00
|
|
|
padding-top: 3rem;
|
2020-06-24 15:47:01 +03:00
|
|
|
padding-bottom: 4rem;
|
2019-12-23 20:21:55 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.btn {
|
2020-02-25 12:56:03 +03:00
|
|
|
@include btn-post-nav;
|
2021-01-27 15:06:31 +03:00
|
|
|
|
2020-02-27 16:05:50 +03:00
|
|
|
color: var(--link-color);
|
2021-03-04 09:42:02 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
&:hover {
|
|
|
|
background: #2a408e;
|
2022-10-19 21:05:29 +03:00
|
|
|
color: #ffffff;
|
2020-02-25 12:56:03 +03:00
|
|
|
border-color: #2a408e;
|
|
|
|
}
|
2021-03-04 09:42:02 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
&.disabled {
|
|
|
|
@include btn-post-nav;
|
2021-01-27 15:06:31 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
pointer-events: auto;
|
|
|
|
cursor: not-allowed;
|
|
|
|
background: none;
|
|
|
|
color: gray;
|
2021-03-04 09:42:02 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
&:hover {
|
|
|
|
border-color: none;
|
|
|
|
}
|
|
|
|
}
|
2021-03-04 09:42:02 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
&.btn-outline-primary.disabled:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2021-03-04 09:42:02 +03:00
|
|
|
|
2021-02-02 12:37:50 +03:00
|
|
|
&::before {
|
|
|
|
color: var(--text-muted-color);
|
|
|
|
font-size: 0.65rem;
|
|
|
|
text-transform: uppercase;
|
|
|
|
content: attr(prompt);
|
|
|
|
}
|
2019-12-23 20:21:55 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
&:first-child {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
2020-10-27 17:08:04 +03:00
|
|
|
left: 0.5px;
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
2021-03-04 09:42:02 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
&:last-child {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
2020-10-27 17:08:04 +03:00
|
|
|
right: 0.5px;
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
2020-02-21 21:45:07 +03:00
|
|
|
}
|
2021-02-02 12:37:50 +03:00
|
|
|
|
2021-03-04 09:42:02 +03:00
|
|
|
p {
|
|
|
|
font-size: 1.1rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
margin-top: 0.3rem;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
2021-12-30 19:29:25 +03:00
|
|
|
} /* .post-navigation */
|
2020-02-21 21:45:07 +03:00
|
|
|
|
2022-10-21 16:34:41 +03:00
|
|
|
@-webkit-keyframes fade-up {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
position: relative;
|
|
|
|
top: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
position: relative;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-24 17:08:17 +03:00
|
|
|
@keyframes fade-up {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
position: relative;
|
|
|
|
top: 2rem;
|
|
|
|
}
|
2022-10-19 21:05:29 +03:00
|
|
|
|
2019-11-24 17:08:17 +03:00
|
|
|
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;
|
2020-03-03 15:17:51 +03:00
|
|
|
top: 4rem;
|
2019-11-15 19:01:33 +03:00
|
|
|
transition: top 0.2s ease-in-out;
|
2022-10-21 16:34:41 +03:00
|
|
|
-webkit-animation: fade-up 0.8s;
|
2020-12-18 15:54:18 +03:00
|
|
|
animation: fade-up 0.8s;
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2023-03-15 21:56:54 +03:00
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
font-size: 0.85rem;
|
|
|
|
line-height: 1.25;
|
|
|
|
padding-left: 0;
|
2022-10-08 15:00:22 +03:00
|
|
|
|
|
|
|
li {
|
2023-03-15 21:56:54 +03:00
|
|
|
&:not(:last-child) {
|
|
|
|
margin: 0.4rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
padding: 0.2rem 0 0.2rem 1.25rem;
|
|
|
|
}
|
2022-10-08 15:00:22 +03:00
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2023-03-15 21:56:54 +03:00
|
|
|
/* Overwrite TOC plugin style */
|
|
|
|
|
|
|
|
.toc-link {
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--toc-highlight);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-active-link {
|
|
|
|
color: var(--toc-highlight) !important;
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
display: inline-block;
|
|
|
|
width: 1px;
|
|
|
|
left: -1px;
|
|
|
|
height: 1.25rem;
|
|
|
|
background-color: var(--toc-highlight) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
a {
|
|
|
|
padding-left: 2rem;
|
|
|
|
}
|
2021-09-21 13:00:29 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-27 15:06:31 +03:00
|
|
|
/* --- Related Posts --- */
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
#related-posts {
|
2021-01-27 15:06:31 +03:00
|
|
|
> h3 {
|
2020-04-07 15:23:57 +03:00
|
|
|
@include label(1.1rem, 600);
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
2021-10-25 22:04:15 +03:00
|
|
|
|
2021-12-04 01:56:33 +03:00
|
|
|
em {
|
|
|
|
@extend %normal-font-style;
|
2022-04-25 19:39:58 +03:00
|
|
|
|
|
|
|
color: var(--relate-post-date);
|
2021-12-04 01:56:33 +03:00
|
|
|
}
|
|
|
|
|
2022-10-19 21:05:29 +03:00
|
|
|
p {
|
|
|
|
font-size: 0.9rem;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
2023-03-21 02:20:32 +03:00
|
|
|
@extend %no-decoration;
|
2022-10-19 21:05:29 +03:00
|
|
|
}
|
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.card {
|
|
|
|
h3 {
|
2021-12-04 21:29:40 +03:00
|
|
|
@extend %text-color;
|
2020-02-21 22:15:13 +03:00
|
|
|
}
|
|
|
|
}
|
2019-11-25 15:56:50 +03:00
|
|
|
}
|
|
|
|
|
2021-12-01 16:49:51 +03:00
|
|
|
#tail-wrapper {
|
2019-11-25 15:56:50 +03:00
|
|
|
min-height: 2rem;
|
2021-09-28 11:29:13 +03:00
|
|
|
|
2021-12-11 12:24:08 +03:00
|
|
|
> div:last-of-type {
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
}
|
|
|
|
|
2023-03-15 21:56:54 +03:00
|
|
|
/* stylelint-disable-next-line selector-id-pattern */
|
|
|
|
#disqus_thread {
|
2021-12-31 15:49:00 +03:00
|
|
|
min-height: 8.5rem;
|
2020-07-29 23:58:05 +03:00
|
|
|
}
|
2020-02-16 22:01:48 +03:00
|
|
|
}
|
|
|
|
|
2020-02-27 16:05:50 +03:00
|
|
|
%btn-share-hovor {
|
2021-01-27 15:06:31 +03:00
|
|
|
color: var(--btn-share-hover-color) !important;
|
2020-02-27 16:05:50 +03:00
|
|
|
}
|
|
|
|
|
2020-02-21 22:15:13 +03:00
|
|
|
.share-label {
|
2020-04-07 15:23:57 +03:00
|
|
|
@include label(inherit, 400, inherit);
|
2021-01-27 15:06:31 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
&::after {
|
2023-03-15 21:56:54 +03:00
|
|
|
content: ':';
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
2020-02-16 22:01:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (max-width: 576px) {
|
2021-12-03 11:36:40 +03:00
|
|
|
.preview-img[data-src] {
|
|
|
|
margin-top: 2.2rem;
|
|
|
|
}
|
|
|
|
|
2020-02-16 22:01:48 +03:00
|
|
|
.post-tail-bottom {
|
2021-01-27 15:06:31 +03:00
|
|
|
flex-wrap: wrap-reverse !important;
|
2021-10-25 22:04:15 +03:00
|
|
|
|
|
|
|
> div:first-child {
|
2020-04-06 21:11:50 +03:00
|
|
|
width: 100%;
|
|
|
|
margin-top: 1rem;
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
2020-02-16 22:01:48 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-23 20:21:55 +03:00
|
|
|
@media all and (max-width: 768px) {
|
2021-01-23 08:18:02 +03:00
|
|
|
.post-content > p > img {
|
2019-12-23 20:21:55 +03:00
|
|
|
max-width: calc(100% + 1rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide SideBar and TOC */
|
2021-12-10 11:00:26 +03:00
|
|
|
@media all and (max-width: 849px) {
|
2020-01-03 14:33:49 +03:00
|
|
|
.post-navigation {
|
2020-01-02 19:37:56 +03:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
2021-10-25 22:04:15 +03:00
|
|
|
margin-left: -0.5rem;
|
|
|
|
margin-right: -0.5rem;
|
2020-01-02 19:37:56 +03:00
|
|
|
}
|
2021-12-10 11:00:26 +03:00
|
|
|
|
|
|
|
.preview-img[data-src] {
|
|
|
|
max-width: 100vw;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2019-12-23 20:21:55 +03:00
|
|
|
}
|