hexo-theme-solitude 1.8.13 → 1.9.1
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/README.md +3 -3
- package/README_en-US.md +3 -3
- package/README_fr.md +3 -3
- package/README_ja.md +3 -3
- package/README_zh-Hant.md +3 -3
- package/_config.yml +28 -2
- package/layout/includes/inject/head.pug +1 -1
- package/layout/includes/layout.pug +4 -0
- package/layout/includes/widgets/aside/aside.pug +0 -12
- package/layout/includes/widgets/aside/asideCustom.pug +4 -4
- package/layout/includes/widgets/aside/asideSwitch.pug +5 -1
- package/layout/includes/widgets/post/copyright.pug +1 -1
- package/layout/includes/widgets/third-party/tianli-talk.pug +26 -0
- package/layout/post.pug +22 -0
- package/package.json +1 -1
- package/source/css/_layout/header.styl +40 -38
- package/source/css/_page/index.styl +5 -1
- package/source/css/_post/copyright.styl +1 -1
- package/source/css/_post/tools.styl +110 -5
- package/source/css/_tags/gallery.styl +6 -0
- package/source/css/index.styl +5 -1
- package/source/css/third_party/tianli_talk.styl +62 -0
- package/source/js/right_menu.js +3 -3
package/README.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
一款优雅的 Hexo 主题,支持懒加载、PWA、Latex以及多种评论系统。
|
10
10
|
|
11
|
-
|
11
|
+
主题设计由 [@张洪Heo](https://github.com/zhheo) 全权授权
|
12
12
|
|
13
13
|

|
14
14
|

|
@@ -38,7 +38,7 @@
|
|
38
38
|
[](https://gitee.com/nsjjd_w/hexo-theme-solitude)
|
39
39
|
[](https://gitlab.com/efu/hexo-theme-solitude)
|
40
40
|
|
41
|
-
[预览](https://www.efu.me/) 丨 [文档](https://
|
41
|
+
[预览](https://www.efu.me/) 丨 [文档](https://docs.efu.me/)
|
42
42
|
|
43
43
|
</div>
|
44
44
|
|
@@ -73,7 +73,7 @@
|
|
73
73
|
theme: solitude
|
74
74
|
```
|
75
75
|
|
76
|
-
前往 [文档](https://
|
76
|
+
前往 [文档](https://docs.efu.me/) 获取更多信息。
|
77
77
|
|
78
78
|
## 赞助者
|
79
79
|
|
package/README_en-US.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple comment systems.
|
10
10
|
|
11
|
-
Theme is fully licensed
|
11
|
+
Theme design is fully licensed by [@张洪Heo](https://github.com/zhheo).
|
12
12
|
|
13
13
|

|
14
14
|

|
@@ -38,7 +38,7 @@
|
|
38
38
|
[](https://gitee.com/nsjjd_w/hexo-theme-solitude)
|
39
39
|
[](https://gitlab.com/efu/hexo-theme-solitude)
|
40
40
|
|
41
|
-
[Preview](https://efu.me/) 丨 [Documentation](https://
|
41
|
+
[Preview](https://efu.me/) 丨 [Documentation](https://docs.efu.me/)
|
42
42
|
|
43
43
|
</div>
|
44
44
|
|
@@ -73,7 +73,7 @@
|
|
73
73
|
theme: solitude
|
74
74
|
```
|
75
75
|
|
76
|
-
Check out the [Documentation](https://
|
76
|
+
Check out the [Documentation](https://docs.efu.me/) for more information.
|
77
77
|
|
78
78
|
## Sponsors
|
79
79
|
|
package/README_fr.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
Un thème Hexo élégant qui prend en charge le chargement paresseux, les PWA, le latex et les systèmes de commentaires
|
10
10
|
multiples.
|
11
11
|
|
12
|
-
|
12
|
+
La conception du thème est entièrement autorisée par [@张洪Heo](https://github.comzhheo).
|
13
13
|
|
14
14
|

|
15
15
|

|
@@ -39,7 +39,7 @@ Le thème se compose de [@张洪Heo](https://github.com/zhheo) Autorisation comp
|
|
39
39
|
[](https://gitee.com/nsjjd_w/hexo-theme-solitude)
|
40
40
|
[](https://gitlab.com/efu/hexo-theme-solitude)
|
41
41
|
|
42
|
-
[Aperçu](https://www.efu.me/) 丨 [documentation](https://
|
42
|
+
[Aperçu](https://www.efu.me/) 丨 [documentation](https://docs.efu.me/)
|
43
43
|
|
44
44
|
</div>
|
45
45
|
|
@@ -75,7 +75,7 @@ Le thème se compose de [@张洪Heo](https://github.com/zhheo) Autorisation comp
|
|
75
75
|
theme: solitude
|
76
76
|
```
|
77
77
|
|
78
|
-
Go to [Docs](https://
|
78
|
+
Go to [Docs](https://docs.efu.me) for more information.
|
79
79
|
|
80
80
|
## Sponsors
|
81
81
|
|
package/README_ja.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
遅延読み込み、PWA、ラテックス、および複数のコメントシステムをサポートするエレガントなHexoテーマ。
|
10
10
|
|
11
|
-
|
11
|
+
テーマデザインは [@张洪Heo](https://github.comzhheo) によって完全にライセンスされています。
|
12
12
|
|
13
13
|

|
14
14
|

|
@@ -38,7 +38,7 @@
|
|
38
38
|
[](https://gitee.com/nsjjd_w/hexo-theme-solitude)
|
39
39
|
[](https://gitlab.com/efu/hexo-theme-solitude)
|
40
40
|
|
41
|
-
[プレビュー](https://www.efu.me/) 丨 [ドキュメンテーション](https://
|
41
|
+
[プレビュー](https://www.efu.me/) 丨 [ドキュメンテーション](https://docs.efu.me/)
|
42
42
|
|
43
43
|
</div>
|
44
44
|
|
@@ -73,7 +73,7 @@
|
|
73
73
|
theme: solitude
|
74
74
|
```
|
75
75
|
|
76
|
-
詳しくは [Docs](https://
|
76
|
+
詳しくは [Docs](https://docs.efu.me) をご覧ください。
|
77
77
|
|
78
78
|
## スポンサー
|
79
79
|
|
package/README_zh-Hant.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
一款優雅的 Hexo 主題,支援懶載入、PWA、Latex以及多種評論系統。
|
10
10
|
|
11
|
-
|
11
|
+
主題設計由 [@张洪Heo](https://github.com/zhheo)全權授權
|
12
12
|
|
13
13
|

|
14
14
|

|
@@ -38,7 +38,7 @@
|
|
38
38
|
[](https://gitee.com/nsjjd_w/hexo-theme-solitude)
|
39
39
|
[](https://gitlab.com/efu/hexo-theme-solitude)
|
40
40
|
|
41
|
-
[預覽](https://efu.me/) 丨 [文档](https://
|
41
|
+
[預覽](https://efu.me/) 丨 [文档](https://docs.efu.me/)
|
42
42
|
|
43
43
|
</div>
|
44
44
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
theme: solitude
|
72
72
|
```
|
73
73
|
|
74
|
-
前往 [文檔](https://
|
74
|
+
前往 [文檔](https://docs.efu.me) 獲取更多資訊。
|
75
75
|
|
76
76
|
## 贊助者
|
77
77
|
|
package/_config.yml
CHANGED
@@ -362,6 +362,17 @@ post:
|
|
362
362
|
# qcode: https://s3.qjqq.cn/47/661ba900c4bc1.webp!color
|
363
363
|
# url: https://github.com/sponsors/efuo
|
364
364
|
# color: var(--efu-black)
|
365
|
+
# 分享按钮,需要是什么哪些按钮,填写后开启
|
366
|
+
share:
|
367
|
+
enable: false
|
368
|
+
list:
|
369
|
+
# - qq
|
370
|
+
# - weibo
|
371
|
+
# - twitter
|
372
|
+
# - facebook
|
373
|
+
# - telegram
|
374
|
+
# - whatsapp
|
375
|
+
# - linkedin
|
365
376
|
# 版权中订阅按钮跳转链接,填写地址后开启
|
366
377
|
# Subscription button jump link in copyright
|
367
378
|
rss: # /atom.xml
|
@@ -660,6 +671,23 @@ search:
|
|
660
671
|
preload: false
|
661
672
|
CDN:
|
662
673
|
|
674
|
+
# Post Chat AI
|
675
|
+
# 后台地址:https://ai.tianli0.top/?InviteID=OZ3Z0V2R
|
676
|
+
tianli_talk:
|
677
|
+
enable: false
|
678
|
+
title: 智能客服与搜索
|
679
|
+
key: # https://ai.tianli0.top/?InviteID=OZ3Z0V2R
|
680
|
+
# 默认值
|
681
|
+
# backgroundColor: "var(--efu-main)",
|
682
|
+
# bottom: "60px",
|
683
|
+
option: #https://ai.tianli0.top/codeMaker.html
|
684
|
+
# defaultInput: false
|
685
|
+
# upLoadWeb: true
|
686
|
+
# userTitle: Efu Chat
|
687
|
+
# userDesc: 你好,我是 Efu 的智能客服,有什么可以帮助你的?
|
688
|
+
# showInviteLink: 'https://ai.tianli0.top/?InviteID=OZ3Z0V2R'
|
689
|
+
# blackDom:
|
690
|
+
# - .aplayer
|
663
691
|
# 文章摘要AI
|
664
692
|
# post abstract AI
|
665
693
|
post_ai:
|
@@ -867,8 +895,6 @@ CDN:
|
|
867
895
|
# twikoo:
|
868
896
|
# waline_js:
|
869
897
|
# waline_css:
|
870
|
-
# sharejs:
|
871
|
-
# sharejs_css:
|
872
898
|
# katex:
|
873
899
|
# katex_copytex:
|
874
900
|
# lazyload:
|
@@ -27,7 +27,7 @@ include ../head/pwa.pug
|
|
27
27
|
|
28
28
|
script.
|
29
29
|
console.log(
|
30
|
-
"%c Program: Hexo %c Theme: Solitude %c Version: v1.
|
30
|
+
"%c Program: Hexo %c Theme: Solitude %c Version: v1.9.1",
|
31
31
|
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
|
32
32
|
"padding: 5px 10px;color:white;background:#3e9f50;",
|
33
33
|
"padding: 5px 10px;color:white;background:#0084ff;",
|
@@ -45,6 +45,10 @@ html(lang=config.language, data-theme="light")
|
|
45
45
|
// search
|
46
46
|
include ./widgets/third-party/search/index.pug
|
47
47
|
|
48
|
+
// Tianli-Talk
|
49
|
+
if theme.tianli_talk.enable
|
50
|
+
include ./widgets/third-party/tianli-talk.pug
|
51
|
+
|
48
52
|
// music
|
49
53
|
if theme.capsule.enable
|
50
54
|
include ./widgets/third-party/music.pug
|
@@ -2,29 +2,17 @@
|
|
2
2
|
- var noSticky, Sticky, customNoSticky, customSticky;
|
3
3
|
if(is_home())
|
4
4
|
- noSticky = theme.aside.home.noSticky.split(',')
|
5
|
-
- customNoSticky = site.data.aside?.home?.noSticky
|
6
|
-
- customSticky = site.data.aside?.home?.Sticky
|
7
5
|
- Sticky = theme.aside.home.Sticky.split(',')
|
8
6
|
else if(is_post())
|
9
7
|
- noSticky = theme.aside.post.noSticky.split(',')
|
10
|
-
- customNoSticky = site.data.aside?.post?.noSticky
|
11
|
-
- customSticky = site.data.aside?.post?.Sticky
|
12
8
|
- Sticky = theme.aside.post.Sticky.split(',')
|
13
9
|
else if(is_page() || is_archive() || is_tag() || is_category())
|
14
10
|
- noSticky = theme.aside.page.noSticky.split(',')
|
15
|
-
- customNoSticky = site.data.aside?.page?.noSticky
|
16
|
-
- customSticky = site.data.aside?.page?.Sticky
|
17
11
|
- Sticky = theme.aside.page.Sticky.split(',')
|
18
12
|
each item in noSticky
|
19
13
|
include ./asideSwitch.pug
|
20
|
-
if customNoSticky
|
21
|
-
each item in customNoSticky
|
22
|
-
include ./asideCustom.pug
|
23
14
|
.sticky_layout
|
24
15
|
if page.toc
|
25
16
|
include ./asideToc.pug
|
26
|
-
if customSticky
|
27
|
-
each item in customSticky
|
28
|
-
include ./asideCustom.pug
|
29
17
|
each item in Sticky
|
30
18
|
include ./asideSwitch.pug
|
@@ -1,6 +1,6 @@
|
|
1
|
-
.card-widget(class=item.
|
1
|
+
.card-widget(class=item.class, id=item.id)
|
2
2
|
.item-headline
|
3
3
|
i(class=item.icon)
|
4
|
-
span=item.
|
5
|
-
div(class=item.
|
6
|
-
!= item.
|
4
|
+
span=item.title
|
5
|
+
div(class=item.content_class ||'item-content', id=item.content_id, style=item.content_css)
|
6
|
+
!= item.content_html
|
@@ -8,4 +8,8 @@ case item
|
|
8
8
|
when 'allInfo'
|
9
9
|
include ./asideAllInfo.pug
|
10
10
|
default
|
11
|
-
|
11
|
+
- const custom = site.data?.aside?.find((i) => i.name === item)
|
12
|
+
if custom
|
13
|
+
!= partial("includes/widgets/aside/asideCustom", {item: custom}, {cache: true})
|
14
|
+
else
|
15
|
+
include ../../page/default.pug
|
@@ -0,0 +1,26 @@
|
|
1
|
+
- const {key,option,title} = theme.tianli_talk
|
2
|
+
|
3
|
+
span.needEndHide#efuTalk(onclick="togglePostChatContainer(); return false;" title=title)
|
4
|
+
i.solitude.st-robot-fill
|
5
|
+
span.efuTalkTitle=title
|
6
|
+
|
7
|
+
script.
|
8
|
+
var postChatConfig = {
|
9
|
+
backgroundColor: "var(--efu-main)",
|
10
|
+
bottom: "60px",
|
11
|
+
...!{JSON.stringify(option)}
|
12
|
+
};
|
13
|
+
|
14
|
+
let b = true;
|
15
|
+
|
16
|
+
document.getElementById('efuTalk').addEventListener('click', function () {
|
17
|
+
this.classList.toggle('on');
|
18
|
+
let efu = this
|
19
|
+
b && setTimeout(() => {
|
20
|
+
document.getElementById('close-button').addEventListener('click', function () {
|
21
|
+
efu.classList.remove('on');
|
22
|
+
})
|
23
|
+
}, 0);
|
24
|
+
b = false
|
25
|
+
});
|
26
|
+
script(pjax data-postChat_key=key src="https://ai.tianli0.top/static/public/postChatUser.min.js")
|
package/layout/post.pug
CHANGED
@@ -15,6 +15,28 @@ block content
|
|
15
15
|
span.tags-punctuation
|
16
16
|
| #{data.name}
|
17
17
|
span.tagsPageCount #{data.length}
|
18
|
+
.social-share
|
19
|
+
- const path = config.url + url_for(page.path);
|
20
|
+
- const encodedPath = encodeURIComponent(path);
|
21
|
+
- const encodedTitle = encodeURIComponent(page.title);
|
22
|
+
- const encodedDescription = encodeURIComponent(page.description);
|
23
|
+
- const encodedIcon = encodeURIComponent(page.cover || theme.site.icon);
|
24
|
+
each item in theme.post.share.list || []
|
25
|
+
case item
|
26
|
+
when 'qq'
|
27
|
+
a.social-share-ico.icon-qq(href=`https://connect.qq.com/widget/shareqq/index.html?url=${encodedPath}&title=${encodedTitle}&desc=${encodedDescription}&summary=${encodedDescription}&site=${encodedTitle}&pics=${encodedIcon}` title="QQ")
|
28
|
+
when 'weibo'
|
29
|
+
a.social-share-ico.icon-weibo(href=`http://service.weibo.com/share/share.php?url=${encodedPath}&title=${encodedTitle}&pic=${encodedIcon}` title="Weibo")
|
30
|
+
when 'telegram'
|
31
|
+
a.social-share-ico.icon-telegram(href=`https://t.me/share/url?url=${encodedPath}&text=${encodedTitle}` title="Telegram")
|
32
|
+
when 'whatsapp'
|
33
|
+
a.social-share-ico.icon-whatsapp(href=`https://api.whatsapp.com/send?text=${encodedTitle} ${encodedPath}` title="WhatsApp")
|
34
|
+
when 'linkedin'
|
35
|
+
a.social-share-ico.icon-linkedin(href=`https://www.linkedin.com/shareArticle?mini=true&url=${encodedPath}&title=${encodedTitle}&summary=${encodedDescription}&source=${encodedTitle}` title="LinkedIn")
|
36
|
+
when 'facebook'
|
37
|
+
a.social-share-ico.icon-facebook(href=`https://www.facebook.com/sharer/sharer.php?u=${encodedPath}` title="Facebook")
|
38
|
+
when 'twitter'
|
39
|
+
a.social-share-ico.icon-twitter(href=`https://twitter.com/intent/tweet?url=${encodedPath}&text=${encodedTitle}` title="Twitter")
|
18
40
|
if site.posts.length > 1
|
19
41
|
include includes/widgets/post/postNav
|
20
42
|
if theme.related_post.enable
|
package/package.json
CHANGED
@@ -791,52 +791,54 @@ if hexo-config('nav.group')
|
|
791
791
|
&:after
|
792
792
|
color var(--efu-card-bg)
|
793
793
|
|
794
|
-
.back-menu-list
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
justify-content space-between
|
794
|
+
.back-menu-list
|
795
|
+
display flex
|
796
|
+
flex-direction row
|
797
|
+
flex-wrap wrap
|
798
|
+
width 340px
|
799
|
+
justify-content space-between
|
801
800
|
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
801
|
+
&::before
|
802
|
+
position absolute
|
803
|
+
top -15px
|
804
|
+
left 0
|
805
|
+
width 100%
|
806
|
+
height 20px
|
807
|
+
content ''
|
809
808
|
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
809
|
+
.back-menu-item
|
810
|
+
display flex
|
811
|
+
align-items center
|
812
|
+
margin 4px 8px
|
813
|
+
padding 4px 8px
|
815
814
|
|
816
|
-
|
817
|
-
|
815
|
+
#nav &
|
816
|
+
padding 4px 8px
|
818
817
|
|
819
|
-
|
820
|
-
|
821
|
-
|
818
|
+
#nav &
|
819
|
+
&:hover
|
820
|
+
background var(--efu-lighttext)
|
822
821
|
|
823
|
-
|
824
|
-
|
822
|
+
&:hover
|
823
|
+
background var(--efu-lighttext)
|
825
824
|
|
826
|
-
|
827
|
-
|
828
|
-
height 24px
|
829
|
-
border-radius 8px
|
830
|
-
background var(--efu-none)
|
825
|
+
.back-menu-item-text
|
826
|
+
color var(--efu-card-bg)
|
831
827
|
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
828
|
+
.back-menu-item-icon
|
829
|
+
width 24px
|
830
|
+
height 24px
|
831
|
+
border-radius 8px
|
832
|
+
background var(--efu-none)
|
837
833
|
|
838
|
-
|
839
|
-
|
834
|
+
.back-menu-item-text
|
835
|
+
font-size 16px
|
836
|
+
transition .3s
|
837
|
+
margin-left .5rem
|
838
|
+
color var(--efu-fontcolor)
|
839
|
+
|
840
|
+
+maxWidth768()
|
841
|
+
font-size 14px
|
840
842
|
|
841
843
|
.page
|
842
844
|
#nav
|
@@ -191,6 +191,7 @@
|
|
191
191
|
display flex
|
192
192
|
align-items center
|
193
193
|
flex-direction row
|
194
|
+
justify-content space-between
|
194
195
|
flex-wrap wrap
|
195
196
|
|
196
197
|
.tag_share
|
@@ -201,10 +202,6 @@
|
|
201
202
|
flex-wrap wrap
|
202
203
|
flex-direction row
|
203
204
|
|
204
|
-
a
|
205
|
-
margin-bottom 8px
|
206
|
-
margin-right 8px
|
207
|
-
|
208
205
|
.post-meta__tags
|
209
206
|
background var(--efu-card-bg)
|
210
207
|
border var(--style-border-always)
|
@@ -240,4 +237,112 @@
|
|
240
237
|
text-align center
|
241
238
|
font-size .6rem
|
242
239
|
color var(--efu-fontcolor)
|
243
|
-
margin-left 4px
|
240
|
+
margin-left 4px
|
241
|
+
if hexo-config('post.share.enable')
|
242
|
+
/.social-share *
|
243
|
+
font-family solitude
|
244
|
+
/.social-share
|
245
|
+
display: flex;
|
246
|
+
justify-content: center;
|
247
|
+
margin 10px 0
|
248
|
+
|
249
|
+
+maxWidth768()
|
250
|
+
flex-wrap wrap
|
251
|
+
|
252
|
+
.social-share-ico
|
253
|
+
margin: 0 4px
|
254
|
+
width: 1.85em
|
255
|
+
height: 1.85em
|
256
|
+
font-size: 1.2em
|
257
|
+
line-height: 1.85em
|
258
|
+
border 1px solid
|
259
|
+
position: relative
|
260
|
+
display: inline-block;
|
261
|
+
border-radius 50%
|
262
|
+
text-align: center;
|
263
|
+
vertical-align: middle;
|
264
|
+
transition: background 0.6s ease-out 0s;
|
265
|
+
cursor pointer
|
266
|
+
|
267
|
+
&:hover
|
268
|
+
transition all .3s
|
269
|
+
color var(--efu-white)
|
270
|
+
|
271
|
+
.icon-qq
|
272
|
+
color #56b6e7
|
273
|
+
border-color #56b6e7
|
274
|
+
|
275
|
+
&:hover
|
276
|
+
background-color #56b6e7
|
277
|
+
|
278
|
+
&::before
|
279
|
+
content "\e0d0"
|
280
|
+
|
281
|
+
.icon-wechat
|
282
|
+
color #57bd6a
|
283
|
+
border-color #57bd6a
|
284
|
+
|
285
|
+
&::before
|
286
|
+
content "\e0d2"
|
287
|
+
|
288
|
+
&:hover
|
289
|
+
background-color #57bd6a
|
290
|
+
|
291
|
+
.icon-weibo
|
292
|
+
color #d44040
|
293
|
+
border-color #d44040
|
294
|
+
|
295
|
+
&::before
|
296
|
+
content "\e0e3"
|
297
|
+
|
298
|
+
&:hover
|
299
|
+
background-color #d44040
|
300
|
+
|
301
|
+
.icon-facebook
|
302
|
+
color #415dc9
|
303
|
+
border-color #415dc9
|
304
|
+
|
305
|
+
&::before
|
306
|
+
content "\e0e6"
|
307
|
+
|
308
|
+
&:hover
|
309
|
+
background-color #415dc9
|
310
|
+
|
311
|
+
.icon-twitter
|
312
|
+
color #56b6e7
|
313
|
+
border-color #56b6e7
|
314
|
+
|
315
|
+
&::before
|
316
|
+
content "\e0c1"
|
317
|
+
|
318
|
+
&:hover
|
319
|
+
background-color #56b6e7
|
320
|
+
|
321
|
+
.icon-telegram
|
322
|
+
color #56b6e7
|
323
|
+
border-color #56b6e7
|
324
|
+
|
325
|
+
&::before
|
326
|
+
content "\e062"
|
327
|
+
|
328
|
+
&:hover
|
329
|
+
background-color #56b6e7
|
330
|
+
|
331
|
+
.icon-linkedin
|
332
|
+
color #0077b5
|
333
|
+
border-color #0077b5
|
334
|
+
|
335
|
+
&::before
|
336
|
+
content "\e0ed"
|
337
|
+
|
338
|
+
&:hover
|
339
|
+
background-color #0077b5
|
340
|
+
.icon-whatsapp
|
341
|
+
color #25d366
|
342
|
+
border-color #25d366
|
343
|
+
|
344
|
+
&::before
|
345
|
+
content "\e0f0"
|
346
|
+
|
347
|
+
&:hover
|
348
|
+
background-color #25d366
|
package/source/css/index.styl
CHANGED
@@ -0,0 +1,62 @@
|
|
1
|
+
#efuTalk
|
2
|
+
display flex
|
3
|
+
align-items center
|
4
|
+
z-index 1001
|
5
|
+
position fixed
|
6
|
+
bottom 70px
|
7
|
+
left 20px
|
8
|
+
height 38px
|
9
|
+
cursor pointer
|
10
|
+
transition .3s
|
11
|
+
box-shadow var(--efu-shadow-border)
|
12
|
+
background var(--efu-card-bg)
|
13
|
+
border-radius 20px
|
14
|
+
overflow hidden
|
15
|
+
padding 8px
|
16
|
+
color var(--efu-fontcolor)
|
17
|
+
width 42px
|
18
|
+
border var(--style-border-always)
|
19
|
+
|
20
|
+
#efuTalk.on, #efuTalk:hover
|
21
|
+
background var(--efu-lighttext)
|
22
|
+
color var(--efu-card-bg)
|
23
|
+
width 159px
|
24
|
+
border-color var(--efu-lighttext)
|
25
|
+
|
26
|
+
#efuTalk span.efuTalkTitle
|
27
|
+
display flex
|
28
|
+
font-size 14px
|
29
|
+
padding 0 12px
|
30
|
+
line-height 1
|
31
|
+
white-space nowrap
|
32
|
+
opacity 0
|
33
|
+
transition .3s
|
34
|
+
|
35
|
+
#postChat_iframeContainer
|
36
|
+
z-index 1000
|
37
|
+
border var(--style-border-always)
|
38
|
+
background var(--efu-card-bg)
|
39
|
+
animation to_show_fromLeftBottom .2s ease-out
|
40
|
+
border-radius 12px
|
41
|
+
|
42
|
+
#efuTalk.on span.efuTalkTitle, #efuTalk:hover span.efuTalkTitle
|
43
|
+
color var(--efu-card-bg)
|
44
|
+
opacity 1
|
45
|
+
|
46
|
+
#postChat_button
|
47
|
+
display none!important
|
48
|
+
|
49
|
+
#efuTalk i.solitude.efuTalkIcon
|
50
|
+
width 18px
|
51
|
+
height 18px
|
52
|
+
font-size 18px
|
53
|
+
margin-left 3px
|
54
|
+
line-height 1
|
55
|
+
|
56
|
+
@keyframes to_show_fromLeftBottom
|
57
|
+
from
|
58
|
+
opacity 0
|
59
|
+
transform scale(0)
|
60
|
+
to
|
61
|
+
opacity 1
|
62
|
+
transform scale(1)
|
package/source/js/right_menu.js
CHANGED
@@ -111,7 +111,6 @@ window.oncontextmenu = (ele) => {
|
|
111
111
|
let x = ele.clientX + 10;
|
112
112
|
let y = ele.clientY;
|
113
113
|
Array.from(rm.menuItems.other).forEach(item => item.style.display = 'block');
|
114
|
-
|
115
114
|
rm.globalEvent = ele
|
116
115
|
|
117
116
|
let display = false
|
@@ -174,7 +173,7 @@ window.oncontextmenu = (ele) => {
|
|
174
173
|
return false;
|
175
174
|
}
|
176
175
|
|
177
|
-
(function() {
|
176
|
+
(function () {
|
178
177
|
const addEventListener = (element, event, handler) => element.addEventListener(event, handler);
|
179
178
|
|
180
179
|
addEventListener(rm.menuItems.back, 'click', () => window.history.back() || rm.hideRightMenu());
|
@@ -212,7 +211,7 @@ window.oncontextmenu = (ele) => {
|
|
212
211
|
rm.hideRightMenu();
|
213
212
|
});
|
214
213
|
|
215
|
-
if(utils.saveToLocal.get('commentBarrageSwitch') !== null){
|
214
|
+
if (utils.saveToLocal.get('commentBarrageSwitch') !== null) {
|
216
215
|
rm.menuItems.barrage && rm.barrage(!utils.saveToLocal.get('commentBarrageSwitch'));
|
217
216
|
}
|
218
217
|
|
@@ -221,6 +220,7 @@ window.oncontextmenu = (ele) => {
|
|
221
220
|
addEventListener(rm.menuItems.new, 'click', () => window.open(rm.domhref) && rm.hideRightMenu());
|
222
221
|
addEventListener(rm.menuItems.downloadImg, 'click', () => rm.downloadImage() && rm.hideRightMenu());
|
223
222
|
addEventListener(rm.menuItems.copyImg, 'click', () => rm.copyImage() && rm.hideRightMenu());
|
223
|
+
addEventListener(rm.menuItems.copyLink, 'click', () => rm.copyText(rm.domhref) && rm.hideRightMenu());
|
224
224
|
})();
|
225
225
|
|
226
226
|
is_rm = true
|