hexo-theme-solitude 2.0.3 → 2.0.5
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/.github/FUNDING.yml +3 -3
- package/.github/ISSUE_TEMPLATE/config.yml +1 -5
- package/README.md +35 -31
- package/README_zh-Hans.md +25 -21
- package/README_zh-Hant.md +28 -24
- package/SECURITY.md +1 -1
- package/_config.yml +453 -306
- package/languages/default.yml +13 -13
- package/languages/en.yml +14 -13
- package/layout/archive.pug +11 -4
- package/layout/includes/footer.pug +6 -5
- package/layout/includes/inject/body.pug +4 -4
- package/layout/includes/loading.pug +14 -2
- package/layout/includes/widgets/home/categoryBar.pug +2 -1
- package/package.json +8 -5
- package/scripts/event/merge_config.js +1 -0
- package/scripts/filter/post_image.js +0 -1
- package/scripts/helper/stylus.js +1 -1
- package/scripts/tags/mermaid.js +1 -1
- package/scripts/tags/tabs.js +11 -15
- package/source/css/_layout/aside.styl +1 -1
- package/source/css/_layout/header.styl +22 -15
- package/source/css/_tags/mermaid.styl +1 -1
- package/source/css/_tags/tabs.styl +1 -1
- package/source/css/var.styl +1 -1
- package/source/js/main.js +3 -2
- package/.github/persona.avif +0 -0
- package/scripts/tags/btns.js +0 -35
- package/scripts/tags/button.js +0 -21
- package/scripts/tags/bvideo.js +0 -7
- package/scripts/tags/checkbox.js +0 -51
- package/scripts/tags/fold.js +0 -13
- package/scripts/tags/image.js +0 -75
- package/scripts/tags/inline-image.js +0 -12
- package/scripts/tags/label.js +0 -10
- package/scripts/tags/link.js +0 -50
- package/scripts/tags/media.js +0 -29
- package/scripts/tags/note.js +0 -13
- package/scripts/tags/span.js +0 -17
- package/scripts/tags/timeline.js +0 -22
- package/source/css/_tags/btns.styl +0 -212
- package/source/css/_tags/button.styl +0 -40
- package/source/css/_tags/checkbox.styl +0 -204
- package/source/css/_tags/fold.styl +0 -65
- package/source/css/_tags/image.styl +0 -4
- package/source/css/_tags/index.styl +0 -63
- package/source/css/_tags/label.styl +0 -4
- package/source/css/_tags/link.styl +0 -59
- package/source/css/_tags/media.styl +0 -57
- package/source/css/_tags/note.styl +0 -104
- package/source/css/_tags/span.styl +0 -34
- package/source/css/_tags/timeline.styl +0 -82
@@ -1,65 +0,0 @@
|
|
1
|
-
details
|
2
|
-
display: block
|
3
|
-
position: relative
|
4
|
-
margin-bottom: 1rem
|
5
|
-
min-height: 54px
|
6
|
-
overflow: hidden
|
7
|
-
border-radius: 12px
|
8
|
-
border: var(--style-border)
|
9
|
-
transition: border .3s
|
10
|
-
details:hover
|
11
|
-
border: var(--style-border-hover-always)
|
12
|
-
details summary
|
13
|
-
position: absolute
|
14
|
-
padding: .5rem 1rem
|
15
|
-
background: var(--efu-card-bg)
|
16
|
-
margin: 0
|
17
|
-
transition: .3s
|
18
|
-
box-shadow: var(--efu-shadow-border)
|
19
|
-
left: 0
|
20
|
-
width: 100%
|
21
|
-
font-weight: 700
|
22
|
-
white-space: nowrap
|
23
|
-
overflow: hidden
|
24
|
-
text-overflow: ellipsis
|
25
|
-
details>:nth-child(2)
|
26
|
-
margin-top: calc(54px + 1rem)!important
|
27
|
-
details[open] summary
|
28
|
-
background: var(--efu-lighttext)
|
29
|
-
color: var(--efu-card-bg)
|
30
|
-
details summary::before
|
31
|
-
content: ''
|
32
|
-
padding: 4px
|
33
|
-
details summary:hover
|
34
|
-
cursor: pointer
|
35
|
-
background: var(--efu-lighttext)
|
36
|
-
color: var(--efu-card-bg)
|
37
|
-
transition: .3s
|
38
|
-
box-shadow: var(--efu-shadow-main)
|
39
|
-
details summary:focus
|
40
|
-
outline: 0
|
41
|
-
details summary::marker
|
42
|
-
color: var(--efu-lighttext)
|
43
|
-
transition: .3s
|
44
|
-
details[open] summary::marker
|
45
|
-
color: var(--efu-card-bg)
|
46
|
-
details summary:hover::marker
|
47
|
-
color: var(--efu-card-bg)
|
48
|
-
details[open]
|
49
|
-
border-radius: 12px
|
50
|
-
border: var(--style-border-hover-always)
|
51
|
-
padding: 0 1.5rem
|
52
|
-
background: var(--efu-card-bg)
|
53
|
-
details summary:hover:after
|
54
|
-
position: absolute
|
55
|
-
content: '+'
|
56
|
-
text-align: center
|
57
|
-
top: calc(50% - 2px)
|
58
|
-
transform: translateY(-50%)
|
59
|
-
right: 16px
|
60
|
-
line-height: 1
|
61
|
-
details[open]>summary:hover:after
|
62
|
-
content: '-'
|
63
|
-
@media screen and (max-width: 768px)
|
64
|
-
details[open]
|
65
|
-
padding:0 16px
|
@@ -1,63 +0,0 @@
|
|
1
|
-
.red
|
2
|
-
color var(--efu-red)
|
3
|
-
|
4
|
-
.green
|
5
|
-
color var(--efu-green)
|
6
|
-
|
7
|
-
.blue
|
8
|
-
color var(--efu-blue)
|
9
|
-
|
10
|
-
.yellow
|
11
|
-
color var(--efu-yellow)
|
12
|
-
|
13
|
-
.pink
|
14
|
-
color var(--efu-pink)
|
15
|
-
|
16
|
-
.purple
|
17
|
-
color var(--efu-purple)
|
18
|
-
|
19
|
-
.orange
|
20
|
-
color var(--efu-orange)
|
21
|
-
|
22
|
-
.bg-red
|
23
|
-
background-color var(--efu-red)
|
24
|
-
color var(--efu-white)
|
25
|
-
|
26
|
-
.bg-green
|
27
|
-
background-color var(--efu-green)
|
28
|
-
color var(--efu-white)
|
29
|
-
|
30
|
-
.bg-blue
|
31
|
-
background-color var(--efu-blue)
|
32
|
-
color var(--efu-white)
|
33
|
-
|
34
|
-
.bg-yellow
|
35
|
-
background-color var(--efu-yellow)
|
36
|
-
|
37
|
-
.bg-pink
|
38
|
-
background-color var(--efu-pink)
|
39
|
-
color var(--efu-white)
|
40
|
-
|
41
|
-
.bg-purple
|
42
|
-
background-color var(--efu-purple)
|
43
|
-
color var(--efu-white)
|
44
|
-
|
45
|
-
.bg-orange
|
46
|
-
background-color var(--efu-orange)
|
47
|
-
color var(--efu-white)
|
48
|
-
|
49
|
-
.block
|
50
|
-
display block
|
51
|
-
|
52
|
-
.center
|
53
|
-
margin 0 auto
|
54
|
-
|
55
|
-
.right
|
56
|
-
margin-left auto
|
57
|
-
|
58
|
-
.larger
|
59
|
-
font-size 1.5rem
|
60
|
-
margin 5px
|
61
|
-
|
62
|
-
i
|
63
|
-
transform scale(1.5)
|
@@ -1,59 +0,0 @@
|
|
1
|
-
#article-container
|
2
|
-
a.tag-link
|
3
|
-
background var(--efu-secondbg)
|
4
|
-
border-radius 8px !important
|
5
|
-
display flex
|
6
|
-
border var(--style-border)
|
7
|
-
flex-direction column
|
8
|
-
padding 0.5rem 1rem
|
9
|
-
border-width 1px
|
10
|
-
margin 1rem 0
|
11
|
-
|
12
|
-
&:hover
|
13
|
-
background var(--efu-main)
|
14
|
-
border var(--style-border-hover) !important
|
15
|
-
|
16
|
-
.tag-link-tips
|
17
|
-
color var(--efu-white)
|
18
|
-
|
19
|
-
i
|
20
|
-
opacity 1
|
21
|
-
|
22
|
-
i
|
23
|
-
transition .3s
|
24
|
-
margin-left auto
|
25
|
-
opacity .6
|
26
|
-
|
27
|
-
.tag-link-bottom
|
28
|
-
display flex
|
29
|
-
margin-top 0.5rem
|
30
|
-
align-items center
|
31
|
-
justify-content space-around
|
32
|
-
|
33
|
-
.tag-link-left
|
34
|
-
width 60px
|
35
|
-
min-width 60px
|
36
|
-
height 60px
|
37
|
-
background-size cover
|
38
|
-
border-radius 8px
|
39
|
-
background-color var(--efu-card-bg)
|
40
|
-
display flex
|
41
|
-
align-items center
|
42
|
-
justify-content center
|
43
|
-
|
44
|
-
i
|
45
|
-
padding 0
|
46
|
-
margin auto
|
47
|
-
font-size 24px
|
48
|
-
color var(--efu-fontcolor)
|
49
|
-
|
50
|
-
.tag-link-right
|
51
|
-
margin-left 1rem
|
52
|
-
max-width calc(100% - 76px - 1rem)
|
53
|
-
|
54
|
-
.tag-link-tips
|
55
|
-
border-bottom var(--style-border)
|
56
|
-
padding-bottom 4px
|
57
|
-
font-size 12px
|
58
|
-
color var(--efu-gray)
|
59
|
-
font-weight 400
|
@@ -1,57 +0,0 @@
|
|
1
|
-
trans($time = 0.28s)
|
2
|
-
transition: all $time ease
|
3
|
-
-moz-transition: all $time ease
|
4
|
-
-webkit-transition: all $time ease
|
5
|
-
-o-transition: all $time ease
|
6
|
-
|
7
|
-
audio,video
|
8
|
-
border-radius: 4px
|
9
|
-
max-width: 100%
|
10
|
-
video
|
11
|
-
z-index: 1
|
12
|
-
trans()
|
13
|
-
&:hover
|
14
|
-
box-shadow: 0 4px 8px 0px rgba(0, 0, 0, 0.24), 0 8px 16px 0px rgba(0, 0, 0, 0.24)
|
15
|
-
|
16
|
-
div.video
|
17
|
-
line-height: 0
|
18
|
-
text-align: center
|
19
|
-
|
20
|
-
div.videos
|
21
|
-
max-width: "calc(100% + 2 * %s)" % 4px
|
22
|
-
display: flex
|
23
|
-
flex-wrap: wrap
|
24
|
-
justify-content: flex-start
|
25
|
-
align-items: flex-end
|
26
|
-
margin: 1em 0 - 4px
|
27
|
-
.video,iframe
|
28
|
-
width: 100%
|
29
|
-
margin: 4px
|
30
|
-
|
31
|
-
iframe
|
32
|
-
border-radius: 4px
|
33
|
-
width: 100%
|
34
|
-
min-height: 300px
|
35
|
-
&.left
|
36
|
-
justify-content: flex-start
|
37
|
-
&.center
|
38
|
-
justify-content: center
|
39
|
-
&.right
|
40
|
-
justify-content: flex-end
|
41
|
-
&.stretch
|
42
|
-
align-items: stretch
|
43
|
-
&[col='1']
|
44
|
-
.video,iframe
|
45
|
-
width: 100%
|
46
|
-
&[col='2']
|
47
|
-
.video,iframe
|
48
|
-
width: "calc(50% - 2 * %s)" % 4px
|
49
|
-
&[col='3']
|
50
|
-
.video,iframe
|
51
|
-
width: "calc(33.33% - 2 * %s)" % 4px
|
52
|
-
&[col='4']
|
53
|
-
.video,iframe
|
54
|
-
width: "calc(25% - 2 * %s)" % 4px
|
55
|
-
[data-theme="dark"]
|
56
|
-
audio,video
|
57
|
-
filter brightness(0.7)
|
@@ -1,104 +0,0 @@
|
|
1
|
-
$colors = {
|
2
|
-
info: #428bca,
|
3
|
-
danger: #d9534f,
|
4
|
-
primary: #6f42c1,
|
5
|
-
warning: #f0ad4e,
|
6
|
-
success: #5cb85c,
|
7
|
-
default: #777
|
8
|
-
}
|
9
|
-
|
10
|
-
.note
|
11
|
-
position relative
|
12
|
-
margin .5rem 0
|
13
|
-
padding 15px
|
14
|
-
border-radius 3px
|
15
|
-
|
16
|
-
&.default:not(.no-icon)::before
|
17
|
-
content: '\e0a9'
|
18
|
-
|
19
|
-
&.info:not(.no-icon)::before
|
20
|
-
content: '\e0a7'
|
21
|
-
|
22
|
-
&.danger:not(.no-icon)::before
|
23
|
-
content: '\e0aa'
|
24
|
-
|
25
|
-
&.primary:not(.no-icon)::before
|
26
|
-
content: '\e0a8'
|
27
|
-
|
28
|
-
&.warning:not(.no-icon)::before
|
29
|
-
content: '\e0a5'
|
30
|
-
|
31
|
-
&.success:not(.no-icon)::before
|
32
|
-
content: '\e0a4'
|
33
|
-
|
34
|
-
&::before
|
35
|
-
font-family 'solitude'
|
36
|
-
|
37
|
-
&.icon
|
38
|
-
padding-left 2.25rem
|
39
|
-
|
40
|
-
> .note-icon
|
41
|
-
position absolute
|
42
|
-
top calc(50% - .4rem)
|
43
|
-
left .7rem
|
44
|
-
font-size larger
|
45
|
-
|
46
|
-
a
|
47
|
-
color inherit !important
|
48
|
-
&:hover
|
49
|
-
color var(--efu-white) !important
|
50
|
-
|
51
|
-
for $color, $value in $colors
|
52
|
-
&.{$color}:not(.no-icon)::before
|
53
|
-
color $value
|
54
|
-
&.{$color}:not(.disabled)
|
55
|
-
border-left-color $value
|
56
|
-
|
57
|
-
&.modern
|
58
|
-
color $value
|
59
|
-
|
60
|
-
&:not(.simple)
|
61
|
-
background lighten($value, 75%)
|
62
|
-
|
63
|
-
> .note-icon
|
64
|
-
color $value
|
65
|
-
|
66
|
-
&.simple
|
67
|
-
border-width 1px 1px 1px 5px
|
68
|
-
border-style solid
|
69
|
-
border-color #eee
|
70
|
-
border-image initial
|
71
|
-
|
72
|
-
&.modern
|
73
|
-
background-color #f5f5f5
|
74
|
-
color #4c4948
|
75
|
-
border 1px solid transparent !important
|
76
|
-
|
77
|
-
&.flat
|
78
|
-
border initial
|
79
|
-
border-image initial
|
80
|
-
border-left 5px solid #eee
|
81
|
-
background-color #f9f9f9
|
82
|
-
color #4c4948
|
83
|
-
|
84
|
-
h2, h3, h4, h5, h6
|
85
|
-
margin-top 3px
|
86
|
-
margin-bottom 0
|
87
|
-
border-bottom initial
|
88
|
-
padding-top 0
|
89
|
-
|
90
|
-
blockquote:first-child, img:first-child, ol:first-child, p:first-child, pre:first-child, table:first-child, ul:first-child
|
91
|
-
margin-top 0 !important
|
92
|
-
|
93
|
-
blockquote:last-child, img:last-child, ol:last-child, p:last-child, pre:last-child, table:last-child, ul:last-child
|
94
|
-
margin-bottom 0 !important
|
95
|
-
font-size 14px !important
|
96
|
-
|
97
|
-
&:not(.no-icon)
|
98
|
-
padding-left 2.25rem
|
99
|
-
|
100
|
-
&::before
|
101
|
-
position absolute
|
102
|
-
top calc(50% - 19px)
|
103
|
-
left .7rem
|
104
|
-
font-size larger
|
@@ -1,34 +0,0 @@
|
|
1
|
-
#article-container
|
2
|
-
.p
|
3
|
-
&.left
|
4
|
-
text-align left
|
5
|
-
|
6
|
-
&.center
|
7
|
-
text-align center
|
8
|
-
|
9
|
-
&.right
|
10
|
-
text-align right
|
11
|
-
|
12
|
-
&.small
|
13
|
-
font-size .5rem
|
14
|
-
|
15
|
-
&.h1
|
16
|
-
font-size 2.5rem
|
17
|
-
|
18
|
-
&.h2
|
19
|
-
font-size 1.625rem
|
20
|
-
|
21
|
-
&.h3
|
22
|
-
font-size 1.375rem
|
23
|
-
|
24
|
-
&.h4
|
25
|
-
font-size 1.125rem
|
26
|
-
|
27
|
-
&.large
|
28
|
-
font-size 1.5rem
|
29
|
-
|
30
|
-
&.huge
|
31
|
-
font-size 4rem
|
32
|
-
|
33
|
-
&.ultra
|
34
|
-
font-size 6rem
|
@@ -1,82 +0,0 @@
|
|
1
|
-
div.timenode
|
2
|
-
position relative
|
3
|
-
|
4
|
-
&:before,
|
5
|
-
&:after
|
6
|
-
content ''
|
7
|
-
z-index 1
|
8
|
-
position absolute
|
9
|
-
background var(--efu-theme)
|
10
|
-
width 2px
|
11
|
-
left 7px
|
12
|
-
|
13
|
-
&:before
|
14
|
-
top 0
|
15
|
-
height 6px
|
16
|
-
|
17
|
-
&:after
|
18
|
-
top 26px
|
19
|
-
height 100%
|
20
|
-
|
21
|
-
&:last-child:after
|
22
|
-
height calc(100% - 26px - 16px)
|
23
|
-
border-bottom-left-radius 2px
|
24
|
-
border-bottom-right-radius 2px
|
25
|
-
|
26
|
-
.meta
|
27
|
-
position relative
|
28
|
-
line-height 32px
|
29
|
-
height 32px
|
30
|
-
left 27px
|
31
|
-
|
32
|
-
&:before,
|
33
|
-
&:after
|
34
|
-
content ''
|
35
|
-
position absolute
|
36
|
-
top 8px
|
37
|
-
z-index 2
|
38
|
-
left -27px
|
39
|
-
|
40
|
-
&:before
|
41
|
-
background var(--efu-theme)
|
42
|
-
width 16px
|
43
|
-
height 16px
|
44
|
-
border-radius 8px
|
45
|
-
|
46
|
-
&:after
|
47
|
-
background var(--efu-card-bg)
|
48
|
-
margin-left 2px
|
49
|
-
margin-top 2px
|
50
|
-
width 12px
|
51
|
-
height 12px
|
52
|
-
border-radius 6px
|
53
|
-
transform scale(0.5)
|
54
|
-
transition all 0.28s ease
|
55
|
-
|
56
|
-
p
|
57
|
-
font-weight 500
|
58
|
-
margin 0 0 0 24px
|
59
|
-
|
60
|
-
.body
|
61
|
-
margin 4px 0 16px 24px
|
62
|
-
padding 16px
|
63
|
-
border-radius 8px
|
64
|
-
background var(--blockquote-bg)
|
65
|
-
|
66
|
-
p
|
67
|
-
margin 0 !important
|
68
|
-
|
69
|
-
p:first-child
|
70
|
-
margin-top 0
|
71
|
-
|
72
|
-
p:last-child
|
73
|
-
margin-bottom 0
|
74
|
-
|
75
|
-
&:hover
|
76
|
-
.meta
|
77
|
-
&:before
|
78
|
-
background var(--efu-theme)
|
79
|
-
|
80
|
-
&:after
|
81
|
-
background var(--efu-theme-op)
|
82
|
-
transform scale(1)
|