hexo-theme-stellar 1.17.2 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/_config.yml +35 -57
- package/_data/widgets.yml +0 -15
- package/layout/_partial/plugins/comments/artalk/layout.ejs +19 -0
- package/layout/_partial/plugins/comments/artalk/script.ejs +25 -0
- package/layout/_partial/plugins/comments/layout.ejs +4 -4
- package/layout/_partial/scripts/index.ejs +1 -1
- package/layout/_partial/sidebar/header.ejs +4 -4
- package/layout/_partial/sidebar/index.ejs +4 -4
- package/layout/_partial/widgets/search.ejs +1 -0
- package/layout/_partial/widgets/toc.ejs +1 -1
- package/package.json +1 -1
- package/scripts/generators/search.js +2 -0
- package/scripts/tags/index.js +32 -6
- package/scripts/tags/inline-labels.js +27 -27
- package/scripts/tags/lib/ablock.js +33 -0
- package/scripts/tags/lib/about.js +48 -0
- package/scripts/tags/lib/checkbox.js +30 -0
- package/scripts/tags/{copy.js → lib/copy.js} +23 -23
- package/scripts/tags/lib/emoji.js +40 -0
- package/scripts/tags/{folders.js → lib/folders.js} +22 -22
- package/scripts/tags/lib/folding.js +30 -0
- package/scripts/tags/lib/frame.js +66 -0
- package/scripts/tags/lib/friends.js +53 -0
- package/scripts/tags/{ghcard.js → lib/ghcard.js} +18 -18
- package/scripts/tags/lib/grid.js +49 -0
- package/scripts/tags/{image.js → lib/image.js} +38 -38
- package/scripts/tags/lib/link.js +78 -0
- package/scripts/tags/lib/mark.js +23 -0
- package/scripts/tags/lib/navbar.js +57 -0
- package/scripts/tags/lib/note.js +35 -0
- package/scripts/tags/lib/poetry.js +47 -0
- package/scripts/tags/lib/quot.js +55 -0
- package/scripts/tags/lib/sites.js +57 -0
- package/scripts/tags/lib/swiper.js +36 -0
- package/scripts/tags/lib/tabs.js +33 -33
- package/scripts/tags/lib/tag.js +35 -0
- package/scripts/tags/lib/timeline.js +78 -0
- package/scripts/tags/lib/toc.js +73 -0
- package/source/css/_common/highlight.styl +0 -3
- package/source/css/_custom.styl +13 -27
- package/source/css/_defines/theme.styl +47 -34
- package/source/css/_layout/md.styl +14 -12
- package/source/css/_layout/partial/paginator.styl +2 -1
- package/source/css/_layout/partial/related.styl +8 -6
- package/source/css/_layout/sidebar/header.styl +2 -2
- package/source/css/_layout/tag-plugins/common.styl +51 -65
- package/source/css/_layout/tag-plugins/folders.styl +8 -8
- package/source/css/_layout/tag-plugins/folding.styl +10 -11
- package/source/css/_layout/tag-plugins/{split.styl → grid.styl} +4 -4
- package/source/css/_layout/tag-plugins/link.styl +1 -1
- package/source/css/_layout/tag-plugins/mark.styl +2 -2
- package/source/css/_layout/tag-plugins/navbar.styl +1 -1
- package/source/css/_layout/tag-plugins/note.styl +3 -1
- package/source/css/_layout/tag-plugins/poetry.styl +26 -25
- package/source/css/_layout/tag-plugins/quot.styl +45 -58
- package/source/css/_layout/tag-plugins/tag.styl +13 -0
- package/source/css/_layout/widgets/ghuser.styl +19 -15
- package/source/css/_layout/widgets/search.styl +102 -1
- package/source/css/_layout/widgets/toc_common.styl +1 -1
- package/source/css/_plugins/aplayer.styl +3 -0
- package/source/css/_plugins/comments/artalk.styl +4 -0
- package/source/css/_plugins/comments/twikoo.styl +0 -1
- package/source/css/_plugins/comments/utterances.styl +1 -1
- package/source/css/_plugins/index.styl +4 -3
- package/source/css/_plugins/swiper.styl +7 -4
- package/source/js/main.js +7 -5
- package/source/js/plugins/weibo.js +116 -0
- package/scripts/tags/about.js +0 -48
- package/scripts/tags/border.js +0 -35
- package/scripts/tags/checkbox.js +0 -38
- package/scripts/tags/emoji.js +0 -40
- package/scripts/tags/folding.js +0 -30
- package/scripts/tags/frame.js +0 -66
- package/scripts/tags/friends.js +0 -53
- package/scripts/tags/lib/users.js +0 -22
- package/scripts/tags/link.js +0 -79
- package/scripts/tags/mark.js +0 -23
- package/scripts/tags/navbar.js +0 -57
- package/scripts/tags/note.js +0 -37
- package/scripts/tags/poetry.js +0 -48
- package/scripts/tags/quot.js +0 -51
- package/scripts/tags/sites.js +0 -57
- package/scripts/tags/split.js +0 -49
- package/scripts/tags/swiper.js +0 -38
- package/scripts/tags/timeline.js +0 -81
- package/scripts/tags/toc.js +0 -72
- package/source/css/_plugins/search/local-search.styl +0 -87
|
@@ -1,46 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
$color-background-h = hue($color-background)
|
|
2
|
+
$color-background-s = saturation($color-background)
|
|
3
|
+
$color-background-l = lightness($color-background)
|
|
4
|
+
|
|
5
|
+
$color-block-h = hue($color-block)
|
|
6
|
+
$color-block-s = saturation($color-block)
|
|
7
|
+
$color-block-l = lightness($color-block)
|
|
8
|
+
|
|
9
|
+
$color-code-h = hue($color-code)
|
|
10
|
+
$color-code-s = saturation($color-code)
|
|
11
|
+
$color-code-l = lightness($color-code)
|
|
12
|
+
|
|
13
|
+
$color-text-h = hue($color-text)
|
|
14
|
+
$color-text-s = saturation($color-text)
|
|
15
|
+
$color-text-l = lightness($color-text)
|
|
16
|
+
|
|
9
17
|
set_text_dark()
|
|
10
|
-
--text-p0: $
|
|
11
|
-
--text-p1: $
|
|
12
|
-
--text-p2:
|
|
13
|
-
--text-p3:
|
|
14
|
-
--text-p4:
|
|
15
|
-
--text-meta:
|
|
16
|
-
--text-code: $
|
|
18
|
+
--text-p0: hsl($color-text-h, $color-text-s, 0)
|
|
19
|
+
--text-p1: hsl($color-text-h, $color-text-s, $color-text-l)
|
|
20
|
+
--text-p2: hsl($color-text-h, $color-text-s, $color-text-l / 0.5 * 0.75)
|
|
21
|
+
--text-p3: hsl($color-text-h, $color-text-s, $color-text-l / 0.5 * 1.25)
|
|
22
|
+
--text-p4: hsl($color-text-h, $color-text-s, $color-text-l / 0.5 * 1.5)
|
|
23
|
+
--text-meta: hsl($color-text-h, $color-text-s, $color-text-l / 0.5 * 2)
|
|
24
|
+
--text-code: hsl($color-code-h, $color-code-s, $color-code-l * 1)
|
|
25
|
+
|
|
26
|
+
set_text_light()
|
|
27
|
+
--text-p0: hsl($color-text-h, $color-text-s, 100)
|
|
28
|
+
--text-p1: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 0.5)
|
|
29
|
+
--text-p2: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 0.75)
|
|
30
|
+
--text-p3: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 1.2)
|
|
31
|
+
--text-p4: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 1.4)
|
|
32
|
+
--text-meta: hsl($color-text-h, $color-text-s, 100 - $color-text-l / 0.5 * 1.75)
|
|
33
|
+
--text-code: hsl($color-code-h, $color-code-s, $color-code-l * 1.25)
|
|
34
|
+
|
|
17
35
|
:root
|
|
18
|
-
--site-bg: $
|
|
19
|
-
--card: $
|
|
20
|
-
--block: $
|
|
21
|
-
--block-border:
|
|
22
|
-
--block-hover:
|
|
36
|
+
--site-bg: hsl($color-background-h, $color-background-s, $color-background-l)
|
|
37
|
+
--card: hsl($color-block-h, $color-block-s, 100)
|
|
38
|
+
--block: hsl($color-block-h, $color-block-s, 95)
|
|
39
|
+
--block-border: hsl($color-block-h, $color-block-s, 90)
|
|
40
|
+
--block-hover: hsl($color-block-h, $color-block-s, 92)
|
|
41
|
+
--block-lighten: hsl($color-block-h, $color-block-s, 100)
|
|
23
42
|
set_text_dark()
|
|
24
|
-
--theme-
|
|
25
|
-
--theme-bg: mix($color-theme, $light-card, 10)
|
|
43
|
+
--theme-bg2: $color-theme
|
|
26
44
|
--theme-link: $color-link
|
|
27
45
|
|
|
28
46
|
set_darkmode()
|
|
29
47
|
:root
|
|
30
|
-
--site-bg: $
|
|
31
|
-
--card: $
|
|
32
|
-
--block: $
|
|
33
|
-
--block-border:
|
|
34
|
-
--block-hover:
|
|
48
|
+
--site-bg: hsl($color-background-h, $color-background-s * 0.5, (100 - $color-background-l) * 2 + 8)
|
|
49
|
+
--card: hsl($color-block-h, $color-block-s * 1.5, 24)
|
|
50
|
+
--block: hsl($color-block-h, $color-block-s, 16)
|
|
51
|
+
--block-border: hsl($color-block-h, $color-block-s, 24)
|
|
52
|
+
--block-hover: hsl($color-block-h, $color-block-s, 20)
|
|
53
|
+
--block-lighten: hsl($color-block-h, $color-block-s, 32)
|
|
35
54
|
set_text_light()
|
|
36
|
-
--theme-highlight: $color-theme
|
|
37
|
-
--theme-bg: mix($color-theme, $dark-card, 10)
|
|
38
55
|
@media screen and (max-width: $device-mobile-max)
|
|
39
|
-
--site-bg:
|
|
40
|
-
--card: darken($dark-card, 6)
|
|
41
|
-
--block: darken($dark-block, 4)
|
|
42
|
-
--block-border: lighten($dark-block, 2)
|
|
43
|
-
--block-hover: darken($dark-block,8)
|
|
56
|
+
--site-bg: black
|
|
44
57
|
|
|
45
58
|
if hexo-config('style.darkmode') == 'auto'
|
|
46
59
|
// 系统的dark模式
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.md-text
|
|
2
2
|
max-width: 100%
|
|
3
|
-
padding:
|
|
4
|
-
margin-top: 1rem
|
|
3
|
+
padding: 1rem
|
|
5
4
|
&:first-child
|
|
6
5
|
margin-top: 0
|
|
7
6
|
color: var(--text-p1)
|
|
@@ -21,9 +20,8 @@ h1.article-title
|
|
|
21
20
|
|
|
22
21
|
.md-text.content
|
|
23
22
|
position: relative
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
flex-direction: column
|
|
23
|
+
padding-bottom: 2rem
|
|
24
|
+
overflow: hidden
|
|
27
25
|
&.indent
|
|
28
26
|
>p:not([class])
|
|
29
27
|
text-indent: 'calc(%s * 2)' % $fs-p
|
|
@@ -33,25 +31,27 @@ h1.article-title
|
|
|
33
31
|
h1,h2,h3,h4,h5,h6
|
|
34
32
|
text-align: center
|
|
35
33
|
>h2:not([class])
|
|
36
|
-
|
|
37
|
-
border-bottom-style: dashed
|
|
38
|
-
border-bottom-color: $color-accent
|
|
34
|
+
border-bottom: none
|
|
39
35
|
>:first-child:not(h1)
|
|
40
36
|
margin-top: 0
|
|
41
37
|
h1:not(:first-child)
|
|
42
38
|
margin-top: 2em
|
|
43
39
|
h2:first-child
|
|
44
40
|
margin-top: 0
|
|
41
|
+
h2
|
|
42
|
+
margin-bottom: 1rem
|
|
43
|
+
h3,h4,h5,h6
|
|
44
|
+
margin-bottom: .5rem
|
|
45
45
|
h2,h3,h4,h5,h6
|
|
46
46
|
color: var(--text-p0)
|
|
47
47
|
padding-top: 1rem
|
|
48
|
-
margin-bottom: .5rem
|
|
49
48
|
line-height: 1.8
|
|
50
49
|
&:hover
|
|
51
50
|
a.headerlink:before
|
|
52
51
|
opacity: 1
|
|
53
52
|
|
|
54
|
-
|
|
53
|
+
.md-text.content:first-child
|
|
54
|
+
padding-top: 0
|
|
55
55
|
|
|
56
56
|
.md-text
|
|
57
57
|
ul:not(:last-child),
|
|
@@ -129,7 +129,7 @@ h1.article-title
|
|
|
129
129
|
padding: 2px 0
|
|
130
130
|
text-decoration: none
|
|
131
131
|
line-height: 1.2
|
|
132
|
-
&:
|
|
132
|
+
&:before
|
|
133
133
|
content: ''
|
|
134
134
|
position: absolute
|
|
135
135
|
border-radius: 2px
|
|
@@ -143,9 +143,11 @@ h1.article-title
|
|
|
143
143
|
&:hover
|
|
144
144
|
border-bottom: none
|
|
145
145
|
color: var(--theme-link)
|
|
146
|
-
|
|
146
|
+
z-index 0
|
|
147
|
+
&:before
|
|
147
148
|
height: 100%
|
|
148
149
|
opacity: 0.2
|
|
150
|
+
z-index -1
|
|
149
151
|
bottom: 0
|
|
150
152
|
left: -2px
|
|
151
153
|
right: -2px
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
border-radius: $border-card
|
|
10
10
|
overflow: hidden
|
|
11
11
|
box-shadow: 0 2px 8px 0px rgba(0, 0, 0, 0.03)
|
|
12
|
-
.page-number
|
|
12
|
+
.page-number
|
|
13
13
|
padding: 4px 8px
|
|
14
14
|
border-radius: 8px
|
|
15
15
|
background: var(--block)
|
|
16
|
+
margin: 2px
|
|
16
17
|
.extend
|
|
17
18
|
text-align: center
|
|
18
19
|
background-size: contain
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.related-wrap
|
|
2
|
-
padding: 1rem
|
|
3
|
-
margin:
|
|
2
|
+
padding: 0 1rem
|
|
3
|
+
margin: 4rem 0
|
|
4
4
|
&:empty
|
|
5
5
|
display: none
|
|
6
6
|
section.header
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
border-radius: $border-block
|
|
18
18
|
color: var(--text-p1)
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
article.md-text.content+.related-wrap
|
|
21
|
+
margin-top: 0
|
|
21
22
|
|
|
22
23
|
.related-posts
|
|
23
24
|
max-width: 100%
|
|
@@ -82,7 +83,8 @@
|
|
|
82
83
|
|
|
83
84
|
|
|
84
85
|
.related-wrap#comments
|
|
85
|
-
|
|
86
|
+
padding: 0 1rem
|
|
87
|
+
.cmt-title
|
|
86
88
|
p
|
|
87
89
|
margin: 0
|
|
88
90
|
font-size: inherit
|
|
@@ -91,9 +93,9 @@
|
|
|
91
93
|
text-decoration: underline
|
|
92
94
|
&:hover
|
|
93
95
|
color: $color-hover
|
|
94
|
-
&:
|
|
96
|
+
&:before
|
|
95
97
|
display: none
|
|
96
|
-
|
|
98
|
+
.cmt-body
|
|
97
99
|
min-height: 150px
|
|
98
100
|
position: relative
|
|
99
101
|
svg.loading
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
nav.menu
|
|
6
6
|
margin: 1rem 0
|
|
7
7
|
background: var(--block)
|
|
8
|
+
border: 1px solid var(--block-border)
|
|
8
9
|
border-radius: 6px
|
|
9
10
|
display: flex
|
|
10
|
-
padding: 1px
|
|
11
11
|
flex-wrap: wrap
|
|
12
12
|
&::-webkit-scrollbar
|
|
13
13
|
display: none
|
|
@@ -28,7 +28,7 @@ nav.menu
|
|
|
28
28
|
text-align: center
|
|
29
29
|
&.active, &:hover
|
|
30
30
|
color: var(--text-p1)
|
|
31
|
-
background: var(--
|
|
31
|
+
background: var(--block-lighten)
|
|
32
32
|
box-shadow: $boxshadow-button
|
|
33
33
|
|
|
34
34
|
.l_left .menu a.nav-item
|
|
@@ -1,120 +1,106 @@
|
|
|
1
1
|
set_text_white()
|
|
2
2
|
--text-p0: white
|
|
3
3
|
--text-p1: white
|
|
4
|
-
--text-p2:
|
|
4
|
+
--text-p2: hsl(0 0 88%)
|
|
5
5
|
--text-p3: #ddd
|
|
6
6
|
--text-code: white
|
|
7
|
-
--card: $dark-card
|
|
8
|
-
--block: $dark-block
|
|
9
|
-
--block-border: lighten($dark-block, 6)
|
|
10
|
-
--block-hover: darken($dark-block, 4)
|
|
11
7
|
set_text_black()
|
|
12
8
|
--text-p0: black
|
|
13
9
|
--text-p1: #111
|
|
14
|
-
--text-p2:
|
|
10
|
+
--text-p2: hsl(0 0 12%)
|
|
15
11
|
--text-p3: #555
|
|
16
12
|
--text-code: white
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
--
|
|
20
|
-
--
|
|
13
|
+
|
|
14
|
+
set_dynamic_color($theme)
|
|
15
|
+
--theme: $theme
|
|
16
|
+
--theme-bg1: hsl(hue($theme), 90, 90)
|
|
17
|
+
--theme-bg2: hsl(hue($theme), 80, 95)
|
|
18
|
+
--theme-border: hsl(hue($theme), 50, 80)
|
|
19
|
+
--text-p0: hsl(hue($theme), 60, 16)
|
|
20
|
+
--text-p1: hsl(hue($theme), 50, 24)
|
|
21
|
+
--text-p2: hsl(hue($theme), 90, 24)
|
|
21
22
|
|
|
22
23
|
.tag-plugin
|
|
23
24
|
--theme: var(--text-p1)
|
|
24
25
|
--theme-border: var(--block-border)
|
|
25
|
-
--theme-
|
|
26
|
+
--theme-bg1: hsl(hue($color-theme), 90, 90)
|
|
27
|
+
--theme-bg2: var(--block)
|
|
28
|
+
&.tag
|
|
29
|
+
--text-p2: hsl(hue($color-theme), 90, 24)
|
|
26
30
|
|
|
27
31
|
.tag-plugin[color='red']
|
|
28
|
-
|
|
29
|
-
--theme-border: mix($c-red, white, 60)
|
|
30
|
-
--theme-bg: mix($c-red, white, 15)
|
|
31
|
-
|
|
32
|
+
set_dynamic_color($c-red)
|
|
32
33
|
.tag-plugin[color='orange']
|
|
33
|
-
|
|
34
|
-
--theme-border: mix($c-orange, white, 60)
|
|
35
|
-
--theme-bg: mix($c-orange, white, 15)
|
|
36
|
-
|
|
34
|
+
set_dynamic_color($c-orange)
|
|
37
35
|
.tag-plugin[color='yellow']
|
|
38
|
-
|
|
39
|
-
--theme-border: mix($c-yellow, white, 60)
|
|
40
|
-
--theme-bg: mix($c-yellow, white, 20)
|
|
41
|
-
|
|
36
|
+
set_dynamic_color($c-yellow)
|
|
42
37
|
.tag-plugin[color='green']
|
|
43
|
-
|
|
44
|
-
--theme-border: mix($c-green, white, 60)
|
|
45
|
-
--theme-bg: mix($c-green, white, 15)
|
|
46
|
-
|
|
38
|
+
set_dynamic_color($c-green)
|
|
47
39
|
.tag-plugin[color='cyan']
|
|
48
|
-
|
|
49
|
-
--theme-border: mix($c-cyan, white, 60)
|
|
50
|
-
--theme-bg: mix($c-cyan, white, 15)
|
|
51
|
-
|
|
40
|
+
set_dynamic_color($c-cyan)
|
|
52
41
|
.tag-plugin[color='blue']
|
|
53
|
-
|
|
54
|
-
--theme-border: mix($c-blue, white, 60)
|
|
55
|
-
--theme-bg: mix($c-blue, white, 15)
|
|
56
|
-
|
|
42
|
+
set_dynamic_color($c-blue)
|
|
57
43
|
.tag-plugin[color='purple']
|
|
58
|
-
|
|
59
|
-
--theme-border: mix($c-purple, white, 60)
|
|
60
|
-
--theme-bg: mix($c-purple, white, 15)
|
|
44
|
+
set_dynamic_color($c-purple)
|
|
61
45
|
|
|
62
46
|
.tag-plugin[color='light']
|
|
63
|
-
--theme-
|
|
47
|
+
--theme-bg1: hsl(0 0 88%)
|
|
48
|
+
--theme-bg2: white
|
|
49
|
+
set_text_black()
|
|
64
50
|
|
|
65
51
|
.tag-plugin[color='dark']
|
|
66
|
-
--theme-
|
|
52
|
+
--theme-bg1: hsl(0 0 12%)
|
|
53
|
+
--theme-bg2: #333
|
|
67
54
|
set_text_white()
|
|
68
55
|
|
|
69
56
|
.tag-plugin[color='warning']
|
|
70
57
|
--theme: $c-yellow
|
|
71
58
|
--theme-border: #ffe659
|
|
72
|
-
--theme-
|
|
59
|
+
--theme-bg2: #ffe659
|
|
73
60
|
--theme-link: #ff453a
|
|
74
61
|
|
|
75
62
|
.tag-plugin[color='error']
|
|
76
63
|
--theme: $c-yellow
|
|
77
64
|
--theme-border: #ff453a
|
|
78
|
-
--theme-
|
|
65
|
+
--theme-bg2: #ff453a
|
|
79
66
|
--theme-link: #ffe659
|
|
80
67
|
set_text_white()
|
|
81
68
|
|
|
82
69
|
set_darkmode_tags()
|
|
70
|
+
set_dynamic_color($theme)
|
|
71
|
+
--theme: $theme
|
|
72
|
+
--theme-bg1: hsl(hue($theme), 80, 20)
|
|
73
|
+
--theme-bg2: hsl(hue($theme), 16, 16)
|
|
74
|
+
--theme-border: hsl(hue($theme), 50, 24)
|
|
75
|
+
--text-p0: hsl(hue($theme), 80, 80)
|
|
76
|
+
--text-p1: hsl(hue($theme), 64, 80)
|
|
77
|
+
--text-p2: hsl(hue($theme), 80, 72)
|
|
78
|
+
.tag-plugin.tag
|
|
79
|
+
set_dynamic_color($color-theme)
|
|
83
80
|
.tag-plugin[color='red']
|
|
84
|
-
|
|
85
|
-
--theme-bg: mix($c-red, black, 35)
|
|
86
|
-
|
|
81
|
+
set_dynamic_color($c-red)
|
|
87
82
|
.tag-plugin[color='orange']
|
|
88
|
-
|
|
89
|
-
--theme-bg: mix($c-orange, black, 35)
|
|
90
|
-
|
|
83
|
+
set_dynamic_color($c-orange)
|
|
91
84
|
.tag-plugin[color='yellow']
|
|
92
|
-
|
|
93
|
-
--theme-bg: mix($c-yellow, black, 30)
|
|
94
|
-
|
|
85
|
+
set_dynamic_color($c-yellow)
|
|
95
86
|
.tag-plugin[color='green']
|
|
96
|
-
|
|
97
|
-
--theme-bg: mix($c-green, black, 30)
|
|
98
|
-
|
|
87
|
+
set_dynamic_color($c-green)
|
|
99
88
|
.tag-plugin[color='cyan']
|
|
100
|
-
|
|
101
|
-
--theme-bg: mix($c-cyan, black, 30)
|
|
102
|
-
|
|
89
|
+
set_dynamic_color($c-cyan)
|
|
103
90
|
.tag-plugin[color='blue']
|
|
104
|
-
|
|
105
|
-
--theme-bg: mix($c-blue, black, 35)
|
|
106
|
-
|
|
91
|
+
set_dynamic_color($c-blue)
|
|
107
92
|
.tag-plugin[color='purple']
|
|
108
|
-
|
|
109
|
-
--theme-bg: mix($c-purple, black, 40)
|
|
110
|
-
|
|
93
|
+
set_dynamic_color($c-purple)
|
|
111
94
|
.tag-plugin[color='light']
|
|
112
95
|
--theme-border: white
|
|
113
|
-
--theme-
|
|
96
|
+
--theme-bg1: hsl(0 0 88%)
|
|
97
|
+
--theme-bg2: #fff
|
|
98
|
+
set_text_black()
|
|
114
99
|
|
|
115
100
|
.tag-plugin[color='dark']
|
|
116
101
|
--theme-border: black
|
|
117
|
-
--theme-
|
|
102
|
+
--theme-bg1: hsl(0 0 12%)
|
|
103
|
+
--theme-bg2: #111
|
|
118
104
|
set_text_white()
|
|
119
105
|
|
|
120
106
|
.tag-plugin[color='warning'],.tag-plugin[color='light']
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
&:hover
|
|
31
31
|
color: var(--text-p0)
|
|
32
32
|
background: var(--block-hover)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
&:after
|
|
34
|
+
position: absolute
|
|
35
|
+
content: '+'
|
|
36
|
+
text-align: center
|
|
37
|
+
top: 50%
|
|
38
|
+
transform: translateY(-50%)
|
|
39
|
+
right: 1rem
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
.tag-plugin.folders details[open]
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
>summary
|
|
50
50
|
color: var(--text-p1)
|
|
51
51
|
background: var(--block-hover)
|
|
52
|
-
&:
|
|
52
|
+
&:after
|
|
53
53
|
content: '-'
|
|
54
54
|
|
|
55
55
|
>div.body
|
|
@@ -4,7 +4,7 @@ details.folding
|
|
|
4
4
|
margin: 1rem 0
|
|
5
5
|
border-radius: $border-block
|
|
6
6
|
font-size: $fs-14
|
|
7
|
-
background: var(--theme-
|
|
7
|
+
background: var(--theme-bg2)
|
|
8
8
|
border: 1px solid var(--theme-border)
|
|
9
9
|
summary
|
|
10
10
|
cursor: pointer
|
|
@@ -22,13 +22,13 @@ details.folding
|
|
|
22
22
|
border-bottom: none !important
|
|
23
23
|
&:hover
|
|
24
24
|
color: var(--text-p0)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
&:after
|
|
26
|
+
position: absolute
|
|
27
|
+
content: '+'
|
|
28
|
+
text-align: center
|
|
29
|
+
top: 50%
|
|
30
|
+
transform: translateY(-50%)
|
|
31
|
+
right: 1rem
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
details.folding[open]
|
|
@@ -38,9 +38,8 @@ details.folding[open]
|
|
|
38
38
|
border-bottom-right-radius: 0
|
|
39
39
|
color: var(--text-p1)
|
|
40
40
|
margin-bottom: 0
|
|
41
|
-
&:
|
|
42
|
-
|
|
43
|
-
content: '-'
|
|
41
|
+
&:after
|
|
42
|
+
content: '-'
|
|
44
43
|
>div.body
|
|
45
44
|
display: flex;
|
|
46
45
|
flex-direction: column;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.tag-plugin.
|
|
1
|
+
.tag-plugin.grid
|
|
2
2
|
display: grid
|
|
3
3
|
grid-gap: 16px
|
|
4
4
|
grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 16px)
|
|
5
5
|
>.cell
|
|
6
6
|
margin: 1rem 0
|
|
7
7
|
p:first-child>strong:only-child
|
|
8
|
-
font-size:
|
|
8
|
+
font-size: 1rem
|
|
9
9
|
>.cell>
|
|
10
10
|
p
|
|
11
11
|
line-height: 1.5
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
margin-bottom: -0.25em
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
.tag-plugin.
|
|
22
|
+
.tag-plugin.grid
|
|
23
23
|
@media screen and (max-width: $device-tablet)
|
|
24
24
|
display: block
|
|
25
25
|
|
|
26
|
-
.tag-plugin.
|
|
26
|
+
.tag-plugin.grid
|
|
27
27
|
&[bg]>.cell
|
|
28
28
|
padding: 1rem
|
|
29
29
|
border-radius: $border-card
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.md-text .tag-plugin.mark
|
|
2
2
|
padding: 0 1px
|
|
3
3
|
border-radius: 2px
|
|
4
|
-
background: var(--theme-
|
|
4
|
+
background: var(--theme-bg2)
|
|
5
5
|
border: 1px solid var(--theme-border)
|
|
6
6
|
color: var(--text-p0)
|
|
7
7
|
&[color=dark]
|
|
8
|
-
border-color: var(--theme-
|
|
8
|
+
border-color: var(--theme-bg2)
|
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
margin-bottom: 1rem
|
|
5
5
|
padding: 0 1rem
|
|
6
6
|
border-radius: $border-block
|
|
7
|
-
background: var(--theme-
|
|
7
|
+
background: var(--theme-bg2)
|
|
8
8
|
border: 1px solid var(--theme-border)
|
|
9
9
|
color: var(--text-p1)
|
|
10
10
|
>.title
|
|
11
11
|
font-size: $fs-15
|
|
12
12
|
line-height: 1.2
|
|
13
13
|
margin-top: 1rem
|
|
14
|
+
font-weight: 500
|
|
15
|
+
color: var(--text-p0)
|
|
14
16
|
>.body
|
|
15
17
|
&,p
|
|
16
18
|
font-size: $fs-14
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
.md-text .tag-plugin.poetry
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
display: flex
|
|
3
|
+
flex-direction: column
|
|
4
|
+
align-items: center
|
|
5
|
+
.content
|
|
6
|
+
>.title
|
|
7
|
+
font-weight: 500
|
|
8
|
+
font-size: 1rem
|
|
9
|
+
margin-top: var(--gap-p)
|
|
10
|
+
>.meta
|
|
11
|
+
color: var(--text-p2)
|
|
12
|
+
font-size: $fs-12
|
|
13
|
+
font-weight: 500
|
|
14
|
+
span+span
|
|
15
|
+
margin-left: 4px
|
|
16
|
+
>.body
|
|
17
|
+
margin: var(--gap-p) 0
|
|
18
|
+
border-top: 1px dashed var(--block-border)
|
|
19
|
+
border-bottom: 1px dashed var(--block-border)
|
|
20
|
+
p
|
|
21
|
+
font-size: $fs-14
|
|
22
|
+
>.footer
|
|
23
|
+
font-style: italic
|
|
24
|
+
color: var(--text-p4)
|
|
25
|
+
margin: var(--gap-p) 0
|
|
26
|
+
font-size: $fs-12
|
|
26
27
|
|
|
27
28
|
// 描边修饰
|
|
28
|
-
.md-text .tag-plugin.poetry
|
|
29
|
+
.md-text .tag-plugin.poetry .content
|
|
29
30
|
padding-left: 1rem
|
|
30
31
|
position: relative
|
|
31
32
|
&:before
|