jekyll-theme-chirpy 4.1.0 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +86 -89
- data/_config.yml +7 -14
- data/_data/contact.yml +1 -1
- data/_data/locales/en.yml +8 -5
- data/_data/locales/id-ID.yml +90 -0
- data/_data/locales/zh-CN.yml +8 -5
- data/_includes/disqus.html +42 -13
- data/_includes/footer.html +3 -5
- data/_includes/head.html +5 -6
- data/_includes/js-selector.html +1 -1
- data/_includes/lang.html +8 -0
- data/_includes/language-alias.html +72 -0
- data/_includes/panel.html +5 -3
- data/_includes/post-nav.html +4 -4
- data/_includes/post-sharing.html +4 -3
- data/_includes/read-time.html +5 -4
- data/_includes/refactor-content.html +36 -13
- data/_includes/related-posts.html +1 -1
- data/_includes/search-loader.html +2 -2
- data/_includes/search-results.html +1 -1
- data/_includes/sidebar.html +3 -3
- data/_includes/timeago.html +3 -3
- data/_includes/topbar.html +14 -18
- data/_layouts/archives.html +3 -1
- data/_layouts/categories.html +5 -3
- data/_layouts/category.html +3 -1
- data/_layouts/default.html +3 -1
- data/_layouts/home.html +3 -1
- data/_layouts/page.html +1 -1
- data/_layouts/post.html +9 -9
- data/_layouts/tag.html +3 -1
- data/_sass/addon/commons.scss +109 -69
- data/_sass/addon/module.scss +10 -10
- data/_sass/addon/syntax.scss +98 -22
- data/_sass/addon/variables.scss +2 -2
- data/_sass/colors/dark-syntax.scss +18 -14
- data/_sass/colors/dark-typography.scss +22 -18
- data/_sass/colors/light-syntax.scss +5 -1
- data/_sass/colors/light-typography.scss +25 -20
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/_sass/layout/categories.scss +14 -13
- data/_sass/layout/home.scss +1 -3
- data/_sass/layout/post.scss +19 -15
- data/_tabs/about.md +1 -1
- data/_tabs/tags.md +1 -1
- data/assets/404.html +6 -4
- data/assets/feed.xml +1 -1
- data/assets/js/data/search.json +1 -1
- data/assets/js/dist/categories.min.js +1 -1
- data/assets/js/dist/commons.min.js +1 -1
- data/assets/js/dist/home.min.js +2 -2
- data/assets/js/dist/page.min.js +2 -2
- data/assets/js/dist/post.min.js +2 -2
- data/assets/js/dist/pvreport.min.js +1 -1
- metadata +6 -7
- data/assets/js/lib/jquery.disqusloader.min.js +0 -8
data/_sass/addon/commons.scss
CHANGED
@@ -7,16 +7,9 @@
|
|
7
7
|
@if $dark-mode {
|
8
8
|
@include dark-scheme;
|
9
9
|
|
10
|
-
.mode-toggle {
|
11
|
-
transform: rotateY(180deg);
|
12
|
-
}
|
13
|
-
|
14
10
|
} @else {
|
15
11
|
@include light-scheme;
|
16
12
|
|
17
|
-
.mode-toggle {
|
18
|
-
transform: none;
|
19
|
-
}
|
20
13
|
}
|
21
14
|
|
22
15
|
}
|
@@ -53,6 +46,45 @@ body {
|
|
53
46
|
font-family: 'Source Sans Pro', 'Microsoft Yahei', sans-serif;
|
54
47
|
}
|
55
48
|
|
49
|
+
/* --- Scrollbar --- */
|
50
|
+
|
51
|
+
$scrollbar-size: 7px;
|
52
|
+
|
53
|
+
::-webkit-scrollbar {
|
54
|
+
width: $scrollbar-size;
|
55
|
+
height: $scrollbar-size;
|
56
|
+
}
|
57
|
+
|
58
|
+
::-webkit-scrollbar-track {
|
59
|
+
@at-root body#{&} {
|
60
|
+
-webkit-box-shadow: inset 0 0 6px var(--scrollbar-track-bg);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
::-webkit-scrollbar-thumb {
|
65
|
+
background-color: var(--scrollbar-thumb-bg);
|
66
|
+
border-radius: calc(#{$scrollbar-size} / 2);
|
67
|
+
}
|
68
|
+
|
69
|
+
.highlight {
|
70
|
+
border-color: transparent;
|
71
|
+
transition: border-color 0.5s ease;
|
72
|
+
|
73
|
+
&:hover {
|
74
|
+
border-color: var(--scrollbar-thumb-bg);
|
75
|
+
transition: border-color 0.2s ease;
|
76
|
+
}
|
77
|
+
|
78
|
+
&::-webkit-scrollbar-thumb {
|
79
|
+
/* add border to act as background-color */
|
80
|
+
border-right-style: inset;
|
81
|
+
border-right-width: calc(100vw + 100vh);
|
82
|
+
border-color: inherit;
|
83
|
+
background-color: var(--highlight-bg-color);
|
84
|
+
}
|
85
|
+
|
86
|
+
}
|
87
|
+
|
56
88
|
/* --- Typography --- */
|
57
89
|
|
58
90
|
h1 {
|
@@ -460,10 +492,6 @@ footer {
|
|
460
492
|
padding-left: 2rem;
|
461
493
|
|
462
494
|
li {
|
463
|
-
+ li {
|
464
|
-
margin-top: 0.3rem;
|
465
|
-
}
|
466
|
-
|
467
495
|
ol,
|
468
496
|
ul { // sub list
|
469
497
|
padding-left: 2rem;
|
@@ -629,31 +657,31 @@ $sidebar-display: "sidebar-display";
|
|
629
657
|
scrollbar-width: none; /* Firefox */
|
630
658
|
|
631
659
|
a {
|
632
|
-
@
|
660
|
+
@extend %sidebar-links;
|
633
661
|
|
634
662
|
&:hover {
|
635
663
|
@include no-text-decoration;
|
636
664
|
|
637
|
-
color:
|
665
|
+
color: var(--sidebar-active-color) !important;
|
638
666
|
}
|
639
667
|
}
|
640
668
|
|
641
669
|
#avatar {
|
642
|
-
&:hover > a {
|
643
|
-
border-color: #fff;
|
644
|
-
}
|
645
|
-
|
646
670
|
> a {
|
647
671
|
display: block;
|
648
672
|
width: 6rem;
|
649
673
|
height: 6rem;
|
650
674
|
border-radius: 50%;
|
651
|
-
border: 2px solid
|
675
|
+
border: 2px solid rgba(222, 222, 222, 0.7);
|
652
676
|
overflow: hidden;
|
653
677
|
transform: translateZ(0); // fixed the zoom in Safari
|
654
678
|
-webkit-transition: border-color 0.35s ease-in-out;
|
655
679
|
-moz-transition: border-color 0.35s ease-in-out;
|
656
680
|
transition: border-color 0.35s ease-in-out;
|
681
|
+
|
682
|
+
&:hover {
|
683
|
+
border-color: white;
|
684
|
+
}
|
657
685
|
}
|
658
686
|
|
659
687
|
img {
|
@@ -674,15 +702,18 @@ $sidebar-display: "sidebar-display";
|
|
674
702
|
|
675
703
|
.site-title {
|
676
704
|
a {
|
705
|
+
@extend %clickable-transition;
|
706
|
+
|
677
707
|
font-weight: 900;
|
678
708
|
font-size: 1.5rem;
|
679
709
|
letter-spacing: 0.5px;
|
710
|
+
color: rgba(134, 133, 133, 99%);
|
680
711
|
}
|
681
712
|
}
|
682
713
|
|
683
714
|
.site-subtitle {
|
684
715
|
font-size: 95%;
|
685
|
-
color:
|
716
|
+
color: var(--sidebar-muted-color);
|
686
717
|
line-height: 1.2rem;
|
687
718
|
word-spacing: 1px;
|
688
719
|
margin: 0.5rem 1.5rem 0.5rem 1.5rem;
|
@@ -703,16 +734,16 @@ $sidebar-display: "sidebar-display";
|
|
703
734
|
text-align: center;
|
704
735
|
display: table;
|
705
736
|
height: $tab-height;
|
706
|
-
|
707
|
-
.nav-link {
|
708
|
-
color: #f8f9facf;
|
709
|
-
}
|
710
|
-
}
|
737
|
+
|
711
738
|
&.active {
|
712
739
|
.nav-link {
|
713
|
-
color:
|
740
|
+
color: var(--sidebar-active-color);
|
714
741
|
}
|
715
742
|
}
|
743
|
+
|
744
|
+
&:not(.active) > a {
|
745
|
+
@extend %clickable-transition;
|
746
|
+
}
|
716
747
|
}
|
717
748
|
|
718
749
|
ul {
|
@@ -787,36 +818,35 @@ $sidebar-display: "sidebar-display";
|
|
787
818
|
|
788
819
|
a {
|
789
820
|
@extend %icon;
|
821
|
+
@extend %clickable-transition;
|
822
|
+
}
|
823
|
+
|
824
|
+
i {
|
825
|
+
line-height: 1.75rem; // default line-height in body
|
826
|
+
vertical-align: middle;
|
790
827
|
}
|
791
828
|
|
792
829
|
#mode-toggle-wrapper {
|
793
830
|
@extend %icon;
|
794
831
|
|
795
832
|
i {
|
796
|
-
@
|
797
|
-
|
798
|
-
|
799
|
-
font-size: 1.05rem;
|
800
|
-
text-align: center;
|
801
|
-
position: relative;
|
802
|
-
bottom: 1px;
|
833
|
+
@extend %sidebar-links;
|
834
|
+
@extend %cursor-pointer;
|
835
|
+
@extend %clickable-transition;
|
803
836
|
}
|
804
837
|
|
805
838
|
}
|
806
839
|
|
807
840
|
.icon-border {
|
808
|
-
background-color:
|
841
|
+
background-color: var(--sidebar-muted-color);
|
809
842
|
content: "";
|
810
843
|
width: 3px;
|
811
844
|
height: 3px;
|
812
845
|
border-radius: 50%;
|
813
|
-
position: relative;
|
814
|
-
top: 12px;
|
815
846
|
}
|
816
847
|
|
817
|
-
|
818
|
-
|
819
|
-
color: #fff;
|
848
|
+
#mode-toggle-wrapper:hover > i {
|
849
|
+
color: var(--sidebar-active-color);
|
820
850
|
}
|
821
851
|
|
822
852
|
} // .sidebar-bottom
|
@@ -857,7 +887,6 @@ $sidebar-display: "sidebar-display";
|
|
857
887
|
transition: top 0.2s ease-in-out;
|
858
888
|
z-index: 50;
|
859
889
|
border-bottom: 1px solid rgba(0, 0, 0, 0.07);
|
860
|
-
box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.05);
|
861
890
|
background-color: var(--topbar-wrapper-bg);
|
862
891
|
}
|
863
892
|
|
@@ -895,15 +924,19 @@ $sidebar-display: "sidebar-display";
|
|
895
924
|
display: flex;
|
896
925
|
width: 85%;
|
897
926
|
border-radius: 1rem;
|
898
|
-
border: 1px solid var(--search-wrapper-
|
927
|
+
border: 1px solid var(--search-wrapper-border-color);
|
899
928
|
background: var(--search-wrapper-bg);
|
900
929
|
padding: 0 0.5rem;
|
930
|
+
|
901
931
|
i {
|
902
932
|
z-index: 2;
|
903
933
|
font-size: 0.9rem;
|
904
934
|
color: var(--search-icon-color);
|
905
935
|
}
|
936
|
+
|
906
937
|
.fa-times-circle { /* button 'clean up' */
|
938
|
+
@extend %cursor-pointer;
|
939
|
+
|
907
940
|
visibility: hidden;
|
908
941
|
}
|
909
942
|
}
|
@@ -912,6 +945,8 @@ $sidebar-display: "sidebar-display";
|
|
912
945
|
color: var(--link-color);
|
913
946
|
margin-left: 1rem;
|
914
947
|
display: none;
|
948
|
+
|
949
|
+
@extend %cursor-pointer;
|
915
950
|
}
|
916
951
|
|
917
952
|
#search-input {
|
@@ -1066,18 +1101,27 @@ $sidebar-display: "sidebar-display";
|
|
1066
1101
|
/* --- button back-to-top --- */
|
1067
1102
|
|
1068
1103
|
#back-to-top {
|
1104
|
+
$size: 2.7em;
|
1105
|
+
|
1069
1106
|
display: none;
|
1070
1107
|
z-index: 1;
|
1071
1108
|
cursor: pointer;
|
1072
1109
|
position: fixed;
|
1073
1110
|
background: var(--button-bg);
|
1074
1111
|
color: var(--btn-backtotop-color);
|
1075
|
-
|
1076
|
-
width:
|
1112
|
+
padding: 0;
|
1113
|
+
width: $size;
|
1114
|
+
height: $size;
|
1077
1115
|
border-radius: 50%;
|
1078
1116
|
border: 1px solid var(--btn-backtotop-border-color);
|
1079
|
-
transition: 0.2s ease-out;
|
1080
|
-
-webkit-transition: 0.2s ease-out;
|
1117
|
+
transition: transform 0.2s ease-out;
|
1118
|
+
-webkit-transition: transform 0.2s ease-out;
|
1119
|
+
|
1120
|
+
i {
|
1121
|
+
line-height: $size;
|
1122
|
+
position: relative;
|
1123
|
+
bottom: 2px;
|
1124
|
+
}
|
1081
1125
|
}
|
1082
1126
|
|
1083
1127
|
#back-to-top:hover {
|
@@ -1575,19 +1619,10 @@ $sidebar-display: "sidebar-display";
|
|
1575
1619
|
|
1576
1620
|
.nav-link {
|
1577
1621
|
> span {
|
1578
|
-
letter-spacing:
|
1622
|
+
letter-spacing: 2px;
|
1579
1623
|
}
|
1580
1624
|
|
1581
1625
|
> i {
|
1582
|
-
@include icon-round(1.65rem);
|
1583
|
-
|
1584
|
-
line-height: 1.5rem;
|
1585
|
-
font-size: 0.6rem;
|
1586
|
-
padding-top: 1px;
|
1587
|
-
padding-left: 1px;
|
1588
|
-
position: relative;
|
1589
|
-
bottom: 1px;
|
1590
|
-
|
1591
1626
|
&.unloaded {
|
1592
1627
|
display: inline-block !important;
|
1593
1628
|
}
|
@@ -1601,35 +1636,40 @@ $sidebar-display: "sidebar-display";
|
|
1601
1636
|
padding-left: 3.5rem;
|
1602
1637
|
width: 100%;
|
1603
1638
|
|
1639
|
+
$icon-block-size: 2rem;
|
1640
|
+
|
1604
1641
|
&.justify-content-center {
|
1605
1642
|
-webkit-box-pack: start !important;
|
1606
1643
|
-ms-flex-pack: start !important;
|
1607
1644
|
justify-content: flex-start !important;
|
1608
1645
|
}
|
1609
1646
|
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
}
|
1614
|
-
|
1615
|
-
i {
|
1616
|
-
@include icon-round(2rem);
|
1647
|
+
> span,
|
1648
|
+
> a {
|
1649
|
+
@include ml-mr(0.15rem);
|
1617
1650
|
|
1618
|
-
|
1619
|
-
margin-
|
1620
|
-
bottom: 0;
|
1651
|
+
height: $icon-block-size;
|
1652
|
+
margin-bottom: 0.5rem; // wrap line
|
1621
1653
|
}
|
1622
1654
|
|
1623
|
-
|
1624
|
-
|
1655
|
+
i {
|
1656
|
+
background-color: var(--sidebar-btn-bg);
|
1657
|
+
font-size: 1rem;
|
1658
|
+
width: $icon-block-size;
|
1659
|
+
height: $icon-block-size;
|
1660
|
+
border-radius: 50%;
|
1661
|
+
position: relative;
|
1625
1662
|
|
1626
|
-
|
1627
|
-
|
1663
|
+
&::before {
|
1664
|
+
position: absolute;
|
1665
|
+
top: 50%;
|
1666
|
+
left: 50%;
|
1667
|
+
transform: translate(-50%, -50%);
|
1628
1668
|
}
|
1629
1669
|
}
|
1630
1670
|
|
1631
1671
|
.icon-border {
|
1632
|
-
top:
|
1672
|
+
top: 0.9rem;
|
1633
1673
|
}
|
1634
1674
|
|
1635
1675
|
} // .sidebar-bottom
|
data/_sass/addon/module.scss
CHANGED
@@ -35,6 +35,10 @@
|
|
35
35
|
border-bottom: 1px solid var(--link-underline-color);
|
36
36
|
}
|
37
37
|
|
38
|
+
%clickable-transition {
|
39
|
+
transition: color 0.35s ease-in-out;
|
40
|
+
}
|
41
|
+
|
38
42
|
%no-bottom-border {
|
39
43
|
border-bottom: none;
|
40
44
|
}
|
@@ -51,25 +55,21 @@
|
|
51
55
|
margin-top: -2.5rem;
|
52
56
|
}
|
53
57
|
|
58
|
+
%cursor-pointer {
|
59
|
+
cursor: pointer;
|
60
|
+
}
|
61
|
+
|
54
62
|
/* ---------- scss mixin --------- */
|
55
63
|
|
56
64
|
@mixin no-text-decoration {
|
57
65
|
text-decoration: none;
|
58
66
|
}
|
59
67
|
|
60
|
-
|
61
|
-
color:
|
62
|
-
transition: color 0.35s ease-in-out;
|
68
|
+
%sidebar-links {
|
69
|
+
color: rgba(117, 117, 117, 0.9);
|
63
70
|
user-select: none;
|
64
71
|
}
|
65
72
|
|
66
|
-
@mixin icon-round($diameter) {
|
67
|
-
border: 1px solid;
|
68
|
-
border-radius: 50%;
|
69
|
-
width: $diameter;
|
70
|
-
height: $diameter;
|
71
|
-
}
|
72
|
-
|
73
73
|
@mixin ml-mr($value) {
|
74
74
|
margin-left: $value;
|
75
75
|
margin-right: $value;
|
data/_sass/addon/syntax.scss
CHANGED
@@ -27,16 +27,18 @@ html[mode=dark] {
|
|
27
27
|
|
28
28
|
/* -- Codes Snippet -- */
|
29
29
|
|
30
|
+
$code-radius: 6px;
|
31
|
+
|
30
32
|
%code-snippet-bg {
|
31
33
|
background: var(--highlight-bg-color);
|
32
34
|
}
|
33
35
|
|
34
36
|
%code-snippet-radius {
|
35
|
-
border-radius:
|
37
|
+
border-radius: $code-radius;
|
36
38
|
}
|
37
39
|
|
38
40
|
%code-snippet-padding {
|
39
|
-
padding: 1.
|
41
|
+
padding: 1.2rem;
|
40
42
|
}
|
41
43
|
|
42
44
|
div > pre {
|
@@ -86,12 +88,10 @@ div > pre {
|
|
86
88
|
}
|
87
89
|
|
88
90
|
.lineno {
|
89
|
-
margin-left: 0.2rem;
|
90
91
|
padding-right: 0.5rem;
|
91
92
|
min-width: 2.2rem;
|
92
93
|
text-align: right;
|
93
94
|
color: var(--highlight-lineno-color);
|
94
|
-
border-right: 1px solid var(--highlight-lineno-border-color);
|
95
95
|
-webkit-user-select: none;
|
96
96
|
-khtml-user-select: none;
|
97
97
|
-moz-user-select: none;
|
@@ -135,7 +135,7 @@ code {
|
|
135
135
|
}
|
136
136
|
|
137
137
|
td.rouge-code {
|
138
|
-
padding: 1.
|
138
|
+
padding: 1.2rem 1.5rem 1.2rem 1rem;
|
139
139
|
|
140
140
|
// Prevent some browser extends from
|
141
141
|
// changing the URL string of code block.
|
@@ -152,7 +152,8 @@ div {
|
|
152
152
|
&[class^='highlighter-rouge'],
|
153
153
|
&.language-plaintext.highlighter-rouge,
|
154
154
|
&.language-console.highlighter-rouge,
|
155
|
-
&.language-terminal.highlighter-rouge
|
155
|
+
&.language-terminal.highlighter-rouge,
|
156
|
+
&.nolineno {
|
156
157
|
pre.lineno {
|
157
158
|
display: none;
|
158
159
|
}
|
@@ -162,25 +163,100 @@ div {
|
|
162
163
|
}
|
163
164
|
}
|
164
165
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
right:
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
166
|
+
.code-header {
|
167
|
+
background: var(--code-header-bg);
|
168
|
+
border-top-left-radius: $code-radius;
|
169
|
+
border-top-right-radius: $code-radius;
|
170
|
+
display: flex;
|
171
|
+
justify-content: space-between;
|
172
|
+
align-items: center;
|
173
|
+
line-height: 1.85rem;
|
174
|
+
|
175
|
+
// icons
|
176
|
+
i {
|
177
|
+
font-size: 1rem;
|
178
|
+
color: var(--lang-badge-muted-color);
|
179
|
+
|
180
|
+
&.small {
|
181
|
+
font-size: 70%;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
// the label block
|
186
|
+
span {
|
187
|
+
padding-left: 0.35rem;
|
188
|
+
|
189
|
+
&::after {
|
190
|
+
content: attr(text-data);
|
191
|
+
font-size: 0.85rem;
|
192
|
+
font-weight: 600;
|
193
|
+
color: var(--lang-badge-color);
|
194
|
+
}
|
195
|
+
|
196
|
+
i {
|
197
|
+
margin: 0 0.5rem;
|
198
|
+
}
|
199
|
+
|
200
|
+
@at-root [file] #{&} > i {
|
201
|
+
position: relative;
|
202
|
+
top: 1px; // center the file icon
|
203
|
+
margin-left: 0.25rem;
|
204
|
+
}
|
175
205
|
|
176
|
-
@media (min-width: 768px) {
|
177
|
-
div[class^='language-']::before {
|
178
|
-
right: 3.1rem;
|
179
206
|
}
|
207
|
+
|
208
|
+
// clipboard
|
209
|
+
button {
|
210
|
+
border: 1px solid var(--code-header-bg);
|
211
|
+
border-radius: $code-radius;
|
212
|
+
padding: 0;
|
213
|
+
width: 1.95rem;
|
214
|
+
background-color: inherit;
|
215
|
+
|
216
|
+
@extend %cursor-pointer;
|
217
|
+
|
218
|
+
&[timeout] {
|
219
|
+
&:hover {
|
220
|
+
border-color: var(--clipboard-checked-color);
|
221
|
+
}
|
222
|
+
|
223
|
+
i {
|
224
|
+
color: var(--clipboard-checked-color);
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
&:not([timeout]):hover {
|
229
|
+
background-color: rgba(128, 128, 128, 0.37);
|
230
|
+
|
231
|
+
i {
|
232
|
+
color: white;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
&:focus {
|
237
|
+
outline: none;
|
238
|
+
}
|
239
|
+
|
240
|
+
}
|
241
|
+
|
180
242
|
}
|
181
243
|
|
182
|
-
@media (
|
183
|
-
|
184
|
-
|
244
|
+
@media all and (max-width: 576px) {
|
245
|
+
.post-content {
|
246
|
+
> div[class^='language-'] {
|
247
|
+
@include ml-mr(-1.25rem);
|
248
|
+
|
249
|
+
border-radius: 0;
|
250
|
+
|
251
|
+
.highlight {
|
252
|
+
padding-left: 0.25rem;
|
253
|
+
}
|
254
|
+
|
255
|
+
.code-header {
|
256
|
+
border-radius: 0;
|
257
|
+
padding-left: 0.4rem;
|
258
|
+
padding-right: 0.5rem;
|
259
|
+
}
|
260
|
+
}
|
185
261
|
}
|
186
262
|
}
|
data/_sass/addon/variables.scss
CHANGED
@@ -11,10 +11,10 @@ $sidebar-width-large: 350px !default; // screen width: >= 1650px
|
|
11
11
|
/* tabs of sidebar */
|
12
12
|
|
13
13
|
$tab-count: 5 !default; // backward compatible (version <= 4.0.2)
|
14
|
-
$tab-height:
|
14
|
+
$tab-height: 3rem !default;
|
15
15
|
$tab-cursor-height: 1.6rem !default;
|
16
16
|
|
17
|
-
$cursor-width:
|
17
|
+
$cursor-width: 2px !default; // the cursor width of the selected tab
|
18
18
|
|
19
19
|
/* other framework sizes */
|
20
20
|
|
@@ -3,20 +3,6 @@
|
|
3
3
|
*/
|
4
4
|
|
5
5
|
@mixin dark-syntax {
|
6
|
-
/* ----- My styles ------ */
|
7
|
-
--highlight-bg-color: #252525;
|
8
|
-
--highlighter-rouge-color: #de6b18;
|
9
|
-
--highlight-lineno-color: #6c6c6d;
|
10
|
-
--highlight-lineno-border-color: #303435;
|
11
|
-
--inline-code-bg: #272822;
|
12
|
-
|
13
|
-
.highlight {
|
14
|
-
.gp { color: #818c96; }
|
15
|
-
}
|
16
|
-
|
17
|
-
pre { color: #bfbfbf; } /* override Bootstrap */
|
18
|
-
kbd { background-color: black; }
|
19
|
-
|
20
6
|
/* syntax highlight colors from https://raw.githubusercontent.com/jwarby/pygments-css/master/monokai.css */
|
21
7
|
.highlight pre { background-color: var(--highlight-bg-color); }
|
22
8
|
.highlight .hll { background-color: var(--highlight-bg-color); }
|
@@ -81,4 +67,22 @@
|
|
81
67
|
.highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
|
82
68
|
.highlight .gd { color: #f92672; background-color: #561c08; } /* Generic.Deleted & Diff Deleted */
|
83
69
|
.highlight .gi { color: #a6e22e; background-color: #0b5858; } /* Generic.Inserted & Diff Inserted */
|
70
|
+
|
71
|
+
/* ----- custom styles ------ */
|
72
|
+
|
73
|
+
--highlight-bg-color: #252525;
|
74
|
+
--highlighter-rouge-color: #de6b18;
|
75
|
+
--highlight-lineno-color: #6c6c6d;
|
76
|
+
--inline-code-bg: #272822;
|
77
|
+
--code-header-bg: #353535;
|
78
|
+
--lang-badge-color: #858586;
|
79
|
+
--lang-badge-muted-color: #6c6c6d;
|
80
|
+
--clipboard-checked-color: #2bcc2b;
|
81
|
+
|
82
|
+
.highlight {
|
83
|
+
.gp { color: #818c96; }
|
84
|
+
}
|
85
|
+
|
86
|
+
pre { color: #bfbfbf; } /* override Bootstrap */
|
87
|
+
kbd { background-color: black; }
|
84
88
|
}
|
@@ -3,26 +3,23 @@
|
|
3
3
|
*/
|
4
4
|
|
5
5
|
@mixin dark-scheme {
|
6
|
-
/*
|
7
|
-
--main-wrapper-bg: rgb(27, 27, 30);
|
6
|
+
/* Framework color */
|
8
7
|
--body-bg: var(--main-wrapper-bg);
|
9
|
-
--topbar-wrapper-bg: rgb(39, 40, 43);
|
10
|
-
--search-wrapper-bg: rgb(34, 34, 39);
|
11
|
-
--search-icon-color: rgb(100, 102, 105);
|
12
|
-
--input-focus-border-color: rgb(112, 114, 115);
|
13
8
|
--mask-bg: rgb(68, 69, 70);
|
14
|
-
--
|
9
|
+
--main-wrapper-bg: rgb(27, 27, 30);
|
10
|
+
--main-border-color: rgb(44, 45, 45);
|
11
|
+
--scrollbar-track-bg: rgba(0, 0, 0, 0.3);
|
12
|
+
--scrollbar-thumb-bg: rgb(173 171 171 / 50%);
|
15
13
|
|
16
|
-
/*
|
14
|
+
/* Common color */
|
17
15
|
--text-color: rgb(175, 176, 177);
|
18
|
-
--heading-color: #cccccc;
|
19
16
|
--text-muted-color: rgb(107, 116, 124);
|
17
|
+
--heading-color: #cccccc;
|
18
|
+
--blockquote-border-color: rgb(66, 66, 66);
|
19
|
+
--blockquote-text-color: rgb(117, 117, 117);
|
20
20
|
--link-color: rgb(138, 180, 248);
|
21
21
|
--link-underline-color: rgb(82, 108, 150);
|
22
|
-
--main-border-color: rgb(44, 45, 45);
|
23
22
|
--button-bg: rgb(39, 40, 43);
|
24
|
-
--blockquote-border-color: rgb(66, 66, 66);
|
25
|
-
--blockquote-text-color: rgb(117, 117, 117);
|
26
23
|
--btn-border-color: rgb(63, 65, 68);
|
27
24
|
--btn-backtotop-color: var(--text-color);
|
28
25
|
--btn-backtotop-border-color: var(--btn-border-color);
|
@@ -33,21 +30,26 @@
|
|
33
30
|
--checkbox-checked-color: var(--link-color);
|
34
31
|
|
35
32
|
/* Sidebar */
|
36
|
-
--nav-cursor-color: rgb(183, 182, 182);
|
37
33
|
--sidebar-bg: radial-gradient(circle, #242424 0%, #1d1f27 100%);
|
34
|
+
--sidebar-muted-color: #6d6c6b;
|
35
|
+
--sidebar-active-color: rgb(255 255 255 / 80%);
|
36
|
+
--nav-cursor-color: rgb(183, 182, 182);
|
37
|
+
--sidebar-btn-bg: rgb(117 116 116 / 20%);
|
38
38
|
|
39
|
-
/*
|
39
|
+
/* Topbar */
|
40
40
|
--topbar-text-color: var(--text-color);
|
41
|
+
--topbar-wrapper-bg: rgb(39, 40, 43);
|
42
|
+
--search-wrapper-bg: rgb(34, 34, 39);
|
43
|
+
--search-wrapper-border-color: rgb(34, 34, 39);
|
44
|
+
--search-icon-color: rgb(100, 102, 105);
|
45
|
+
--input-focus-border-color: rgb(112, 114, 115);
|
41
46
|
|
42
47
|
/* Home page */
|
43
48
|
--post-list-text-color: rgb(175, 176, 177);
|
44
49
|
--btn-patinator-text-color: var(--text-color);
|
45
50
|
--btn-paginator-hover-color: rgb(64, 65, 66);
|
46
|
-
--btn-active-bg: rgba(28, 52, 94, 1);
|
47
|
-
--btn-active-border-color: rgb(66, 94, 138);
|
48
|
-
--btn-text-color: var(--text-color);
|
49
51
|
--btn-paginator-border-color: var(--btn-border-color);
|
50
|
-
--btn-
|
52
|
+
--btn-text-color: var(--text-color);
|
51
53
|
--pin-bg: rgb(34 35 37);
|
52
54
|
--pin-color: inherit;
|
53
55
|
|
@@ -75,6 +77,7 @@
|
|
75
77
|
/* categories */
|
76
78
|
--categories-border: rgb(64, 66, 69);
|
77
79
|
--categories-hover-bg: rgb(73, 75, 76);
|
80
|
+
--categories-icon-hover-color: white;
|
78
81
|
|
79
82
|
/* archives */
|
80
83
|
--timeline-node-bg: rgb(150, 152, 156);
|
@@ -82,6 +85,7 @@
|
|
82
85
|
--timeline-year-dot-color: var(--timeline-color);
|
83
86
|
|
84
87
|
/* Footer */
|
88
|
+
--footer-bg-color: var(--main-wrapper-bg);
|
85
89
|
--footer-link: rgb(171, 171, 171);
|
86
90
|
|
87
91
|
.post-content img {
|
@@ -70,6 +70,10 @@
|
|
70
70
|
--highlight-bg-color: #f7f7f7;
|
71
71
|
--highlighter-rouge-color: #2f2f2f;
|
72
72
|
--highlight-lineno-color: #c2c6cc;
|
73
|
-
--highlight-lineno-border-color: #e9ecef;
|
74
73
|
--inline-code-bg: #f3f3f3;
|
74
|
+
--code-header-bg: #eaeaea;
|
75
|
+
--lang-badge-color: rgb(128 128 128 / 87%);
|
76
|
+
--lang-badge-muted-color: rgb(128 128 128 / 36%);
|
77
|
+
--clipboard-checked-color: #43c743;
|
78
|
+
|
75
79
|
} // light-syntax
|