hexo-theme-solitude 1.5.4 → 1.5.6

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.
Files changed (61) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +7 -6
  2. package/.github/ISSUE_TEMPLATE/feature_request.yml +1 -1
  3. package/README.md +23 -23
  4. package/{README_EN.md → README_zh-cn.md} +23 -23
  5. package/README_zh-tw.md +2 -2
  6. package/_config.yml +0 -12
  7. package/languages/en.yml +9 -6
  8. package/languages/zh-CN.yml +9 -6
  9. package/languages/zh-TW.yml +9 -6
  10. package/layout/includes/head/config.pug +9 -6
  11. package/layout/includes/inject/body.pug +7 -6
  12. package/layout/includes/inject/head.pug +1 -1
  13. package/layout/includes/page/music.pug +2 -12
  14. package/layout/includes/widgets/page/about/personalities.pug +1 -1
  15. package/layout/includes/widgets/post/copyright.pug +0 -2
  16. package/layout/page.pug +0 -4
  17. package/package.json +1 -1
  18. package/plugins.yml +0 -4
  19. package/scripts/event/cdn.js +6 -1
  20. package/scripts/tags/button.js +1 -1
  21. package/scripts/tags/bvideo.js +2 -2
  22. package/scripts/tags/gallery.js +54 -0
  23. package/scripts/tags/image.js +1 -1
  24. package/scripts/tags/link.js +6 -3
  25. package/scripts/tags/note.js +6 -0
  26. package/source/css/_global/function.styl +4 -0
  27. package/source/css/_page/_gallery/index.styl +0 -66
  28. package/source/css/_page/_home/home-top.styl +1 -1
  29. package/source/css/_page/music.styl +9 -9
  30. package/source/css/_page/share.styl +2 -2
  31. package/source/css/_widgets/_post/content.styl +7 -0
  32. package/source/css/_widgets/_post/copyright.styl +0 -18
  33. package/source/css/_widgets/_tags/button.styl +29 -49
  34. package/source/css/_widgets/_tags/checkbox.styl +176 -57
  35. package/source/css/_widgets/_tags/fold.styl +65 -79
  36. package/source/css/_widgets/_tags/gallery.styl +67 -0
  37. package/source/css/_widgets/_tags/index.styl +32 -30
  38. package/source/css/_widgets/_tags/label.styl +4 -3
  39. package/source/css/_widgets/_tags/link.styl +48 -77
  40. package/source/css/_widgets/_tags/media.styl +57 -0
  41. package/source/css/_widgets/_tags/mermaid.styl +1 -2
  42. package/source/css/_widgets/_tags/note.styl +1 -7
  43. package/source/css/_widgets/_tags/span.styl +24 -51
  44. package/source/css/_widgets/_tags/tabs.styl +3 -1
  45. package/source/css/_widgets/index.styl +1 -1
  46. package/source/js/covercolor/api.js +16 -16
  47. package/source/js/covercolor/local.js +16 -16
  48. package/source/js/lately.min.js +6 -0
  49. package/source/js/main.js +2 -33
  50. package/source/js/music.js +91 -139
  51. package/source/js/utils.js +6 -0
  52. package/layout/includes/page/album.pug +0 -38
  53. package/layout/includes/page/gallery.pug +0 -11
  54. package/scripts/generator/gallery.js +0 -49
  55. package/scripts/tags/card.js +0 -9
  56. package/scripts/tags/u.js +0 -7
  57. package/source/css/_widgets/_tags/bvideo.styl +0 -8
  58. package/source/css/_widgets/_tags/card.styl +0 -52
  59. package/source/css/_widgets/_tags/image.styl +0 -10
  60. package/source/css/_widgets/_tags/inline-image.styl +0 -6
  61. /package/.github/workflows/{npm-publish-github-packages.yml → publish.yml} +0 -0
@@ -1,79 +1,65 @@
1
- details:not(.tk-admin-config-group)
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
-
11
- &:hover
12
- border var(--style-border-hover-always)
13
-
14
- summary
15
- position absolute
16
- padding .5rem 1rem
17
- background var(--efu-card-bg)
18
- margin 0
19
- transition .3s
20
- box-shadow var(--efu-shadow-border)
21
- left 0
22
- width 100%
23
- font-weight 700
24
- white-space nowrap
25
- overflow hidden
26
- text-overflow ellipsis
27
-
28
- &::before
29
- content ''
30
- padding 4px
31
-
32
- &:hover
33
- cursor pointer
34
- background var(--efu-main)
35
- color var(--efu-white)
36
- transition .3s
37
- box-shadow var(--efu-shadow-main)
38
-
39
- &:focus
40
- outline 0
41
-
42
- &::marker
43
- color var(--efu-main)
44
- transition .3s
45
-
46
- &:hover::marker
47
- color var(--efu-white)
48
-
49
- &:hover:after
50
- position absolute
51
- content '+'
52
- text-align center
53
- top calc(50% - 2px)
54
- transform translateY(-50%)
55
- right 16px
56
- line-height 1
57
-
58
- > :nth-child(2)
59
- margin-top calc(54px + 1rem) !important
60
-
61
- &[open]
62
- border-radius 12px
63
- border var(--style-border-hover-always)
64
- padding 0 1.5rem
65
- background var(--efu-card-bg)
66
-
67
- summary
68
- background var(--efu-main)
69
- color var(--efu-white)
70
-
71
- &::marker
72
- color var(--efu-white)
73
-
74
- &:hover:after
75
- content '-'
76
-
77
- +maxWidth768()
78
- details[open]:not(.tk-admin-config-group)
79
- padding 0 16px
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
@@ -0,0 +1,67 @@
1
+ #article-container
2
+ .gallery-item
3
+ overflow hidden
4
+ border var(--style-border-always)
5
+ border-radius 12px
6
+ position relative
7
+ display inline-flex
8
+ height 250px
9
+ width calc(100% / 2 - 16px)
10
+ cursor pointer
11
+ margin-bottom 10px
12
+ user-select none
13
+
14
+ +maxWidth768()
15
+ width 100%
16
+
17
+ &:hover
18
+ .cover
19
+ filter brightness(0.5)
20
+ transition all .3s
21
+ transform scale(1.1)
22
+
23
+ .title::after
24
+ width 100%
25
+ transition all .3s
26
+
27
+ .desc
28
+ left 10%
29
+ transition left .35s
30
+ text-wrap unset
31
+
32
+ .cover
33
+ width 100%
34
+ object-fit cover
35
+ transition all 0.3s
36
+ margin 0
37
+ max-width 100%
38
+
39
+ .title
40
+ position absolute
41
+ top 10%
42
+ left 10%
43
+ font-weight 700
44
+ font-size 32px
45
+ color var(--efu-white)
46
+
47
+ &::after
48
+ top 55px
49
+ width 0
50
+ left 0
51
+ height 2px
52
+ background var(--efu-white)
53
+ content ""
54
+ border-radius 1px
55
+ position absolute
56
+ transition all .3s
57
+
58
+ .desc
59
+ position absolute
60
+ top 35%
61
+ left 100%
62
+ width 80%
63
+ color var(--efu-white)
64
+ font-size 1.1em
65
+ transition left .35s
66
+ letter-spacing 1px
67
+ text-wrap break-word
@@ -1,3 +1,24 @@
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
+
1
22
  .bg-red
2
23
  background-color var(--efu-red)
3
24
  color var(--efu-white)
@@ -25,37 +46,18 @@
25
46
  background-color var(--efu-orange)
26
47
  color var(--efu-white)
27
48
 
28
- .bg-cyan
29
- background-color var(--efu-cyan)
30
- color var(--efu-white)
49
+ .block
50
+ display block
31
51
 
32
- .bg-gray
33
- background-color var(--efu-gray)
34
- color var(--efu-white)
35
-
36
- .red
37
- color var(--efu-red)
52
+ .center
53
+ margin 0 auto
38
54
 
39
- .green
40
- color var(--efu-green)
41
-
42
- .blue
43
- color var(--efu-blue)
44
-
45
- .yellow
46
- color var(--efu-yellow)
47
-
48
- .pink
49
- color var(--efu-pink)
50
-
51
- .purple
52
- color var(--efu-purple)
53
-
54
- .orange
55
- color var(--efu-orange)
55
+ .right
56
+ margin-left auto
56
57
 
57
- .cyan
58
- color var(--efu-cyan)
58
+ .larger
59
+ font-size 1.5rem
60
+ margin 5px
59
61
 
60
- .gray
61
- color var(--efu-gray)
62
+ i
63
+ transform scale(1.5)
@@ -1,3 +1,4 @@
1
- .hl-label
2
- padding 2px 4px
3
- border-radius 3px
1
+ #article-container
2
+ .hl-label
3
+ padding 2px 4px
4
+ border-radius 3px
@@ -1,83 +1,54 @@
1
- #article-container .tag-Link
2
- background var(--efu-secondbg)
3
- border-radius 8px !important
4
- display flex
5
- border var(--style-border)
6
- flex-direction column
7
- padding .3rem 1rem .6rem
8
- border-width 1px !important
9
- margin-top 1rem
10
-
11
- &:hover
12
- color var(--efu-main) !important
13
- border var(--style-border-hover) !important
14
-
15
- .tag-link-tips
16
- border-bottom var(--style-border-always)
17
- padding-bottom 4px
18
- font-size .6rem
19
- color var(--efu-gray)
20
- font-weight 400
21
- pointer-events none
22
-
23
- &:hover .tag-link-tips
24
- color var(--efu-card-bg)
25
- opacity .6
26
-
27
- .tag-link-bottom
1
+ #article-container
2
+ .tag-link
3
+ background var(--efu-secondbg)
4
+ border-radius 8px !important
28
5
  display flex
29
- margin-top .5rem
30
- align-items center
31
- justify-content space-around
32
- pointer-events none
6
+ border var(--style-border)
7
+ flex-direction column
8
+ padding 0.5rem 1rem
9
+ border-width 1px
10
+ margin 1rem 0
33
11
 
34
- .tag-link-left
35
- width 60px
36
- min-width 60px
37
- height 60px
38
- background-size cover !important
39
- border-radius 8px
40
- background var(--efu-card-bg)
41
- pointer-events none
42
- display flex
43
-
44
- i
45
- padding 0
46
- margin auto
47
- font-size 24px
48
- color var(--efu-fontcolor)
12
+ &:hover
13
+ background var(--efu-main)
14
+ border var(--style-border-hover) !important
49
15
 
50
- .tag-link-right
51
- margin-left 1rem
52
- pointer-events none
16
+ .tag-link-tips
17
+ color var(--efu-card-bg)
53
18
 
54
- .tag-link-title
55
- font-size 16px
56
- line-height 1.2
57
- pointer-events none
58
- word-break break-all
59
- text-overflow ellipsis
60
- display -webkit-box
61
- -webkit-box-orient vertical
62
- -webkit-line-clamp 2
63
- overflow hidden
19
+ i
20
+ margin-left auto
64
21
 
65
- .tag-link-sitename
66
- font-size .7rem
67
- color var(--efu-gray)
68
- font-weight 400
69
- margin-top 8px
70
- pointer-events none
71
- line-height 1
72
- overflow hidden
73
- text-overflow ellipsis
74
- white-space nowrap
75
-
76
- &:hover .tag-link-bottom .tag-link-right .tag-link-sitename
77
- color var(--efu-card-bg)
78
- opacity .6
22
+ .tag-link-bottom
23
+ display flex
24
+ margin-top 0.5rem
25
+ align-items center
26
+ justify-content space-around
27
+
28
+ .tag-link-left
29
+ width 60px
30
+ min-width 60px
31
+ height 60px
32
+ background-size cover
33
+ border-radius 8px
34
+ background-color var(--efu-card-bg)
35
+ display flex
36
+ align-items center
37
+ justify-content center
38
+
39
+ i
40
+ padding 0
41
+ margin auto
42
+ font-size 24px
43
+ color var(--efu-fontcolor)
44
+
45
+ .tag-link-right
46
+ margin-left 1rem
47
+ max-width calc(100% - 76px - 1rem)
79
48
 
80
- .tag-link-bottom i
81
- margin-left auto
82
- padding-left .5rem
83
- pointer-events none
49
+ .tag-link-tips
50
+ border-bottom var(--style-border)
51
+ padding-bottom 4px
52
+ font-size 12px
53
+ color var(--efu-gray)
54
+ font-weight 400
@@ -0,0 +1,57 @@
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,4 +1,3 @@
1
1
  .mermaid
2
2
  display flex
3
- flex-direction column
4
- align-items center
3
+ justify-content center
@@ -31,10 +31,6 @@ $colors = {
31
31
  &.success:not(.no-icon)::before
32
32
  content: '\e0a4'
33
33
 
34
- &.success:not(.no-icon)
35
- p
36
- color var(--efu-card-bg)
37
-
38
34
  &::before
39
35
  font-family 'solitude'
40
36
 
@@ -74,9 +70,7 @@ $colors = {
74
70
  border 1px solid transparent !important
75
71
 
76
72
  &.flat
77
- border-top initial
78
- border-right initial
79
- border-bottom initial
73
+ border initial
80
74
  border-image initial
81
75
  border-left 5px solid #eee
82
76
  background-color #f9f9f9
@@ -1,61 +1,34 @@
1
1
  #article-container
2
- p.p.subtitle
3
- font-weight: bold
4
- color: mix(#44D7B6, #444, 75)
5
- font-size: 1.25rem
6
- padding-top: 1.5rem
7
- &:first-child
8
- padding-top: 1rem
9
-
10
- span.p,p.p
2
+ .p
11
3
  &.left
12
- display: block
13
- text-align: left
4
+ text-align left
5
+
14
6
  &.center
15
- display: block
16
- text-align: center
7
+ text-align center
8
+
17
9
  &.right
18
- display: block
19
- text-align: right
10
+ text-align right
20
11
 
21
- span.p,p.p
22
12
  &.small
23
- font-size: var(--global-font-size)
24
- &.large
25
- font-size: 2.5rem
26
- line-height: 1.4
27
- &.huge
28
- font-size: 4rem
29
- line-height: 1.4
30
- &.ultra
31
- font-size: 6rem
32
- line-height: 1.4
33
- &.small,&.large,&.huge,&.ultra
34
- margin: 0
35
- padding: 0
36
- &.bold
37
- font-weight: bold
38
- &.h1,&.h2
39
- padding-bottom: .2rem
40
- font-weight: 500
13
+ font-size .5rem
14
+
41
15
  &.h1
42
- font-size: 1.625rem
43
- color: var(--color-h1)
44
- padding-top: 1em * 2
16
+ font-size 2.5rem
17
+
45
18
  &.h2
46
- font-size: 1.625rem
47
- color: var(--color-h2)
48
- padding-top: 1em * 2
49
- border-bottom: 1px solid alpha(#444, .1)
19
+ font-size 1.625rem
20
+
50
21
  &.h3
51
- font-size: 1.375rem
52
- color: var(--color-h3)
53
- padding-top: 1em * 2
22
+ font-size 1.375rem
23
+
54
24
  &.h4
55
- font-size: 1.125rem
56
- color: var(--color-h4)
57
- padding-top: 1em * 2
58
- &.h5
59
- font-size: 1rem
60
- color: var(--color-h5)
61
- padding-top: 1em * 1.5
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,3 +1,4 @@
1
+
1
2
  #article-container .tabs
2
3
  position relative
3
4
  border 1px solid var(--tab-border-color)
@@ -17,6 +18,7 @@
17
18
  font-size inherit
18
19
 
19
20
  &.active button
21
+ cursor default
20
22
  border var(--style-border-hover-always)
21
23
  background var(--efu-background)
22
24
  border-radius 8px;
@@ -102,4 +104,4 @@
102
104
 
103
105
  .tab-contents
104
106
  border-radius 8px
105
- overflow hidden
107
+ overflow hidden
@@ -17,7 +17,7 @@ if hexo-config('keyboard.enable')
17
17
  // 零散的样式
18
18
  @import "_mixins/other.styl"
19
19
 
20
- // 短标签
20
+ // tags plugin
21
21
  @import "_tags/*"
22
22
 
23
23
  // comment