hexo-theme-shokax 0.0.1-alpha1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/LICENSE-shoka +21 -0
- package/README.md +47 -0
- package/_config.yml +353 -0
- package/_images.yml +99 -0
- package/languages/README.md +19 -0
- package/languages/default.yml +1 -0
- package/languages/en.yml +151 -0
- package/languages/ja.yml +146 -0
- package/languages/zh-CN.yml +154 -0
- package/languages/zh-HK.yml +146 -0
- package/languages/zh-TW.yml +146 -0
- package/layout/_alternate/atom.ejs +30 -0
- package/layout/_alternate/json.ejs +16 -0
- package/layout/_alternate/rss.ejs +34 -0
- package/layout/_mixin/breadcrumb.pug +33 -0
- package/layout/_mixin/card.pug +37 -0
- package/layout/_mixin/comment.pug +10 -0
- package/layout/_mixin/postmeta.pug +30 -0
- package/layout/_mixin/segment.pug +32 -0
- package/layout/_mixin/sidebar.pug +36 -0
- package/layout/_mixin/widgets.pug +29 -0
- package/layout/_partials/footer.pug +61 -0
- package/layout/_partials/head/head.pug +54 -0
- package/layout/_partials/head/head_com.pug +17 -0
- package/layout/_partials/head/pwa.pug +17 -0
- package/layout/_partials/header.pug +19 -0
- package/layout/_partials/layout.pug +143 -0
- package/layout/_partials/loading.pug +13 -0
- package/layout/_partials/pagination.pug +4 -0
- package/layout/_partials/post/copyright.pug +20 -0
- package/layout/_partials/post/footer.pug +13 -0
- package/layout/_partials/post/nav.pug +13 -0
- package/layout/_partials/post/post.pug +26 -0
- package/layout/_partials/post/reward.pug +18 -0
- package/layout/_partials/sidebar/menu.pug +37 -0
- package/layout/_partials/sidebar/overview.pug +40 -0
- package/layout/_partials/third-party/baidu-analytics.pug +11 -0
- package/layout/_partials/third-party/clarity.pug +8 -0
- package/layout/_partials/third-party/qweather.pug +35 -0
- package/layout/archive.pug +31 -0
- package/layout/category.pug +66 -0
- package/layout/index.pug +33 -0
- package/layout/page.pug +56 -0
- package/layout/post.pug +35 -0
- package/layout/tag.pug +43 -0
- package/package.json +35 -0
- package/scripts/filters/locals.js +57 -0
- package/scripts/filters/post.js +23 -0
- package/scripts/generaters/archive.js +141 -0
- package/scripts/generaters/config.js +43 -0
- package/scripts/generaters/images.js +26 -0
- package/scripts/generaters/index.js +110 -0
- package/scripts/generaters/pages.js +19 -0
- package/scripts/generaters/script.js +81 -0
- package/scripts/helpers/asset.js +237 -0
- package/scripts/helpers/engine.js +183 -0
- package/scripts/helpers/list_categories.js +140 -0
- package/scripts/helpers/symbols_count_time.js +76 -0
- package/scripts/tags/links.js +86 -0
- package/scripts/tags/media.js +19 -0
- package/source/assets/404.png +0 -0
- package/source/assets/algolia_logo.svg +9 -0
- package/source/assets/apple-touch-icon.png +0 -0
- package/source/assets/beian.webp +0 -0
- package/source/assets/failure.ico +0 -0
- package/source/assets/favicon.ico +0 -0
- package/source/assets/logo.svg +16 -0
- package/source/assets/play_disc.png +0 -0
- package/source/assets/play_needle.png +0 -0
- package/source/assets/search.png +0 -0
- package/source/css/_colors.styl +207 -0
- package/source/css/_common/components/components.styl +6 -0
- package/source/css/_common/components/highlight/highlight.styl +353 -0
- package/source/css/_common/components/highlight/operation.styl +21 -0
- package/source/css/_common/components/pages/collapse.styl +119 -0
- package/source/css/_common/components/pages/home.styl +385 -0
- package/source/css/_common/components/pages/pages.styl +56 -0
- package/source/css/_common/components/pages/tag-cloud.styl +12 -0
- package/source/css/_common/components/post/breadcrumb.styl +39 -0
- package/source/css/_common/components/post/copyright.styl +41 -0
- package/source/css/_common/components/post/expand.styl +264 -0
- package/source/css/_common/components/post/footer.styl +11 -0
- package/source/css/_common/components/post/header.styl +79 -0
- package/source/css/_common/components/post/nav.styl +63 -0
- package/source/css/_common/components/post/post.styl +29 -0
- package/source/css/_common/components/post/reward.styl +50 -0
- package/source/css/_common/components/post/rtl.styl +12 -0
- package/source/css/_common/components/post/tags.styl +39 -0
- package/source/css/_common/components/tags/collapse.styl +72 -0
- package/source/css/_common/components/tags/container.styl +49 -0
- package/source/css/_common/components/tags/label.styl +12 -0
- package/source/css/_common/components/tags/links.styl +77 -0
- package/source/css/_common/components/tags/list.styl +131 -0
- package/source/css/_common/components/tags/note.styl +70 -0
- package/source/css/_common/components/tags/player.styl +361 -0
- package/source/css/_common/components/tags/quiz.styl +200 -0
- package/source/css/_common/components/tags/tabs.styl +83 -0
- package/source/css/_common/components/tags/tags.styl +9 -0
- package/source/css/_common/components/third-party/loading.styl +222 -0
- package/source/css/_common/components/third-party/mermaid/class.styl +90 -0
- package/source/css/_common/components/third-party/mermaid/flowchart.styl +72 -0
- package/source/css/_common/components/third-party/mermaid/gantt.styl +251 -0
- package/source/css/_common/components/third-party/mermaid/git.styl +7 -0
- package/source/css/_common/components/third-party/mermaid/mermaid.styl +37 -0
- package/source/css/_common/components/third-party/mermaid/pie.styl +9 -0
- package/source/css/_common/components/third-party/mermaid/sequence.styl +95 -0
- package/source/css/_common/components/third-party/mermaid/state.styl +130 -0
- package/source/css/_common/components/third-party/pace.styl +18 -0
- package/source/css/_common/components/third-party/search.styl +167 -0
- package/source/css/_common/components/third-party/theme.styl +151 -0
- package/source/css/_common/components/third-party/third-party.styl +22 -0
- package/source/css/_common/components/third-party/valine.styl +548 -0
- package/source/css/_common/components/third-party/widgets.styl +57 -0
- package/source/css/_common/outline/footer/footer.styl +69 -0
- package/source/css/_common/outline/header/brand.styl +77 -0
- package/source/css/_common/outline/header/header.styl +20 -0
- package/source/css/_common/outline/header/image.styl +79 -0
- package/source/css/_common/outline/header/menu.styl +117 -0
- package/source/css/_common/outline/header/nav.styl +81 -0
- package/source/css/_common/outline/header/right.styl +15 -0
- package/source/css/_common/outline/header/tool.styl +207 -0
- package/source/css/_common/outline/header/waves.styl +50 -0
- package/source/css/_common/outline/mobile.styl +46 -0
- package/source/css/_common/outline/outline.styl +78 -0
- package/source/css/_common/outline/sidebar/author.styl +59 -0
- package/source/css/_common/outline/sidebar/dimmer.styl +23 -0
- package/source/css/_common/outline/sidebar/menu.styl +63 -0
- package/source/css/_common/outline/sidebar/quick.styl +43 -0
- package/source/css/_common/outline/sidebar/related.styl +56 -0
- package/source/css/_common/outline/sidebar/sidebar.styl +75 -0
- package/source/css/_common/outline/sidebar/social.styl +69 -0
- package/source/css/_common/outline/sidebar/state.styl +37 -0
- package/source/css/_common/outline/sidebar/tab.styl +71 -0
- package/source/css/_common/outline/sidebar/toc.styl +47 -0
- package/source/css/_common/scaffolding/animate.styl +318 -0
- package/source/css/_common/scaffolding/base.styl +172 -0
- package/source/css/_common/scaffolding/buttons.styl +48 -0
- package/source/css/_common/scaffolding/divider.styl +36 -0
- package/source/css/_common/scaffolding/iconfont.styl +443 -0
- package/source/css/_common/scaffolding/normalize.styl +289 -0
- package/source/css/_common/scaffolding/pagination.styl +81 -0
- package/source/css/_common/scaffolding/ribbon.styl +38 -0
- package/source/css/_common/scaffolding/scaffolding.styl +14 -0
- package/source/css/_common/scaffolding/scrollbar.styl +37 -0
- package/source/css/_common/scaffolding/tables.styl +50 -0
- package/source/css/_common/scaffolding/tip.styl +19 -0
- package/source/css/_common/scaffolding/toggles.styl +59 -0
- package/source/css/_iconfont.styl +451 -0
- package/source/css/_mixins.styl +146 -0
- package/source/css/_variables.styl +89 -0
- package/source/css/app.styl +27 -0
- package/source/css/comment.styl +5 -0
- package/source/css/mermaid.styl +5 -0
- package/source/css/plugin.styl +174 -0
- package/source/css/twikoo.css +2002 -0
- package/source/js/_app/components.js +330 -0
- package/source/js/_app/global.js +317 -0
- package/source/js/_app/library.js +302 -0
- package/source/js/_app/page.js +623 -0
- package/source/js/_app/player.js +748 -0
- package/source/js/_app/vue.js +43 -0
@@ -0,0 +1,151 @@
|
|
1
|
+
#neko {
|
2
|
+
@extend $fix-fullscreen;
|
3
|
+
display: none;
|
4
|
+
background: linear-gradient(to top, #fddb92 0%, #d1fdff 80%);
|
5
|
+
|
6
|
+
.planet {
|
7
|
+
position: fixed;
|
8
|
+
left: -50%;
|
9
|
+
top: -50%;
|
10
|
+
width: 200%;
|
11
|
+
height: 200%;
|
12
|
+
animation: rotate 2s cubic-bezier(.7, 0, 0, 1);
|
13
|
+
transform-origin: center bottom;
|
14
|
+
}
|
15
|
+
|
16
|
+
&:before {
|
17
|
+
content: "";
|
18
|
+
position: absolute;
|
19
|
+
left: 0;
|
20
|
+
right: 0;
|
21
|
+
top: 0;
|
22
|
+
bottom: 0;
|
23
|
+
opacity: 0;
|
24
|
+
background: linear-gradient(to top, #30cfd0 0%, #330867 100%);
|
25
|
+
transition: 2s ease all;
|
26
|
+
}
|
27
|
+
|
28
|
+
.sun, .moon {
|
29
|
+
position: absolute;
|
30
|
+
border-radius: 100%;
|
31
|
+
left: 55%;
|
32
|
+
top: 32%;
|
33
|
+
}
|
34
|
+
|
35
|
+
.sun {
|
36
|
+
height: 40px;
|
37
|
+
width: 40px;
|
38
|
+
background: #ffee94;
|
39
|
+
box-shadow: 0 0 40px #ffee94;
|
40
|
+
opacity: 1;
|
41
|
+
}
|
42
|
+
|
43
|
+
.moon {
|
44
|
+
height: 24px;
|
45
|
+
width: 24px;
|
46
|
+
background: #eee;
|
47
|
+
box-shadow: 0 0 20px #fff;
|
48
|
+
opacity: 0;
|
49
|
+
}
|
50
|
+
|
51
|
+
.body {
|
52
|
+
display: block;
|
53
|
+
position: absolute;
|
54
|
+
bottom: -20px;
|
55
|
+
height: 140px;
|
56
|
+
width: 135px;
|
57
|
+
left: 50%;
|
58
|
+
margin-left: -100px;
|
59
|
+
background: #777;
|
60
|
+
transition: all .25s ease-in-out;
|
61
|
+
animation: slideUpBigIn 1s;
|
62
|
+
|
63
|
+
&:before, &:after {
|
64
|
+
position: absolute;
|
65
|
+
content: "";
|
66
|
+
width: 0;
|
67
|
+
height: 0;
|
68
|
+
border-bottom: 20px solid #777;
|
69
|
+
top: -20px;
|
70
|
+
transition: all .25s ease-in-out;
|
71
|
+
}
|
72
|
+
&:before {
|
73
|
+
border-left: 0 solid transparent;
|
74
|
+
border-right: 30px solid transparent;
|
75
|
+
left: 0;
|
76
|
+
}
|
77
|
+
&:after {
|
78
|
+
border-right: 0 solid transparent;
|
79
|
+
border-left: 30px solid transparent;
|
80
|
+
right: 0;
|
81
|
+
}
|
82
|
+
|
83
|
+
.eyes {
|
84
|
+
display: block;
|
85
|
+
position: absolute;
|
86
|
+
background: #ffee94;
|
87
|
+
height: 40px;
|
88
|
+
width: 40px;
|
89
|
+
border-radius: 100%;
|
90
|
+
bottom: 80px;
|
91
|
+
}
|
92
|
+
|
93
|
+
.eyes.left {
|
94
|
+
left: 12px;
|
95
|
+
}
|
96
|
+
|
97
|
+
.eyes.right {
|
98
|
+
right: 12px;
|
99
|
+
}
|
100
|
+
|
101
|
+
.eyes .pupil, .nose {
|
102
|
+
display: block;
|
103
|
+
position: relative;
|
104
|
+
background: #ffb399;
|
105
|
+
border-radius: 100%;
|
106
|
+
margin: 0 auto;
|
107
|
+
}
|
108
|
+
|
109
|
+
.eyes .pupil {
|
110
|
+
height: 100%;
|
111
|
+
width: 5px;
|
112
|
+
transition: width 1s .5s ease-in-out;
|
113
|
+
}
|
114
|
+
|
115
|
+
.nose {
|
116
|
+
top: 45px;
|
117
|
+
height: 10px;
|
118
|
+
width: 10px;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
&.dark {
|
123
|
+
&:before {
|
124
|
+
opacity: 1;
|
125
|
+
}
|
126
|
+
|
127
|
+
.sun {
|
128
|
+
opacity: 0;
|
129
|
+
}
|
130
|
+
|
131
|
+
.moon {
|
132
|
+
opacity: 1;
|
133
|
+
}
|
134
|
+
|
135
|
+
.body {
|
136
|
+
background: #444;
|
137
|
+
&:before {
|
138
|
+
border-bottom: 20px solid #444;
|
139
|
+
}
|
140
|
+
&:after {
|
141
|
+
border-bottom: 20px solid #444;
|
142
|
+
}
|
143
|
+
|
144
|
+
.eyes .pupil {
|
145
|
+
height: 90%;
|
146
|
+
width: 34px;
|
147
|
+
margin: 5% auto;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@import 'pace';
|
2
|
+
@import 'loading';
|
3
|
+
@import 'search';
|
4
|
+
@import 'theme';
|
5
|
+
@import 'widgets';
|
6
|
+
|
7
|
+
.katex,
|
8
|
+
.katex-display {
|
9
|
+
user-select: all;
|
10
|
+
}
|
11
|
+
|
12
|
+
.medium-zoom-overlay {
|
13
|
+
z-index: $zindex-5 - 1;
|
14
|
+
}
|
15
|
+
|
16
|
+
.medium-zoom-image--opened {
|
17
|
+
z-index: $zindex-5;
|
18
|
+
}
|
19
|
+
|
20
|
+
.lozaded {
|
21
|
+
@extend .blur;
|
22
|
+
}
|
@@ -0,0 +1,548 @@
|
|
1
|
+
.v {
|
2
|
+
&.wrap {
|
3
|
+
animation: none;
|
4
|
+
opacity: 0;
|
5
|
+
}
|
6
|
+
|
7
|
+
.lozaded {
|
8
|
+
animation: none;
|
9
|
+
}
|
10
|
+
|
11
|
+
input,
|
12
|
+
textarea {
|
13
|
+
border: none;
|
14
|
+
outline: none;
|
15
|
+
background: transparent;
|
16
|
+
font-size: $font-size-smallest;
|
17
|
+
transition: all .25s ease;
|
18
|
+
}
|
19
|
+
|
20
|
+
a {
|
21
|
+
color: var(--color-aqua);
|
22
|
+
|
23
|
+
&:hover {
|
24
|
+
color: var(--primary-color);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.text-center {
|
29
|
+
text-align: center;
|
30
|
+
}
|
31
|
+
|
32
|
+
.text-right {
|
33
|
+
text-align: right;
|
34
|
+
}
|
35
|
+
|
36
|
+
.float-right {
|
37
|
+
float: right !important;
|
38
|
+
}
|
39
|
+
|
40
|
+
.pd5 {
|
41
|
+
padding: 5px;
|
42
|
+
}
|
43
|
+
|
44
|
+
.pd10 {
|
45
|
+
padding: 10px;
|
46
|
+
}
|
47
|
+
|
48
|
+
.vemoji, .emoji, .tk-owo-emotion {
|
49
|
+
max-height: 1.5rem;
|
50
|
+
display: inline;
|
51
|
+
vertical-align: middle;
|
52
|
+
}
|
53
|
+
|
54
|
+
.submitting {
|
55
|
+
margin: 1em 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
.form {
|
59
|
+
shadow-box();
|
60
|
+
margin-bottom: .625rem;
|
61
|
+
position: relative;
|
62
|
+
padding: .625rem;
|
63
|
+
|
64
|
+
>.inner {
|
65
|
+
.auth-section {
|
66
|
+
display: flex;
|
67
|
+
padding: .3em .6em;
|
68
|
+
}
|
69
|
+
|
70
|
+
+mobile-small() {
|
71
|
+
flex-wrap: wrap;
|
72
|
+
}
|
73
|
+
|
74
|
+
.input {
|
75
|
+
flex: 1 1 27%;
|
76
|
+
width: 27%;
|
77
|
+
|
78
|
+
+mobile-small() {
|
79
|
+
flex: 1 1 100%;
|
80
|
+
padding-right: 0;
|
81
|
+
width: 100%;
|
82
|
+
}
|
83
|
+
|
84
|
+
input {
|
85
|
+
padding: .625rem .3125rem;
|
86
|
+
width: 100%;
|
87
|
+
border-bottom: .0625rem dashed var(--grey-4);
|
88
|
+
|
89
|
+
&:focus {
|
90
|
+
border-bottom-color: var(--primary-color);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
.textarea {
|
96
|
+
padding: .3em .6em;
|
97
|
+
}
|
98
|
+
|
99
|
+
.veditor {
|
100
|
+
width: 100%;
|
101
|
+
min-height: 8.75em;
|
102
|
+
font-size: $font-size-small;
|
103
|
+
line-height: 1.75;
|
104
|
+
resize: vertical;
|
105
|
+
}
|
106
|
+
|
107
|
+
.btn-group {
|
108
|
+
padding: .625rem 0;
|
109
|
+
display: flex;
|
110
|
+
|
111
|
+
.i-markdown {
|
112
|
+
font-size: $font-size-smallest;
|
113
|
+
}
|
114
|
+
|
115
|
+
.left {
|
116
|
+
width: 30%;
|
117
|
+
}
|
118
|
+
|
119
|
+
.right {
|
120
|
+
width: 70%;
|
121
|
+
text-align: right;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
.vextra-area {
|
126
|
+
margin: .4em 0 .4em .5em;
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
.preview-box {
|
131
|
+
padding: .4375rem 1.25rem;
|
132
|
+
font-size: $font-size-smaller;
|
133
|
+
shadow-box();
|
134
|
+
}
|
135
|
+
|
136
|
+
.trigger-section {
|
137
|
+
display: none;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
.smile-body {
|
142
|
+
|
143
|
+
img {
|
144
|
+
display: inline-block;
|
145
|
+
width: auto;
|
146
|
+
height: 3rem;
|
147
|
+
cursor: pointer;
|
148
|
+
padding: .5rem;
|
149
|
+
border-radius: .25rem;
|
150
|
+
transition: box-shadow .2s ease-out, background .2s ease-out;
|
151
|
+
}
|
152
|
+
|
153
|
+
li.active img, img:hover {
|
154
|
+
background: var(--grey-2);
|
155
|
+
box-shadow: 1px 1px 2px var(--grey-1), -1px -1px 2px var(--grey-4), inset 8px 8px 16px var(--grey-1), inset -8px -8px 16px var(--grey-3);
|
156
|
+
}
|
157
|
+
|
158
|
+
.smile-icons {
|
159
|
+
border-radius: .5rem;
|
160
|
+
margin: .3rem 0;
|
161
|
+
min-height: 10rem;
|
162
|
+
max-height: 10rem;
|
163
|
+
overflow: auto;
|
164
|
+
background: var(--grey-2);
|
165
|
+
padding: .5rem;
|
166
|
+
}
|
167
|
+
|
168
|
+
.smile-bar {
|
169
|
+
li {
|
170
|
+
display: inline-block;
|
171
|
+
margin-right: .25rem;
|
172
|
+
}
|
173
|
+
|
174
|
+
img {
|
175
|
+
width: 2.8rem;
|
176
|
+
height: 2.8rem;
|
177
|
+
background: var(--grey-2);
|
178
|
+
object-fit: contain;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
.btn {
|
184
|
+
cursor: pointer;
|
185
|
+
display: inline-block;
|
186
|
+
margin: .5rem;
|
187
|
+
overflow: hidden;
|
188
|
+
vertical-align: middle;
|
189
|
+
|
190
|
+
&.actived .ic {
|
191
|
+
color: var(--primary-color);
|
192
|
+
}
|
193
|
+
|
194
|
+
.ic {
|
195
|
+
color: var(--grey-6);
|
196
|
+
transition: all .25s ease;
|
197
|
+
|
198
|
+
&:hover {
|
199
|
+
color: var(--color-blue);
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
204
|
+
.cancel-reply {
|
205
|
+
position: absolute;
|
206
|
+
right: 0;
|
207
|
+
top: 0;
|
208
|
+
z-index: 1;
|
209
|
+
}
|
210
|
+
|
211
|
+
.vsubmit {
|
212
|
+
font-size: $font-size-small;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
.msg {
|
217
|
+
position: absolute;
|
218
|
+
background: var(--grey-1-a5);
|
219
|
+
width: 100%;
|
220
|
+
height: 100%;
|
221
|
+
left: 0;
|
222
|
+
top: 0;
|
223
|
+
|
224
|
+
.alert {
|
225
|
+
padding: 3em 0 0 0;
|
226
|
+
|
227
|
+
.text {
|
228
|
+
color: var(--grey-8);
|
229
|
+
padding: 15px;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
+mobile() {
|
234
|
+
.alert {
|
235
|
+
padding: 8em 0;
|
236
|
+
|
237
|
+
.text {
|
238
|
+
padding: 10px;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
.info {
|
245
|
+
padding: .3125rem;
|
246
|
+
font-weight: 600;
|
247
|
+
font-size: $font-size-larger;
|
248
|
+
|
249
|
+
.col {
|
250
|
+
display: inline-block;
|
251
|
+
padding: 0 20px;
|
252
|
+
position: relative;
|
253
|
+
background: transparent;
|
254
|
+
z-index: 2;
|
255
|
+
|
256
|
+
.count {
|
257
|
+
font-size: 1.375rem;
|
258
|
+
font-weight: inherit;
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
.next {
|
266
|
+
.more {
|
267
|
+
cursor: pointer;
|
268
|
+
margin: 1em 0;
|
269
|
+
}
|
270
|
+
}
|
271
|
+
|
272
|
+
.list {
|
273
|
+
width: 100%;
|
274
|
+
}
|
275
|
+
.item {
|
276
|
+
word-break: break-all;
|
277
|
+
padding-top: 1.25em;
|
278
|
+
|
279
|
+
.avatar {
|
280
|
+
width: 3.125em;
|
281
|
+
height: 3.125em;
|
282
|
+
float: left;
|
283
|
+
border-radius: 50%;
|
284
|
+
margin-right: .7525em;
|
285
|
+
border: .0625rem solid var(--grey-3);
|
286
|
+
padding: .125em
|
287
|
+
}
|
288
|
+
|
289
|
+
&:hover .avatar {
|
290
|
+
animation: .8s ease-out 0s 1 normal both running shake;
|
291
|
+
}
|
292
|
+
|
293
|
+
.main {
|
294
|
+
overflow: hidden;
|
295
|
+
padding-bottom: .5em;
|
296
|
+
border-bottom: .0625rem dashed var(--grey-3);
|
297
|
+
}
|
298
|
+
|
299
|
+
.head, .meta {
|
300
|
+
color: var(--grey-5);
|
301
|
+
line-height: 1.8;
|
302
|
+
}
|
303
|
+
|
304
|
+
.name {
|
305
|
+
margin-right: .875rem;
|
306
|
+
}
|
307
|
+
|
308
|
+
.tag, .system, .time {
|
309
|
+
display: inline-block;
|
310
|
+
font-size: $font-size-smallest;
|
311
|
+
}
|
312
|
+
|
313
|
+
+mobile-small() {
|
314
|
+
.system span {
|
315
|
+
display: none;
|
316
|
+
}
|
317
|
+
}
|
318
|
+
.tag {
|
319
|
+
border-radius: .125rem;
|
320
|
+
color: var(--grey-1);
|
321
|
+
padding: 0 .3125rem;
|
322
|
+
margin-right: .5rem;
|
323
|
+
background-color: var(--color-grey);
|
324
|
+
|
325
|
+
$tagcolor = hexo-config('valine.tagColor');
|
326
|
+
|
327
|
+
for type in $tagcolor {
|
328
|
+
&.{slice(type, 0, 1)} {
|
329
|
+
background-color: unquote(slice(type, 1));
|
330
|
+
}
|
331
|
+
}
|
332
|
+
}
|
333
|
+
|
334
|
+
.at {
|
335
|
+
color: var(--primary-color);
|
336
|
+
|
337
|
+
&:hover {
|
338
|
+
color: var(--color-aqua);
|
339
|
+
}
|
340
|
+
}
|
341
|
+
|
342
|
+
.meta {
|
343
|
+
line-height: 1;
|
344
|
+
.at {
|
345
|
+
float: right;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
|
349
|
+
.content {
|
350
|
+
margin-bottom: .75em;
|
351
|
+
padding: .625em;
|
352
|
+
|
353
|
+
> .inner {
|
354
|
+
font-size: $font-size-small;
|
355
|
+
word-wrap: break-word;
|
356
|
+
word-break: break-all;
|
357
|
+
line-height: 2;
|
358
|
+
position: relative;
|
359
|
+
|
360
|
+
&.expand {
|
361
|
+
cursor: pointer;
|
362
|
+
max-height: 8em;
|
363
|
+
|
364
|
+
overflow: hidden;
|
365
|
+
|
366
|
+
&::before {
|
367
|
+
display: block;
|
368
|
+
content: "";
|
369
|
+
position: absolute;
|
370
|
+
width: 100%;
|
371
|
+
left: 0;
|
372
|
+
top: 0;
|
373
|
+
bottom: 3.15em;
|
374
|
+
background: linear-gradient(180deg, var(--grey-1-a0), var(--grey-1));
|
375
|
+
z-index: 999;
|
376
|
+
}
|
377
|
+
|
378
|
+
&::after {
|
379
|
+
display: block;
|
380
|
+
content: attr(data-expand);
|
381
|
+
text-align: center;
|
382
|
+
position: absolute;
|
383
|
+
width: 100%;
|
384
|
+
height: 3.15em;
|
385
|
+
line-height: 3.15em;
|
386
|
+
left: 0;
|
387
|
+
bottom: 0;
|
388
|
+
z-index: 999;
|
389
|
+
background: var(--grey-1);
|
390
|
+
}
|
391
|
+
}
|
392
|
+
}
|
393
|
+
|
394
|
+
.form {
|
395
|
+
margin-top: 1rem;
|
396
|
+
}
|
397
|
+
}
|
398
|
+
|
399
|
+
&:last-child .main {
|
400
|
+
border-bottom: none
|
401
|
+
}
|
402
|
+
|
403
|
+
.children {
|
404
|
+
padding-left: 1em;
|
405
|
+
border-left: .0625rem dashed var(--grey-3);
|
406
|
+
|
407
|
+
.avatar {
|
408
|
+
width: 2.225em;
|
409
|
+
height: 2.225em
|
410
|
+
}
|
411
|
+
}
|
412
|
+
}
|
413
|
+
|
414
|
+
.empty {
|
415
|
+
padding: 20px;
|
416
|
+
text-align: center;
|
417
|
+
}
|
418
|
+
|
419
|
+
|
420
|
+
/************ Loading ************/
|
421
|
+
.spinner {
|
422
|
+
margin: 10px auto;
|
423
|
+
width: 50px;
|
424
|
+
height: 30px;
|
425
|
+
text-align: center;
|
426
|
+
font-size: 10px;
|
427
|
+
}
|
428
|
+
|
429
|
+
.spinner>div {
|
430
|
+
background-color: var(--primary-color);
|
431
|
+
height: 100%;
|
432
|
+
width: 6px;
|
433
|
+
margin-right: 3px;
|
434
|
+
display: inline-block;
|
435
|
+
animation: sk-stretchdelay 1.2s infinite ease-in-out;
|
436
|
+
}
|
437
|
+
|
438
|
+
.spinner .r2 {
|
439
|
+
animation-delay: -1.1s;
|
440
|
+
}
|
441
|
+
|
442
|
+
.spinner .r3 {
|
443
|
+
animation-delay: -1s;
|
444
|
+
}
|
445
|
+
|
446
|
+
.spinner .r4 {
|
447
|
+
animation-delay: -0.9s;
|
448
|
+
}
|
449
|
+
|
450
|
+
.spinner .r5 {
|
451
|
+
animation-delay: -0.8s;
|
452
|
+
}
|
453
|
+
|
454
|
+
@keyframes sk-stretchdelay {
|
455
|
+
|
456
|
+
0%,
|
457
|
+
40%,
|
458
|
+
100% {
|
459
|
+
transform: scaleY(0.4);
|
460
|
+
}
|
461
|
+
|
462
|
+
20% {
|
463
|
+
transform: scaleY(1);
|
464
|
+
}
|
465
|
+
}
|
466
|
+
}
|
467
|
+
|
468
|
+
.hljs-comment,
|
469
|
+
.hljs-quote {
|
470
|
+
color: var(--grey-5);
|
471
|
+
font-style: italic;
|
472
|
+
}
|
473
|
+
|
474
|
+
.hljs-keyword,
|
475
|
+
.hljs-selector-tag,
|
476
|
+
.hljs-subst,
|
477
|
+
.hljs-meta {
|
478
|
+
color: var(--grey-7);
|
479
|
+
font-weight: bold;
|
480
|
+
}
|
481
|
+
|
482
|
+
.hljs-number,
|
483
|
+
.hljs-literal,
|
484
|
+
.hljs-variable,
|
485
|
+
.hljs-template-variable,
|
486
|
+
.hljs-tag .hljs-attr {
|
487
|
+
color: var(--color-green);
|
488
|
+
}
|
489
|
+
|
490
|
+
.hljs-string,
|
491
|
+
.hljs-doctag {
|
492
|
+
color: var(--color-red);
|
493
|
+
}
|
494
|
+
|
495
|
+
.hljs-title,
|
496
|
+
.hljs-section,
|
497
|
+
.hljs-selector-id {
|
498
|
+
color: var(--color-pink);
|
499
|
+
font-weight: bold;
|
500
|
+
}
|
501
|
+
|
502
|
+
.hljs-subst {
|
503
|
+
font-weight: normal;
|
504
|
+
}
|
505
|
+
|
506
|
+
.hljs-type,
|
507
|
+
.hljs-class .hljs-title {
|
508
|
+
color: var(--color-grey);
|
509
|
+
font-weight: bold;
|
510
|
+
}
|
511
|
+
|
512
|
+
.hljs-tag,
|
513
|
+
.hljs-name,
|
514
|
+
.hljs-attribute {
|
515
|
+
color: var(--color-orange);
|
516
|
+
font-weight: normal;
|
517
|
+
}
|
518
|
+
|
519
|
+
.hljs-regexp,
|
520
|
+
.hljs-link {
|
521
|
+
color: var(--color-green);
|
522
|
+
}
|
523
|
+
|
524
|
+
.hljs-symbol,
|
525
|
+
.hljs-bullet {
|
526
|
+
color: var(--color-purple);
|
527
|
+
}
|
528
|
+
|
529
|
+
.hljs-built_in,
|
530
|
+
.hljs-builtin-name {
|
531
|
+
color: var(--color-aqua);
|
532
|
+
}
|
533
|
+
|
534
|
+
.hljs-deletion {
|
535
|
+
background: #fdd;
|
536
|
+
}
|
537
|
+
|
538
|
+
.hljs-addition {
|
539
|
+
background: #dfd;
|
540
|
+
}
|
541
|
+
|
542
|
+
.hljs-emphasis {
|
543
|
+
font-style: italic;
|
544
|
+
}
|
545
|
+
|
546
|
+
.hljs-strong {
|
547
|
+
font-weight: bold;
|
548
|
+
}
|