hexo-theme-solitude 2.0.4 → 2.0.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 (57) hide show
  1. package/.editorconfig +9 -0
  2. package/README.md +2 -2
  3. package/README_zh-Hans.md +1 -1
  4. package/README_zh-Hant.md +2 -2
  5. package/_config.yml +17 -16
  6. package/languages/default.yml +8 -3
  7. package/languages/en.yml +8 -3
  8. package/languages/zh-CN.yml +8 -3
  9. package/languages/zh-TW.yml +8 -3
  10. package/layout/includes/inject/body.pug +4 -4
  11. package/layout/includes/inject/head.pug +2 -2
  12. package/layout/includes/loading.pug +14 -2
  13. package/layout/includes/page/says.pug +5 -5
  14. package/layout/includes/widgets/home/bbTimeList.pug +3 -3
  15. package/package.json +8 -5
  16. package/scripts/event/merge_config.js +4 -4
  17. package/scripts/event/welcome.js +2 -2
  18. package/scripts/helper/stylus.js +1 -1
  19. package/scripts/tags/mermaid.js +1 -1
  20. package/scripts/tags/tabs.js +11 -15
  21. package/source/css/_comments/twikoo.styl +7 -58
  22. package/source/css/_global/index.styl +1 -1
  23. package/source/css/_layout/header.styl +3 -2
  24. package/source/css/_page/_home/home-top.styl +1 -2
  25. package/source/css/_page/links.styl +102 -100
  26. package/source/css/_page/other.styl +6 -1
  27. package/source/css/_page/says.styl +3 -2
  28. package/source/css/_post/copyright.styl +7 -2
  29. package/source/css/_tags/mermaid.styl +1 -1
  30. package/source/css/_tags/tabs.styl +1 -1
  31. package/source/js/main.js +2 -2
  32. package/source/js/third_party/waterfall.min.js +5 -1
  33. package/scripts/tags/btns.js +0 -35
  34. package/scripts/tags/button.js +0 -21
  35. package/scripts/tags/bvideo.js +0 -7
  36. package/scripts/tags/checkbox.js +0 -51
  37. package/scripts/tags/fold.js +0 -13
  38. package/scripts/tags/image.js +0 -75
  39. package/scripts/tags/inline-image.js +0 -12
  40. package/scripts/tags/label.js +0 -10
  41. package/scripts/tags/link.js +0 -50
  42. package/scripts/tags/media.js +0 -29
  43. package/scripts/tags/note.js +0 -13
  44. package/scripts/tags/span.js +0 -17
  45. package/scripts/tags/timeline.js +0 -22
  46. package/source/css/_tags/btns.styl +0 -212
  47. package/source/css/_tags/button.styl +0 -40
  48. package/source/css/_tags/checkbox.styl +0 -204
  49. package/source/css/_tags/fold.styl +0 -65
  50. package/source/css/_tags/image.styl +0 -4
  51. package/source/css/_tags/index.styl +0 -63
  52. package/source/css/_tags/label.styl +0 -4
  53. package/source/css/_tags/link.styl +0 -59
  54. package/source/css/_tags/media.styl +0 -57
  55. package/source/css/_tags/note.styl +0 -104
  56. package/source/css/_tags/span.styl +0 -34
  57. package/source/css/_tags/timeline.styl +0 -82
@@ -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,4 +0,0 @@
1
- #article-container
2
- .hl-label
3
- padding 2px 4px
4
- border-radius 3px
@@ -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)