hexo-theme-solitude 1.4.2 → 1.4.4

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 (77) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +1 -1
  3. package/README_EN.md +1 -1
  4. package/_config.yml +165 -151
  5. package/languages/en-US.yml +31 -2
  6. package/languages/zh-CN.yml +32 -2
  7. package/languages/zh-TW.yml +147 -0
  8. package/layout/includes/footer.pug +2 -5
  9. package/layout/includes/head/config.pug +15 -2
  10. package/layout/includes/inject/body.pug +13 -4
  11. package/layout/includes/inject/head.pug +1 -4
  12. package/layout/includes/layout.pug +4 -0
  13. package/layout/includes/loading.pug +1 -1
  14. package/layout/includes/page/album.pug +4 -22
  15. package/layout/includes/page/gallery.pug +2 -2
  16. package/layout/includes/page/music.pug +1 -4
  17. package/layout/includes/page/says.pug +1 -3
  18. package/layout/includes/widgets/aside/asideInfoCard.pug +1 -1
  19. package/layout/includes/widgets/home/bb/json.pug +3 -2
  20. package/layout/includes/widgets/home/bb/local.pug +2 -3
  21. package/layout/includes/widgets/home/bb/memos.pug +4 -2
  22. package/layout/includes/widgets/page/about/authorinfo.pug +1 -1
  23. package/layout/includes/widgets/page/about/award.pug +6 -3
  24. package/layout/includes/widgets/page/about/hobbies.pug +2 -2
  25. package/layout/includes/widgets/page/about/motto.pug +17 -15
  26. package/layout/includes/widgets/page/about/skillsinfo.pug +38 -36
  27. package/layout/includes/widgets/page/about/tenyear.pug +1 -1
  28. package/layout/includes/widgets/page/says/json.pug +13 -9
  29. package/layout/includes/widgets/page/says/local.pug +1 -1
  30. package/layout/includes/widgets/page/says/memos.pug +10 -6
  31. package/layout/includes/widgets/rightside/index.pug +33 -22
  32. package/package.json +1 -1
  33. package/plugins.yml +7 -3
  34. package/scripts/event/cdn.js +5 -1
  35. package/scripts/event/init.js +18 -19
  36. package/scripts/event/page.js +0 -5
  37. package/scripts/filter/checkThemeConfig.js +23 -7
  38. package/scripts/filter/lazyload.js +2 -3
  39. package/scripts/generator/gallery.js +47 -0
  40. package/scripts/helper/related_post.js +0 -6
  41. package/scripts/helper/stylus.js +8 -3
  42. package/source/css/_layout/basic.styl +0 -3
  43. package/source/css/_layout/index.styl +54 -34
  44. package/source/css/_page/_about/index.styl +49 -0
  45. package/source/css/_page/{about → _about}/reward.styl +7 -0
  46. package/source/css/_page/{gallery → _gallery}/index.styl +16 -8
  47. package/source/css/_page/_home/home-top.styl +125 -302
  48. package/source/css/_page/_home/index.styl +9 -4
  49. package/source/css/_page/_home/recent-post.styl +1 -0
  50. package/source/css/_page/index.styl +3 -152
  51. package/source/css/_page/share.styl +318 -0
  52. package/source/css/_widgets/_aside/info.styl +3 -0
  53. package/source/css/_widgets/_comment/twikoo.styl +1 -1
  54. package/source/img/loading.gif +0 -0
  55. package/source/js/covercolor/local.js +11 -11
  56. package/source/js/main.js +63 -55
  57. package/source/js/rightside.js +159 -342
  58. package/source/js/search/algolia.js +1 -3
  59. package/source/js/search/local.js +1 -3
  60. package/source/js/tw_cn.js +76 -0
  61. package/source/js/utils.js +8 -27
  62. package/layout/includes/page/not_configured.pug +0 -18
  63. package/scripts/helper/cdn.js +0 -12
  64. package/source/css/_page/about/index.styl +0 -39
  65. /package/source/css/_page/{about → _about}/author.styl +0 -0
  66. /package/source/css/_page/{about → _about}/buff.styl +0 -0
  67. /package/source/css/_page/{about → _about}/careers.styl +0 -0
  68. /package/source/css/_page/{about → _about}/contentinfo.styl +0 -0
  69. /package/source/css/_page/{about → _about}/game.styl +0 -0
  70. /package/source/css/_page/{about → _about}/like.styl +0 -0
  71. /package/source/css/_page/{about → _about}/maxim.styl +0 -0
  72. /package/source/css/_page/{about → _about}/myphoto.styl +0 -0
  73. /package/source/css/_page/{about → _about}/oneself.styl +0 -0
  74. /package/source/css/_page/{about → _about}/personalities.styl +0 -0
  75. /package/source/css/_page/{about → _about}/skills.styl +0 -0
  76. /package/source/css/_page/{about → _about}/statistic.styl +0 -0
  77. /package/source/css/_page/{about → _about}/tenyear.styl +0 -0
@@ -11,66 +11,77 @@ div#rightMenu
11
11
  div.rightMenu-group.rightMenu-line.rightMenuPlugin
12
12
  div.rightMenu-item#menu-copytext
13
13
  i.scoicon.sco-copy-fill
14
- span 复制选中文本
14
+ span= _p('rightmenu.copytext')
15
15
  div.rightMenu-item#menu-pastetext
16
16
  i.scoicon.sco-clipboard-fill
17
- span 粘贴文本
17
+ span= _p('rightmenu.pastetext')
18
18
  if theme.comment.enable
19
19
  a.rightMenu-item#menu-commenttext
20
20
  i.scoicon.sco-chat-new-fill
21
- span 引用到评论
21
+ span= _p('rightmenu.commenttext')
22
22
  div.rightMenu-item#menu-newwindow
23
23
  i.scoicon.sco-window-fill
24
- span 新窗口打开
24
+ span= _p('rightmenu.newwindow')
25
25
  div.rightMenu-item#menu-copylink
26
26
  i.scoicon.sco-link-line
27
- span 复制链接地址
27
+ span= _p('rightmenu.copylink')
28
28
  div.rightMenu-item#menu-copyimg
29
29
  i.scoicon.sco-copy-fill
30
- span 复制此图片
30
+ span= _p('rightmenu.copyimg')
31
31
  div.rightMenu-item#menu-downloadimg
32
32
  i.scoicon.sco-download-cloud-fill
33
- span 下载此图片
33
+ span= _p('rightmenu.downloadimg')
34
34
  div.rightMenu-item#menu-search
35
35
  i.scoicon.sco-search-line
36
- span 站内搜索
37
- div.rightMenu-item#menu-searchBaidu
38
- i.scoicon.sco-baidu-fill
39
- span 百度搜索
36
+ span= _p('rightmenu.search')
40
37
  div.rightMenu-item#menu-music-toggle
41
38
  i.scoicon.sco-play-fill
42
- span 播放音乐
39
+ span= _p('rightmenu.music.toggle')
43
40
  div.rightMenu-item#menu-music-back
44
41
  i.scoicon.sco-skip-back-fill
45
- span 切换到上一首
42
+ span= _p('rightmenu.music.back')
46
43
  div.rightMenu-item#menu-music-forward
47
44
  i.scoicon.sco-skip-forward-fill
48
- span 切换到下一首
45
+ span= _p('rightmenu.music.forward')
49
46
  div.rightMenu-item#menu-music-playlist(onclick=`window.open('${theme.capsule.server === 'tencent' ? `https://y.qq.com/n/ryqq/playlist/${theme.capsule.id}` : `https://music.163.com/#/playlist?id=${theme.capsule.id}`}', '_blank');`)
50
47
  i.scoicon.sco-play-list-2-line
51
- span 查看所有歌曲
48
+ span= _p('rightmenu.music.playlist')
52
49
  div.rightMenu-item#menu-music-copyMusicName
53
50
  i.scoicon.sco-copy-fill
54
- span 复制歌名
51
+ span= _p('rightmenu.music.copyMusicName')
55
52
  div.rightMenu-group.rightMenu-line.rightMenuOther
56
53
  a.rightMenu-item.menu-Link#menu-randomPost
57
54
  i.scoicon.sco-signal-tower-fill
58
- span 随便逛逛
55
+ span= _p('rightmenu.randomPost')
59
56
  a.rightMenu-item.menu-link(href="/categories/")
60
57
  i.scoicon.sco-checkbox-multiple-blank-fill
61
- span 博客分类
58
+ span= _p('rightmenu.categories')
62
59
  a.rightMenu-item.menu-link(href="/tags/")
63
60
  i.scoicon.sco-price-tag-fill
64
- span 文章标签
61
+ span= _p('rightmenu.tags')
65
62
  div.rightMenu-group.rightMenu-line.rightMenuOther
66
63
  div.rightMenu-item#menu-copy
67
64
  i.scoicon.sco-external-link-fill
68
- span 复制地址
65
+ span= _p('rightmenu.copyaddress')
69
66
  if theme.comment.enable && theme.comment.commentBarrage
70
67
  div.rightMenu-item#menu-commentBarrage
71
68
  i.scoicon.sco-chat-fill
72
- span.menu-commentBarrage-text 关闭热评
69
+ span.menu-commentBarrage-text= _p('rightmenu.commentBarrage')
73
70
  div.rightMenu-item#menu-darkmode
74
71
  i.scoicon.sco-moon-clear-fill
75
- span.menu-darkmode-text 深色模式
72
+ case theme.display_mode.type
73
+ when 'auto'
74
+ when 'light'
75
+ span.menu-darkmode-text= _p('rightmenu.dark')
76
+ when 'dark'
77
+ span.menu-darkmode-text= _p('rightmenu.light')
78
+ if theme.translate.enable
79
+ div.rightMenu-item#menu-translate
80
+ case theme.translate.defaultEncoding
81
+ when 2
82
+ i.scoicon.sco-panben-line
83
+ span= _p('rightmenu.chs_to_cht')
84
+ when 1
85
+ i.scoicon.sco-jianben-line
86
+ span= _p('rightmenu.cht_to_chs')
76
87
  div#rightmenu-mask
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the DuoSco team",
5
5
  "main": "package.json",
6
6
  "scripts": {
package/plugins.yml CHANGED
@@ -64,7 +64,7 @@ pace_js:
64
64
  file: pace.min.js
65
65
  version: 1.2.4
66
66
  lunr_js:
67
- name: lunr
67
+ name: lunr.js
68
68
  file: lunr.min.js
69
69
  version: 2.3.9
70
70
  swiper_css:
@@ -90,11 +90,15 @@ snackbar:
90
90
  scoicon_css:
91
91
  name: solitude-source
92
92
  file: icon/scoicon.min.css
93
- version: 1.0.3
93
+ version: 1.0.5
94
94
  waterfall:
95
95
  name: solitude-source
96
96
  file: js/waterfall.min.js
97
- version: 1.0.3
97
+ version: 1.0.5
98
+ universe_js:
99
+ name: solitude-source
100
+ file: js/universe.min.js
101
+ version: 1.0.5
98
102
  medium_zoom:
99
103
  name: medium-zoom
100
104
  file: dist/medium-zoom.min.js
@@ -54,6 +54,11 @@ hexo.extend.filter.register('before_generate', () => {
54
54
  file: 'js/music.js',
55
55
  version
56
56
  },
57
+ translate:{
58
+ name: 'hexo-theme-solitude',
59
+ file: 'js/tw_cn.js',
60
+ version
61
+ },
57
62
  sco_ai_js: {
58
63
  name: 'hexo-theme-solitude',
59
64
  file: 'js/sco-ai.min.js',
@@ -101,7 +106,6 @@ hexo.extend.filter.register('before_generate', () => {
101
106
  unpkg: `https://unpkg.com/${name}${verType}/${file}`,
102
107
  cdnjs: `https://cdnjs.cloudflare.com/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file}`,
103
108
  custom: (CDN.custom_format || '').replace(/\$\{(.+?)\}/g, (match, $1) => value[$1]),
104
- custom_cdn: `${CDN.custom_cdn + cdnjs_file}`,
105
109
  cdncbd: `https://cdn.cbd.int/${name}${verType}/${file}`,
106
110
  }
107
111
 
@@ -1,22 +1,21 @@
1
1
  hexo.extend.filter.register('before_generate', () => {
2
- // Get first two digits of the Hexo version number
3
- const hexoVer = hexo.version.replace(/(^.*\..*)\..*/, '$1')
4
- const nodeVer = process.version.replace(/^v/, '');
5
- const [majorVer] = nodeVer.split('.');
6
- const logger = hexo.log, config = hexo.config
7
-
8
- if (hexoVer < 5.3) {
9
- logger.error('请把 Hexo 升级到 V5.3.0 或更高的版本!')
10
- process.exit(-1)
11
- }
2
+ const hexoVer = hexo.version.replace(/(^.*\..*)\..*/, '$1')
3
+ const nodeVer = process.version.replace(/^v/, '');
4
+ const [majorVer] = nodeVer.split('.');
5
+ const logger = hexo.log, config = hexo.config
6
+
7
+ if (hexoVer < 6.3) {
8
+ logger.error('请把 Hexo 升级到 V6.3.0 或更高的版本!')
9
+ process.exit(-1)
10
+ }
12
11
 
13
- if(config.prismjs.enable){
14
- logger.error('主题尚未支持 prismjs 请使用 highlightjs !')
15
- process.exit(-1)
12
+ if (config.prismjs.enable) {
13
+ logger.error('主题尚未支持 prismjs 请使用 highlightjs !')
14
+ process.exit(-1)
15
+ }
16
+ if (Number(majorVer) < 14) {
17
+ logger.error('请将 Node.js 升级到 v14.0.0 或更高的版本!');
18
+ process.exit(-1);
19
+ }
16
20
  }
17
- if (Number(majorVer) < 14) {
18
- logger.error('请将 Node.js 升级到 v14.0.0 或更高的版本!');
19
- process.exit(-1);
20
- }
21
- }
22
- )
21
+ )
@@ -1,4 +1,3 @@
1
- // generate 404 Page
2
1
  hexo.extend.generator.register('404', function (locals) {
3
2
  if(!this.theme.config.page.error)return
4
3
  return {
@@ -10,8 +9,6 @@ hexo.extend.generator.register('404', function (locals) {
10
9
  }
11
10
  }
12
11
  })
13
-
14
- // generate tags Page
15
12
  hexo.extend.generator.register('tags', function(locals) {
16
13
  if(!this.theme.config.page.tags)return
17
14
  return {
@@ -23,8 +20,6 @@ hexo.extend.generator.register('tags', function(locals) {
23
20
  }
24
21
  };
25
22
  });
26
-
27
- // generate categories Page
28
23
  hexo.extend.generator.register('categories', function(locals) {
29
24
  if(!this.theme.config.page.categories)return
30
25
  return {
@@ -1,12 +1,28 @@
1
1
  'use strict';
2
2
 
3
3
  hexo.extend.filter.register('before_post_render', () => {
4
- const logger = hexo.log;
5
- const theme = hexo.theme.config;
6
- if (theme.hometop.banner.enable && !theme.hometop.banner.icon) {
7
- logger.error('\n 启用banner的情况下,必须提供 icon 图片!\n 请在主题配置文件中设置 hometop.banner.icon 选项。');
8
- logger.error('\n If banner is enabled, icon image must be supplied! \n Please set the hometop.banner.icon option in the theme configuration file.');
9
- process.exit(-1);
4
+ const data = hexo.locals.get('data');
5
+ const logger = hexo.log;
6
+ const theme = hexo.theme.config;
7
+ if (theme.hometop.banner.enable && !theme.hometop.banner.icon) {
8
+ logger.error('\n 启用banner的情况下,必须提供 icon 图片!\n 请在主题配置文件中设置 hometop.banner.icon 选项。');
9
+ logger.error('\n If banner is enabled, icon image must be supplied! \n Please set the hometop.banner.icon option in the theme configuration file.');
10
+ process.exit(-1);
11
+ }
12
+ if (theme.says.enable && theme.says.mode === 'local' && !data.essay) {
13
+ logger.error('\n 启用说说的情况下,必须提供 essay 数据文件!\n 请新建 essay.yaml。');
14
+ logger.error('\n If says is enabled, essay data must be supplied! \n Please create essay.yaml.');
15
+ process.exit(-1);
16
+ }
17
+ if (theme.footer.randomlink && !data.links){
18
+ logger.error('\n 启用随机链接的情况下,必须提供 links 数据!\n 请新建 links.yaml。');
19
+ logger.error('\n If randomlink is enabled, links data must be supplied! \n Please create links.yaml.');
20
+ process.exit(-1);
21
+ }
22
+ if (theme.lightbox && !theme.fancybox && !theme.mediumZoom){
23
+ logger.error('\n 启用 lightbox 的情况下,必须提供 fancybox 或 mediumZoom 选项!\n 请在主题配置文件中设置 fancybox 或 mediumZoom 选项。');
24
+ logger.error('\n If lightbox is enabled, fancybox or mediumZoom option must be supplied! \n Please set the fancybox or mediumZoom option in the theme configuration file.');
25
+ process.exit(-1);
26
+ }
10
27
  }
11
- }
12
28
  );
@@ -3,9 +3,8 @@ const urlFor = require('hexo-util').url_for.bind(hexo)
3
3
  hexo.extend.filter.register('after_render:html', function (data) {
4
4
  const config = hexo.theme.config.lazyload
5
5
  if (!config.enable) return
6
- const bg = config.placeholder ? urlFor(config.placeholder) : 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'
7
6
  return data.replace(
8
- /(<img(?!.*?class[\t]*=[\t]*['"].*?nolazyload.*?['"]).*? src=)/gi,
9
- `$1 "${bg}" data-lazy-src=`
7
+ /(<img(?!.*?class[\t]*=[\t]*['"].*?nolazyload.*?['"]).*?)( src=)/gi,
8
+ `$1 data-lazy-src=`
10
9
  )
11
10
  })
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Created by wleelw on 2024/2/4.
3
+ */
4
+
5
+ hexo.extend.generator.register('gallery', function (locals) {
6
+ if (!hexo.theme.config.album.enable) return;
7
+ const album = locals.data.gallery.gallery;
8
+ if (!album) return;
9
+ return {
10
+ path: album.url + '/index.html', layout: ['page'], data: {
11
+ url: album.url,
12
+ cover: album.cover,
13
+ type: 'gallery',
14
+ comment: album.comment,
15
+ desc: album.title,
16
+ title: album.title,
17
+ album: album.album_list,
18
+ leftend: album.descr,
19
+ rightbtn: album.rightbtn,
20
+ rightbtnlink: album.rightbtnlink
21
+ }
22
+ }
23
+ });
24
+
25
+ hexo.extend.generator.register('album', function (locals) {
26
+ if (!hexo.theme.config.album.enable) return;
27
+ const album = locals.data.gallery.gallery;
28
+ let back = hexo.config.language === 'zh-CN' ? '返回相册' : hexo.config.language === 'zh-TW' ? '返回相冊' : 'Back to Album';
29
+ if (!album) return;
30
+ const albumPages = [];
31
+ album.album_list.forEach(function (item) {
32
+ albumPages.push({
33
+ path: album.url + '/' + item.album + '/index.html', layout: ['page'], data: {
34
+ album: item,
35
+ type: 'album',
36
+ cover: item.cover,
37
+ title: item.class_name,
38
+ desc: item.class_name,
39
+ leftend: item.descr,
40
+ rightbtn: back,
41
+ rightbtnlink: `/${album.url}/`,
42
+ comment: item.comment
43
+ }
44
+ });
45
+ });
46
+ return albumPages;
47
+ });
@@ -1,9 +1,3 @@
1
- /**
2
- * Solitude
3
- * Related Posts
4
- * According the tag
5
- */
6
-
7
1
  'use strict'
8
2
 
9
3
  hexo.extend.helper.register('related_posts', function (currentPost, allPosts) {
@@ -1,13 +1,12 @@
1
1
  hexo.extend.filter.register('stylus:renderer', function (style) {
2
2
  const {config, theme} = this
3
+ const data = hexo.locals.get('data');
3
4
 
4
- // 侧边栏标签高亮
5
5
  if (theme.config.aside.tags.highlight) {
6
6
  let array = theme.config.aside.tags.list.map(item => encodeURIComponent(item));
7
7
  style.define('highlightTags', array);
8
8
  }
9
9
 
10
- // 侧边栏加载样式控制
11
10
  let aside = [
12
11
  theme.config.aside.home.noSticky,
13
12
  theme.config.aside.home.Sticky,
@@ -17,7 +16,13 @@ hexo.extend.filter.register('stylus:renderer', function (style) {
17
16
  theme.config.aside.page.noSticky
18
17
  ].join(',').split(',');
19
18
  let uniqueArr = [...new Set(aside)]; // 去重
20
- if (uniqueArr.length > 0) { // 是否为空
19
+ if (uniqueArr.length > 0) {
21
20
  style.define('aside', uniqueArr);
22
21
  }
22
+
23
+ if (data && data.about) {
24
+ style.define('about', Object.keys(data.about));
25
+ } else {
26
+ style.define('about', []);
27
+ }
23
28
  });
@@ -59,9 +59,6 @@ a
59
59
  overflow-wrap break-word
60
60
  -webkit-user-drag none
61
61
 
62
- &:hover
63
- color var(--sco-lighttext)
64
-
65
62
  abbr[title]
66
63
  border-bottom none
67
64
  text-decoration underline dotted
@@ -54,40 +54,41 @@ span.tags-punctuation::before
54
54
  line-height 32px
55
55
 
56
56
  // snackbar
57
- .snackbar-container
58
- background var(--sco-lighttext)!important
59
- color var(--sco-card-bg)!important
60
- border-radius 0!important
57
+ .snackbar-container
58
+ background var(--sco-lighttext) !important
59
+ color var(--sco-card-bg) !important
60
+ border-radius 0 !important
61
61
  display flex
62
- justify-content center!important
63
- max-width none!important
64
- min-width 100%!important
65
- margin 0!important
66
- left 0!important
67
- height 60px!important
68
- transform none!important
69
-
70
- .snackbar-container p
71
- color var(--sco-card-bg)!important
72
- font-weight 700!important
73
- text-align center!important
74
- font-size .8rem!important
75
- display flex!important
76
- justify-content center!important
77
-
78
- .snackbar-container .action
79
- color var(--sco-card-bg)!important
80
- background var(--sco-lighttext)!important
81
- padding 4px 6px!important
62
+ justify-content center !important
63
+ max-width none !important
64
+ min-width 100% !important
65
+ margin 0 !important
66
+ left 0 !important
67
+ height 60px !important
68
+ transform none !important
69
+
70
+ .snackbar-container p
71
+ color var(--sco-card-bg) !important
72
+ font-weight 700 !important
73
+ text-align center !important
74
+ font-size .8rem !important
75
+ display flex !important
76
+ justify-content center !important
77
+
78
+ .snackbar-container .action
79
+ color var(--sco-card-bg) !important
80
+ background var(--sco-lighttext) !important
81
+ padding 4px 6px !important
82
82
  font-weight 700
83
- border-radius 8px!important
83
+ border-radius 8px !important
84
84
  transition .3s
85
- border var(--style-border)!important
86
- .snackbar-container .action:hover
87
- color var(--sco-lighttext)!important
88
- background var(--sco-card-bg)!important
85
+ border var(--style-border) !important
86
+
87
+ .snackbar-container .action:hover
88
+ color var(--sco-lighttext) !important
89
+ background var(--sco-card-bg) !important
89
90
 
90
- .snackbar-container::after
91
+ .snackbar-container::after
91
92
  position absolute
92
93
  width 0
93
94
  height 100%
@@ -99,8 +100,27 @@ span.tags-punctuation::before
99
100
  animation snackbar-progress var(--sco-snackbar-time) linear forwards
100
101
  pointer-events none
101
102
 
102
- @keyframes snackbar-progress
103
- from
103
+ @keyframes snackbar-progress
104
+ from
104
105
  width 0
105
- to
106
- width 100%
106
+ to
107
+ width 100%
108
+
109
+ // universe
110
+ if hexo-config('display_mode.universe')
111
+ #universe
112
+ display block
113
+ position fixed
114
+ margin 0
115
+ padding 0
116
+ border 0
117
+ outline 0
118
+ left 0
119
+ top 0
120
+ width 100%
121
+ height 100%
122
+ pointer-events none
123
+ z-index 1
124
+ [data-theme=light]
125
+ #universe
126
+ display none
@@ -0,0 +1,49 @@
1
+ #about-page
2
+ display flex
3
+ padding-top 1rem
4
+ flex-direction column
5
+ align-items center
6
+
7
+ .author-title
8
+ font-size 2rem
9
+ font-weight 700
10
+ margin 1rem 0
11
+ line-height 1
12
+
13
+ if "tenyear" in about
14
+ @import "tenyear"
15
+
16
+ if "authorinfo" in about
17
+ @import "author"
18
+
19
+ if "contentinfo" in about
20
+ @import "contentinfo"
21
+
22
+ if "skills" in about
23
+ @import "skills"
24
+
25
+ if "oneself" in about
26
+ @import "oneself"
27
+
28
+ if "motto" in about
29
+ @import "buff"
30
+ @import "maxim"
31
+
32
+ if "game1" in about
33
+ @import "game"
34
+
35
+ if "personalities" in about
36
+ @import "personalities"
37
+ @import "myphoto"
38
+
39
+ if "careers" in about
40
+ @import "careers"
41
+
42
+ if "likes" in about
43
+ @import "like"
44
+
45
+ if "tj" in about
46
+ @import "statistic"
47
+
48
+ if "award" in about
49
+ @import "reward"
@@ -98,10 +98,17 @@
98
98
  color var(--sco-card-bg)
99
99
  font-size 12px
100
100
  line-height 1
101
+ display flex
102
+ align-items center
103
+ justify-content center
101
104
  border-radius 4px
102
105
  margin-right 4px
103
106
  white-space nowrap
104
107
 
108
+ .scoicon
109
+ font-size 14px
110
+ margin-right 4px
111
+
105
112
  .reward-list-item-time
106
113
  font-size 12px
107
114
  color var(--sco-secondtext)
@@ -1,19 +1,29 @@
1
1
  #gallery
2
- width 100%
2
+ padding 16px 0
3
3
  display flex
4
4
  flex-wrap wrap
5
- justify-content start
6
- padding 10px 0
5
+ -webkit-box-pack start
6
+ justify-content flex-start
7
+ margin -8px
8
+ -webkit-box-align stretch
9
+ align-items stretch
7
10
 
8
11
  .gallery-item
9
12
  overflow hidden
10
13
  border var(--style-border-always)
11
14
  border-radius 12px
12
15
  position relative
16
+ float left
13
17
  display flex
14
18
  height 250px
15
- width calc(100% / 3 - 10px)
19
+ width calc(100% / 3 - 16px)
16
20
  cursor pointer
21
+ margin 8px
22
+ +maxWidth1200()
23
+ width calc(100% / 2 - 16px)
24
+
25
+ +maxWidth768()
26
+ width 100%
17
27
 
18
28
  &:hover
19
29
  .cover
@@ -65,7 +75,7 @@
65
75
  text-wrap break-word
66
76
 
67
77
  #album
68
- margin 22px auto 0
78
+ margin 5px auto
69
79
 
70
80
  .locate
71
81
  display flex
@@ -81,14 +91,12 @@
81
91
  z-index 1
82
92
  user-select none
83
93
 
84
- #sco-container
85
- margin-top 22px
86
-
87
94
  .sco-gallery-item
88
95
  margin-bottom 24px
89
96
  overflow hidden
90
97
  border-radius 8px
91
98
  transition all .3s
99
+ border var(--style-border-always)
92
100
 
93
101
  .sco-gallery-image
94
102
  width 100%