jekyll-theme-persephone 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +52 -0
  4. data/_includes/assets.html +14 -0
  5. data/_includes/comment.html +35 -0
  6. data/_includes/comments.html +18 -0
  7. data/_includes/contact.html +7 -0
  8. data/_includes/footer.html +5 -0
  9. data/_includes/head.html +10 -0
  10. data/_includes/header.html +24 -0
  11. data/_includes/header_nav.html +10 -0
  12. data/_includes/icons.html +42 -0
  13. data/_includes/icons/ellipsis.html +5 -0
  14. data/_includes/icons/facebook.html +2 -0
  15. data/_includes/icons/github.html +3 -0
  16. data/_includes/icons/instagram.html +5 -0
  17. data/_includes/icons/left.html +3 -0
  18. data/_includes/icons/link.html +4 -0
  19. data/_includes/icons/linkedin.html +5 -0
  20. data/_includes/icons/mail.html +4 -0
  21. data/_includes/icons/right.html +3 -0
  22. data/_includes/icons/rss.html +5 -0
  23. data/_includes/icons/smile.html +6 -0
  24. data/_includes/icons/twitter.html +3 -0
  25. data/_includes/icons/user.html +4 -0
  26. data/_includes/icons/weibo.html +3 -0
  27. data/_includes/loading.html +4 -0
  28. data/_includes/new_comment.html +50 -0
  29. data/_includes/pagination.html +29 -0
  30. data/_includes/slides.html +53 -0
  31. data/_includes/smiley.html +12 -0
  32. data/_includes/summary.html +30 -0
  33. data/_includes/title.html +7 -0
  34. data/_layouts/404.html +8 -0
  35. data/_layouts/archive.html +33 -0
  36. data/_layouts/blog.html +29 -0
  37. data/_layouts/book.html +28 -0
  38. data/_layouts/chapter.html +32 -0
  39. data/_layouts/default.html +7 -0
  40. data/_layouts/home.html +6 -0
  41. data/_layouts/list.html +33 -0
  42. data/_layouts/page.html +17 -0
  43. data/_layouts/post.html +42 -0
  44. data/_sass/persephone.scss +29 -0
  45. data/_sass/persephone/_archive.scss +140 -0
  46. data/_sass/persephone/_blog.scss +190 -0
  47. data/_sass/persephone/_book.scss +120 -0
  48. data/_sass/persephone/_chapter.scss +192 -0
  49. data/_sass/persephone/_comments.scss +208 -0
  50. data/_sass/persephone/_common.scss +110 -0
  51. data/_sass/persephone/_content.scss +278 -0
  52. data/_sass/persephone/_error.scss +16 -0
  53. data/_sass/persephone/_header.scss +140 -0
  54. data/_sass/persephone/_keyframes.scss +11 -0
  55. data/_sass/persephone/_list.scss +105 -0
  56. data/_sass/persephone/_minxins.scss +68 -0
  57. data/_sass/persephone/_post.scss +169 -0
  58. data/_sass/persephone/_slides.scss +264 -0
  59. data/_sass/persephone/_summary.scss +101 -0
  60. data/_sass/persephone/_variables.scss +15 -0
  61. data/assets/css/tomorrow.css +72 -0
  62. data/assets/js/highlight.js +2 -0
  63. data/assets/js/main.js +161 -0
  64. data/assets/main.scss +4 -0
  65. metadata +149 -0
@@ -0,0 +1,208 @@
1
+ .comment-container {
2
+ padding: 1.5rem 0;
3
+ }
4
+ .comment-left {
5
+ float: left;
6
+ width: 60px;
7
+ }
8
+ .comment__avatar {
9
+ img {
10
+ border-radius: 50%;
11
+ }
12
+ }
13
+
14
+ .comment-right {
15
+ float: right;
16
+ width: calc(100% - 60px);
17
+ }
18
+ .new-comment-right {
19
+ padding-left: 1rem;
20
+ }
21
+ .comment__box {
22
+ position: relative;
23
+ border: 1px solid var(--lighter);
24
+ @include flex;
25
+ @include flex-column;
26
+ border-radius: 0.35rem;
27
+ &:after, &:before {
28
+ @include pseudo;
29
+ width: 0;
30
+ height: 0;
31
+ right: 100%;
32
+ border-style: solid solid outset solid;
33
+ pointer-events: none;
34
+ }
35
+ &:after {
36
+ border-width: 8px;
37
+ border-color: transparent var(--lighter) transparent transparent;
38
+ left: -16px;
39
+ top: 11px;
40
+ z-index: 4;
41
+ }
42
+ &:before {
43
+ border-width: 7px;
44
+ border-color: transparent var(--bg-color) transparent transparent;
45
+ left: -14px;
46
+ top: 12px;
47
+ z-index: 5;
48
+ }
49
+ }
50
+ .comment__box_top, .comment__box_bottom {
51
+ width: 100%;
52
+ @include flex;
53
+ }
54
+ .comment__box_top {
55
+ border-bottom: 1px solid var(--lighter);
56
+ }
57
+ @media screen and (max-width: 500px) {
58
+ .comment__box_top {
59
+ @include flex-column;
60
+ }
61
+ }
62
+ .comment__box_bottom {
63
+ border-top: 1px solid var(--lighter);
64
+ justify-content: flex-end;
65
+ }
66
+ .comment__hint {
67
+ font-size: 0.875rem;
68
+ color: var(--gray);
69
+ flex: 1;
70
+ line-height: 40px;
71
+ padding: 0 10px;
72
+ overflow: hidden;
73
+ white-space: nowrap;
74
+ text-overflow: ellipsis;
75
+ }
76
+ .comment__smileys_box {
77
+ padding: 4px 10px;
78
+ border-top: 1px solid var(--lighter);
79
+ position: absolute;
80
+ bottom: 40px;
81
+ left: 0;
82
+ width: 100%;
83
+ display: none;
84
+ img {
85
+ width: 34px;
86
+ height: auto;
87
+ }
88
+ }
89
+ .comment__smileys_toggler {
90
+ width: 48px;
91
+ text-align: center;
92
+ padding: 9px 0 0 0;
93
+ border-right: 1px solid var(--lighter);
94
+ cursor: pointer;
95
+ svg {
96
+ stroke: var(--light-gray);
97
+ }
98
+ }
99
+ .comment__error {
100
+ color: var(--red);
101
+ }
102
+
103
+ .input-group {
104
+ position: relative;
105
+ padding-left: 35px;
106
+ }
107
+ .input-label {
108
+ position: absolute;
109
+ left: 10px;
110
+ top: 8px;
111
+ width: 24px;
112
+ height: 24px;
113
+ z-index: 33;
114
+ transition: all .25s linear;
115
+ svg {
116
+ stroke: var(--light-gray);
117
+ stroke-width: 2;
118
+ }
119
+ }
120
+ .form__inputs__group.hide {
121
+ display: none;
122
+ }
123
+ .form__inputs__group .input-group {
124
+ width: 48%;
125
+ float: left;
126
+ margin-right: 2%;
127
+ }
128
+ .form-control {
129
+ width: 100%;
130
+ padding: 0.375rem 0.75rem;
131
+ color: var(--gray);
132
+ font-size: 1rem;
133
+ line-height: 1.5;
134
+ background-color: transparent;
135
+ font-family: "OpenSans", "Microsoft YaHei", "微软雅黑", "宋体", STXihei, "华文细黑", Arial, Verdana, arial, serif;
136
+ &:focus {
137
+ outline: none;
138
+ }
139
+ &::placeholder {
140
+ font-size: 0.875rem;
141
+ color: var(--gray-light);
142
+ }
143
+ }
144
+ .form-control-name {
145
+ max-width: 180px;
146
+ }
147
+ textarea.form-control {
148
+ height: 7em;
149
+ padding-top: 0.5rem;
150
+ padding-bottom: 0.5rem;
151
+ resize: vertical;
152
+ }
153
+ .submit-btn {
154
+ width: 120px;
155
+ display: inline-block;
156
+ background: none;
157
+ color: var(--gray);
158
+ border-left: 1px solid var(--lighter);
159
+ cursor: pointer;
160
+ position: relative;
161
+ height: 40px;
162
+ line-height: 40px;
163
+ transition: all 0.45s ease-in;
164
+ &:disabled {
165
+ cursor: not-allowed;
166
+ opacity: 0.5;
167
+ }
168
+ }
169
+
170
+ .comment__list {
171
+ margin: 3rem 0;
172
+ }
173
+ .comment {
174
+ margin: 1rem 0;
175
+ border-radius: 0.35rem;
176
+ padding: 0.5rem 0 0.5rem 0.5rem;
177
+ .comment {
178
+ margin-left: 2rem;
179
+ }
180
+ }
181
+ .comment_new {
182
+ background-color: var(--lighter);
183
+ }
184
+ .comment__author {
185
+ font-size: 1.05rem;
186
+ line-height: 2.5rem;
187
+ margin-right: 10px;
188
+ }
189
+ .comment__date {
190
+ color: var(--light-gray);
191
+ font-size: 0.875rem;
192
+ }
193
+ .comment__content {
194
+ padding: 0.5rem 0;
195
+ p {
196
+ color: var(--gray);
197
+ font-size: 0.95rem;
198
+ white-space: pre-line;
199
+ }
200
+ }
201
+ .comment__reply {
202
+ float: right;
203
+ font-size: 0.8rem;
204
+ border-bottom: 1px dashed var(--gray);
205
+ &:hover {
206
+ border-style: solid;
207
+ }
208
+ }
@@ -0,0 +1,110 @@
1
+ * {
2
+ border: 0;
3
+ padding: 0;
4
+ margin: 0;
5
+ //outline: none;
6
+ box-sizing: border-box;
7
+ }
8
+ body, html {
9
+ font-family: "Microsoft YaHei", "微软雅黑", "宋体", STXihei, "华文细黑", Arial, Verdana, arial, serif;
10
+ width: 100%;
11
+ background-color: var(--bg-color);
12
+ color: var(--dark);
13
+ font-size: 17px;
14
+ }
15
+ body {
16
+ min-height: 100vh;
17
+ overflow-x: hidden;
18
+ @include flex();
19
+ @include flex-column();
20
+ }
21
+ main {
22
+ flex: 1;
23
+ }
24
+ h1, h2, h3 {
25
+ font-weight: normal;
26
+ }
27
+ h1 {
28
+ font-size: 2.36rem;
29
+ }
30
+
31
+ h2 {
32
+ font-size: 1.77rem;
33
+ }
34
+
35
+ h3 {
36
+ font-size: 1.33rem;
37
+ }
38
+ a {
39
+ text-decoration: none;
40
+ color: var(--dark);
41
+ }
42
+ a:hover, a:visited, a:linked, a:active {
43
+ text-decoration: none;
44
+ color: var(--dark);
45
+ }
46
+
47
+ .loading {
48
+ display: flex;
49
+ width: 100vw;
50
+ height: 100vh;
51
+ position: fixed;
52
+ z-index: 15;
53
+ background-color: var(--bg-color);
54
+ align-items: center;
55
+ justify-content: center;
56
+ }
57
+ .loading__icon {
58
+ width: 60px;
59
+ height: 60px;
60
+ position: relative;
61
+ border-radius: 30px;
62
+ border: 2px solid var(--gray-light);
63
+ }
64
+ .loading__icon:after {
65
+ content: "";
66
+ position: absolute;
67
+ top: -2px;
68
+ left: -2px;
69
+ bottom: -2px;
70
+ right: -2px;
71
+ border-radius: 30px;
72
+ border: 2px solid transparent;
73
+ border-top-color: var(--gray);
74
+ animation: spin 1s linear infinite;
75
+ }
76
+ .error-container {
77
+ display: flex;
78
+ width: 100vw;
79
+ height: 100vh;
80
+ align-items: center;
81
+ justify-content: center;
82
+ flex-direction: column;
83
+ }
84
+ .error-title {
85
+ font-size: 3.5rem;
86
+ }
87
+ .error-hint {
88
+ margin: 3rem 0;
89
+ font-size: 1.35rem;
90
+ }
91
+ .error-link {
92
+ text-decoration: underline;
93
+ }
94
+ .clearfix:after {
95
+ content: "";
96
+ clear: both;
97
+ display: block;
98
+ }
99
+ .site-footer {
100
+ line-height: 1.5rem;
101
+ padding: 1.25rem 0;
102
+ color: var(--gray);
103
+ font-size: 0.75rem;
104
+ text-align: center;
105
+ width: 100%;
106
+ a {
107
+ font-size: 0.75rem;
108
+ margin: 0 3px;
109
+ }
110
+ }
@@ -0,0 +1,278 @@
1
+ .content {
2
+ display: block;
3
+ word-wrap: break-word;
4
+ overflow: hidden;
5
+ color: var(--dark);
6
+ line-height: 1.7;
7
+ /* Printing */
8
+ /* Typography */
9
+ /* Spacing */
10
+ /* Links */
11
+ /* Images */
12
+ /* Horizontal lines */
13
+ /* Headings */
14
+ /* Code blocks */
15
+ /* Tables */
16
+ /* Lists */
17
+ /* Blockquote */
18
+ /* Description Lists */
19
+ }
20
+ .content * {
21
+ box-sizing: border-box;
22
+ -webkit-box-sizing: border-box;
23
+ font-size: inherit;
24
+ }
25
+ .content > *:first-child {
26
+ margin-top: 0 !important;
27
+ }
28
+ .content > *:last-child {
29
+ margin-bottom: 0 !important;
30
+ }
31
+ .content pre,
32
+ .content code,
33
+ .content blockquote,
34
+ .content tr,
35
+ .content img,
36
+ .content table,
37
+ .content figure {
38
+ page-break-inside: avoid;
39
+ }
40
+ .content p,
41
+ .content h2,
42
+ .content h3,
43
+ .content h4,
44
+ .content h5 {
45
+ orphans: 3;
46
+ widows: 3;
47
+ }
48
+ .content h1,
49
+ .content h2,
50
+ .content h3,
51
+ .content h4,
52
+ .content h5 {
53
+ page-break-after: avoid;
54
+ }
55
+ .content strong,
56
+ .content b {
57
+ font-weight: bold;
58
+ }
59
+ .content em {
60
+ font-style: italic;
61
+ }
62
+ .content p,
63
+ .content blockquote,
64
+ .content ul,
65
+ .content ol,
66
+ .content dl,
67
+ .content table {
68
+ margin-top: 0;
69
+ margin-bottom: 0.85em;
70
+ }
71
+ .content a {
72
+ text-decoration: none;
73
+ background: transparent;
74
+ display: inline-block;
75
+ border-bottom: 1px dashed var(--gray);
76
+ margin: 0 0.25rem;
77
+ font-size: 0.9em;
78
+ color: var(--grayer);
79
+ }
80
+ .content a:hover,
81
+ .content a:focus,
82
+ .content a:active {
83
+ outline: 0;
84
+ border-style: solid;
85
+ }
86
+ .content img {
87
+ border: 0;
88
+ max-width: 100%;
89
+ }
90
+ .content hr {
91
+ height: 1px;
92
+ padding: 0;
93
+ margin: 1.7em 0;
94
+ overflow: hidden;
95
+ background-color: #e7e7e7;
96
+ border: none;
97
+ }
98
+ .content hr:before,
99
+ .content hr:after {
100
+ display: table;
101
+ content: " ";
102
+ }
103
+ .content hr:after {
104
+ clear: both;
105
+ }
106
+ .content h1,
107
+ .content h2,
108
+ .content h3,
109
+ .content h4,
110
+ .content h5,
111
+ .content h6 {
112
+ margin-top: 1.275em;
113
+ margin-bottom: 0.85em;
114
+ font-weight: 550;
115
+ }
116
+ .content h1 {
117
+ font-size: 2.3em;
118
+ font-weight: 500;
119
+ margin-bottom: 1em;
120
+ }
121
+ .content h2 {
122
+ font-size: 1.75em;
123
+ }
124
+ .content h3 {
125
+ font-size: 1.5em;
126
+ }
127
+ .content h4 {
128
+ font-size: 1.25em;
129
+ }
130
+ .content h5 {
131
+ font-size: 1em;
132
+ }
133
+ .content h6 {
134
+ font-size: 1em;
135
+ color: #777;
136
+ }
137
+ .content code,
138
+ .content pre {
139
+ font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
140
+ direction: ltr;
141
+ margin: 0px;
142
+ padding: 0px;
143
+ border: none;
144
+ color: inherit;
145
+ }
146
+ .content pre {
147
+ overflow: auto;
148
+ word-wrap: normal;
149
+ margin: 0px;
150
+ padding: 0.85em 1em;
151
+ margin-bottom: 1.275em;
152
+ background: var(--lightest);
153
+ }
154
+ .content pre > code {
155
+ display: inline;
156
+ max-width: initial;
157
+ padding: 0;
158
+ margin: 0;
159
+ overflow: initial;
160
+ line-height: inherit;
161
+ font-size: 0.85em;
162
+ white-space: pre;
163
+ background: transparent;
164
+ }
165
+ .content pre > code:before,
166
+ .content pre > code:after {
167
+ content: normal;
168
+ }
169
+ .content code {
170
+ padding: 0.2em;
171
+ margin: 0;
172
+ font-size: 0.85em;
173
+ background-color: var(--lightest);
174
+ border-radius: 3px;
175
+ color: #EB5757;
176
+ }
177
+ .content code:before,
178
+ .content code:after {
179
+ letter-spacing: -0.2em;
180
+ content: "\00a0";
181
+ }
182
+ .content table {
183
+ display: table;
184
+ width: 100%;
185
+ border-collapse: collapse;
186
+ border-spacing: 0;
187
+ overflow: auto;
188
+ }
189
+ .content table td,
190
+ .content table th {
191
+ padding: 6px 13px;
192
+ border: 1px solid #ddd;
193
+ }
194
+ .content table tr {
195
+ background-color: #fff;
196
+ border-top: 1px solid var(--gray-light);
197
+ }
198
+ .content table tr:nth-child(2n) {
199
+ background-color: var(--lightest);
200
+ }
201
+ .content table th {
202
+ font-weight: bold;
203
+ }
204
+ .content ul,
205
+ .content ol {
206
+ padding: 0;
207
+ margin: 0;
208
+ margin-bottom: 0.85em;
209
+ padding-left: 2em;
210
+ }
211
+ .content ul ol,
212
+ .content ol ol,
213
+ .content ul ul,
214
+ .content ol ul {
215
+ margin-top: 0;
216
+ margin-bottom: 0;
217
+ }
218
+ .content ol ol {
219
+ list-style-type: lower-roman;
220
+ }
221
+ .content blockquote {
222
+ margin: 0;
223
+ margin-bottom: 0.85em;
224
+ padding: 0 15px;
225
+ color: var(--gray);
226
+ border-left: 4px solid var(--light);
227
+ }
228
+ .content blockquote:first-child {
229
+ margin-top: 0;
230
+ }
231
+ .content blockquote:last-child {
232
+ margin-bottom: 0;
233
+ }
234
+ .content dl {
235
+ padding: 0;
236
+ }
237
+ .content dl dt {
238
+ padding: 0;
239
+ margin-top: 0.85em;
240
+ font-style: italic;
241
+ font-weight: bold;
242
+ }
243
+ .content dl dd {
244
+ padding: 0 0.85em;
245
+ margin-bottom: 0.85em;
246
+ }
247
+ .content dd {
248
+ margin-left: 0;
249
+ }
250
+ .content .mermaid {
251
+ margin-bottom: 0.85rem;
252
+ }
253
+ .content sup {
254
+ .footnote {
255
+ font-size: 0.75rem;
256
+ }
257
+ }
258
+ .content .footnotes {
259
+ margin: 2rem 0 0 0;
260
+ padding: 1rem 0;
261
+ position: relative;
262
+ color: var(--gray);
263
+ width: 100%;
264
+ text-align: left;
265
+ &:before {
266
+ @include pseudo();
267
+ left: 0;
268
+ background-color: var(--light);
269
+ width: 30%;
270
+ height: 1px;
271
+ top: 0;
272
+ }
273
+ ol {
274
+ li {
275
+ font-size: 0.875rem;
276
+ }
277
+ }
278
+ }