hexo-theme-solitude 2.0.12 → 2.0.13

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 (43) hide show
  1. package/README.md +0 -1
  2. package/README_zh-Hans.md +0 -2
  3. package/README_zh-Hant.md +0 -1
  4. package/_config.yml +4 -1
  5. package/languages/default.yml +2 -0
  6. package/languages/en.yml +2 -0
  7. package/languages/zh-CN.yml +2 -0
  8. package/languages/zh-TW.yml +24 -22
  9. package/layout/includes/head/config.pug +2 -0
  10. package/layout/includes/inject/body.pug +0 -3
  11. package/layout/includes/inject/head.pug +6 -0
  12. package/layout/includes/page/says.pug +1 -1
  13. package/layout/includes/rightmenu.pug +1 -1
  14. package/layout/includes/sidebar.pug +10 -1
  15. package/layout/includes/widgets/aside/asideNewestPost.pug +8 -11
  16. package/layout/includes/widgets/aside/asideWebInfo.pug +2 -2
  17. package/layout/includes/widgets/page/links/banner.pug +0 -1
  18. package/layout/includes/widgets/post/postInfo.pug +2 -2
  19. package/layout/page.pug +1 -1
  20. package/package.json +1 -1
  21. package/scripts/event/merge_config.js +1 -0
  22. package/scripts/event/page.js +1 -1
  23. package/scripts/filter/checkThemeConfig.js +3 -3
  24. package/scripts/helper/related_post.js +1 -1
  25. package/scripts/tags/article.js +6 -27
  26. package/scripts/tags/tabs.js +1 -3
  27. package/source/css/_comments/comment.styl +4 -4
  28. package/source/css/_comments/twikoo.styl +3 -4
  29. package/source/css/_global/index.styl +1 -1
  30. package/source/css/_layout/aside.styl +24 -26
  31. package/source/css/_layout/recent-post.styl +0 -2
  32. package/source/css/_page/_about/buff.styl +0 -1
  33. package/source/css/_page/_about/contentinfo.styl +2 -2
  34. package/source/css/_page/_about/game.styl +0 -2
  35. package/source/css/_page/_about/maxim.styl +0 -1
  36. package/source/css/_page/_about/myphoto.styl +0 -1
  37. package/source/css/_page/_about/oneself.styl +1 -1
  38. package/source/css/_page/_about/personalities.styl +1 -1
  39. package/source/css/_page/_about/skills.styl +0 -1
  40. package/source/css/_page/_about/statistic.styl +0 -1
  41. package/source/css/_page/other.styl +2 -1
  42. package/source/js/right_menu.js +10 -0
  43. /package/layout/includes/{body → head}/mode.pug +0 -0
package/README.md CHANGED
@@ -43,7 +43,6 @@ English丨[简体中文](README_zh-Hans.md)丨[繁体中文](README_zh-Hant.md)
43
43
  ## Todo
44
44
 
45
45
  - [x] The list of articles is displayed in three columns on the homepage.
46
- - [x] btns tags plugin.
47
46
 
48
47
  > If you have any questions, please issue an [issue](https://github.com/everfu/hexo-theme-solitude/issues)
49
48
 
package/README_zh-Hans.md CHANGED
@@ -43,8 +43,6 @@
43
43
  ## Todo
44
44
 
45
45
  - [x] 首页顶部新样式
46
- - [x] 首页文章列表三列显示
47
- - [x] btns 外挂标签
48
46
 
49
47
  > 如有问题请提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
50
48
 
package/README_zh-Hant.md CHANGED
@@ -43,7 +43,6 @@
43
43
  ## Todo
44
44
 
45
45
  - [x] 首页文章列表三列显示
46
- - [x] btns 外挂标签
47
46
 
48
47
  ## 應用
49
48
 
package/_config.yml CHANGED
@@ -487,7 +487,7 @@ envelope:
487
487
  # can only use NetEase Cloud Music, QQ Music and other music platforms supported by the mainland China region,
488
488
  # the subsequent consideration of the use of JSON files to store music information and customize the implementation of the third-party API does not depend on the page.
489
489
  # Music Page
490
- meting_api: "https://meting.qjqq.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" # Custom API
490
+ meting_api: "https://meting.everfu.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" # Custom API
491
491
  music:
492
492
  enable: false
493
493
  # 歌单 ID / 单曲 ID
@@ -882,6 +882,9 @@ right_menu:
882
882
  # Whether to display the hot comment switch.
883
883
  # 是否显示热门评论开关
884
884
  commentBarrage: false
885
+ # Whether to display the browser's context menu when hold Ctrl key.
886
+ # 是否在按住 Ctrl 键时显示浏览器右键菜单
887
+ ctrlOriginalMenu: false
885
888
  # Simplified and Traditional Chinese translation.
886
889
  # 简繁体转换
887
890
  translate:
@@ -140,6 +140,7 @@ console:
140
140
  sidebar:
141
141
  function: Function
142
142
  darkmode: Display mode
143
+ siteinfo: Site information
143
144
 
144
145
  footer:
145
146
  description: Article from ${title}
@@ -195,6 +196,7 @@ right_menu:
195
196
  chs_to_cht: 轉為繁體
196
197
  cht_to_chs: 转为简体
197
198
  img_error: This image cannot be copied or downloaded.
199
+ ctrl_original_menu: Hold Ctrl + right-click to open the browser's context menu
198
200
  barrage:
199
201
  open: Open Barrage
200
202
  close: Close Barrage
package/languages/en.yml CHANGED
@@ -140,6 +140,7 @@ console:
140
140
  sidebar:
141
141
  function: Function
142
142
  darkmode: Display mode
143
+ siteinfo: Site information
143
144
 
144
145
  footer:
145
146
  description: Article from ${title}
@@ -195,6 +196,7 @@ right_menu:
195
196
  chs_to_cht: 轉為繁體
196
197
  cht_to_chs: 转为简体
197
198
  img_error: This image cannot be copied or downloaded.
199
+ ctrl_original_menu: Hold Ctrl + right-click to open the browser's context menu
198
200
  barrage:
199
201
  open: Open Barrage
200
202
  close: Close Barrage
@@ -140,6 +140,7 @@ console:
140
140
  sidebar:
141
141
  function: 功能
142
142
  darkmode: 显示模式
143
+ siteinfo: 网站信息
143
144
 
144
145
  footer:
145
146
  description: 来自${title}的文章
@@ -195,6 +196,7 @@ right_menu:
195
196
  chs_to_cht: 轉為繁體
196
197
  cht_to_chs: 转为简体
197
198
  img_error: 此图片无法复制与下载
199
+ ctrl_original_menu: 按住Ctrl+右键可打开浏览器右键菜单
198
200
  barrage:
199
201
  open: 显示热评
200
202
  close: 关闭热评
@@ -1,6 +1,6 @@
1
1
  more: 更多
2
2
  star: 喜歡這篇的人也看了
3
- random: 随便逛逛
3
+ random: 隨便逛逛
4
4
  upload: 發佈時間:
5
5
  totalk: 無需刪除空行,直接輸入評論即可
6
6
  loading: 加載中...
@@ -18,9 +18,9 @@ copy:
18
18
 
19
19
  copy_copyright:
20
20
  author: 作者
21
- link: 連結
21
+ link: 鏈結
22
22
  source: 來源
23
- info: 著作權歸作者所有。 商業轉載請聯繫作者獲得授權,非商業轉載請註明出處。
23
+ info: 著作權歸作者所有。商業轉載請聯繫作者獲得授權,非商業轉載請註明出處。
24
24
 
25
25
  time:
26
26
  day: "天前"
@@ -41,16 +41,16 @@ nav:
41
41
  site_name_title: 返回博客主頁
42
42
  backtop: 返回頂部
43
43
  travellings: 開往-友鏈接力
44
- search: 搜索
44
+ search: 搜尋
45
45
  randompost: 隨機一篇文章
46
- console: 中控台
46
+ console: 主控台
47
47
 
48
48
  home:
49
49
  home: 推薦
50
50
  sticky: 置頂
51
51
  new: 最新
52
52
  read: 未讀
53
- recommend:
53
+ recommend:
54
54
  recommendmore: 更多推薦
55
55
  archives: 全部文章
56
56
 
@@ -66,9 +66,9 @@ post:
66
66
  pv: 文章熱度
67
67
  comment: 評論數
68
68
  copyright:
69
- reprint: 本文是转载或翻译文章,版权归原作者所有。转载本文请联系原作者。
70
- original: 本文是原创文章,采用
71
- original_end: 协议,完整转载请注明来自
69
+ reprint: 本文是轉載或翻譯文章,版權歸原作者所有。轉載本文請聯繫原作者。
70
+ original: 本文是原創文章,採用
71
+ original_end: 協議,完整轉載請註明來自
72
72
  share:
73
73
  qq: 分享到QQ
74
74
  weibo: 分享到微博
@@ -76,8 +76,8 @@ post:
76
76
  twitter: 分享到Twitter
77
77
  linkedin: 分享到LinkedIn
78
78
  facebook: 分享到Facebook
79
- link: 复制文章链接
80
- qrcode: 使用手机扫码阅读这篇文章
79
+ link: 複製文章鏈接
80
+ qrcode: 使用手機掃碼閱讀這篇文章
81
81
  whatsapp: 分享到WhatsApp
82
82
  ai:
83
83
  title: 文章摘要
@@ -109,12 +109,12 @@ aside:
109
109
  wordcount: '字數統計:'
110
110
  toc: 文章目錄
111
111
  tagmore: 查看全部
112
- avatar: 头像
112
+ avatar: 頭像
113
113
  hello: 好久不見,
114
114
  back: 歡迎再次回來,
115
- sticker: 心情贴纸
116
- newpost: 最近发布
117
- newcomment: 最新评论
115
+ sticker: 心情貼紙
116
+ newpost: 最近發佈
117
+ newcomment: 最新評論
118
118
  card:
119
119
  posts: '累計文章數:'
120
120
  tags: '標籤總數:'
@@ -124,22 +124,23 @@ console:
124
124
  comment_tip: 互動
125
125
  comment_title: 評論
126
126
  tag_tip: 標籤
127
- tag_title: 標籤
128
- switch_darkmode: 昼夜切換
129
- switch_hideAside: 边栏显示控制
127
+ tag_title: 尋找感興趣的領域
128
+ switch_darkmode: 晝夜切換
129
+ switch_hideAside: 側邊欄顯示控制
130
130
  switch_keyboard: 鍵盤快捷鍵
131
131
  switch_music: 音樂開關
132
132
  archive_unit: 篇
133
133
  recent_comment_more: 最近評論
134
134
  newest_comment:
135
135
  image: 圖片
136
- link: 連結
136
+ link: 鏈結
137
137
  code: 代碼
138
138
  emoji: 表情
139
139
 
140
140
  sidebar:
141
141
  function: 功能
142
142
  darkmode: 顯示模式
143
+ siteinfo: 網站信息
143
144
 
144
145
  footer:
145
146
  description: 來自${title}的文章
@@ -181,10 +182,10 @@ f12: 開發者模式已打開,請遵循GPL協定。
181
182
 
182
183
  right_menu:
183
184
  copy: 複製選中文本
184
- paste: 粘貼文本
185
+ paste: 貼上文本
185
186
  comment: 引用到評論
186
187
  new: 新窗口打開
187
- link: 複製連結位址
188
+ link: 複製鏈結位址
188
189
  img: 複製此圖片
189
190
  downloadImg: 下載此圖片
190
191
  search: 站內搜索
@@ -193,6 +194,7 @@ right_menu:
193
194
  chs_to_cht: 轉為繁體
194
195
  cht_to_chs: 转为简体
195
196
  img_error: 此圖片無法複製與下載
197
+ ctrl_original_menu: 按住Ctrl+右鍵可打開瀏覽器右鍵選單
196
198
  barrage:
197
199
  open: 顯示熱評
198
200
  close: 關閉熱評
@@ -229,4 +231,4 @@ message:
229
231
  essay:
230
232
  tip0: '- 已展開所有短文 -'
231
233
  tip1: '- 只展示最近 #{count} 條短文 -'
232
- link: '連接'
234
+ link: '鏈結'
@@ -120,6 +120,8 @@
120
120
  defaultEncoding: theme.right_menu.translate.defaultEncoding
121
121
  }
122
122
  }
123
+ if (theme.right_menu.ctrlOriginalMenu)
124
+ rightMenu.ctrlOriginalMenu = _p('right_menu.ctrl_original_menu')
123
125
  }
124
126
 
125
127
  let highlight = false
@@ -121,8 +121,5 @@ if theme.footer.randomlink
121
121
  // pjax
122
122
  != partial("includes/widgets/third-party/pjax", {}, {cache: true})
123
123
 
124
- // theme
125
- include ../body/mode
126
-
127
124
  // google adsense
128
125
  include ../body/gadsense
@@ -48,3 +48,9 @@ if theme.extends.head
48
48
  != item
49
49
 
50
50
  !=fragment_cache('injectHeadJs', function(){return inject_head_js()})
51
+
52
+ // theme
53
+ include ../head/mode
54
+
55
+ if theme.page.echart
56
+ script(src=url_for(theme.cdn.echarts))
@@ -38,7 +38,7 @@ if theme.says.enable
38
38
  .bber-bottom
39
39
  .bber-info
40
40
  .bber-info-time
41
- i.solitude.fa-solid.fa-calendar-days
41
+ i.solitude.fa-solid.fa-calendar-day
42
42
  time.datetime(datetime=moment(item.date).format())
43
43
  if item.location
44
44
  .bber-info-location
@@ -7,7 +7,7 @@ div#rightMenu
7
7
  div.rightMenu-item#menu-forward
8
8
  i.solitude.fa-solid.fa-arrow-right
9
9
  div.rightMenu-item#menu-refresh
10
- i.solitude.fa-solid.fa-arrow-rotate-right
10
+ i.solitude.fa-solid.fa-arrows-rotate
11
11
  div.rightMenu-item#menu-top
12
12
  i.solitude.fa-solid.fa-arrow-up
13
13
  div.rightMenu-group.rightMenu-line.rightMenuPlugin
@@ -29,4 +29,13 @@ div#sidebar(style="zoom: 1;")
29
29
  div.card-tag-cloud
30
30
  each tag in site.tags.find({ parent: { $exists: false } }).data
31
31
  a(href=url_for(tag.path))= tag.name
32
- sup= tag.length
32
+ sup= tag.length
33
+ if theme.wordcount && theme.aside.siteinfo.wordcount
34
+ span.sidebar-menu-item-title= __('sidebar.siteinfo')
35
+ .webinfo
36
+ .webinfo-item
37
+ .webinfo-item-title
38
+ i.item-icon.solitude.fa-solid.fa-file-word
39
+ .item-name= __('aside.wordcount')
40
+ .item-count= totalcount(site)
41
+
@@ -3,14 +3,11 @@
3
3
  i.solitude.fa-solid.fa-map
4
4
  span= _p('aside.newpost')
5
5
  .aside-list
6
- - let index = 1
7
- each post in site.posts.data.sort((a, b) => b.date < a.date ? -1 : 1)
8
- if index <= 5
9
- .aside-list-item
10
- a.thumbnail(href=url_for(post.path) title=post.title)
11
- img(alt=post.title src=url_for(post.cover))
12
- .content
13
- span.title(href=url_for(post.path) title=post.title)= post.title
14
- if post.categories.data[0]
15
- span.article-recent_post_categories(href=url_for(post.path))= post.categories.data[0].name
16
- - index++
6
+ each post in site.posts.data.sort((a, b) => b.date < a.date ? -1 : 1).slice(0, 5)
7
+ a.aside-list-item(href=url_for(post.path) title=post.title)
8
+ .thumbnail
9
+ img(alt=post.title src=url_for(post.cover))
10
+ .content
11
+ span.title(href=url_for(post.path) title=post.title)= post.title
12
+ if post.categories.data[0]
13
+ span.article-recent_post_categories(href=url_for(post.path))= post.categories.data[0].name
@@ -31,13 +31,13 @@
31
31
  if theme.aside.siteinfo.runtimeenable
32
32
  .webinfo-item
33
33
  .webinfo-item-title
34
- i.item-icon.solitude.fa-solid.fa-calendar-days
34
+ i.item-icon.solitude.fa-solid.fa-calendar-day
35
35
  .item-name= __('aside.runtime')
36
36
  .item-count#runtimeshow
37
37
  if theme.aside.siteinfo.updatetime
38
38
  .webinfo-item
39
39
  .webinfo-item-title
40
- i.item-icon.solitude.fa-solid.fa-rotate-left
40
+ i.item-icon.solitude.fa-solid.fa-arrows-rotate
41
41
  .item-name= __('aside.updatetime')
42
42
  time.item-count(datetime=new Date())
43
43
  if theme.wordcount && theme.aside.siteinfo.wordcount
@@ -16,7 +16,6 @@
16
16
  .tags-group-wrapper
17
17
  - const data = site.data.links.links
18
18
  - for (let i = 0; i < 2; i++)
19
- each item in [1,2]
20
19
  each x in data
21
20
  - var pairs = []
22
21
  each y, index in x.link_list
@@ -18,11 +18,11 @@
18
18
  .meta-secondline
19
19
  if theme.post.meta.date
20
20
  span.post-meta-date(title=_p('post.posted') + ' ' + full_date(page.date))
21
- i.post-meta-icon.solitude.fa-solid.fa-calendar-days
21
+ i.post-meta-icon.solitude.fa-solid.fa-clock
22
22
  time(datetime=date_xml(page.date))= date_xml(page.date)
23
23
  if theme.post.meta.updated
24
24
  span.post-meta-date(title=_p('post.updated') + ' ' + full_date(page.updated))
25
- i.post-meta-icon.solitude.fa-solid.fa-arrow-rotate-right
25
+ i.post-meta-icon.solitude.fa-solid.fa-arrows-rotate
26
26
  time(datetime=date_xml(page.updated))= date_xml(page.updated)
27
27
  if theme.wordcount
28
28
  span.post-meta-wordcount
package/layout/page.pug CHANGED
@@ -36,4 +36,4 @@ block content
36
36
  - var comment_js = true
37
37
  include includes/widgets/third-party/comments/comment
38
38
  if page.aside
39
- include includes/widgets/aside/aside
39
+ include includes/widgets/aside/aside
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -383,6 +383,7 @@ hexo.extend.filter.register('before_generate', () => {
383
383
  right_menu: {
384
384
  enable: false,
385
385
  commentBarrage: false,
386
+ ctrlOriginalMenu: false,
386
387
  translate: {
387
388
  enable: false,
388
389
  defaultEncoding: 2,
@@ -30,4 +30,4 @@ hexo.extend.generator.register('categories', function(locals) {
30
30
  comment: false
31
31
  }
32
32
  };
33
- });
33
+ });
@@ -5,12 +5,12 @@ hexo.extend.filter.register('before_post_render', () => {
5
5
  const logger = hexo.log;
6
6
  const theme = hexo.theme.config;
7
7
  if (theme.says.enable && !data.essay) {
8
- logger.error('\n 启用说说的情况下,必须提供 essay 数据文件!\n 请新建 essay.yaml。');
8
+ logger.error('\n 启用即刻短文的情况下,请新建 essay.yaml。');
9
9
  logger.error('\n If says is enabled, essay data must be supplied! \n Please create essay.yaml.');
10
10
  process.exit(-1);
11
11
  }
12
12
  if (theme.footer.randomlink && !data.links){
13
- logger.error('\n 启用随机链接的情况下,必须提供 links 数据!\n 请新建 links.yaml。');
13
+ logger.error('\n 启用随机链接的情况下,请新建 links.yaml。');
14
14
  logger.error('\n If randomlink is enabled, links data must be supplied! \n Please create links.yaml.');
15
15
  process.exit(-1);
16
16
  }
@@ -20,4 +20,4 @@ hexo.extend.filter.register('before_post_render', () => {
20
20
  process.exit(-1);
21
21
  }
22
22
  }
23
- );
23
+ );
@@ -82,4 +82,4 @@ function compare(attr, dateType) {
82
82
  }
83
83
  return val2 - val1
84
84
  }
85
- }
85
+ }
@@ -7,33 +7,12 @@ const article = ([path]) => {
7
7
  }
8
8
  const tags = post.tags.map(tag => `<a class="article-meta__tags fancybox" href="${tag.path}" onclick="event.stopPropagation();"><span class="tags-punctuation"><i class="solitude fa-solid fa-hashtag"></i>${tag.name}</span></a>`).join('');
9
9
  const category = post.categories.data.length > 0 ? `<span class="article-meta sticky-warp"><span class="original">${post.categories.data[0].name}</span></span>` : '';
10
- return `
11
- <div class="recent-post-item" onclick="pjax.loadUrl('${post.path}')">
12
- <div class="post_cover">
13
- <a href="${post.path}" class="fancybox" title="${post.title}">
14
- <img class="post_bg" src="${post.cover}" alt="${post.title}">
15
- </a>
16
- </div>
17
- <div class="recent-post-info">
18
- <div class="recent-post-info-top">
19
- <div class="recent-post-info-top-tips">
20
- ${category}
21
- </div>
22
- <a class="article-title fancybox" href="${post.path}" title="${post.title}">${post.title}</a>
23
- </div>
24
- <div class="content">
25
- ${post.description ? post.description : ''}
26
- </div>
27
- <div class="article-meta-wrap">
28
- <span class="article-meta tags">
29
- ${tags}
30
- </span>
31
- <span class="post-meta-date">
32
- <time datetime="${post.date}" style="display: inline;"></time>
33
- </span>
34
- </div>
35
- </div>
36
- </div>`;
10
+ const postCover = `<div class="post_cover"><a href="${'/' + post.path}" class="fancybox" title="${post.title}"><img class="post_bg" src="${post.cover}" alt="${post.title}"></a></div>`;
11
+ const recentPostInfoTop = `<div class="recent-post-info-top"><div class="recent-post-info-top-tips">${category}</div><a class="article-title fancybox" href="${'/' + post.path}" title="${post.title}">${post.title}</a></div>`;
12
+ const content = `<div class="content">${post.description ? post.description : ''}</div>`;
13
+ const articleMetaWrap = `<div class="article-meta-wrap"><span class="article-meta tags">${tags}</span><span class="post-meta-date"><time datetime="${post.date}" style="display: inline;"></time></span></div>`;
14
+ const recentPostInfo = `<div class="recent-post-info">${recentPostInfoTop + content + articleMetaWrap}</div>`
15
+ return `<div class="recent-post-item" onclick="pjax.loadUrl('${'/' + post.path}')">${postCover + recentPostInfo}</div>`;
37
16
  }
38
17
 
39
18
  hexo.extend.tag.register('article', article)
@@ -14,9 +14,7 @@ function postTabs ([name, active], content) {
14
14
  let tabNav = ''
15
15
  let tabContent = ''
16
16
 
17
- if (typeof active === 'undefined') {
18
- active = 0
19
- }
17
+ active = Number(active) || 0
20
18
 
21
19
  while ((match = tabBlock.exec(content)) !== null) {
22
20
  matches.push(match[1])
@@ -77,7 +77,7 @@
77
77
  font-size .6rem
78
78
  color var(--efu-secondtext)
79
79
  border-radius 8px
80
- if index(hexo-config('comment.use'), ',') || hexo-config('comment.use')[1]
80
+ if hexo-config('comment.use')[1] || ',' in hexo-config('comment.use')
81
81
  &.move
82
82
  if hexo-config('comment.count')
83
83
  .comment-head
@@ -103,7 +103,7 @@
103
103
  margin .5rem 0
104
104
  position relative
105
105
 
106
- if index(hexo-config('comment.use'), ',') || ',' in hexo-config('comment.use')
106
+ if hexo-config('comment.use')[1] || ',' in hexo-config('comment.use')
107
107
  .count span:last-child
108
108
  display none
109
109
 
@@ -139,7 +139,7 @@
139
139
  content ''
140
140
  transition .4s
141
141
 
142
- if ',' in hexo-config('comment.use') || index(hexo-config('comment.use'), ',')
142
+ if hexo-config('comment.use')[1] || index(hexo-config('comment.use'), ',')
143
143
  .comment-wrap
144
144
  > div:last-child
145
145
  display none
@@ -167,4 +167,4 @@ if hexo-config('twikoo.style') && 'Twikoo' in hexo-config('comment.use')
167
167
  @import 'twikoo.styl'
168
168
 
169
169
  if hexo-config('valine.style') && 'Valine' in hexo-config('comment.use')
170
- @import 'valine.styl'
170
+ @import 'valine.styl'
@@ -301,6 +301,9 @@
301
301
  font-size .5rem
302
302
  color var(--efu-secondtext)
303
303
 
304
+ .tk-content
305
+ margin-top 0!important
306
+
304
307
  .tk-meta-input
305
308
  .el-input
306
309
  .el-input-group__prepend
@@ -408,10 +411,6 @@ button.el-button.tk-cancel.el-button--default.el-button--small
408
411
  border-radius 8px !important
409
412
  color var(--efu-fontcolor) !important
410
413
 
411
- .tk-replies .tk-content span:first-child
412
- font-size inherit
413
- color black
414
-
415
414
  .OwO
416
415
  &.OwO-open
417
416
  .OwO-body
@@ -411,7 +411,7 @@ i.solitude
411
411
  span.tags-punctuation
412
412
  i
413
413
  font-weight bold
414
- font-size: 14px
414
+ font-size: 12px
415
415
  transition none
416
416
  margin-right: 2px
417
417
  opacity: .4
@@ -744,32 +744,6 @@ if hexo-config('aside.card.style') == 2
744
744
  border var(--style-border-always)
745
745
 
746
746
  #aside-content
747
- .card-webinfo
748
- .webinfo
749
- .webinfo-item-title
750
- display flex
751
-
752
- i
753
- line-height: 2 !important
754
- margin-right: 6px
755
- width: 16px
756
- text-align: center
757
- font-size: 16px !important
758
-
759
- .webinfo-item
760
- display flex
761
- justify-content space-between
762
- white-space nowrap
763
- -webkit-box-align center
764
- align-items center
765
- padding .1rem .5rem 0
766
-
767
- div:first-child
768
- -webkit-box-flex 1
769
- flex 1 1 0
770
- padding-right 1rem
771
-
772
-
773
747
  .card-allinfo
774
748
 
775
749
  hr
@@ -1098,3 +1072,27 @@ if hexo-config('aside.newest_comment.enable')
1098
1072
  font-size 12px
1099
1073
  color var(--efu-secondtext)
1100
1074
  margin-top auto
1075
+
1076
+ .webinfo-item
1077
+ display flex
1078
+ justify-content space-between
1079
+ white-space nowrap
1080
+ -webkit-box-align center
1081
+ align-items center
1082
+ padding .1rem .5rem 0
1083
+
1084
+ div:first-child
1085
+ -webkit-box-flex 1
1086
+ flex 1 1 0
1087
+ padding-right 1rem
1088
+
1089
+ .webinfo
1090
+ .webinfo-item-title
1091
+ display flex
1092
+
1093
+ i
1094
+ line-height: 2
1095
+ margin-right: 6px
1096
+ width: 16px
1097
+ text-align: center
1098
+ font-size: 16px
@@ -128,8 +128,6 @@ if hexo-config('index_post_list.direction') == "column"
128
128
  display -webkit-box
129
129
  overflow hidden
130
130
  -webkit-box-orient vertical
131
- +minWidth1300()
132
- font-size 30px
133
131
 
134
132
  .recent-post-info-top-tips
135
133
  display flex
@@ -13,7 +13,6 @@
13
13
  animation gradient 15s ease infinite
14
14
  min-height 200px
15
15
  height fit-content
16
- width calc(60% - (.5rem / 2))
17
16
 
18
17
  .card-content
19
18
  display flex
@@ -7,7 +7,7 @@
7
7
  background linear-gradient(120deg, #5b27ff 0, #00d4ff 100%)
8
8
  background-size 200%
9
9
  animation gradient 15s ease infinite
10
- width calc(60% - .5rem / 2)
10
+ flex 4
11
11
 
12
12
  .title1
13
13
  opacity .8
@@ -28,7 +28,7 @@
28
28
  justify-content center
29
29
  align-items flex-start
30
30
  flex-direction column
31
- width calc(40% - (.5rem / 2))
31
+ flex 3
32
32
 
33
33
  h2
34
34
  margin-right auto
@@ -3,7 +3,6 @@
3
3
  min-height 300px
4
4
  overflow hidden
5
5
  color var(--efu-white)
6
- width 59%
7
6
 
8
7
  &::after
9
8
  box-shadow 0 -69px 203px 11px #04120f inset
@@ -26,7 +25,6 @@
26
25
  padding 1rem 2rem
27
26
 
28
27
  .author-content-item.game-jl
29
- width 39%
30
28
  min-height 300px
31
29
  overflow hidden
32
30
  color var(--efu-white)
@@ -7,7 +7,6 @@
7
7
  align-items flex-start
8
8
  flex-direction column
9
9
  justify-content center
10
- width calc(40% - (.5rem / 2))
11
10
 
12
11
  .maxim-title
13
12
  display flex
@@ -4,7 +4,6 @@
4
4
  min-height 240px
5
5
  position relative
6
6
  overflow hidden
7
- width calc(40% - (.5rem / 2))
8
7
  display flex
9
8
  align-items center
10
9
  justify-content center
@@ -10,7 +10,7 @@
10
10
  width 100% !important
11
11
 
12
12
  &.mapAndInfo
13
- width calc(60% - (.5rem / 2))
13
+ flex 8
14
14
  gap .5rem
15
15
 
16
16
  .author-content-item
@@ -1,7 +1,7 @@
1
1
  .author-content-item.personalities
2
2
  overflow hidden
3
3
  position relative
4
- width calc(60% - (.5rem / 2))
4
+ flex 6
5
5
  +maxWidth768()
6
6
  min-height 360px
7
7
 
@@ -4,7 +4,6 @@
4
4
  justify-content center
5
5
  align-items flex-start
6
6
  flex-direction column
7
- width calc(50% - (.5rem / 2))
8
7
  min-height 450px
9
8
 
10
9
  .tags-group-all
@@ -5,7 +5,6 @@
5
5
 
6
6
  .about-statistic
7
7
  min-height 380px
8
- width calc(40% - (.5rem / 2))
9
8
  background-size cover
10
9
  color var(--efu-white)
11
10
  overflow hidden
@@ -156,6 +156,7 @@ div#banners
156
156
 
157
157
  +maxWidth768()
158
158
  margin-top 0
159
+ flex-direction column
159
160
 
160
161
  .author-content-item
161
162
  +maxWidth1300()
@@ -172,7 +173,7 @@ div#banners
172
173
  margin-top 0
173
174
 
174
175
  .author-content-item
175
- width 49.5%
176
+ flex 4
176
177
  border-radius 12px
177
178
  background var(--efu-card-bg)
178
179
  border var(--style-border-always)
@@ -1,4 +1,5 @@
1
1
  let selectTextNow = "";
2
+ let firstShowRightMenu = true;
2
3
  const selectText = () => {
3
4
  selectTextNow = document.selection
4
5
  ? document.selection.createRange().text
@@ -106,6 +107,15 @@ function stopMaskScroll() {
106
107
 
107
108
  window.oncontextmenu = (ele) => {
108
109
  if (document.body.clientWidth <= 768) return;
110
+ if (GLOBAL_CONFIG.right_menu.ctrlOriginalMenu) {
111
+ if (firstShowRightMenu) {
112
+ firstShowRightMenu = false;
113
+ utils.snackbarShow(GLOBAL_CONFIG.right_menu.ctrlOriginalMenu, false, 2000);
114
+ }
115
+ if (ele.ctrlKey) {
116
+ return true;
117
+ }
118
+ }
109
119
  let x = ele.clientX + 10;
110
120
  let y = ele.clientY;
111
121
  Array.from(rm.menuItems.other).forEach((item) => (item.style.display = "flex"));
File without changes