hexo-theme-stellar 1.30.0 → 1.30.2
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 +36 -31
- package/_data/icons.yml +3 -1
- package/layout/_partial/main/article/article_footer.ejs +1 -1
- package/layout/_partial/main/post_list/post_card.ejs +19 -14
- package/layout/_partial/scripts/utils.ejs +1 -1
- package/layout/layout.ejs +1 -1
- package/layout/page.ejs +1 -1
- package/package.json +1 -1
- package/scripts/tags/inline-labels.js +3 -0
- package/scripts/tags/lib/friends.js +4 -4
- package/scripts/tags/lib/okr.js +6 -6
- package/scripts/tags/lib/quot.js +16 -15
- package/scripts/tags/lib/sites.js +1 -1
- package/source/css/_common/base.styl +1 -1
- package/source/css/_common/blockquote.styl +16 -5
- package/source/css/_common/pre.styl +1 -0
- package/source/css/_components/list.styl +44 -12
- package/source/css/_components/md.styl +3 -46
- package/source/css/_components/pages/article-indent.styl +6 -0
- package/source/css/_components/pages/article-story.styl +120 -0
- package/source/css/_components/pages/article-tech.styl +35 -0
- package/source/css/_components/partial/article-banner.styl +32 -13
- package/source/css/_components/partial/article-footer.styl +24 -14
- package/source/css/_components/partial/related.styl +1 -1
- package/source/css/_components/sidebar/sidebar.styl +1 -0
- package/source/css/_components/tag-plugins/button.styl +11 -11
- package/source/css/_components/tag-plugins/common.styl +7 -4
- package/source/css/_components/tag-plugins/friends.styl +1 -2
- package/source/css/_components/tag-plugins/friends_posts.styl +160 -0
- package/source/css/_components/tag-plugins/inline-labels.styl +5 -0
- package/source/css/_components/tag-plugins/link.styl +2 -1
- package/source/css/_components/tag-plugins/mark.styl +1 -1
- package/source/css/_components/tag-plugins/mdrender.styl +15 -0
- package/source/css/_components/tag-plugins/note.styl +4 -1
- package/source/css/_components/tag-plugins/poetry.styl +2 -0
- package/source/css/_components/tag-plugins/quot.styl +51 -25
- package/source/css/_components/tag-plugins/sites.styl +22 -8
- package/source/css/_components/tag-plugins/tabs.styl +8 -10
- package/source/css/_components/tag-plugins/timeline.styl +12 -20
- package/source/css/_components/widgets/ghuser.styl +1 -1
- package/source/css/_components/widgets/markdown.styl +4 -3
- package/source/css/_components/widgets/related.styl +1 -1
- package/source/css/_components/widgets/tagcloud.styl +1 -1
- package/source/css/_components/widgets/timeline.styl +1 -1
- package/source/css/_custom.styl +6 -2
- package/source/css/_defines/const.styl +3 -0
- package/source/css/_defines/func.styl +10 -0
- package/source/css/_defines/theme.styl +9 -0
- package/source/js/services/artalk_latest_comment.js +2 -1
- package/source/js/services/fcircle.js +2 -1
- package/source/js/services/friends.js +2 -1
- package/source/js/services/friends_and_posts.js +58 -0
- package/source/js/services/ghinfo.js +2 -1
- package/source/js/services/giscus_latest_comment.js +2 -1
- package/source/js/services/mdrender.js +5 -2
- package/source/js/services/memos.js +2 -1
- package/source/js/services/sites.js +13 -5
- package/source/js/services/timeline.js +2 -1
- package/source/js/services/waline_latest_comment.js +2 -1
- package/source/js/services/weibo.js +2 -1
|
@@ -19,26 +19,6 @@
|
|
|
19
19
|
padding-bottom: 2rem
|
|
20
20
|
overflow: hidden
|
|
21
21
|
|
|
22
|
-
.l_body[text-indent] .md-text.content
|
|
23
|
-
// 应用缩进效果
|
|
24
|
-
p:not([class])
|
|
25
|
-
text-indent: 'calc(%s * 2)' % var(--fsp)
|
|
26
|
-
text-align: justify
|
|
27
|
-
a
|
|
28
|
-
text-indent: 0
|
|
29
|
-
ol,ul
|
|
30
|
-
margin-left: 0.5em
|
|
31
|
-
h1,h2,h3,h4,h5,h6
|
|
32
|
-
text-align: center
|
|
33
|
-
>a:first-child
|
|
34
|
-
display: none
|
|
35
|
-
h2
|
|
36
|
-
margin: 2em 0 1.5em
|
|
37
|
-
// 取消缩进效果
|
|
38
|
-
blockquote, .poetry, .okr, .timeline, li, .article-footer
|
|
39
|
-
p:not([class])
|
|
40
|
-
text-indent: 0
|
|
41
|
-
text-align: convert(hexo-config('style.text-align'))
|
|
42
22
|
|
|
43
23
|
.md-text
|
|
44
24
|
ul:not(:last-child),
|
|
@@ -68,27 +48,6 @@
|
|
|
68
48
|
|
|
69
49
|
// titles
|
|
70
50
|
.md-text.content
|
|
71
|
-
h1,h2,h3,h4,h5,h6
|
|
72
|
-
color: var(--text)
|
|
73
|
-
line-height: 1.8
|
|
74
|
-
>a:first-child
|
|
75
|
-
background: $color-theme
|
|
76
|
-
border-radius: 2px
|
|
77
|
-
margin-right: 8px
|
|
78
|
-
trans1 background
|
|
79
|
-
&:hover
|
|
80
|
-
background: $color-hover
|
|
81
|
-
&:before
|
|
82
|
-
content: ''
|
|
83
|
-
color: white
|
|
84
|
-
font-weight: 700
|
|
85
|
-
padding: 0 2px
|
|
86
|
-
font-size: $fs-12
|
|
87
|
-
h2
|
|
88
|
-
font-weight: 500
|
|
89
|
-
>a:first-child:before
|
|
90
|
-
content: ':'
|
|
91
|
-
|
|
92
51
|
blockquote, .tag-plugin
|
|
93
52
|
h2,h3,h4,h5,h6
|
|
94
53
|
margin-top: 0.25em
|
|
@@ -114,22 +73,21 @@
|
|
|
114
73
|
.md-text>div
|
|
115
74
|
margin: var(--gap-p) 0
|
|
116
75
|
|
|
117
|
-
|
|
76
|
+
// 图片样式
|
|
118
77
|
.md-text img
|
|
119
78
|
border-radius: $border-image
|
|
120
79
|
margin: auto
|
|
121
80
|
display: block
|
|
122
81
|
|
|
82
|
+
// 链接样式
|
|
123
83
|
li:not([class]) a:not([class])
|
|
124
84
|
p:not([class]) a:not([class])
|
|
125
85
|
table a:not([class])
|
|
126
86
|
position: relative
|
|
127
87
|
text-decoration: none
|
|
128
88
|
trans1 all
|
|
129
|
-
padding: 0 2px
|
|
130
89
|
border-radius: 0
|
|
131
|
-
|
|
132
|
-
background: linear-gradient(0deg,var(--theme-link),var(--theme-link)) no-repeat left 100%/100% 1px
|
|
90
|
+
background: linear-gradient(0deg,var(--block-border),var(--block-border)) no-repeat left 100%/100% 2px
|
|
133
91
|
&:hover
|
|
134
92
|
text-decoration: none
|
|
135
93
|
color: var(--theme-link)
|
|
@@ -137,6 +95,5 @@ table a:not([class])
|
|
|
137
95
|
background: linear-gradient(0deg,var(--theme-link-opa),var(--theme-link-opa)) no-repeat left 100%/100% 100%
|
|
138
96
|
&:has(img)
|
|
139
97
|
background: none
|
|
140
|
-
padding: 0
|
|
141
98
|
&:hover
|
|
142
99
|
background: none
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
.l_body[type=story] .md-text.content
|
|
2
|
+
--fsp: 'calc(%s + 1px)' % $fs-body
|
|
3
|
+
// 段落标题
|
|
4
|
+
h1,h2,h3,h4,h5,h6
|
|
5
|
+
color: var(--text)
|
|
6
|
+
line-height: 1.2
|
|
7
|
+
>a:first-child
|
|
8
|
+
background: $color-theme
|
|
9
|
+
border-radius: 2px
|
|
10
|
+
margin-right: 8px
|
|
11
|
+
padding: 0 2px
|
|
12
|
+
trans1 all
|
|
13
|
+
&:hover
|
|
14
|
+
background: $color-hover
|
|
15
|
+
&:before,&:after
|
|
16
|
+
color: white
|
|
17
|
+
font-weight: 700
|
|
18
|
+
&:before
|
|
19
|
+
content: ''
|
|
20
|
+
font-size: 0.5em
|
|
21
|
+
&:after
|
|
22
|
+
font-size: 0.25em
|
|
23
|
+
h2:not([class])
|
|
24
|
+
&:before,&:after
|
|
25
|
+
content: ''
|
|
26
|
+
display: inline-block
|
|
27
|
+
width: 12px
|
|
28
|
+
height: 1.2em
|
|
29
|
+
background: $cDeepOrange
|
|
30
|
+
transform: skewX(-20deg)
|
|
31
|
+
margin: 0 0.5em
|
|
32
|
+
vertical-align: top
|
|
33
|
+
position: relative
|
|
34
|
+
|
|
35
|
+
h3:not([class])
|
|
36
|
+
&:before,&:after
|
|
37
|
+
color: hsla($color-theme, 0.5)
|
|
38
|
+
margin: 0 8px
|
|
39
|
+
trans1 all
|
|
40
|
+
&:before
|
|
41
|
+
content: '⏵'
|
|
42
|
+
&:after
|
|
43
|
+
content: '⏴'
|
|
44
|
+
&:hover
|
|
45
|
+
&:before,&:after
|
|
46
|
+
color: hsla($color-theme, 1)
|
|
47
|
+
|
|
48
|
+
h4:not([class])
|
|
49
|
+
position: relative
|
|
50
|
+
&:before
|
|
51
|
+
content: ''
|
|
52
|
+
position: absolute
|
|
53
|
+
width: 32px
|
|
54
|
+
height: 32px
|
|
55
|
+
margin-left: -16px
|
|
56
|
+
margin-top: -12px
|
|
57
|
+
background: hsla($color-theme, 0.3)
|
|
58
|
+
border-radius: 50%
|
|
59
|
+
filter: blur(12px)
|
|
60
|
+
pointer-events: none
|
|
61
|
+
z-index: -1
|
|
62
|
+
trans1 all
|
|
63
|
+
&:hover:before
|
|
64
|
+
background: hsla($color-theme, 0.6)
|
|
65
|
+
|
|
66
|
+
ol,ul
|
|
67
|
+
margin-left: 'calc(%s * 2)' % var(--fsp)
|
|
68
|
+
h1,h2,h3,h4,h5,h6
|
|
69
|
+
text-align: center
|
|
70
|
+
margin: 2em 0 1.5em
|
|
71
|
+
>a:first-child
|
|
72
|
+
display: none
|
|
73
|
+
// 修正缩进效果
|
|
74
|
+
>blockquote
|
|
75
|
+
text-align: center
|
|
76
|
+
--inset: calc(var(--fsp) * 2)
|
|
77
|
+
margin-left: var(--inset)
|
|
78
|
+
margin-right: var(--inset)
|
|
79
|
+
background: var(--block)
|
|
80
|
+
padding: 1rem 2rem
|
|
81
|
+
border-radius: $border-card
|
|
82
|
+
&:before,&:after
|
|
83
|
+
position: absolute
|
|
84
|
+
font-size: 2rem
|
|
85
|
+
background-color: hsla($color-theme, 0.25)
|
|
86
|
+
top: -0.3em
|
|
87
|
+
width: 1em
|
|
88
|
+
height: 1em
|
|
89
|
+
content: ''
|
|
90
|
+
opacity 1
|
|
91
|
+
trans1 all
|
|
92
|
+
&:before
|
|
93
|
+
left: -0.3em
|
|
94
|
+
svg-mask-icon($iQuoteLeft)
|
|
95
|
+
&:after
|
|
96
|
+
right: -0.3em
|
|
97
|
+
svg-mask-icon($iQuoteRight)
|
|
98
|
+
p:not([class])
|
|
99
|
+
color: var(--text-p2)
|
|
100
|
+
font-size: $fs-body
|
|
101
|
+
text-indent: 2em
|
|
102
|
+
&:hover
|
|
103
|
+
&:before,&:after
|
|
104
|
+
background-color: hsla($color-theme, 0.5)
|
|
105
|
+
// 取消缩进效果
|
|
106
|
+
.poetry, .okr, .timeline, li, .article-footer
|
|
107
|
+
p:not([class])
|
|
108
|
+
text-indent: 0
|
|
109
|
+
text-align: convert(hexo-config('style.text-align'))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
.l_body[type=story] .article.banner .content .bottom.only-title
|
|
114
|
+
justify-content: center
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
.l_body[text-indent] .tag-plugin.tabs .tab-content .tab-pane>p:not([class])
|
|
118
|
+
text-indent: 'calc(%s * 2)' % var(--fsp)
|
|
119
|
+
a
|
|
120
|
+
text-indent: 0
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.l_body[type='tech'] .md-text
|
|
2
|
+
h1,h2,h3,h4,h5,h6
|
|
3
|
+
color: var(--text)
|
|
4
|
+
line-height: 1.8
|
|
5
|
+
>a:first-child
|
|
6
|
+
background: $color-theme
|
|
7
|
+
border-radius: 2px
|
|
8
|
+
margin-right: 8px
|
|
9
|
+
padding: 0 2px
|
|
10
|
+
trans1 all
|
|
11
|
+
&:hover
|
|
12
|
+
background: $color-hover
|
|
13
|
+
&:before,&:after
|
|
14
|
+
color: white
|
|
15
|
+
font-weight: 700
|
|
16
|
+
&:before
|
|
17
|
+
content: ''
|
|
18
|
+
font-size: 0.5em
|
|
19
|
+
&:after
|
|
20
|
+
font-size: 0.25em
|
|
21
|
+
h2
|
|
22
|
+
font-weight: 500
|
|
23
|
+
>a:first-child
|
|
24
|
+
&:before
|
|
25
|
+
content: '⌘'
|
|
26
|
+
h3
|
|
27
|
+
>a:first-child:before
|
|
28
|
+
content: '='
|
|
29
|
+
h4
|
|
30
|
+
>a:first-child:before
|
|
31
|
+
content: '|'
|
|
32
|
+
h5
|
|
33
|
+
>a:first-child:before
|
|
34
|
+
content: ':'
|
|
35
|
+
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
.article.banner
|
|
8
8
|
.bg+.content
|
|
9
|
-
min-height:
|
|
9
|
+
min-height: 200px
|
|
10
|
+
aspect-ratio: hexo-config('article.banner_ratio')
|
|
10
11
|
--text-banner: white
|
|
11
12
|
--button-hover-bg: rgba(white, 0.25)
|
|
12
13
|
|
|
@@ -24,27 +25,45 @@
|
|
|
24
25
|
.l_body .article.banner .content .bottom.only-title .title
|
|
25
26
|
padding: 0.75rem 0
|
|
26
27
|
|
|
27
|
-
.l_body[text-indent] .article.banner .content .bottom.only-title
|
|
28
|
-
justify-content: center
|
|
29
28
|
|
|
30
29
|
|
|
31
30
|
// 动画配置
|
|
32
31
|
.article.banner
|
|
33
32
|
.bg+.content
|
|
34
|
-
trans1 all
|
|
35
33
|
--blur-bg: rgba(black, 0)
|
|
36
|
-
--blur-px:
|
|
34
|
+
--blur-px: 1em
|
|
37
35
|
--blur-sat: 100%
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-webkit-backdrop-filter: saturate(var(--blur-sat)) blur(var(--blur-px))
|
|
43
|
-
&:hover
|
|
44
|
-
.bg+.content
|
|
36
|
+
--blur-height-top: 6rem
|
|
37
|
+
--blur-height-bottom: 7rem
|
|
38
|
+
--blur-opacity: 0
|
|
39
|
+
&:hover
|
|
45
40
|
--blur-bg: rgba(black, 0.1)
|
|
46
|
-
--blur-px: 20px
|
|
47
41
|
--blur-sat: 150%
|
|
42
|
+
--blur-height-top: 6rem
|
|
43
|
+
--blur-height-bottom: 7rem
|
|
44
|
+
--blur-opacity: 1
|
|
45
|
+
background: var(--blur-bg)
|
|
46
|
+
trans1 all
|
|
47
|
+
&:before,&:after
|
|
48
|
+
content: ''
|
|
49
|
+
position: absolute
|
|
50
|
+
z-index 0
|
|
51
|
+
left: 0
|
|
52
|
+
width: 100%
|
|
53
|
+
backdrop-filter: saturate(var(--blur-sat)) blur(var(--blur-px))
|
|
54
|
+
trans1 all
|
|
55
|
+
opacity var(--blur-opacity)
|
|
56
|
+
&:before
|
|
57
|
+
top: 0
|
|
58
|
+
height: var(--blur-height-top)
|
|
59
|
+
mask: linear-gradient(black, rgba(black, 0.75), transparent)
|
|
60
|
+
&:after
|
|
61
|
+
bottom: 0
|
|
62
|
+
height: var(--blur-height-bottom)
|
|
63
|
+
mask: linear-gradient(transparent, rgba(black, 0.75), black)
|
|
64
|
+
.top,.bottom
|
|
65
|
+
z-index 1
|
|
66
|
+
|
|
48
67
|
|
|
49
68
|
.article.banner
|
|
50
69
|
--button-hover-bg: rgba(black, 0.05)
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
.
|
|
1
|
+
.article-footer
|
|
2
2
|
margin-top: 4rem
|
|
3
3
|
padding: 1rem
|
|
4
4
|
background: var(--block)
|
|
5
|
-
border-radius: $border-card
|
|
5
|
+
border-radius: $border-card-l
|
|
6
6
|
border: 1px solid var(--block-border)
|
|
7
|
+
font-size: $fs-15
|
|
8
|
+
line-height: 1.6
|
|
9
|
+
color: var(--text-p1)
|
|
7
10
|
&:empty
|
|
8
11
|
display: none
|
|
9
12
|
.header
|
|
10
13
|
font-weight: 500
|
|
11
|
-
color: var(--text-p2)
|
|
12
14
|
font-size: $fsh5
|
|
13
15
|
.body
|
|
14
16
|
--fsp: $fsp2
|
|
15
|
-
|
|
16
|
-
margin: 0
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
>.link
|
|
18
|
+
margin: 0
|
|
19
|
+
height: 0
|
|
20
|
+
opacity 0
|
|
19
21
|
p
|
|
20
22
|
color: var(--text-p2)
|
|
21
|
-
margin: 0.
|
|
23
|
+
margin: 0.5rem 0
|
|
22
24
|
a
|
|
23
25
|
font-weight: unset
|
|
24
26
|
ul
|
|
25
27
|
margin: 0
|
|
26
28
|
overflow: hidden
|
|
29
|
+
padding-left: 1rem
|
|
30
|
+
li
|
|
31
|
+
font-size: var(--fsp)
|
|
27
32
|
.post-title
|
|
28
|
-
margin:
|
|
33
|
+
margin: 0
|
|
29
34
|
line-height: 1.2
|
|
30
35
|
word-break: break-all
|
|
31
36
|
p
|
|
@@ -35,11 +40,16 @@
|
|
|
35
40
|
padding-top: 1rem
|
|
36
41
|
border-top: 1px solid var(--block-border)
|
|
37
42
|
|
|
38
|
-
.
|
|
39
|
-
grid-gap: 0.5rem
|
|
40
|
-
margin: 0
|
|
43
|
+
.article-footer .social-wrap
|
|
44
|
+
grid-gap: 0.5rem 2rem
|
|
45
|
+
margin: 0.75rem 0
|
|
46
|
+
grid-template-columns: repeat(auto-fill, 20px);
|
|
47
|
+
a.social
|
|
48
|
+
background: none
|
|
49
|
+
border-radius: 4px
|
|
50
|
+
padding: 0
|
|
41
51
|
|
|
42
|
-
.
|
|
52
|
+
.article-footer .qrcode
|
|
43
53
|
width: 128px
|
|
44
54
|
padding: 4px
|
|
45
55
|
background: white
|
|
@@ -53,7 +63,7 @@
|
|
|
53
63
|
img
|
|
54
64
|
object-fit: contain
|
|
55
65
|
|
|
56
|
-
.
|
|
66
|
+
.article-footer .qrcode.display
|
|
57
67
|
margin: 2rem auto 1rem
|
|
58
68
|
height: 128px !important
|
|
59
69
|
opacity: 1 !important
|
|
@@ -2,31 +2,31 @@ a.tag-plugin.button
|
|
|
2
2
|
background: var(--theme)
|
|
3
3
|
color: var(--alpha100)
|
|
4
4
|
display: inline-flex
|
|
5
|
-
align-items:
|
|
5
|
+
align-items: baseline
|
|
6
6
|
justify-content: center
|
|
7
7
|
padding: 0 4px
|
|
8
8
|
trans1 background
|
|
9
|
-
margin
|
|
10
|
-
|
|
9
|
+
margin: .5em 0
|
|
10
|
+
font-size: 1em
|
|
11
|
+
line-height: 1.5
|
|
11
12
|
svg,img
|
|
12
|
-
height:
|
|
13
|
+
height: 1.2em
|
|
13
14
|
width: auto
|
|
14
|
-
margin: 0 -0.
|
|
15
|
+
margin: 0 -0.25em 0 .5em
|
|
15
16
|
flex-shrink: 0
|
|
17
|
+
align-self: center
|
|
16
18
|
span
|
|
17
19
|
text-indent: 0
|
|
18
|
-
|
|
19
|
-
margin: 8px 1em
|
|
20
|
+
margin: .5em
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
a.tag-plugin.button[size='xs']
|
|
23
24
|
margin: 0
|
|
24
|
-
border-radius:
|
|
25
|
+
border-radius: 4px
|
|
25
26
|
svg,img
|
|
26
|
-
margin: 0 2px
|
|
27
|
-
height: 1em
|
|
27
|
+
margin: 0 2px
|
|
28
28
|
span
|
|
29
|
-
margin:
|
|
29
|
+
margin: 2px
|
|
30
30
|
|
|
31
31
|
a.tag-plugin.button:hover
|
|
32
32
|
--theme: $color-hover
|
|
@@ -15,6 +15,7 @@ set_dynamic_color($theme)
|
|
|
15
15
|
--theme: $theme
|
|
16
16
|
--theme-border: hsl(hue($theme), 50, 80)
|
|
17
17
|
--theme-block: hsl(hue($theme), 90, 92)
|
|
18
|
+
--theme-mark: hsl(hue($theme), 95, 80)
|
|
18
19
|
--theme-codeblock: hsl(hue($theme), 50, 95)
|
|
19
20
|
--text: hsl(hue($theme), 55, 16)
|
|
20
21
|
--text-p1: hsl(hue($theme), 55, 20)
|
|
@@ -24,6 +25,7 @@ set_dynamic_color($theme)
|
|
|
24
25
|
--theme: var(--text-p1)
|
|
25
26
|
--theme-border: var(--block-border)
|
|
26
27
|
--theme-block: var(--block)
|
|
28
|
+
--theme-mark: var(--theme-block)
|
|
27
29
|
--theme-codeblock: var(--block)
|
|
28
30
|
|
|
29
31
|
.colorful[color='red']
|
|
@@ -72,11 +74,12 @@ _dark_tags()
|
|
|
72
74
|
set_dynamic_color($theme)
|
|
73
75
|
--theme: $theme
|
|
74
76
|
--theme-border: hsl(hue($theme), 50, 24)
|
|
75
|
-
--theme-block: hsl(hue($theme),
|
|
77
|
+
--theme-block: hsl(hue($theme), 24, 24)
|
|
78
|
+
--theme-mark: hsl(hue($theme), 24, 24)
|
|
76
79
|
--theme-codeblock: hsl(hue($theme), 12, 18)
|
|
77
|
-
--text: hsl(hue($theme), 100,
|
|
78
|
-
--text-p1: hsl(hue($theme), 50,
|
|
79
|
-
--text-p2: hsl(hue($theme), 80,
|
|
80
|
+
--text: hsl(hue($theme), 100, 80)
|
|
81
|
+
--text-p1: hsl(hue($theme), 50, 72)
|
|
82
|
+
--text-p2: hsl(hue($theme), 80, 64)
|
|
80
83
|
.tag-plugin.tag
|
|
81
84
|
set_dynamic_color($color-theme)
|
|
82
85
|
.colorful[color='red']
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
.users-posts-wrap .grid-box
|
|
2
|
+
display: grid
|
|
3
|
+
grid-template-columns: 1fr
|
|
4
|
+
grid-gap: 2px
|
|
5
|
+
overflow: hidden
|
|
6
|
+
border-radius: $border-card
|
|
7
|
+
|
|
8
|
+
.users-posts-wrap .user-post-card
|
|
9
|
+
display: grid
|
|
10
|
+
grid-template-columns: 1fr 2fr
|
|
11
|
+
grid-gap: 16px
|
|
12
|
+
font-weight: 500
|
|
13
|
+
border-radius: 4px
|
|
14
|
+
background: var(--block)
|
|
15
|
+
padding: 1rem
|
|
16
|
+
div,span
|
|
17
|
+
line-height: 1.2
|
|
18
|
+
.labels
|
|
19
|
+
margin-top: 4px
|
|
20
|
+
display: flex
|
|
21
|
+
flex-wrap: wrap
|
|
22
|
+
align-items: center
|
|
23
|
+
justify-content: center
|
|
24
|
+
pointer-events: none
|
|
25
|
+
user-select: none
|
|
26
|
+
.label
|
|
27
|
+
color: white
|
|
28
|
+
font-size: 12px
|
|
29
|
+
padding: 2px 6px
|
|
30
|
+
margin: 4px 2px 0 2px
|
|
31
|
+
line-height: 1
|
|
32
|
+
border-radius: 16px
|
|
33
|
+
.avatar-box
|
|
34
|
+
display: flex
|
|
35
|
+
justify-content: center
|
|
36
|
+
flex-direction: column
|
|
37
|
+
align-items: center
|
|
38
|
+
padding: 1rem
|
|
39
|
+
.card-link
|
|
40
|
+
color: var(--text-p1)
|
|
41
|
+
display: flex
|
|
42
|
+
justify-content: flex-start
|
|
43
|
+
flex-direction: column
|
|
44
|
+
align-items: center
|
|
45
|
+
text-align: center
|
|
46
|
+
border-radius: 4px
|
|
47
|
+
position: relative
|
|
48
|
+
flex-shrink: 0
|
|
49
|
+
trans1 width
|
|
50
|
+
span
|
|
51
|
+
display: -webkit-box
|
|
52
|
+
-webkit-box-orient: vertical
|
|
53
|
+
overflow: hidden
|
|
54
|
+
-webkit-line-clamp: 1
|
|
55
|
+
position: relative
|
|
56
|
+
.title
|
|
57
|
+
font-size: $fs-14
|
|
58
|
+
font-weight: 500
|
|
59
|
+
margin-top: 1rem
|
|
60
|
+
max-width: 100%
|
|
61
|
+
img
|
|
62
|
+
object-fit: cover
|
|
63
|
+
display: block
|
|
64
|
+
width: 64px
|
|
65
|
+
height: 64px
|
|
66
|
+
background: var(--card)
|
|
67
|
+
border-radius: 64px
|
|
68
|
+
floatable-trans()
|
|
69
|
+
|
|
70
|
+
.previews
|
|
71
|
+
display: flex
|
|
72
|
+
justify-content: space-between
|
|
73
|
+
flex-direction: column
|
|
74
|
+
height: 100%
|
|
75
|
+
position: relative
|
|
76
|
+
.empty
|
|
77
|
+
min-height: 1rem
|
|
78
|
+
.desc
|
|
79
|
+
font-size: 1.2rem
|
|
80
|
+
color: var(--text-p3)
|
|
81
|
+
font-weight: 400
|
|
82
|
+
margin: 1rem 0
|
|
83
|
+
margin-right: auto
|
|
84
|
+
position: relative
|
|
85
|
+
&:before
|
|
86
|
+
position: absolute
|
|
87
|
+
font-weight: 900
|
|
88
|
+
font-size: 32px
|
|
89
|
+
color: var(--block-border)
|
|
90
|
+
top: 0
|
|
91
|
+
content: '“'
|
|
92
|
+
left: -16px
|
|
93
|
+
trans1 all
|
|
94
|
+
.spacer
|
|
95
|
+
height: 100%
|
|
96
|
+
.posts
|
|
97
|
+
margin: 0.5rem 0 1rem 0
|
|
98
|
+
display: flex
|
|
99
|
+
flex-direction: column
|
|
100
|
+
align-items: flex-start
|
|
101
|
+
.post-link
|
|
102
|
+
display: flex
|
|
103
|
+
flex-direction: column
|
|
104
|
+
color: var(--text-p1)
|
|
105
|
+
position: relative
|
|
106
|
+
trans1 color
|
|
107
|
+
&+.post-link
|
|
108
|
+
margin-top: 1rem
|
|
109
|
+
&:before
|
|
110
|
+
content: ''
|
|
111
|
+
position: absolute
|
|
112
|
+
left: -12px
|
|
113
|
+
top: 2px
|
|
114
|
+
height: 'calc(%s - 2px)' % $fs-14
|
|
115
|
+
width: 4px
|
|
116
|
+
border-radius: 4px
|
|
117
|
+
background: var(--block-border)
|
|
118
|
+
trans1 all
|
|
119
|
+
&:hover:before
|
|
120
|
+
background: $color-hover
|
|
121
|
+
// height: calc(100% - 4px)
|
|
122
|
+
height: 100%
|
|
123
|
+
top: 0
|
|
124
|
+
span
|
|
125
|
+
display: -webkit-box
|
|
126
|
+
-webkit-box-orient: vertical
|
|
127
|
+
overflow: hidden
|
|
128
|
+
-webkit-line-clamp: 1
|
|
129
|
+
position: relative
|
|
130
|
+
.title
|
|
131
|
+
font-size: $fs-14
|
|
132
|
+
font-weight: 500
|
|
133
|
+
max-width: 100%
|
|
134
|
+
display: -webkit-box
|
|
135
|
+
-webkit-box-orient: vertical
|
|
136
|
+
overflow: hidden
|
|
137
|
+
-webkit-line-clamp: 2
|
|
138
|
+
position: relative
|
|
139
|
+
.date
|
|
140
|
+
font-size: $fs-12
|
|
141
|
+
color: var(--text-p3)
|
|
142
|
+
margin-top: 0.25rem
|
|
143
|
+
.no-post
|
|
144
|
+
font-size: $fs-13
|
|
145
|
+
color: var(--text-p4)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
// transform
|
|
149
|
+
.users-posts-wrap .user-post-card
|
|
150
|
+
&:hover
|
|
151
|
+
.desc
|
|
152
|
+
&:before
|
|
153
|
+
color: $color-hover
|
|
154
|
+
transform: scale(1.2) translateX(-4px)
|
|
155
|
+
.card-link:hover
|
|
156
|
+
img
|
|
157
|
+
transform: scale(1.2) rotate(8deg)
|
|
158
|
+
box-shadow: $boxshadow-card-float
|
|
159
|
+
.post-link:hover
|
|
160
|
+
color: $color-hover
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
margin: 1em auto
|
|
3
3
|
display: flex
|
|
4
4
|
justify-content: center
|
|
5
|
+
text-align: left
|
|
5
6
|
|
|
6
7
|
.md-text .link-card
|
|
7
8
|
background: var(--card)
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
cursor: pointer
|
|
12
13
|
width: 300px
|
|
13
14
|
max-width: 100%
|
|
14
|
-
border-radius: $border-card
|
|
15
|
+
border-radius: $border-card-s
|
|
15
16
|
hoverable-card()
|
|
16
17
|
|
|
17
18
|
.md-text .link-card.plain
|