hexo-theme-stellar 1.26.4 → 1.26.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 (59) hide show
  1. package/_config.yml +11 -6
  2. package/_data/icons.yml +13 -5
  3. package/layout/_partial/main/navbar/article_banner.ejs +9 -2
  4. package/layout/_partial/main/navbar/dateinfo.ejs +3 -0
  5. package/layout/_partial/main/navbar/nav_tabs_blog.ejs +2 -2
  6. package/layout/_partial/main/navbar/nav_tabs_wiki.ejs +2 -2
  7. package/layout/_partial/main/post_list/post_card.ejs +3 -2
  8. package/layout/_partial/widgets/related.ejs +1 -1
  9. package/layout/categories.ejs +1 -1
  10. package/layout/layout.ejs +4 -0
  11. package/package.json +1 -1
  12. package/scripts/events/lib/utils.js +16 -0
  13. package/scripts/helpers/icon.js +1 -12
  14. package/scripts/tags/index.js +2 -0
  15. package/scripts/tags/lib/button.js +39 -0
  16. package/scripts/tags/lib/icon.js +27 -0
  17. package/scripts/tags/lib/navbar.js +1 -1
  18. package/scripts/tags/lib/okr.js +1 -1
  19. package/scripts/tags/lib/quot.js +15 -12
  20. package/source/css/_common/base.styl +2 -3
  21. package/source/css/_common/blockquote.styl +1 -1
  22. package/source/css/_common/device.styl +15 -4
  23. package/source/css/_common/highlight.styl +3 -3
  24. package/source/css/_common/title.styl +8 -7
  25. package/source/css/_custom.styl +18 -15
  26. package/source/css/_layout/list.styl +20 -14
  27. package/source/css/_layout/md.styl +6 -14
  28. package/source/css/_layout/pages/archives.styl +9 -1
  29. package/source/css/_layout/partial/article-banner.styl +4 -3
  30. package/source/css/_layout/partial/article-footer.styl +4 -4
  31. package/source/css/_layout/partial/navbar.styl +7 -5
  32. package/source/css/_layout/partial/related.styl +4 -4
  33. package/source/css/_layout/sidebar/search.styl +14 -12
  34. package/source/css/_layout/sidebar/sidebar.styl +2 -2
  35. package/source/css/_layout/tag-plugins/banner.styl +20 -8
  36. package/source/css/_layout/tag-plugins/button.styl +36 -0
  37. package/source/css/_layout/tag-plugins/common.styl +4 -0
  38. package/source/css/_layout/tag-plugins/folders.styl +2 -2
  39. package/source/css/_layout/tag-plugins/folding.styl +3 -3
  40. package/source/css/_layout/tag-plugins/hashtag.styl +1 -1
  41. package/source/css/_layout/tag-plugins/icon.styl +12 -0
  42. package/source/css/_layout/tag-plugins/image.styl +1 -1
  43. package/source/css/_layout/tag-plugins/link.styl +1 -1
  44. package/source/css/_layout/tag-plugins/navbar.styl +9 -22
  45. package/source/css/_layout/tag-plugins/note.styl +3 -3
  46. package/source/css/_layout/tag-plugins/okr.styl +11 -2
  47. package/source/css/_layout/tag-plugins/poetry.styl +2 -2
  48. package/source/css/_layout/tag-plugins/quot.styl +21 -21
  49. package/source/css/_layout/tag-plugins/tabs.styl +1 -1
  50. package/source/css/_layout/tag-plugins/timeline.styl +4 -5
  51. package/source/css/_layout/widgets/ghrepo.styl +1 -1
  52. package/source/css/_layout/widgets/ghuser.styl +1 -1
  53. package/source/css/_layout/widgets/timeline.styl +11 -8
  54. package/source/css/_layout/widgets/widgets.styl +1 -1
  55. package/source/css/_plugins/aplayer.styl +1 -1
  56. package/source/css/_plugins/comments/artalk.styl +1 -1
  57. package/source/css/_plugins/comments/twikoo.styl +3 -3
  58. package/source/css/_plugins/copycode.styl +1 -1
  59. package/source/css/_plugins/tianli_gpt.styl +2 -2
@@ -3,36 +3,34 @@
3
3
  align-items: center
4
4
  display: flex
5
5
  flex-direction: column
6
-
6
+ --gap-p: 2rem
7
+ margin: var(--gap-p) 1rem
7
8
  .content
8
9
  display: flex
9
10
  align-items: center
10
11
  border-bottom: none
11
12
  font-weight: 700
12
- padding: 16px 24px
13
+ padding: 0 24px
13
14
  a.headerlink
14
15
  display: none
15
16
  @media screen and (max-width: $device-mobile)
16
- padding: 12px 20px
17
+ padding: 0 20px
17
18
  line-height: 1.2
18
19
 
19
20
  .md-text .tag-plugin.quot .content
20
- max-width 500px
21
21
  position: relative
22
22
  // override
23
23
  .md-text.content .tag-plugin.quot
24
- h1
25
- font-size: $fs-h1
24
+ h1,h2
25
+ font-size: $fsh2
26
26
  font-weight: 900
27
- padding: 20px 32px 12px 32px
27
+ padding: 4px 32px 0
28
28
  @media screen and (max-width: $device-mobile)
29
- padding: 20px 24px 12px
30
- h2,h3,h4,h5,h6
31
- font-size: $fs-h3
32
- margin-top: 1em
33
- margin-bottom: 0
29
+ padding: 4px 24px 0
30
+ h3,h4,h5,h6
31
+ font-size: $fsh3
34
32
  p
35
- font-size: $fs-h4
33
+ --fsp: $fsh4
36
34
  color: var(--text)
37
35
 
38
36
  // type=text
@@ -44,13 +42,13 @@
44
42
  width: 8px
45
43
  height: 14px
46
44
  &:before
47
- top: 8px
45
+ top: -8px
48
46
  left: 0
49
47
  border-top: 6px solid $color-accent
50
48
  border-left: 6px solid $color-accent
51
49
  &:after
52
50
  right: 0
53
- bottom: 8px
51
+ bottom: -8px
54
52
  border-right: 6px solid $color-accent
55
53
  border-bottom: 6px solid $color-accent
56
54
  h1.content[type=text]
@@ -61,13 +59,15 @@
61
59
 
62
60
  // type=icon
63
61
  .md-text .tag-plugin.quot .content[type=icon]
64
- .icon
62
+ img,svg
65
63
  height: 1.5em
66
64
  display: inline-block
67
65
  color: $color-accent
68
66
  border-radius: 0
69
- &.prefix
70
- margin-left: -0.5rem
71
- margin-right: .5rem
72
- &.suffix
73
- margin-left: .5rem
67
+ flex-shrink: 0
68
+ span.text
69
+ margin: 0 .5rem
70
+ padding-top: 1px
71
+ span.empty
72
+ padding: 0 8px
73
+
@@ -42,7 +42,7 @@
42
42
  display: block
43
43
  cursor: pointer
44
44
  padding: .25rem .75rem
45
- --fsp: var(--fsp3)
45
+ --fsp: $fsp3
46
46
  font-size: var(--fsp)
47
47
  line-height: inherit
48
48
  font-weight: 500
@@ -1,6 +1,5 @@
1
1
  .md-text .tag-plugin.timeline
2
2
  position: relative
3
- margin-top: 0
4
3
  padding-left: 16px
5
4
  &:before
6
5
  content: ''
@@ -102,7 +101,7 @@
102
101
  margin-top: 4px
103
102
  box-shadow: $boxshadow-block
104
103
  p
105
- --fsp: var(--fsp1)
104
+ --fsp: $fsp1
106
105
  img
107
106
  display: block
108
107
  &:empty
@@ -123,7 +122,7 @@
123
122
  color: var(--text-p1)
124
123
  line-height: 1.25
125
124
  padding: 0.75rem 1rem
126
- --fsp: var(--fsp1)
125
+ --fsp: $fsp1
127
126
  font-size: var(--fsp)
128
127
 
129
128
 
@@ -142,7 +141,7 @@
142
141
  trans1 all
143
142
  &:hover
144
143
  border-bottom: 2px solid $color-hover
145
- p:first-child:not([class]) a:not([class])
144
+ >p:first-child:not([class]) a:not([class])
146
145
  padding: 0
147
146
  margin: 0
148
147
  color: inherit
@@ -205,7 +204,7 @@
205
204
  padding: 0 0.5rem
206
205
  margin: 0.75rem 0
207
206
  p
208
- --fsp: var(--fsp2)
207
+ --fsp: $fsp2
209
208
  margin: 0.25rem
210
209
 
211
210
  .tag-plugin.timeline .body
@@ -4,7 +4,7 @@
4
4
  padding: 0.75rem 0.5rem
5
5
  color: var(--text-p2)
6
6
  background: var(--card)
7
- border-radius: $border-block
7
+ border-radius: $border-card
8
8
  box-shadow: $boxshadow-card
9
9
  >div+div
10
10
  margin-top: 0.5rem
@@ -22,7 +22,7 @@
22
22
 
23
23
  p.username
24
24
  font-weight: 900
25
- font-size: $fs-h2
25
+ font-size: $fsh2
26
26
  color: var(--text)
27
27
  margin: 0
28
28
  p.bio
@@ -1,6 +1,15 @@
1
1
  .widget-wrapper.timeline
2
2
  .widget-body
3
3
  margin-top: 0.5rem
4
+ .body
5
+ a
6
+ trans1 all
7
+ border-bottom: 1px solid var(--text)
8
+ color: var(--text-p1)
9
+ --fsp: $fsp2
10
+ &:hover
11
+ color: $color-hover
12
+ border-bottom: 1px solid $color-hover
4
13
  .tag-plugin.timeline .timenode
5
14
  .header
6
15
  margin: 0.5rem 16px
@@ -20,14 +29,8 @@
20
29
  border-radius: $border-card
21
30
  background: var(--alpha50)
22
31
  box-shadow: none
23
-
24
- a
25
- trans1 all
26
- border-bottom: 1px solid var(--text)
27
- color: var(--text-p1)
28
- &:hover
29
- color: $color-hover
30
- border-bottom: 1px solid $color-hover
32
+ p,li
33
+ --fsp: $fsp3
31
34
  code
32
35
  background: none
33
36
  padding: 0
@@ -36,7 +36,7 @@
36
36
  trans2: opacity background
37
37
  border-radius: 4px
38
38
  padding: 6px
39
- margin-right: -5px
39
+ margin-right: -6px
40
40
  svg
41
41
  height: 1em
42
42
  width: auto
@@ -1,3 +1,3 @@
1
1
  .md-text
2
2
  .aplayer
3
- border-radius: $border-block
3
+ border-radius: $border-card
@@ -1,4 +1,4 @@
1
1
  .cmt-body.artalk .artalk
2
2
  --at-color-main: $color-theme
3
3
  .atk-main-editor
4
- border-radius: $border-block
4
+ border-radius: $border-card
@@ -58,7 +58,7 @@
58
58
  width: auto
59
59
  border: none
60
60
  padding: 6px 2rem
61
- border-radius: $border-block
61
+ border-radius: $border-card
62
62
  background: var(--block)
63
63
  color: var(--text-p1)
64
64
  line-height: 2
@@ -74,7 +74,7 @@
74
74
  margin-bottom: 1rem
75
75
  border: 1px dashed var(--block-border);
76
76
  padding: 1rem;
77
- border-radius: $border-block;
77
+ border-radius: $border-card;
78
78
  background: var(--card);
79
79
 
80
80
  &:hover
@@ -86,7 +86,7 @@
86
86
 
87
87
  .tk-submit
88
88
  padding: 1rem 1rem 0 1rem;
89
- border-radius: $border-block;
89
+ border-radius: $border-card;
90
90
  background: var(--card);
91
91
 
92
92
  .tk-tag
@@ -15,7 +15,7 @@
15
15
  cursor: pointer
16
16
  margin-right: 4px
17
17
  margin-top: 4px
18
- border-radius: 'calc(%s - 4px)' % $border-block
18
+ border-radius: 'calc(%s - 4px)' % $border-card
19
19
 
20
20
  .highlight:hover
21
21
  .code:before
@@ -18,7 +18,7 @@
18
18
 
19
19
  .post-TianliGPT
20
20
  background: var(--block)
21
- border-radius: $border-block
21
+ border-radius: $border-card
22
22
  padding: 12px
23
23
  line-height: 1.3
24
24
  border: var(--style-border-always)
@@ -44,7 +44,7 @@
44
44
  margin-top: 12px
45
45
  padding: 8px 12px
46
46
  background: var(--card)
47
- border-radius: $border-block
47
+ border-radius: $border-card
48
48
  border: var(--style-border-always)
49
49
  font-size: 15px
50
50
  line-height: 1.4