hexo-theme-stellar 1.10.0 → 1.12.0

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 (73) hide show
  1. package/_config.yml +39 -56
  2. package/_data/widgets.yml +70 -0
  3. package/languages/en.yml +0 -1
  4. package/languages/zh-CN.yml +4 -5
  5. package/languages/zh-TW.yml +4 -5
  6. package/layout/_partial/main/article/read_next.ejs +16 -17
  7. package/layout/_partial/main/navbar/breadcrumb.ejs +1 -1
  8. package/layout/_partial/main/navbar/list_post.ejs +2 -2
  9. package/layout/_partial/main/post_list/post_card.ejs +21 -15
  10. package/layout/_partial/main/post_list/wiki_card.ejs +1 -1
  11. package/layout/_partial/sidebar/header.ejs +2 -26
  12. package/layout/_partial/sidebar/index.ejs +6 -6
  13. package/layout/_partial/sidebar/logo.ejs +3 -3
  14. package/layout/_partial/sidebar/menu.ejs +27 -0
  15. package/layout/_partial/sidebar/widgets/ghissues.ejs +46 -0
  16. package/layout/_partial/sidebar/widgets/ghrepo.ejs +53 -0
  17. package/layout/_partial/sidebar/widgets/ghuser.ejs +9 -11
  18. package/layout/_partial/sidebar/widgets/markdown.ejs +1 -1
  19. package/layout/_partial/sidebar/widgets/recent.ejs +8 -11
  20. package/layout/_partial/sidebar/widgets/{wiki_more.ejs → related.ejs} +7 -7
  21. package/layout/_partial/sidebar/widgets/tagcloud.ejs +24 -0
  22. package/layout/_partial/sidebar/widgets/timeline.ejs +27 -0
  23. package/layout/_partial/sidebar/widgets/toc.ejs +2 -6
  24. package/layout/index.ejs +1 -1
  25. package/package.json +1 -1
  26. package/scripts/events/lib/config.js +26 -10
  27. package/scripts/events/lib/doc_tree.js +3 -0
  28. package/scripts/helpers/related_posts.js +11 -39
  29. package/scripts/tags/about.js +10 -7
  30. package/scripts/tags/{grid.js → border.js} +4 -4
  31. package/scripts/tags/folders.js +55 -0
  32. package/scripts/tags/link.js +11 -9
  33. package/scripts/tags/navbar.js +1 -1
  34. package/scripts/tags/sites.js +1 -1
  35. package/scripts/tags/split.js +51 -0
  36. package/scripts/tags/timeline.js +4 -2
  37. package/source/css/_common/base.styl +5 -2
  38. package/source/css/_common/blur.styl +3 -0
  39. package/source/css/_common/device.styl +2 -0
  40. package/source/css/_common/highlight.styl +1 -1
  41. package/source/css/_common/loading.styl +16 -3
  42. package/source/css/_common/title.styl +0 -13
  43. package/source/css/_custom.styl +23 -26
  44. package/source/css/_defines/theme.styl +12 -12
  45. package/source/css/_layout/list.styl +40 -9
  46. package/source/css/_layout/md.styl +2 -2
  47. package/source/css/_layout/partial/related.styl +62 -93
  48. package/source/css/_layout/sidebar/footer.styl +4 -2
  49. package/source/css/_layout/sidebar/ghrepo.styl +36 -0
  50. package/source/css/_layout/sidebar/ghuser.styl +19 -1
  51. package/source/css/_layout/sidebar/sidebar.styl +4 -91
  52. package/source/css/_layout/sidebar/toc_common.styl +5 -3
  53. package/source/css/_layout/sidebar/widgets.styl +104 -0
  54. package/source/css/_layout/tag-plugins/about.styl +21 -17
  55. package/source/css/_layout/tag-plugins/common.styl +36 -31
  56. package/source/css/_layout/tag-plugins/folders.styl +62 -0
  57. package/source/css/_layout/tag-plugins/link.styl +41 -27
  58. package/source/css/_layout/tag-plugins/navbar.styl +10 -4
  59. package/source/css/_layout/tag-plugins/poetry.styl +1 -1
  60. package/source/css/_layout/tag-plugins/quot.styl +8 -7
  61. package/source/css/_layout/tag-plugins/split.styl +28 -0
  62. package/source/css/_layout/tag-plugins/timeline.styl +69 -41
  63. package/source/css/_plugins/comments/twikoo.styl +12 -6
  64. package/source/css/_plugins/comments/valine.styl +4 -0
  65. package/source/css/_plugins/comments/waline.styl +2 -2
  66. package/source/js/main.js +14 -8
  67. package/source/js/plugins/friends.js +3 -2
  68. package/source/js/plugins/ghinfo.js +14 -2
  69. package/source/js/plugins/linkcard.js +124 -0
  70. package/source/js/plugins/sites.js +4 -3
  71. package/source/js/plugins/timeline.js +60 -33
  72. package/layout/_partial/sidebar/widgets/repo_info.ejs +0 -91
  73. package/source/css/_layout/sidebar/repo_info.styl +0 -31
@@ -12,8 +12,8 @@ a
12
12
  &:hover
13
13
  color: $color-hover
14
14
 
15
- p:not([class])
16
- text-align: justify
15
+ .md p:not([class])
16
+ text-align: convert(hexo-config('style.text-align'))
17
17
 
18
18
  hr
19
19
  color: var(--text-meta)
@@ -53,3 +53,6 @@ table:not([class])
53
53
  trans()
54
54
  &:hover
55
55
  background: var(--block)
56
+
57
+ *[ff=title]
58
+ font-family: $ff-logo
@@ -5,6 +5,9 @@ if hexo-config('style.darkmode') == 'auto'
5
5
  @media (prefers-color-scheme: dark)
6
6
  :root
7
7
  --blur-bg: alpha(black, .5)
8
+ if hexo-config('style.darkmode') == 'always'
9
+ :root
10
+ --blur-bg: alpha(black, .5)
8
11
 
9
12
  .blur
10
13
  background: var(--blur-bg)
@@ -24,6 +24,8 @@
24
24
  if hexo-config('style.darkmode') == 'auto'
25
25
  @media (prefers-color-scheme: dark)
26
26
  --blur-bg: alpha(#555, .6)
27
+ if hexo-config('style.darkmode') == 'always'
28
+ --blur-bg: alpha(#555, .6)
27
29
 
28
30
  .sidebar-toggle.mobile
29
31
  cursor: pointer
@@ -20,7 +20,7 @@ article.md .highlight, pre:not([class]):has(>code)
20
20
  font-family: $ff-code
21
21
  box-sizing: border-box
22
22
  @media screen and (min-width: $device-mobile)
23
- min-width: 280px
23
+ min-width: 180px
24
24
 
25
25
  article.md .highlight
26
26
  position: relative
@@ -15,6 +15,19 @@ svg.loading
15
15
  transform:rotate(360deg)
16
16
 
17
17
  .loading-wrap
18
- min-height: 50px
19
- margin: 2rem 0
20
- text-align: center
18
+ margin: 0
19
+ text-align: center
20
+ background: var(--block)
21
+ border-radius: $border-card
22
+ position relative
23
+ padding: 2rem
24
+ svg
25
+ margin: 4px
26
+ &:after
27
+ content: hexo-config('style.loading.loading')
28
+ color: var(--text-p1)
29
+ display: block
30
+ font-size: 14px
31
+ &.error
32
+ &:after
33
+ content: hexo-config('style.loading.error')
@@ -25,19 +25,6 @@ h6
25
25
  .fs12
26
26
  font-size: $fs-12
27
27
 
28
- .post-list
29
- .post-title
30
- font-weight: 500
31
- margin: .75rem 0 .5rem
32
- line-height: 1.2
33
- font-size: $fs-h3
34
- border-bottom: none
35
- color: var(--text-p0)
36
- trans1 color
37
- .wiki .post-title
38
- margin-top: 0.5rem
39
- font-weight: 700
40
-
41
28
  .widgets
42
29
  .post-title
43
30
  margin: 0.75rem 0
@@ -1,33 +1,30 @@
1
1
  @require('_defines/const')
2
2
 
3
3
  // 通用主题色
4
- $color-theme = #1BCDFC
5
- $color-link = #2196f3
6
- $color-button = #1BCDFC
7
- $color-hover = #ff5722
8
- $color-highlight = #ff5722
9
- $color-inner = #fff
10
- $color-cat = #FF7844
11
- $color-cat-hover = darken($color-cat, 20)
4
+ $color-theme = convert(hexo-config('style.color.common.theme'))
5
+ $color-accent = convert(hexo-config('style.color.common.accent'))
6
+ $color-link = convert(hexo-config('style.color.common.link'))
7
+ $color-button = convert(hexo-config('style.color.common.button'))
8
+ $color-hover = convert(hexo-config('style.color.common.hover'))
12
9
 
13
10
  // 浅色
14
- $light-site-bg = convert(hexo-config('style.theme.light'))
15
- $light-block = #f2f2f2
16
- $light-title = #000
17
- $light-text = #333
18
- $light-code = #111
19
- $light-card = white
11
+ $light-background = convert(hexo-config('style.color.light.background'))
12
+ $light-block = convert(hexo-config('style.color.light.block'))
13
+ $light-card = convert(hexo-config('style.color.light.card'))
14
+ $light-title = convert(hexo-config('style.color.light.title'))
15
+ $light-text = convert(hexo-config('style.color.light.text'))
16
+ $light-code = convert(hexo-config('style.color.light.code'))
20
17
 
21
18
  // 深色
22
- $dark-site-bg = convert(hexo-config('style.theme.dark'))
23
- $dark-block = darken(saturate($dark-site-bg, 40%), 2)
24
- $dark-title = #fff
25
- $dark-text = #eee
26
- $dark-code = #ff7043
27
- $dark-card = lighten(saturate($dark-site-bg, 50%), 10)
19
+ $dark-background = convert(hexo-config('style.color.dark.background'))
20
+ $dark-block = convert(hexo-config('style.color.dark.block'))
21
+ $dark-card = convert(hexo-config('style.color.dark.card'))
22
+ $dark-title = convert(hexo-config('style.color.dark.title'))
23
+ $dark-text = convert(hexo-config('style.color.dark.text'))
24
+ $dark-code = convert(hexo-config('style.color.dark.code'))
28
25
 
29
26
  // 移动端深色背景(OLED调成纯黑可以省电)
30
- $dark-site-bg-mobile = black
27
+ $dark-background-mobile = convert(hexo-config('style.color.dark.background-mobile'))
31
28
 
32
29
 
33
30
  // @font-face
@@ -51,7 +48,7 @@ if hexo-config('style.font-family.logo')
51
48
 
52
49
 
53
50
  // font size
54
- $fs-root = 16px
51
+ $fs-root = convert(hexo-config('style.font-size'))
55
52
  $fs-15 = .9375rem
56
53
  $fs-14 = .875rem
57
54
  $fs-13 = .8125rem
@@ -72,14 +69,14 @@ $border-image = 6px
72
69
 
73
70
  // 可以动态变化的属性
74
71
  :root
75
- --width-left: 256px
72
+ --width-left: 288px
76
73
  --width-main: 720px
77
74
  --gap-l: 16px
78
75
  --gap-p: .75rem // gap for paragraph
79
76
  // desktop 2k or larger
80
77
  @media screen and (min-width: $device-2k)
81
78
  --gap-l: 32px
82
- --width-left: 320px
79
+ --width-left: 352px
83
80
  --width-main: 780px
84
81
  // desktop 4k or larger
85
82
  @media screen and (min-width: $device-4k)
@@ -87,10 +84,10 @@ $border-image = 6px
87
84
  --gap-l: 64px
88
85
  // iPad 竖屏
89
86
  @media screen and (max-width: $device-tablet)
90
- --width-left: 220px
87
+ --width-left: 252px
91
88
  // iPad 竖屏
92
89
  @media screen and (max-width: $device-mobile-max)
93
- --width-left: 256px
90
+ --width-left: 288px
94
91
 
95
92
 
96
93
 
@@ -1,14 +1,14 @@
1
1
  :root
2
- --site-bg: $light-site-bg
2
+ --site-bg: $light-background
3
3
  --block: $light-block
4
4
  --block-border: darken($light-block, 5)
5
5
  --block-hover: darken($light-block, 2)
6
6
  --text-p0: $light-title
7
7
  --text-p1: $light-text
8
- --text-p2: mix($light-text, $light-site-bg, 80)
9
- --text-p3: mix($light-text, $light-site-bg, 60)
10
- --text-p4: mix($light-text, $light-site-bg, 35)
11
- --text-meta: mix($light-text, $light-site-bg, 20)
8
+ --text-p2: mix($light-text, $light-background, 80)
9
+ --text-p3: mix($light-text, $light-background, 60)
10
+ --text-p4: mix($light-text, $light-background, 35)
11
+ --text-meta: mix($light-text, $light-background, 20)
12
12
  --text-code: $light-code
13
13
  --card: $light-card
14
14
  --theme-highlight: darken($color-theme, 5)
@@ -16,22 +16,22 @@
16
16
 
17
17
  set_darkmode()
18
18
  :root
19
- --site-bg: $dark-site-bg
19
+ --site-bg: $dark-background
20
20
  --block: $dark-block
21
21
  --block-border: lighten($dark-block, 6)
22
22
  --block-hover: darken($dark-block, 4)
23
23
  --text-p0: $dark-title
24
- --text-p1: mix($dark-text, $dark-site-bg, 85)
25
- --text-p2: mix($dark-text, $dark-site-bg, 70)
26
- --text-p3: mix($dark-text, $dark-site-bg, 45)
27
- --text-p4: mix($dark-text, $dark-site-bg, 35)
28
- --text-meta: mix($dark-text, $dark-site-bg, 30)
24
+ --text-p1: mix($dark-text, $dark-background, 85)
25
+ --text-p2: mix($dark-text, $dark-background, 70)
26
+ --text-p3: mix($dark-text, $dark-background, 45)
27
+ --text-p4: mix($dark-text, $dark-background, 35)
28
+ --text-meta: mix($dark-text, $dark-background, 30)
29
29
  --text-code: $dark-code
30
30
  --card: $dark-card
31
31
  --theme-highlight: $color-theme
32
32
  --theme-bg: mix($color-theme, $dark-card, 10)
33
33
  @media screen and (max-width: $device-mobile-max)
34
- --site-bg: $dark-site-bg-mobile
34
+ --site-bg: $dark-background-mobile
35
35
  --card: darken($dark-card, 6)
36
36
  --block: darken($dark-block, 4)
37
37
  --block-border: lighten($dark-block, 2)
@@ -1,6 +1,25 @@
1
1
  // list
2
2
  .post-list
3
3
  margin: 1rem
4
+ .post-title
5
+ margin-top: 1.5rem
6
+ .post-title:first-child
7
+ margin-top: .5rem
8
+
9
+ .post-list
10
+ .post-title
11
+ font-weight: 500
12
+ margin: .75rem 0
13
+ line-height: 1.2
14
+ font-size: $fs-h3
15
+ border-bottom: none
16
+ color: var(--text-p0)
17
+ trans1 color
18
+ @media screen and (max-width: $device-mobile)
19
+ font-size: $fs-h4
20
+ margin: 0.5rem 0
21
+ .wiki .post-title
22
+ margin-top: 0.5rem
4
23
 
5
24
  // card
6
25
  .post-list .post-card
@@ -14,14 +33,18 @@
14
33
  position: relative
15
34
  .excerpt
16
35
  margin: 1rem 0
36
+ @media screen and (max-width: $device-mobile)
37
+ margin: 0.5rem 0
17
38
  >p
18
39
  margin: 1rem 0
40
+ @media screen and (max-width: $device-mobile)
41
+ margin: 0.5rem 0
19
42
  line-height: 1.5
20
43
  .meta.cap
21
44
  display: flex
22
45
  flex-wrap: wrap
23
46
  align-items: center
24
- margin: .5rem 0
47
+ margin: 0.25rem 0
25
48
  line-height: 1.5
26
49
  span+span
27
50
  margin-left: 0.5rem
@@ -37,10 +60,11 @@
37
60
  // common article
38
61
  .post-list article.md
39
62
  padding: 1rem
63
+ @media screen and (max-width: $device-mobile)
64
+ padding: 0.5rem 1rem
40
65
  p
41
66
  color: var(--text-p2)
42
- @media screen and (min-width: $device-mobile)
43
- font-size: $fs-14
67
+ font-size: $fs-14
44
68
 
45
69
 
46
70
  // posts
@@ -51,6 +75,7 @@
51
75
  margin-left: -1rem
52
76
  margin-top: -1rem
53
77
  margin-right: -1rem
78
+ background: var(--block)
54
79
  &:not(.lazy)
55
80
  trans1: transform 1s
56
81
  img
@@ -76,7 +101,7 @@
76
101
  img
77
102
  width: 100%
78
103
  .cover-info
79
- padding: 1rem
104
+ padding: 1.5rem 1rem
80
105
  position: absolute
81
106
  line-height: 1.2
82
107
  width: 'calc(100% - %s * 2)' % 1rem
@@ -84,20 +109,26 @@
84
109
  color: white
85
110
  &[position=top]
86
111
  top: 0
87
- background-image: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.3),rgba(0,0,0,0))
112
+ background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.2),rgba(0,0,0,0))
88
113
  &[position=bottom]
89
114
  bottom: 0
90
- background-image: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.3),rgba(0,0,0,0.4))
115
+ background-image: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.2),rgba(0,0,0,0.3))
91
116
  div+div
92
- margin-top: 8px
93
- @media screen and (max-width: $device-mobile)
94
- margin-top: 4px
117
+ margin-top: 4px
95
118
  .cap
96
119
  color: white
97
120
  font-size: $fs-13
98
121
  .title
99
122
  font-weight: 500
100
123
  font-size: $fs-h3
124
+ @media screen and (max-width: $device-mobile)
125
+ padding: 1rem
126
+ div+div
127
+ margin-top: 2px
128
+ .title
129
+ font-size: $fs-h4
130
+ .cap
131
+ font-size: $fs-12
101
132
  h2
102
133
  margin: .25rem 0
103
134
  font-size: $fs-h4
@@ -24,7 +24,7 @@ article.md.content
24
24
  &.indent
25
25
  >p:not([class])
26
26
  text-indent: 'calc(%s * 2)' % $fs-p
27
- text-align: justify
27
+ text-align: convert(hexo-config('style.text-align'))
28
28
  a
29
29
  text-indent: 0
30
30
  h1,h2,h3,h4,h5,h6
@@ -32,7 +32,7 @@ article.md.content
32
32
  >h2:not([class])
33
33
  align-self: center
34
34
  border-bottom-style: dashed
35
- border-bottom-color: $color-highlight
35
+ border-bottom-color: $color-accent
36
36
  >:first-child
37
37
  margin-top: 0
38
38
  h1:not(:first-child)
@@ -1,5 +1,6 @@
1
1
  .related-wrap
2
- padding: 2rem 1rem
2
+ padding: 1rem
3
+ margin: 2rem 0
3
4
  &:empty
4
5
  display: none
5
6
  section.header
@@ -18,108 +19,76 @@
18
19
  color: var(--text-p1)
19
20
 
20
21
 
21
- .related-wrap#related-posts
22
- .related-posts
23
- width: 100%
24
- display: flex
25
- margin: 1rem 0
26
- overflow-x: scroll
27
- align-items: flex-start
28
- scrollbar(8px, 4px)
29
- padding-bottom: 8px
30
- border-radius: $border-block
31
- a
32
- flex-grow: 0
33
- flex-shrink: 0
34
- background: var(--card)
35
- border-radius: $border-block
36
- padding-bottom: 1rem
37
- line-height: 1.2
38
- display: flex
39
- flex-direction: column
22
+
23
+ .related-posts
24
+ width: 100%
25
+ margin: 1rem 0
26
+ .item
27
+ line-height: 1.2
28
+ display: block
29
+ border-left: 0
30
+ margin-top: 1rem
31
+ .title
32
+ color: var(--text-p1)
33
+ font-weight: 500
34
+ font-size: 1rem
35
+ trans1 color
36
+ position: relative
37
+ padding-bottom: 4px
38
+ &:after
39
+ content: ''
40
+ position: absolute
41
+ left: 0
42
+ width: 0
43
+ height: 2px
44
+ bottom: 0
45
+ border-radius: 2px
46
+ background: $color-hover
47
+ trans1 width
48
+ .excerpt
49
+ color: var(--text-p3)
50
+ font-size: $fs-12
51
+ margin-top: 0.5rem
52
+ display: -webkit-box
53
+ -webkit-box-orient: vertical
40
54
  overflow: hidden
41
- min-width: 280px
42
- width: 40vw
43
- max-width: 460px
44
- border: 1px solid var(--block-hover)
45
- z-index: 1
46
- .img
47
- min-width: 100%
48
- min-height: 140px
49
- height: "calc(%s * 0.5)" % @width
50
- max-height: 230px
51
- overflow: hidden
52
- img
53
- width: 100%
54
- height: 100%
55
- object-fit: cover
56
- &:not(.lazy)
57
- trans1: transform 1s
58
- @media screen and (max-width: $device-tablet)
59
- width: 70vw
60
- .img
61
- height: "calc(%s * 0.5)" % @width
55
+ -webkit-line-clamp: 2
56
+ &:hover
62
57
  .title
63
- color: var(--text-p1)
64
- font-weight: 500
65
- font-size: $fs-15
66
- margin: .75rem .75rem 0 .75rem
67
- display: -webkit-box
68
- -webkit-box-orient: vertical
69
- overflow: hidden
70
- -webkit-line-clamp: 2
71
- .excerpt
72
- color: var(--text-p2)
73
- font-size: $fs-13
74
- margin: 0.4rem .75rem 0 .75rem
75
- display: -webkit-box
76
- -webkit-box-orient: vertical
77
- overflow: hidden
78
- -webkit-line-clamp: 3
79
- &:hover
80
- img
81
- transform: scale(1.04)
82
- a+a
83
- margin-left: 1rem
58
+ color: $color-hover
59
+ &:after
60
+ width: 100%
84
61
 
85
62
 
86
63
  .related-wrap#read-next
87
64
  .body
88
- background: var(--block)
89
- border-radius: $border-block
90
- border: 1px solid var(--block-border)
91
- margin-top: 1rem
92
- overflow: hidden
93
- .line
94
- margin: 0
95
- height: 1px
96
- background: var(--block-border)
97
- &+.line,&:first-child,&:last-child
98
- display: none
99
- >a
100
- display: flex
65
+ display: grid
66
+ grid-gap: 16px
67
+ grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 16px)
68
+ .item
69
+ border-top: 1px dashed var(--block-border)
70
+ border-bottom: 1px dashed var(--block-border)
71
+ padding: 1rem 0
72
+ .note
73
+ margin-bottom: 0.75rem
74
+ font-size: $fs-12
75
+ color: var(--text-p4)
76
+ font-weight: 500
77
+ a
101
78
  margin: 0
102
79
  line-height: 1.2
103
- padding: 0.75rem 0.5rem
104
- color: var(--text-p3)
105
- justify-content: space-between
106
- align-items: center
107
- font-weight: 500
108
- font-size: $fs-12
109
- &:first-child
110
- color: var(--text-p1)
111
- font-size: $fs-h4
112
- font-weight: 400
113
- .note
114
- flex-shrink: 0
115
- margin-left: 4px
116
- font-size: $fs-12
117
- color: var(--text-p4)
118
- font-weight: 500
80
+ color: var(--text-p1)
81
+ font-size: $fs-h4
119
82
  &:hover
120
83
  color: $color-hover !important
121
- background: var(--card)
122
-
84
+ #next
85
+ text-align: right
86
+ .wiki+.related-wrap#read-next
87
+ .item
88
+ a
89
+ font-size: $fs-h3
90
+ &#prev a
91
+ color: var(--text-p3)
123
92
 
124
93
 
125
94
  .related-wrap#comments
@@ -1,5 +1,5 @@
1
- .l_left .footer
2
- margin-top: .5rem
1
+ .l_left>.footer
2
+ margin: 0.5rem var(--gap-l) 0
3
3
  @media screen and (max-width: $device-tablet)
4
4
  margin-bottom: 1rem
5
5
 
@@ -26,6 +26,8 @@
26
26
  if hexo-config('style.darkmode') == 'auto'
27
27
  @media (prefers-color-scheme: dark)
28
28
  box-shadow: none
29
+ if hexo-config('style.darkmode') == 'always'
30
+ box-shadow: none
29
31
 
30
32
  .proj-wrap
31
33
  display: grid
@@ -0,0 +1,36 @@
1
+ .widget-wrap#repo-info
2
+ .widget-body
3
+ a.repo
4
+ display: block
5
+ padding: 0.75rem 0.5rem
6
+ color: var(--text-p2)
7
+ background: var(--card)
8
+ border-radius: $border-block
9
+ box-shadow: $boxshadow-card
10
+ trans2 box-shadow transform
11
+ >div+div
12
+ margin-top: 0.5rem
13
+ span
14
+ color: var(--text-p2)
15
+ &:hover
16
+ box-shadow: $boxshadow-card-float
17
+ transform: translateY(-1px)
18
+ a.repo
19
+ svg
20
+ margin-right: 4px
21
+ .flex-row
22
+ display: flex
23
+ align-items: center
24
+ .repo-name
25
+ font-size: $fs-14
26
+ font-weight: 700
27
+ color: var(--text-p1)
28
+ .repo-desc
29
+ font-size: $fs-13
30
+ margin-left: 2px
31
+ margin-right: 2px
32
+ .grid
33
+ font-size: $fs-13
34
+ display: grid
35
+ grid-gap: 2px
36
+ grid-template-columns: repeat(auto-fill, "calc((100% - 2 * %s) / 3)" % 2px)
@@ -6,6 +6,7 @@
6
6
  background: var(--card)
7
7
  border-radius: $border-card
8
8
  padding: 1rem
9
+ box-shadow: $boxshadow-card
9
10
 
10
11
  .widget-wrap#github-user .widget-body .avatar
11
12
  display: block
@@ -47,7 +48,24 @@
47
48
  &:hover
48
49
  background: $color-hover
49
50
 
50
-
51
+ .widget-wrap#github-user .widget-body .menu
52
+ margin-bottom: 0
53
+ background: none
54
+ a:hover
55
+ box-shadow: none
56
+ background: var(--block)
57
+ a.active
58
+ box-shadow: none
59
+ position: relative
60
+ &:after
61
+ content: ''
62
+ position: absolute
63
+ height: 3px
64
+ bottom: 0
65
+ width: 32px
66
+ left: 'calc(50% - 0.5 * %s)' % @width
67
+ border-radius: 4px
68
+ background: $color-theme
51
69
 
52
70
  .widget-wrap#github-user .widget-body .buttons
53
71
  margin: 1rem 0