jekyll-theme-chirpy 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/404.html +20 -0
  3. data/LICENSE +21 -0
  4. data/README.md +223 -0
  5. data/_config.yml +204 -0
  6. data/_data/contact.yml +30 -0
  7. data/_data/date_format.yml +7 -0
  8. data/_data/label.yml +19 -0
  9. data/_data/rights.yml +11 -0
  10. data/_data/share.yml +27 -0
  11. data/_includes/css-selector.html +10 -0
  12. data/_includes/disqus.html +25 -0
  13. data/_includes/favicons.html +32 -0
  14. data/_includes/footer.html +29 -0
  15. data/_includes/google-analytics.html +14 -0
  16. data/_includes/head.html +80 -0
  17. data/_includes/js-selector.html +39 -0
  18. data/_includes/lozad.html +10 -0
  19. data/_includes/mermaid.html +29 -0
  20. data/_includes/mode-toggle.html +145 -0
  21. data/_includes/no-linenos.html +10 -0
  22. data/_includes/panel.html +57 -0
  23. data/_includes/post-nav.html +28 -0
  24. data/_includes/post-paginator.html +80 -0
  25. data/_includes/post-sharing.html +23 -0
  26. data/_includes/read-time.html +19 -0
  27. data/_includes/refactor-content.html +66 -0
  28. data/_includes/related-posts.html +106 -0
  29. data/_includes/search-loader.html +28 -0
  30. data/_includes/search-results.html +19 -0
  31. data/_includes/sidebar.html +91 -0
  32. data/_includes/timeago.html +27 -0
  33. data/_includes/topbar.html +48 -0
  34. data/_includes/trending-tags.html +36 -0
  35. data/_includes/update-list.html +24 -0
  36. data/_layouts/archives.html +36 -0
  37. data/_layouts/categories.html +100 -0
  38. data/_layouts/category.html +24 -0
  39. data/_layouts/compress.html +10 -0
  40. data/_layouts/default.html +51 -0
  41. data/_layouts/home.html +96 -0
  42. data/_layouts/page.html +34 -0
  43. data/_layouts/post.html +130 -0
  44. data/_layouts/tag.html +24 -0
  45. data/_layouts/tags.html +21 -0
  46. data/_plugins/posts-lastmod-hook.rb +14 -0
  47. data/_sass/addon/commons.scss +1629 -0
  48. data/_sass/addon/module.scss +118 -0
  49. data/_sass/addon/syntax.scss +176 -0
  50. data/_sass/addon/variables.scss +27 -0
  51. data/_sass/colors/dark-syntax.scss +84 -0
  52. data/_sass/colors/dark-typography.scss +135 -0
  53. data/_sass/colors/light-syntax.scss +75 -0
  54. data/_sass/colors/light-typography.scss +76 -0
  55. data/_sass/jekyll-theme-chirpy.scss +22 -0
  56. data/_sass/layout/archives.scss +137 -0
  57. data/_sass/layout/categories.scss +64 -0
  58. data/_sass/layout/category-tag.scss +66 -0
  59. data/_sass/layout/home.scss +156 -0
  60. data/_sass/layout/post.scss +349 -0
  61. data/_sass/layout/tags.scss +18 -0
  62. data/_tabs/about.md +8 -0
  63. data/_tabs/archives.md +7 -0
  64. data/_tabs/categories.md +6 -0
  65. data/_tabs/tags.md +6 -0
  66. data/app.js +8 -0
  67. data/assets/css/style.scss +7 -0
  68. data/assets/img/favicons/android-icon-144x144.png +0 -0
  69. data/assets/img/favicons/android-icon-192x192.png +0 -0
  70. data/assets/img/favicons/android-icon-36x36.png +0 -0
  71. data/assets/img/favicons/android-icon-48x48.png +0 -0
  72. data/assets/img/favicons/android-icon-72x72.png +0 -0
  73. data/assets/img/favicons/android-icon-96x96.png +0 -0
  74. data/assets/img/favicons/apple-icon-114x114.png +0 -0
  75. data/assets/img/favicons/apple-icon-120x120.png +0 -0
  76. data/assets/img/favicons/apple-icon-144x144.png +0 -0
  77. data/assets/img/favicons/apple-icon-152x152.png +0 -0
  78. data/assets/img/favicons/apple-icon-180x180.png +0 -0
  79. data/assets/img/favicons/apple-icon-57x57.png +0 -0
  80. data/assets/img/favicons/apple-icon-60x60.png +0 -0
  81. data/assets/img/favicons/apple-icon-72x72.png +0 -0
  82. data/assets/img/favicons/apple-icon-76x76.png +0 -0
  83. data/assets/img/favicons/apple-icon-precomposed.png +0 -0
  84. data/assets/img/favicons/apple-icon.png +0 -0
  85. data/assets/img/favicons/browserconfig.xml +20 -0
  86. data/assets/img/favicons/favicon-16x16.png +0 -0
  87. data/assets/img/favicons/favicon-32x32.png +0 -0
  88. data/assets/img/favicons/favicon-96x96.png +0 -0
  89. data/assets/img/favicons/favicon.ico +0 -0
  90. data/assets/img/favicons/manifest.json +58 -0
  91. data/assets/img/favicons/ms-icon-144x144.png +0 -0
  92. data/assets/img/favicons/ms-icon-150x150.png +0 -0
  93. data/assets/img/favicons/ms-icon-310x310.png +0 -0
  94. data/assets/img/favicons/ms-icon-70x70.png +0 -0
  95. data/assets/js/data/cache-list.js +69 -0
  96. data/assets/js/data/search.json +17 -0
  97. data/assets/js/dist/categories.min.js +6 -0
  98. data/assets/js/dist/home.min.js +6 -0
  99. data/assets/js/dist/page.min.js +6 -0
  100. data/assets/js/dist/post.min.js +6 -0
  101. data/assets/js/dist/pvreport.min.js +6 -0
  102. data/assets/js/lib/jquery.disqusloader.min.js +8 -0
  103. data/feed.xml +60 -0
  104. data/index.html +4 -0
  105. data/robots.txt +10 -0
  106. data/sw.js +61 -0
  107. metadata +247 -0
@@ -0,0 +1,118 @@
1
+ /*
2
+ * Mainly scss modules, only imported to `assets/css/main.scss`
3
+ *
4
+ * v2.1
5
+ * https://github.com/cotes2020/jekyll-theme-chirpy
6
+ * © 2020 Cotes Chung
7
+ * MIT Licensed
8
+ */
9
+
10
+ /* ---------- scss placeholder --------- */
11
+
12
+ %tag-hover {
13
+ background: var(--tag-hover);
14
+ transition: background 0.35s ease-in-out;
15
+ }
16
+
17
+ %table-cell {
18
+ padding: 0.4rem 1rem;
19
+ font-size: 95%;
20
+ white-space: nowrap;
21
+ }
22
+
23
+ %link-hover {
24
+ color: #d2603a !important;
25
+ border-bottom: 1px solid #d2603a;
26
+ text-decoration: none;
27
+ }
28
+
29
+ %link-color {
30
+ color: var(--link-color);
31
+ }
32
+
33
+ %link-underline {
34
+ border-bottom: 1px solid var(--link-underline-color);
35
+ }
36
+
37
+ %no-bottom-border {
38
+ border-bottom: none;
39
+ }
40
+
41
+ %heading {
42
+ font-weight: 400;
43
+ font-family: 'Lato', 'Microsoft Yahei', sans-serif;
44
+ }
45
+
46
+ %section {
47
+ #post-wrapper & {
48
+ line-height: 1.2;
49
+ margin-bottom: 1rem;
50
+ }
51
+ }
52
+
53
+ %anchor {
54
+ padding-top: 3.5rem;
55
+ margin-top: -2.5rem;
56
+ }
57
+
58
+ /* ---------- scss mixin --------- */
59
+
60
+ @mixin no-text-decoration {
61
+ text-decoration: none;
62
+ }
63
+
64
+ @mixin sidebar-links($color: rgba(255, 255, 255, 0.5)) {
65
+ color: $color;
66
+ transition: color 0.35s ease-in-out;
67
+ user-select: none;
68
+ }
69
+
70
+ @mixin icon-round($diameter) {
71
+ border: 1px solid;
72
+ border-radius: 50%;
73
+ width: $diameter;
74
+ height: $diameter;
75
+ }
76
+
77
+ @mixin ml-mr($value) {
78
+ margin-left: $value;
79
+ margin-right: $value;
80
+ }
81
+
82
+ @mixin pl-pr($val) {
83
+ padding-left: $val;
84
+ padding-right: $val;
85
+ }
86
+
87
+ @mixin input-placeholder {
88
+ opacity: 0.6;
89
+ }
90
+
91
+ @mixin semi-bold {
92
+ font-weight: 600;
93
+ }
94
+
95
+ @mixin label($font-size: 1rem, $font-weight: 600, $color: var(--label-color)) {
96
+ color: $color;
97
+ font-size: $font-size;
98
+ font-weight: $font-weight;
99
+ }
100
+
101
+ @mixin panel-label {
102
+ @include label(inherit);
103
+ display: block;
104
+ line-height: 1.2;
105
+ padding-top: 0.5rem;
106
+ padding-bottom: 0.5rem;
107
+ margin-top: 0;
108
+ margin-bottom: 0;
109
+ letter-spacing: -0.02em;
110
+ }
111
+
112
+ @mixin align-center {
113
+ position: relative;
114
+ left: 50%;
115
+ -webkit-transform: translateX(-50%);
116
+ -ms-transform: translateX(-50%);
117
+ transform: translateX(-50%);
118
+ }
@@ -0,0 +1,176 @@
1
+ /*
2
+ * The syntax highlight.
3
+ * v2.0
4
+ * https://github.com/cotes2020/jekyll-theme-chirpy
5
+ * © 2018-2019 Cotes Chung
6
+ * MIT Licensed
7
+ */
8
+
9
+ @import "colors/light-syntax";
10
+ @import "colors/dark-syntax";
11
+
12
+ html:not([mode]),
13
+ html[mode=light] {
14
+ @include light-syntax;
15
+ }
16
+
17
+ html[mode=dark] {
18
+ @include dark-syntax;
19
+ }
20
+
21
+ @media (prefers-color-scheme: dark) {
22
+ html:not([mode]),
23
+ html[mode=dark] {
24
+ @include dark-syntax;
25
+ }
26
+
27
+ html[mode=light] {
28
+ @include light-syntax;
29
+ }
30
+ }
31
+
32
+ /* -- Codes Snippet -- */
33
+
34
+ %code-snippet-bg {
35
+ background: var(--highlight-bg-color);
36
+ }
37
+
38
+ %code-snippet-radius {
39
+ border-radius: 6px;
40
+ }
41
+
42
+ %code-snippet-padding {
43
+ padding: 1.5rem;
44
+ }
45
+
46
+ $code-font-size: 0.85rem;
47
+
48
+ div > pre {
49
+ @extend %code-snippet-bg;
50
+ @extend %code-snippet-radius;
51
+ @extend %code-snippet-padding;
52
+ }
53
+
54
+ .highlighter-rouge {
55
+ @extend %code-snippet-bg;
56
+ @extend %code-snippet-radius;
57
+
58
+ color: var(--highlighter-rouge-color);
59
+ margin-top: 0.5rem;
60
+ margin-bottom: 1.2em; /* Override BS Inline-code style */
61
+ }
62
+
63
+ .highlight {
64
+ @extend %code-snippet-radius;
65
+ @extend %code-snippet-bg;
66
+
67
+ @at-root figure#{&} {
68
+ @extend %code-snippet-bg;
69
+ }
70
+
71
+ overflow: auto;
72
+ .lineno {
73
+ margin-left: 0.2rem;
74
+ padding-right: 0.5rem;
75
+ min-width: 2.2rem;
76
+ text-align: right;
77
+ color: var(--highlight-lineno-color);
78
+ border-right: 1px solid var(--highlight-lineno-border-color);
79
+ -webkit-user-select: none;
80
+ -khtml-user-select: none;
81
+ -moz-user-select: none;
82
+ -ms-user-select: none;
83
+ -o-user-select: none;
84
+ user-select: none;
85
+ }
86
+ pre {
87
+ margin-bottom: 0;
88
+ font-size: $code-font-size;
89
+ line-height: 1.4rem;
90
+ word-wrap: normal; /* Fixed Safari overflow-x */
91
+ }
92
+ table {
93
+ padding: 0;
94
+ border: 0;
95
+ td pre {
96
+ overflow: visible; /* Fixed iOS safari overflow-x */
97
+ word-break: normal; /* Fixed iOS safari linenos code break */
98
+ }
99
+ }
100
+ td {
101
+ padding: 0;
102
+ border: 0;
103
+ }
104
+ } //.highlight
105
+
106
+ code {
107
+ -webkit-hyphens: none;
108
+ -ms-hyphens: none;
109
+ -moz-hyphens: none;
110
+ hyphens: none;
111
+
112
+ &.highlighter-rouge {
113
+ font-size: $code-font-size;
114
+ padding: 3px 5px;
115
+ border-radius: 4px;
116
+ background-color: var(--inline-code-bg);
117
+ }
118
+
119
+ @at-root a > &.highlighter-rouge {
120
+ padding-bottom: 0; // show link's underlinke
121
+ color: inherit;
122
+ }
123
+
124
+ @at-root a:hover > &.highlighter-rouge {
125
+ border-bottom: none;
126
+ }
127
+
128
+ blockquote &.highlighter-rouge {
129
+ color: inherit;
130
+ }
131
+ }
132
+
133
+ td.rouge-code {
134
+ padding: 1.5rem 1.5rem 1.5rem 1rem;
135
+
136
+ // Prevent some browser extends from
137
+ // changing the URL string of code block.
138
+ a {
139
+ color: inherit !important;
140
+ border-bottom: none !important;
141
+ pointer-events: none;
142
+ }
143
+
144
+ }
145
+
146
+ /* Hide line numbers for default, console, and terminal code snippets */
147
+ div {
148
+ &[class^='highlighter-rouge'],
149
+ &.language-plaintext.highlighter-rouge,
150
+ &.language-console.highlighter-rouge,
151
+ &.language-terminal.highlighter-rouge {
152
+ pre.lineno {
153
+ display: none;
154
+ }
155
+ td.rouge-code {
156
+ @extend %code-snippet-padding;
157
+ }
158
+ }
159
+ }
160
+
161
+ div[class^='language-']::before {
162
+ content: attr(lang);
163
+ position: absolute;
164
+ right: 1.8rem;
165
+ margin-top: 3px;
166
+ font-size: 0.7rem;
167
+ font-weight: 600;
168
+ color: var(--highlight-lineno-color);
169
+ text-transform: uppercase;
170
+ }
171
+
172
+ @media (min-width: 768px) {
173
+ div[class^='language-']::before {
174
+ right: 3.1rem;
175
+ }
176
+ }
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Mainly scss variables
3
+ *
4
+ * v2.1
5
+ * https://github.com/cotes2020/jekyll-theme-chirpy
6
+ * © 2020 Cotes Chung
7
+ * MIT Licensed
8
+ */
9
+
10
+ /* --- ↓ width and height ---- */
11
+
12
+ $tab-height: 3.2rem;
13
+ $tab-cursor-height: 1.6rem;
14
+
15
+ $sidebar-width-small: 210px;
16
+ $sidebar-width-medium: 260px;
17
+ $sidebar-width-large: 350px;
18
+
19
+ $topbar-height: 3rem;
20
+
21
+ $footer-height: 5rem;
22
+
23
+ $main-content-max-width: 1150px;
24
+
25
+ $panel-max-width: 300px;
26
+
27
+ $post-extend-min-height: 35rem;
@@ -0,0 +1,84 @@
1
+ /*
2
+ * The syntax dark mode styles.
3
+ */
4
+
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
+ /* syntax highlight colors from https://raw.githubusercontent.com/jwarby/pygments-css/master/monokai.css */
21
+ .highlight pre { background-color: var(--highlight-bg-color); }
22
+ .highlight .hll { background-color: var(--highlight-bg-color); }
23
+ .highlight .c { color: #75715e; } /* Comment */
24
+ .highlight .err { color: #960050; background-color: #1e0010; } /* Error */
25
+ .highlight .k { color: #66d9ef; } /* Keyword */
26
+ .highlight .l { color: #ae81ff; } /* Literal */
27
+ .highlight .n { color: #f8f8f2; } /* Name */
28
+ .highlight .o { color: #f92672; } /* Operator */
29
+ .highlight .p { color: #f8f8f2; } /* Punctuation */
30
+ .highlight .cm { color: #75715e; } /* Comment.Multiline */
31
+ .highlight .cp { color: #75715e; } /* Comment.Preproc */
32
+ .highlight .c1 { color: #75715e; } /* Comment.Single */
33
+ .highlight .cs { color: #75715e; } /* Comment.Special */
34
+ .highlight .ge { color: inherit; font-style: italic; } /* Generic.Emph */
35
+ .highlight .gs { font-weight: bold; } /* Generic.Strong */
36
+ .highlight .kc { color: #66d9ef; } /* Keyword.Constant */
37
+ .highlight .kd { color: #66d9ef; } /* Keyword.Declaration */
38
+ .highlight .kn { color: #f92672; } /* Keyword.Namespace */
39
+ .highlight .kp { color: #66d9ef; } /* Keyword.Pseudo */
40
+ .highlight .kr { color: #66d9ef; } /* Keyword.Reserved */
41
+ .highlight .kt { color: #66d9ef; } /* Keyword.Type */
42
+ .highlight .ld { color: #e6db74; } /* Literal.Date */
43
+ .highlight .m { color: #ae81ff; } /* Literal.Number */
44
+ .highlight .s { color: #e6db74; } /* Literal.String */
45
+ .highlight .na { color: #a6e22e; } /* Name.Attribute */
46
+ .highlight .nb { color: #f8f8f2; } /* Name.Builtin */
47
+ .highlight .nc { color: #a6e22e; } /* Name.Class */
48
+ .highlight .no { color: #66d9ef; } /* Name.Constant */
49
+ .highlight .nd { color: #a6e22e; } /* Name.Decorator */
50
+ .highlight .ni { color: #f8f8f2; } /* Name.Entity */
51
+ .highlight .ne { color: #a6e22e; } /* Name.Exception */
52
+ .highlight .nf { color: #a6e22e; } /* Name.Function */
53
+ .highlight .nl { color: #f8f8f2; } /* Name.Label */
54
+ .highlight .nn { color: #f8f8f2; } /* Name.Namespace */
55
+ .highlight .nx { color: #a6e22e; } /* Name.Other */
56
+ .highlight .py { color: #f8f8f2; } /* Name.Property */
57
+ .highlight .nt { color: #f92672; } /* Name.Tag */
58
+ .highlight .nv { color: #f8f8f2; } /* Name.Variable */
59
+ .highlight .ow { color: #f92672; } /* Operator.Word */
60
+ .highlight .w { color: #f8f8f2; } /* Text.Whitespace */
61
+ .highlight .mf { color: #ae81ff; } /* Literal.Number.Float */
62
+ .highlight .mh { color: #ae81ff; } /* Literal.Number.Hex */
63
+ .highlight .mi { color: #ae81ff; } /* Literal.Number.Integer */
64
+ .highlight .mo { color: #ae81ff; } /* Literal.Number.Oct */
65
+ .highlight .sb { color: #e6db74; } /* Literal.String.Backtick */
66
+ .highlight .sc { color: #e6db74; } /* Literal.String.Char */
67
+ .highlight .sd { color: #e6db74; } /* Literal.String.Doc */
68
+ .highlight .s2 { color: #e6db74; } /* Literal.String.Double */
69
+ .highlight .se { color: #ae81ff; } /* Literal.String.Escape */
70
+ .highlight .sh { color: #e6db74; } /* Literal.String.Heredoc */
71
+ .highlight .si { color: #e6db74; } /* Literal.String.Interpol */
72
+ .highlight .sx { color: #e6db74; } /* Literal.String.Other */
73
+ .highlight .sr { color: #e6db74; } /* Literal.String.Regex */
74
+ .highlight .s1 { color: #e6db74; } /* Literal.String.Single */
75
+ .highlight .ss { color: #e6db74; } /* Literal.String.Symbol */
76
+ .highlight .bp { color: #f8f8f2; } /* Name.Builtin.Pseudo */
77
+ .highlight .vc { color: #f8f8f2; } /* Name.Variable.Class */
78
+ .highlight .vg { color: #f8f8f2; } /* Name.Variable.Global */
79
+ .highlight .vi { color: #f8f8f2; } /* Name.Variable.Instance */
80
+ .highlight .il { color: #ae81ff; } /* Literal.Number.Integer.Long */
81
+ .highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
82
+ .highlight .gd { color: #f92672; background-color: #561c08; } /* Generic.Deleted & Diff Deleted */
83
+ .highlight .gi { color: #a6e22e; background-color: #0b5858; } /* Generic.Inserted & Diff Inserted */
84
+ }
@@ -0,0 +1,135 @@
1
+ /*
2
+ * The main dark mode styles
3
+ */
4
+
5
+ @mixin dark-scheme {
6
+ /* framework */
7
+ --main-wrapper-bg: rgb(27, 27, 30);
8
+ --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
+ --mask-bg: rgb(68, 69, 70);
14
+ --footer-bg-color: var(--main-wrapper-bg);
15
+
16
+ /* common color */
17
+ --text-color: rgb(175, 176, 177);
18
+ --text-muted-color: rgb(107, 116, 124);
19
+ --link-color: rgb(138, 180, 248);
20
+ --link-underline-color: rgb(82, 108, 150);
21
+ --main-border-color: rgb(44, 45, 45);
22
+ --button-bg: rgb(39, 40, 43);
23
+ --blockquote-border-color: rgb(66, 66, 66);
24
+ --blockquote-text-color: rgb(117, 117, 117);
25
+ --btn-border-color: rgb(63, 65, 68);
26
+ --btn-backtotop-color: var(--text-color);
27
+ --btn-backtotop-border-color: var(--btn-border-color);
28
+ --btn-box-shadow: var(--main-wrapper-bg);
29
+ --card-header-bg: rgb(51, 50, 50);
30
+ --label-color: rgb(108, 117, 125);
31
+ --checkbox-color: rgb(118 120 121);
32
+ --checkbox-checked-color: var(--link-color);
33
+
34
+ /* Sidebar */
35
+ --nav-cursor-color: rgb(183, 182, 182);
36
+ --sidebar-bg: radial-gradient(circle, #242424 0%, #1d1f27 100%);
37
+
38
+ /* Top Bar */
39
+ --topbar-text-color: var(--text-color);
40
+
41
+ /* Home page */
42
+ --post-list-text-color: rgb(175, 176, 177);
43
+ --btn-patinator-text-color: var(--text-color);
44
+ --btn-paginator-hover-color: rgb(64, 65, 66);
45
+ --btn-active-bg: rgba(28, 52, 94, 1);
46
+ --btn-active-border-color: rgb(66, 94, 138);
47
+ --btn-text-color: var(--text-color);
48
+ --btn-paginator-border-color: var(--btn-border-color);
49
+ --btn-paginator-shadow: var(--main-wrapper-bg);
50
+ --pin-bg: rgb(34 35 37);
51
+ --pin-color: inherit;
52
+
53
+ /* Posts */
54
+ --toc-highlight: rgb(116, 178, 243);
55
+ --tag-bg: rgb(41, 40, 40);
56
+ --tag-hover: rgb(43, 56, 62);
57
+ --tb-odd-bg: rgba(42, 47, 53, 0.52); /* odd rows of the posts' table */
58
+ --tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
59
+ --tb-border-color: var(--tb-odd-bg);
60
+ --footnote-target-bg: rgb(63, 81, 181);
61
+ --btn-share-color: #6c757d;
62
+ --btn-share-hover-color: #bfc1ca;
63
+ --relate-post-date: var(--text-muted-color);
64
+ --card-bg: rgb(39, 40, 43);
65
+ --card-border-color: rgb(53, 53, 60);
66
+ --card-box-shadow: var(--main-wrapper-bg);
67
+
68
+ /* tags */
69
+ --tag-border: rgb(59, 79, 88);
70
+ --tag-shadow: rgb(32, 33, 33);
71
+ --search-tag-bg: var(--tag-bg);
72
+ --dash-color: rgb(63, 65, 68);
73
+
74
+ /* categories */
75
+ --categories-border: rgb(64, 66, 69);
76
+ --categories-hover-bg: rgb(73, 75, 76);
77
+
78
+ /* archives */
79
+ --timeline-node-bg: rgb(150, 152, 156);
80
+ --timeline-color: rgb(63, 65, 68);
81
+ --timeline-year-dot-color: var(--timeline-color);
82
+
83
+ /* Footer */
84
+ --footer-link: rgb(171, 171, 171);
85
+
86
+ .post-content img {
87
+ filter: brightness(90%);
88
+ }
89
+
90
+ hr {
91
+ border-color: var(--main-border-color);
92
+ }
93
+
94
+ /* posts' toc, override BS */
95
+ nav[data-toggle=toc] .nav-link.active,
96
+ nav[data-toggle=toc] .nav-link.active:focus,
97
+ nav[data-toggle=toc] .nav-link.active:hover,
98
+ nav[data-toggle=toc] .nav > li > a:focus,
99
+ nav[data-toggle=toc] .nav > li > a:hover {
100
+ color: var(--toc-highlight) !important;
101
+ border-left-color: var(--toc-highlight) !important;
102
+ }
103
+
104
+ /* categories */
105
+ .categories.card,
106
+ .list-group-item {
107
+ background-color: var(--card-bg);
108
+ }
109
+
110
+ .categories {
111
+ .card-header {
112
+ background-color: var(--card-header-bg);
113
+ }
114
+ .list-group-item {
115
+ border-left: none;
116
+ border-right: none;
117
+ padding-left: 2rem;
118
+ border-color: var(--categories-border);
119
+ &:last-child {
120
+ border-bottom-color: var(--card-bg);
121
+ }
122
+ }
123
+ }
124
+
125
+ #archives li:nth-child(odd) {
126
+ background-image: linear-gradient(
127
+ to left,
128
+ rgb(26, 26, 30),
129
+ rgb(39, 39, 45),
130
+ rgb(39, 39, 45),
131
+ rgb(39, 39, 45),
132
+ rgb(26, 26, 30));
133
+ }
134
+
135
+ } // dark-scheme
@@ -0,0 +1,75 @@
1
+ /*
2
+ * The syntax light mode code snippet colors.
3
+ */
4
+
5
+ @mixin light-syntax {
6
+ /* see: <https://raw.githubusercontent.com/jwarby/pygments-css/master/github.css> */
7
+ .highlight .hll { background-color: #ffffcc; }
8
+ .highlight .c { color: #999988; font-style: italic; } /* Comment */
9
+ .highlight .err { color: #a61717; background-color: #e3d2d2; } /* Error */
10
+ .highlight .k { color: #000000; font-weight: bold; } /* Keyword */
11
+ .highlight .o { color: #000000; font-weight: bold; } /* Operator */
12
+ .highlight .cm { color: #999988; font-style: italic; } /* Comment.Multiline */
13
+ .highlight .cp { color: #999999; font-weight: bold; font-style: italic; } /* Comment.Preproc */
14
+ .highlight .c1 { color: #999988; font-style: italic; } /* Comment.Single */
15
+ .highlight .cs { color: #999999; font-weight: bold; font-style: italic; } /* Comment.Special */
16
+ .highlight .gd { color: #d01040; background-color: #ffdddd; } /* Generic.Deleted */
17
+ .highlight .ge { color: #000000; font-style: italic; } /* Generic.Emph */
18
+ .highlight .gr { color: #aa0000; } /* Generic.Error */
19
+ .highlight .gh { color: #999999; } /* Generic.Heading */
20
+ .highlight .gi { color: #008080; background-color: #ddffdd; } /* Generic.Inserted */
21
+ .highlight .go { color: #888888; } /* Generic.Output */
22
+ .highlight .gp { color: #555555; } /* Generic.Prompt */
23
+ .highlight .gs { font-weight: bold; } /* Generic.Strong */
24
+ .highlight .gu { color: #aaaaaa; } /* Generic.Subheading */
25
+ .highlight .gt { color: #aa0000; } /* Generic.Traceback */
26
+ .highlight .kc { color: #000000; font-weight: bold; } /* Keyword.Constant */
27
+ .highlight .kd { color: #000000; font-weight: bold; } /* Keyword.Declaration */
28
+ .highlight .kn { color: #000000; font-weight: bold; } /* Keyword.Namespace */
29
+ .highlight .kp { color: #000000; font-weight: bold; } /* Keyword.Pseudo */
30
+ .highlight .kr { color: #000000; font-weight: bold; } /* Keyword.Reserved */
31
+ .highlight .kt { color: #445588; font-weight: bold; } /* Keyword.Type */
32
+ .highlight .m { color: #009999; } /* Literal.Number */
33
+ .highlight .s { color: #d01040; } /* Literal.String */
34
+ .highlight .na { color: #008080; } /* Name.Attribute */
35
+ .highlight .nb { color: #0086b3; } /* Name.Builtin */
36
+ .highlight .nc { color: #445588; font-weight: bold; } /* Name.Class */
37
+ .highlight .no { color: #008080; } /* Name.Constant */
38
+ .highlight .nd { color: #3c5d5d; font-weight: bold; } /* Name.Decorator */
39
+ .highlight .ni { color: #800080; } /* Name.Entity */
40
+ .highlight .ne { color: #990000; font-weight: bold; } /* Name.Exception */
41
+ .highlight .nf { color: #990000; font-weight: bold; } /* Name.Function */
42
+ .highlight .nl { color: #990000; font-weight: bold; } /* Name.Label */
43
+ .highlight .nn { color: #555555; } /* Name.Namespace */
44
+ .highlight .nt { color: #000080; } /* Name.Tag */
45
+ .highlight .nv { color: #008080; } /* Name.Variable */
46
+ .highlight .ow { color: #000000; font-weight: bold; } /* Operator.Word */
47
+ .highlight .w { color: #bbbbbb; } /* Text.Whitespace */
48
+ .highlight .mf { color: #009999; } /* Literal.Number.Float */
49
+ .highlight .mh { color: #009999; } /* Literal.Number.Hex */
50
+ .highlight .mi { color: #009999; } /* Literal.Number.Integer */
51
+ .highlight .mo { color: #009999; } /* Literal.Number.Oct */
52
+ .highlight .sb { color: #d01040; } /* Literal.String.Backtick */
53
+ .highlight .sc { color: #d01040; } /* Literal.String.Char */
54
+ .highlight .sd { color: #d01040; } /* Literal.String.Doc */
55
+ .highlight .s2 { color: #d01040; } /* Literal.String.Double */
56
+ .highlight .se { color: #d01040; } /* Literal.String.Escape */
57
+ .highlight .sh { color: #d01040; } /* Literal.String.Heredoc */
58
+ .highlight .si { color: #d01040; } /* Literal.String.Interpol */
59
+ .highlight .sx { color: #d01040; } /* Literal.String.Other */
60
+ .highlight .sr { color: #009926; } /* Literal.String.Regex */
61
+ .highlight .s1 { color: #d01040; } /* Literal.String.Single */
62
+ .highlight .ss { color: #990073; } /* Literal.String.Symbol */
63
+ .highlight .bp { color: #999999; } /* Name.Builtin.Pseudo */
64
+ .highlight .vc { color: #008080; } /* Name.Variable.Class */
65
+ .highlight .vg { color: #008080; } /* Name.Variable.Global */
66
+ .highlight .vi { color: #008080; } /* Name.Variable.Instance */
67
+ .highlight .il { color: #009999; } /* Literal.Number.Integer.Long */
68
+
69
+ /* --- custom light colors --- */
70
+ --highlight-bg-color: #f7f7f7;
71
+ --highlighter-rouge-color: #353a3d;
72
+ --highlight-lineno-color: #c2c6cc;
73
+ --highlight-lineno-border-color: #e9ecef;
74
+ --inline-code-bg: #f3f3f3;
75
+ } // light-syntax
@@ -0,0 +1,76 @@
1
+ /*
2
+ * The syntax light mode typography colors
3
+ */
4
+
5
+ @mixin light-scheme {
6
+ /* Common */
7
+ --body-bg: #fafafa;
8
+ --mask-bg: #c1c3c5;
9
+ --main-wrapper-bg: white;
10
+ --main-border-color: #f3f3f3;
11
+ --btn-border-color: #e9ecef;
12
+ --text-color: #333333;
13
+ --blockquote-border-color: #eee;
14
+ --blockquote-text-color: #9a9a9a;
15
+ --link-color: #2a408e;
16
+ --link-underline-color: #dee2e6;
17
+ --text-muted-color: gray;
18
+ --tb-odd-bg: #fbfcfd;
19
+ --tb-border-color: #eaeaea;
20
+ --button-bg: #fff;
21
+ --btn-backtotop-color: #686868;
22
+ --btn-backtotop-border-color: #f1f1f1;
23
+ --btn-box-shadow: #eaeaea;
24
+ --checkbox-color: #c5c5c5;
25
+ --checkbox-checked-color: #07a8f7;
26
+
27
+ /* Sidebar */
28
+ --sidebar-bg: radial-gradient(
29
+ circle,
30
+ rgba(42, 30, 107, 1) 0%,
31
+ rgba(35, 37, 46, 1) 100%);
32
+ --nav-cursor-color: #fcfcfc;
33
+
34
+ /* Topbar */
35
+ --topbar-wrapper-bg: white;
36
+ --topbar-text-color: rgb(78, 78, 78);
37
+ --search-wrapper-bg: #f5f5f5;
38
+ --search-tag-bg: #f8f9fa;
39
+ --search-icon-color: #c2c6cc;
40
+ --input-focus-border-color: var(--btn-border-color);
41
+
42
+ /* Home page */
43
+ --post-list-text-color: dimgray;
44
+ --btn-patinator-text-color: #555555;
45
+ --btn-paginator-hover-color: #e9ecef;
46
+ --btn-active-bg: #2a408e;
47
+ --btn-active-border-color: #007bff;
48
+ --btn-text-color: #f8f8f8;
49
+ --btn-paginator-border-color: #f1f1f1;
50
+ --btn-paginator-shadow: #4b92d2;
51
+ --pin-bg: #f5f5f5;
52
+ --pin-color: #999fa4;
53
+
54
+ /* Posts */
55
+ --btn-share-hover-color: var(--link-color);
56
+ --card-border-color: #f1f1f1;
57
+ --card-box-shadow: rgba(234, 234, 234, 0.7686274509803922);
58
+ --label-color: #616161;
59
+ --relate-post-date: rgba(30, 55, 70, 0.4);
60
+ --tag-bg: rgba(0, 0, 0, 0.075);
61
+ --tag-border: #dee2e6;
62
+ --tag-shadow: var(--btn-border-color);
63
+ --tag-hover: rgb(222, 226, 230);
64
+ --categories-hover-bg: var(--btn-border-color);
65
+ --dash-color: silver;
66
+
67
+ /* Archive */
68
+ --timeline-color: rgba(0, 0, 0, 0.075);
69
+ --timeline-node-bg: #c2c6cc;
70
+ --timeline-year-dot-color: #ffffff;
71
+
72
+ /* Footer */
73
+ --footer-bg-color: #ffffff;
74
+ --footnote-target-bg: lightcyan;
75
+ --footer-link: #424242;
76
+ } // light-scheme