hexo-theme-stellar 1.16.2 → 1.17.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.
- package/_config.yml +10 -5
- package/_data/widgets.yml +4 -1
- package/languages/en.yml +5 -0
- package/languages/zh-CN.yml +5 -0
- package/languages/zh-TW.yml +5 -0
- package/layout/404.ejs +1 -1
- package/layout/_partial/cover/wiki_cover.ejs +1 -1
- package/layout/_partial/main/post_list/paginator.ejs +5 -9
- package/layout/_partial/main/post_list/post_card.ejs +1 -1
- package/layout/_partial/main/post_list/wiki_card.ejs +1 -1
- package/layout/_partial/plugins/comments/layout.ejs +1 -1
- package/layout/_partial/scripts/index.ejs +9 -0
- package/layout/_partial/sidebar/index.ejs +3 -3
- package/layout/_partial/{sidebar/widgets → widgets}/ghissues.ejs +2 -2
- package/layout/_partial/{sidebar/widgets → widgets}/ghrepo.ejs +2 -2
- package/layout/_partial/{sidebar/widgets → widgets}/ghuser.ejs +3 -3
- package/layout/_partial/{sidebar/widgets → widgets}/markdown.ejs +2 -2
- package/layout/_partial/{sidebar/widgets → widgets}/recent.ejs +5 -6
- package/layout/_partial/{sidebar/widgets → widgets}/related.ejs +2 -2
- package/layout/_partial/widgets/search.ejs +31 -0
- package/layout/_partial/{sidebar/widgets → widgets}/tagcloud.ejs +2 -2
- package/layout/_partial/{sidebar/widgets → widgets}/timeline.ejs +2 -2
- package/layout/_partial/{sidebar/widgets → widgets}/toc.ejs +2 -2
- package/layout/page.ejs +1 -1
- package/layout/post.ejs +1 -1
- package/layout/wiki.ejs +1 -1
- package/package.json +1 -1
- package/source/css/_common/base.styl +1 -1
- package/source/css/_common/highlight.styl +5 -5
- package/source/css/_common/span.styl +1 -0
- package/source/css/_layout/index.styl +1 -0
- package/source/css/_layout/list.styl +1 -1
- package/source/css/_layout/md.styl +12 -13
- package/source/css/_layout/pages/error.styl +2 -2
- package/source/css/_layout/partial/article-footer.styl +4 -4
- package/source/css/_layout/partial/paginator.styl +16 -5
- package/source/css/_layout/partial/related.styl +6 -14
- package/source/css/_layout/sidebar/footer.styl +1 -3
- package/source/css/_layout/sidebar/header.styl +112 -0
- package/source/css/_layout/sidebar/sidebar.styl +3 -115
- package/source/css/_layout/tag-plugins/checkbox.styl +1 -1
- package/source/css/_layout/tag-plugins/copy.styl +1 -1
- package/source/css/_layout/tag-plugins/emoji.styl +1 -1
- package/source/css/_layout/tag-plugins/frame.styl +5 -5
- package/source/css/_layout/tag-plugins/inline-labels.styl +1 -1
- package/source/css/_layout/tag-plugins/link.styl +6 -6
- package/source/css/_layout/tag-plugins/mark.styl +3 -4
- package/source/css/_layout/tag-plugins/navbar.styl +1 -1
- package/source/css/_layout/tag-plugins/note.styl +7 -7
- package/source/css/_layout/tag-plugins/poetry.styl +2 -2
- package/source/css/_layout/tag-plugins/quot.styl +7 -7
- package/source/css/_layout/tag-plugins/tabs.styl +1 -1
- package/source/css/_layout/tag-plugins/timeline.styl +3 -3
- package/source/css/_layout/widgets/ghrepo.styl +34 -0
- package/source/css/_layout/widgets/ghuser.styl +95 -0
- package/source/css/_layout/widgets/recent.styl +15 -0
- package/source/css/_layout/widgets/related.styl +8 -0
- package/source/css/_layout/widgets/search.styl +3 -0
- package/source/css/_layout/widgets/tagcloud.styl +8 -0
- package/source/css/_layout/widgets/timeline.styl +17 -0
- package/source/css/_layout/{sidebar → widgets}/toc_blog.styl +1 -1
- package/source/css/_layout/{sidebar → widgets}/toc_common.styl +7 -4
- package/source/css/_layout/{sidebar → widgets}/toc_wiki.styl +3 -7
- package/source/css/_layout/widgets/widgets.styl +60 -0
- package/source/css/_plugins/index.styl +4 -0
- package/source/css/_plugins/search/local-search.styl +89 -0
- package/source/js/main.js +41 -5
- package/source/js/search/local-search.js +161 -0
- package/source/css/_layout/sidebar/ghrepo.styl +0 -36
- package/source/css/_layout/sidebar/ghuser.styl +0 -98
- package/source/css/_layout/sidebar/widgets.styl +0 -106
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.md .article-footer
|
|
1
|
+
.md-text .article-footer
|
|
2
2
|
margin-top: 4rem
|
|
3
3
|
padding: 1rem
|
|
4
4
|
background: var(--block)
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
padding-top: 1rem
|
|
33
33
|
border-top: 1px solid var(--block-border)
|
|
34
34
|
|
|
35
|
-
.md .article-footer .social-wrap
|
|
35
|
+
.md-text .article-footer .social-wrap
|
|
36
36
|
grid-gap: 0.5rem 1rem
|
|
37
37
|
margin: 0
|
|
38
38
|
|
|
39
|
-
.md .article-footer .qrcode
|
|
39
|
+
.md-text .article-footer .qrcode
|
|
40
40
|
width: 128px
|
|
41
41
|
padding: 4px
|
|
42
42
|
background: white
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
img
|
|
48
48
|
object-fit: contain
|
|
49
49
|
|
|
50
|
-
.md .article-footer .qrcode.display
|
|
50
|
+
.md-text .article-footer .qrcode.display
|
|
51
51
|
margin: 2rem auto 1rem
|
|
52
52
|
height: 128px !important
|
|
53
53
|
visibility: visible !important
|
|
@@ -9,17 +9,27 @@
|
|
|
9
9
|
border-radius: $border-card
|
|
10
10
|
overflow: hidden
|
|
11
11
|
box-shadow: 0 2px 8px 0px rgba(0, 0, 0, 0.03)
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
a.page-number
|
|
13
|
+
padding: 4px 8px
|
|
14
|
+
border-radius: 8px
|
|
15
|
+
background: var(--block)
|
|
16
|
+
.extend
|
|
14
17
|
text-align: center
|
|
18
|
+
background-size: contain
|
|
19
|
+
width: 1rem
|
|
20
|
+
height: 1rem
|
|
21
|
+
background-origin: content-box
|
|
22
|
+
background-clip: content-box
|
|
15
23
|
&.next
|
|
16
24
|
border-left: 1px dashed var(--block-border)
|
|
25
|
+
background-image: url('https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/arrow/064b95430caf4.svg')
|
|
17
26
|
&.prev
|
|
18
27
|
border-right: 1px dashed var(--block-border)
|
|
28
|
+
background-image: url('https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/arrow/f049bbd4e88ec.svg')
|
|
19
29
|
.current
|
|
20
30
|
font-family: $ff-code
|
|
21
31
|
color: var(--text-p3)
|
|
22
|
-
|
|
32
|
+
.extend
|
|
23
33
|
color: var(--text-p3)
|
|
24
34
|
padding: 1rem
|
|
25
35
|
line-height: 0
|
|
@@ -28,6 +38,7 @@
|
|
|
28
38
|
height: 1rem
|
|
29
39
|
&.disable
|
|
30
40
|
pointer-events: none
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
span.extend
|
|
42
|
+
opacity: 0.25
|
|
43
|
+
a.extend:hover
|
|
33
44
|
filter: unset
|
|
@@ -31,19 +31,11 @@
|
|
|
31
31
|
color: var(--text-p1)
|
|
32
32
|
font-weight: 500
|
|
33
33
|
font-size: 1rem
|
|
34
|
-
|
|
34
|
+
trans2 color border
|
|
35
35
|
position: relative
|
|
36
|
-
padding-bottom:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
position: absolute
|
|
40
|
-
left: 0
|
|
41
|
-
width: 0
|
|
42
|
-
height: 2px
|
|
43
|
-
bottom: 0
|
|
44
|
-
border-radius: 2px
|
|
45
|
-
background: $color-hover
|
|
46
|
-
trans1 width
|
|
36
|
+
padding-bottom: 2px
|
|
37
|
+
border-bottom: 1px dashed var(--text-meta)
|
|
38
|
+
line-height: 1.6
|
|
47
39
|
.excerpt
|
|
48
40
|
color: var(--text-p3)
|
|
49
41
|
font-size: $fs-12
|
|
@@ -55,8 +47,7 @@
|
|
|
55
47
|
&:hover
|
|
56
48
|
.title
|
|
57
49
|
color: $color-hover
|
|
58
|
-
|
|
59
|
-
width: 100%
|
|
50
|
+
border-bottom: 1px solid $color-hover
|
|
60
51
|
|
|
61
52
|
|
|
62
53
|
.related-wrap#read-next
|
|
@@ -94,6 +85,7 @@
|
|
|
94
85
|
div.cmt-title
|
|
95
86
|
p
|
|
96
87
|
margin: 0
|
|
88
|
+
font-size: inherit
|
|
97
89
|
a
|
|
98
90
|
color: inherit
|
|
99
91
|
text-decoration: underline
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
.l_left
|
|
2
|
+
nav.menu
|
|
3
|
+
margin-bottom: 0
|
|
4
|
+
|
|
5
|
+
nav.menu
|
|
6
|
+
margin: 1rem 0
|
|
7
|
+
background: var(--block)
|
|
8
|
+
border-radius: 6px
|
|
9
|
+
display: flex
|
|
10
|
+
padding: 1px
|
|
11
|
+
flex-wrap: wrap
|
|
12
|
+
&::-webkit-scrollbar
|
|
13
|
+
display: none
|
|
14
|
+
&::-webkit-scrollbar-track-piece
|
|
15
|
+
background: transparent
|
|
16
|
+
&::-webkit-scrollbar-thumb
|
|
17
|
+
display: none
|
|
18
|
+
a.nav-item
|
|
19
|
+
text-overflow: ellipsis
|
|
20
|
+
word-break: keep-all
|
|
21
|
+
margin: 1px
|
|
22
|
+
border-radius: 4px
|
|
23
|
+
font-size: $fs-14
|
|
24
|
+
font-weight: 500
|
|
25
|
+
overflow: hidden
|
|
26
|
+
padding: 0.375rem 0.5rem
|
|
27
|
+
color: var(--text-p3)
|
|
28
|
+
text-align: center
|
|
29
|
+
&.active, &:hover
|
|
30
|
+
color: var(--text-p1)
|
|
31
|
+
background: var(--card)
|
|
32
|
+
box-shadow: $boxshadow-button
|
|
33
|
+
|
|
34
|
+
.l_left .menu a.nav-item
|
|
35
|
+
flex-grow: 1
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
.logo-wrap
|
|
39
|
+
display: flex
|
|
40
|
+
align-items: center
|
|
41
|
+
overflow: hidden
|
|
42
|
+
a
|
|
43
|
+
color: inherit
|
|
44
|
+
display: flex
|
|
45
|
+
align-items: center
|
|
46
|
+
a.avatar
|
|
47
|
+
display: block
|
|
48
|
+
position: relative
|
|
49
|
+
width: 50px
|
|
50
|
+
height: 50px
|
|
51
|
+
flex-shrink: 0
|
|
52
|
+
border-radius: 50px
|
|
53
|
+
overflow: hidden
|
|
54
|
+
margin-right: 1rem
|
|
55
|
+
div.bg
|
|
56
|
+
width: 100%
|
|
57
|
+
height: 100%
|
|
58
|
+
background-size: cover
|
|
59
|
+
img.avatar
|
|
60
|
+
margin: 2px
|
|
61
|
+
object-fit: cover
|
|
62
|
+
width: "calc(100% - 2 * %s)" % @margin
|
|
63
|
+
height: "calc(100% - 2 * %s)" % @margin
|
|
64
|
+
border-radius: @width
|
|
65
|
+
if hexo-config('style.animated_avatar.animate')
|
|
66
|
+
div.bg
|
|
67
|
+
trans1: opacity
|
|
68
|
+
position: absolute
|
|
69
|
+
opacity: 0 !important
|
|
70
|
+
z-index: -1
|
|
71
|
+
@keyframes spin
|
|
72
|
+
from
|
|
73
|
+
transform:rotate(0deg)
|
|
74
|
+
to
|
|
75
|
+
transform:rotate(360deg)
|
|
76
|
+
if hexo-config('style.animated_avatar.animate') == 'always'
|
|
77
|
+
div.bg
|
|
78
|
+
opacity: 1 !important
|
|
79
|
+
animation: spin infinite 4s
|
|
80
|
+
animation-timing-function: linear
|
|
81
|
+
if hexo-config('style.animated_avatar.animate') == 'auto'
|
|
82
|
+
&:hover
|
|
83
|
+
div.bg
|
|
84
|
+
opacity: 1 !important
|
|
85
|
+
animation: spin infinite 4s
|
|
86
|
+
animation-timing-function: linear
|
|
87
|
+
|
|
88
|
+
a.title
|
|
89
|
+
font-size: 1.75rem
|
|
90
|
+
font-weight: 900
|
|
91
|
+
color: inherit
|
|
92
|
+
line-height: 1.2
|
|
93
|
+
display: block
|
|
94
|
+
position: relative
|
|
95
|
+
.main
|
|
96
|
+
color: var(--text-p0)
|
|
97
|
+
.sub
|
|
98
|
+
color: var(--text-p1)
|
|
99
|
+
trans2 opacity transform
|
|
100
|
+
white-space: nowrap
|
|
101
|
+
.hover
|
|
102
|
+
position: absolute
|
|
103
|
+
bottom: 0
|
|
104
|
+
transform: translateY(8px)
|
|
105
|
+
overflow: visible
|
|
106
|
+
&:hover
|
|
107
|
+
.normal
|
|
108
|
+
opacity: 0
|
|
109
|
+
transform: translateY(-8px)
|
|
110
|
+
.hover
|
|
111
|
+
transform: translateY(0)
|
|
112
|
+
opacity: 1 !important
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
flex-direction: column
|
|
4
4
|
word-break: break-all
|
|
5
5
|
text-align: justify
|
|
6
|
-
height:
|
|
6
|
+
height: 100vh
|
|
7
7
|
.header
|
|
8
8
|
margin: var(--gap-l) var(--gap-l) 0
|
|
9
9
|
margin-top: "calc(2 * %s)" % var(--gap-l)
|
|
10
10
|
@media screen and (min-width: $device-mobile-max)
|
|
11
|
-
>.widgets:first-child>.widget-
|
|
11
|
+
>.widgets:first-child>.widget-wrapper:first-child
|
|
12
12
|
margin-top: "calc(2 * %s)" % var(--gap-l)
|
|
13
13
|
@media screen and (max-width: $device-mobile-max)
|
|
14
14
|
height: 100vh
|
|
@@ -23,84 +23,7 @@
|
|
|
23
23
|
margin-bottom: 6rem
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
.logo-wrap
|
|
27
|
-
display: flex
|
|
28
|
-
align-items: center
|
|
29
|
-
overflow: hidden
|
|
30
|
-
a
|
|
31
|
-
color: inherit
|
|
32
|
-
display: flex
|
|
33
|
-
align-items: center
|
|
34
|
-
a.avatar
|
|
35
|
-
display: block
|
|
36
|
-
position: relative
|
|
37
|
-
width: 50px
|
|
38
|
-
height: 50px
|
|
39
|
-
flex-shrink: 0
|
|
40
|
-
border-radius: 50px
|
|
41
|
-
overflow: hidden
|
|
42
|
-
margin-right: 1rem
|
|
43
|
-
div.bg
|
|
44
|
-
width: 100%
|
|
45
|
-
height: 100%
|
|
46
|
-
background-size: cover
|
|
47
|
-
img.avatar
|
|
48
|
-
margin: 2px
|
|
49
|
-
object-fit: cover
|
|
50
|
-
width: "calc(100% - 2 * %s)" % @margin
|
|
51
|
-
height: "calc(100% - 2 * %s)" % @margin
|
|
52
|
-
border-radius: @width
|
|
53
|
-
if hexo-config('style.animated_avatar.animate')
|
|
54
|
-
div.bg
|
|
55
|
-
trans1: opacity
|
|
56
|
-
position: absolute
|
|
57
|
-
opacity: 0 !important
|
|
58
|
-
z-index: -1
|
|
59
|
-
@keyframes spin
|
|
60
|
-
from
|
|
61
|
-
transform:rotate(0deg)
|
|
62
|
-
to
|
|
63
|
-
transform:rotate(360deg)
|
|
64
|
-
if hexo-config('style.animated_avatar.animate') == 'always'
|
|
65
|
-
div.bg
|
|
66
|
-
opacity: 1 !important
|
|
67
|
-
animation: spin infinite 4s
|
|
68
|
-
animation-timing-function: linear
|
|
69
|
-
if hexo-config('style.animated_avatar.animate') == 'auto'
|
|
70
|
-
&:hover
|
|
71
|
-
div.bg
|
|
72
|
-
opacity: 1 !important
|
|
73
|
-
animation: spin infinite 4s
|
|
74
|
-
animation-timing-function: linear
|
|
75
|
-
|
|
76
|
-
a.title
|
|
77
|
-
font-size: 1.75rem
|
|
78
|
-
font-weight: 900
|
|
79
|
-
color: inherit
|
|
80
|
-
line-height: 1.2
|
|
81
|
-
display: block
|
|
82
|
-
position: relative
|
|
83
|
-
.main
|
|
84
|
-
color: var(--text-p0)
|
|
85
|
-
.sub
|
|
86
|
-
color: var(--text-p1)
|
|
87
|
-
trans2 opacity transform
|
|
88
|
-
white-space: nowrap
|
|
89
|
-
.hover
|
|
90
|
-
position: absolute
|
|
91
|
-
bottom: 0
|
|
92
|
-
transform: translateY(8px)
|
|
93
|
-
overflow: visible
|
|
94
|
-
&:hover
|
|
95
|
-
.normal
|
|
96
|
-
opacity: 0
|
|
97
|
-
transform: translateY(-8px)
|
|
98
|
-
.hover
|
|
99
|
-
transform: translateY(0)
|
|
100
|
-
opacity: 1 !important
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.l_left .widgets .widget-wrap.logo-wrap.wiki
|
|
26
|
+
.l_left .widgets .widget-wrapper.logo-wrap.wiki
|
|
104
27
|
margin-bottom: 1.5rem
|
|
105
28
|
flex-direction: column
|
|
106
29
|
align-items: flex-start
|
|
@@ -113,38 +36,3 @@
|
|
|
113
36
|
color: $color-hover
|
|
114
37
|
filter: unset !important
|
|
115
38
|
|
|
116
|
-
.l_left nav.menu
|
|
117
|
-
margin-bottom: 1.5rem
|
|
118
|
-
|
|
119
|
-
nav.menu
|
|
120
|
-
margin: 1rem 0
|
|
121
|
-
background: var(--block)
|
|
122
|
-
border-radius: 6px
|
|
123
|
-
display: flex
|
|
124
|
-
padding: 1px
|
|
125
|
-
flex-wrap: wrap
|
|
126
|
-
&::-webkit-scrollbar
|
|
127
|
-
display: none
|
|
128
|
-
&::-webkit-scrollbar-track-piece
|
|
129
|
-
background: transparent
|
|
130
|
-
&::-webkit-scrollbar-thumb
|
|
131
|
-
display: none
|
|
132
|
-
a.nav-item
|
|
133
|
-
text-overflow: ellipsis
|
|
134
|
-
word-break: keep-all
|
|
135
|
-
margin: 1px
|
|
136
|
-
border-radius: 4px
|
|
137
|
-
font-size: $fs-14
|
|
138
|
-
font-weight: 500
|
|
139
|
-
overflow: hidden
|
|
140
|
-
padding: 0.375rem 0.5rem
|
|
141
|
-
color: var(--text-p3)
|
|
142
|
-
text-align: center
|
|
143
|
-
&.active, &:hover
|
|
144
|
-
color: var(--text-p1)
|
|
145
|
-
background: var(--card)
|
|
146
|
-
box-shadow: $boxshadow-button
|
|
147
|
-
|
|
148
|
-
.l_left .menu a.nav-item
|
|
149
|
-
flex-grow: 1
|
|
150
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.md .frame-wrap
|
|
1
|
+
.md-text .frame-wrap
|
|
2
2
|
position: relative
|
|
3
3
|
overflow: hidden
|
|
4
4
|
margin: 0 auto
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
align-items: center
|
|
9
9
|
img,video
|
|
10
10
|
border-radius: 0
|
|
11
|
-
.md .frame-wrap .frame
|
|
11
|
+
.md-text .frame-wrap .frame
|
|
12
12
|
z-index: 1
|
|
13
13
|
display: block
|
|
14
14
|
position: absolute;
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
background-repeat: no-repeat;
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
|
|
19
|
-
.md .tag-plugin.img-wrap .frame-wrap
|
|
19
|
+
.md-text .tag-plugin.img-wrap .frame-wrap
|
|
20
20
|
&[focus]
|
|
21
21
|
height: auto
|
|
22
22
|
|
|
23
|
-
.md .frame-wrap
|
|
23
|
+
.md-text .frame-wrap
|
|
24
24
|
&#iphone11
|
|
25
25
|
img,video
|
|
26
26
|
width: 287px
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
bottom: 0
|
|
45
45
|
|
|
46
46
|
@media screen and (max-width: $device-mobile)
|
|
47
|
-
.md .frame-wrap
|
|
47
|
+
.md-text .frame-wrap
|
|
48
48
|
&#iphone11
|
|
49
49
|
img,video
|
|
50
50
|
width: 208px
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.md .tag-plugin.link
|
|
1
|
+
.md-text .tag-plugin.link
|
|
2
2
|
max-width: 100%
|
|
3
3
|
margin: 1em auto
|
|
4
4
|
display: flex
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@media screen and (max-width: $device-mobile-375)
|
|
7
7
|
width: 100%
|
|
8
8
|
|
|
9
|
-
.md .link-card
|
|
9
|
+
.md-text .link-card
|
|
10
10
|
background: var(--card)
|
|
11
11
|
display: inline-flex
|
|
12
12
|
justify-content: space-between
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
box-shadow: $boxshadow-card-float
|
|
25
25
|
transform: translateY(-1px)
|
|
26
26
|
|
|
27
|
-
.md .link-card.plain
|
|
27
|
+
.md-text .link-card.plain
|
|
28
28
|
flex-direction: row
|
|
29
29
|
align-items: center
|
|
30
30
|
|
|
31
|
-
.md .link-card.rich
|
|
31
|
+
.md-text .link-card.rich
|
|
32
32
|
flex-direction: column
|
|
33
33
|
align-items: stretch
|
|
34
34
|
width: 460px
|
|
35
35
|
text-align: justify
|
|
36
36
|
|
|
37
|
-
.md .link-card
|
|
37
|
+
.md-text .link-card
|
|
38
38
|
>.left
|
|
39
39
|
overflow: hidden
|
|
40
40
|
margin: 0.75rem 0 0.75rem 0.75rem
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
font-size: $fs-15
|
|
73
73
|
margin-bottom: 0.5rem
|
|
74
74
|
|
|
75
|
-
.md .link-card
|
|
75
|
+
.md-text .link-card
|
|
76
76
|
line-height: 1.2
|
|
77
77
|
.title
|
|
78
78
|
display: -webkit-box
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.md .tag-plugin.note
|
|
1
|
+
.md-text .tag-plugin.note
|
|
2
2
|
position: relative
|
|
3
3
|
margin-top: 1rem
|
|
4
4
|
margin-bottom: 1rem
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
margin: 1rem 0
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
.md .tag-plugin.note[color]
|
|
24
|
+
.md-text .tag-plugin.note[color]
|
|
25
25
|
code
|
|
26
26
|
background: none
|
|
27
|
-
.md .tag-plugin.note:not([color])
|
|
27
|
+
.md-text .tag-plugin.note:not([color])
|
|
28
28
|
.highlight
|
|
29
29
|
background: var(--block-hover)
|
|
30
|
-
.md .tag-plugin.note[child=codeblock]
|
|
30
|
+
.md-text .tag-plugin.note[child=codeblock]
|
|
31
31
|
padding: 0
|
|
32
32
|
>.title, >.body:only-child
|
|
33
33
|
margin-top: 0
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
border: none
|
|
39
39
|
background: none
|
|
40
40
|
|
|
41
|
-
.md .tag-plugin.note[child=tabs]
|
|
41
|
+
.md-text .tag-plugin.note[child=tabs]
|
|
42
42
|
>.body
|
|
43
43
|
margin: 0
|
|
44
44
|
>.tabs
|
|
45
45
|
margin-top: .5rem
|
|
46
46
|
|
|
47
|
-
.md .tag-plugin.note[child=iframe]
|
|
47
|
+
.md-text .tag-plugin.note[child=iframe]
|
|
48
48
|
overflow: hidden
|
|
49
49
|
padding: 0
|
|
50
50
|
>.body
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
iframe
|
|
53
53
|
margin: 0
|
|
54
54
|
|
|
55
|
-
.md .tag-plugin .tag-plugin.note
|
|
55
|
+
.md-text .tag-plugin .tag-plugin.note
|
|
56
56
|
--gap-p: 1rem
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.md .tag-plugin.poetry
|
|
1
|
+
.md-text .tag-plugin.poetry
|
|
2
2
|
align-self: center
|
|
3
3
|
&[align=center]
|
|
4
4
|
align-items: center
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
font-size: $fs-12
|
|
26
26
|
|
|
27
27
|
// 描边修饰
|
|
28
|
-
.md .tag-plugin.poetry
|
|
28
|
+
.md-text .tag-plugin.poetry
|
|
29
29
|
padding-left: 1rem
|
|
30
30
|
position: relative
|
|
31
31
|
&:before
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.md .tag-plugin.quot
|
|
1
|
+
.md-text .tag-plugin.quot
|
|
2
2
|
text-align: center
|
|
3
3
|
position: relative
|
|
4
4
|
align-items: center
|
|
5
5
|
max-width 400px
|
|
6
|
-
.md .tag-plugin.quot:not(span)
|
|
6
|
+
.md-text .tag-plugin.quot:not(span)
|
|
7
7
|
display: inline-flex
|
|
8
8
|
align-self: center
|
|
9
9
|
border-bottom: none
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
line-height: 1.2
|
|
19
19
|
|
|
20
20
|
// override
|
|
21
|
-
|
|
21
|
+
.md-text.content
|
|
22
22
|
.quot:not(span)
|
|
23
23
|
color: var(--text-p0)
|
|
24
24
|
h1.quot
|
|
@@ -33,7 +33,7 @@ article.md.content
|
|
|
33
33
|
font-size: $fs-h4
|
|
34
34
|
|
|
35
35
|
// type=text
|
|
36
|
-
.md .tag-plugin.quot[type=text]:not(span)
|
|
36
|
+
.md-text .tag-plugin.quot[type=text]:not(span)
|
|
37
37
|
&:before,&:after
|
|
38
38
|
content: ""
|
|
39
39
|
position: absolute
|
|
@@ -49,14 +49,14 @@ article.md.content
|
|
|
49
49
|
bottom: 0
|
|
50
50
|
border-right: 6px solid $color-accent
|
|
51
51
|
border-bottom: 6px solid $color-accent
|
|
52
|
-
|
|
52
|
+
.md-text.content h1.quot[type=text]
|
|
53
53
|
&:before,&:after
|
|
54
54
|
width: 12px
|
|
55
55
|
height: 20px
|
|
56
56
|
border-width: 8px
|
|
57
57
|
|
|
58
58
|
// type=icon
|
|
59
|
-
.md .tag-plugin.quot[type=icon]:not(span)
|
|
59
|
+
.md-text .tag-plugin.quot[type=icon]:not(span)
|
|
60
60
|
.icon
|
|
61
61
|
height: 1.5em
|
|
62
62
|
display: inline-block
|
|
@@ -69,7 +69,7 @@ article.md.content h1.quot[type=text]
|
|
|
69
69
|
margin-left: .5rem
|
|
70
70
|
|
|
71
71
|
// inline quot
|
|
72
|
-
.md span.tag-plugin.quot
|
|
72
|
+
.md-text span.tag-plugin.quot
|
|
73
73
|
font-weight: 500
|
|
74
74
|
&:before,&:after
|
|
75
75
|
color: $color-accent
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.md .tag-plugin.folding .body:has(.timeline)
|
|
1
|
+
.md-text .tag-plugin.folding .body:has(.timeline)
|
|
2
2
|
background: var(--site-bg)
|
|
3
3
|
|
|
4
|
-
.md .tag-plugin.timeline
|
|
4
|
+
.md-text .tag-plugin.timeline
|
|
5
5
|
position: relative
|
|
6
6
|
margin-top: 0
|
|
7
7
|
padding-left: 16px
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
&:before
|
|
21
21
|
display: none
|
|
22
22
|
|
|
23
|
-
.md .tag-plugin.timeline .timenode
|
|
23
|
+
.md-text .tag-plugin.timeline .timenode
|
|
24
24
|
position: relative
|
|
25
25
|
display: flex
|
|
26
26
|
flex-direction: column
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.widget-wrapper.ghrepo
|
|
2
|
+
.repo
|
|
3
|
+
display: block
|
|
4
|
+
padding: 0.75rem 0.5rem
|
|
5
|
+
color: var(--text-p2)
|
|
6
|
+
background: var(--card)
|
|
7
|
+
border-radius: $border-block
|
|
8
|
+
box-shadow: $boxshadow-card
|
|
9
|
+
trans2 box-shadow transform
|
|
10
|
+
>div+div
|
|
11
|
+
margin-top: 0.5rem
|
|
12
|
+
span
|
|
13
|
+
color: var(--text-p2)
|
|
14
|
+
&:hover
|
|
15
|
+
box-shadow: $boxshadow-card-float
|
|
16
|
+
transform: translateY(-1px)
|
|
17
|
+
svg
|
|
18
|
+
margin-right: 4px
|
|
19
|
+
.flex-row
|
|
20
|
+
display: flex
|
|
21
|
+
align-items: center
|
|
22
|
+
.repo-name
|
|
23
|
+
font-size: $fs-14
|
|
24
|
+
font-weight: 700
|
|
25
|
+
color: var(--text-p1)
|
|
26
|
+
.repo-desc
|
|
27
|
+
font-size: $fs-13
|
|
28
|
+
margin-left: 2px
|
|
29
|
+
margin-right: 2px
|
|
30
|
+
.grid
|
|
31
|
+
font-size: $fs-13
|
|
32
|
+
display: grid
|
|
33
|
+
grid-gap: 2px
|
|
34
|
+
grid-template-columns: repeat(auto-fill, "calc((100% - 2 * %s) / 3)" % 2px)
|