跟随tianli更新,优化部分圆角显示 (#360)

* 跟随tianli更新,优化部分圆角显示

* ai doc

* fix ai 403

* fix
This commit is contained in:
星日语 2024-01-19 01:12:04 +08:00 committed by GitHub
parent 5bc949fc22
commit bf33824b8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 24 additions and 25 deletions

View File

@ -449,6 +449,7 @@ plugins:
enable: false enable: false
field: post # all, post, wiki field: post # all, post, wiki
api: 5Q5mpqRK5DkwT1X9Gi5e # tianli_gpt key api: 5Q5mpqRK5DkwT1X9Gi5e # tianli_gpt key
limit: 1000 # 设置提交的字数限制默认为1000字上限为5000超过5000字符将被截断不能为空
typingAnimate: true # 打字机动画 typingAnimate: true # 打字机动画
style: style:

View File

@ -3,6 +3,6 @@
let tianliGPT_postSelector = '.md-text.content.<%= page.layout === "post" ? "post" : "wiki" %>'; let tianliGPT_postSelector = '.md-text.content.<%= page.layout === "post" ? "post" : "wiki" %>';
let tianliGPT_key = '<%= theme.plugins.tianli_gpt.api %>'; let tianliGPT_key = '<%= theme.plugins.tianli_gpt.api %>';
let tianliGPT_typingAnimate = '<%= theme.plugins.tianli_gpt.typingAnimate %>'; let tianliGPT_typingAnimate = '<%= theme.plugins.tianli_gpt.typingAnimate %>';
let tianliGPT_wordLimit = <%= theme.plugins.tianli_gpt.limit %>;
</script> </script>
<script defer src="https://cdn1.tianli0.top/gh/zhheo/Post-Abstract-AI@0.13/tianli_gpt.js"></script> <script defer src="https://cdn1.tianli0.top/gh/zhheo/Post-Abstract-AI@0.15.2/tianli_gpt.min.js"></script>
<% } %>

View File

@ -1,5 +1,5 @@
.cmt-body.twikoo .cmt-body.twikoo
--twikoo-lighttext: #ef794f; --twikoo-lighttext: $color-theme;
--twikoo-secondtext: #909094; --twikoo-secondtext: #909094;
--twikoo-emoji-background: #f8f8f8; --twikoo-emoji-background: #f8f8f8;
--twikoo-theme: $color-theme; --twikoo-theme: $color-theme;
@ -8,14 +8,14 @@
.tk-content .tk-content
.vemoji, .tk-owo-emotion .vemoji, .tk-owo-emotion
width: unset; width: unset;
border-radius: 0; border-radius: $border-image;
max-height: 24px; max-height: 24px;
max-width: 100px; max-width: 100px;
img img
max-width: 400px; max-width: 400px;
max-height: 400px; max-height: 400px;
border-radius: 8px; border-radius: $border-image;
.OwO .OwO
.OwO-body .OwO-body
@ -58,7 +58,7 @@
width: auto width: auto
border: none border: none
padding: 6px 2rem padding: 6px 2rem
border-radius: 4px border-radius: $border-block
background: var(--block) background: var(--block)
color: var(--text-p1) color: var(--text-p1)
line-height: 2 line-height: 2
@ -74,7 +74,7 @@
margin-bottom: 1rem margin-bottom: 1rem
border: 1px dashed var(--block-border); border: 1px dashed var(--block-border);
padding: 1rem; padding: 1rem;
border-radius: 4px; border-radius: $border-block;
background: var(--card); background: var(--card);
&:hover &:hover
@ -86,7 +86,7 @@
.tk-submit .tk-submit
padding: 1rem 1rem 0 1rem; padding: 1rem 1rem 0 1rem;
border-radius: 4px; border-radius: $border-block;
background: var(--card); background: var(--card);
.tk-tag .tk-tag
@ -108,9 +108,9 @@
set_darkmode_comments() set_darkmode_comments()
.cmt-body.twikoo .cmt-body.twikoo
--twikoo-lighttext: #f2b94b; --twikoo-lighttext: $color-link;
--twikoo-secondtext: #a1a2b8; --twikoo-secondtext: var(--text-p2);
--twikoo-theme: #409eff; --twikoo-theme: $color-theme;
if hexo-config('style.darkmode') == 'auto' if hexo-config('style.darkmode') == 'auto'
@media (prefers-color-scheme: dark) @media (prefers-color-scheme: dark)

View File

@ -1,7 +1,7 @@
.post-TianliGPT .post-TianliGPT
--heo-none: #00000000 --heo-none: #00000000
--heo-theme = var(--theme-link) --heo-theme = $color-theme
--heo-main: var(--theme-link) --heo-main: $color-theme
--heo-snackbar-time: 5s --heo-snackbar-time: 5s
--heo-theme-none: #4259ef01 --heo-theme-none: #4259ef01
--heo-background: var(--site-bg) --heo-background: var(--site-bg)
@ -18,11 +18,10 @@
.post-TianliGPT .post-TianliGPT
background: var(--block) background: var(--block)
border-radius: 12px border-radius: $border-block
padding: 12px padding: 12px
line-height: 1.3 line-height: 1.3
border: var(--style-border-always) border: var(--style-border-always)
margin: 16px 0
@media screen and (max-width: 768px) @media screen and (max-width: 768px)
.post-TianliGPT .post-TianliGPT
@ -30,7 +29,6 @@
.tianliGPT-title .tianliGPT-title
display: flex display: flex
color: var(--theme-link)
border-radius: 8px border-radius: 8px
align-items: center align-items: center
padding: 0 12px padding: 0 12px
@ -46,7 +44,7 @@
margin-top: 12px margin-top: 12px
padding: 8px 12px padding: 8px 12px
background: var(--card) background: var(--card)
border-radius: 8px border-radius: $border-block
border: var(--style-border-always) border: var(--style-border-always)
font-size: 15px font-size: 15px
line-height: 1.4 line-height: 1.4
@ -71,15 +69,15 @@
transition: 0.3s transition: 0.3s
.tianliGPT-suggestions .tianliGPT-suggestions-item:hover .tianliGPT-suggestions .tianliGPT-suggestions-item:hover
background: var(--heo-main) background: $color-theme
color: var(--text-p0) color: var(--text-p0)
.blinking-cursor .blinking-cursor
background-color: var(--heo-main) background-color: var(--text-p2)
width: 10px width: 10px
height: 16px height: 10px
display: inline-block display: inline-block
vertical-align: middle border-radius: 50%;
animation: blinking-cursor 0.5s infinite animation: blinking-cursor 0.5s infinite
-webkit-animation: blinking-cursor 0.5s infinite -webkit-animation: blinking-cursor 0.5s infinite
margin-left: 4px margin-left: 4px
@ -102,7 +100,7 @@
.tianliGPT-tag .tianliGPT-tag
font-size: 12px font-size: 12px
background-color: var(--theme-link) background-color: var(--text-p2)
color: var(--card) color: var(--card)
font-weight: bold font-weight: bold
border-radius: 4px border-radius: 4px
@ -116,7 +114,7 @@
transition: 0.3s transition: 0.3s
.tianliGPT-tag:hover .tianliGPT-tag:hover
background: var(--text-p2) background: $color-theme
color: var(--card) color: var(--card)
ins.adsbygoogle ins.adsbygoogle
@ -149,7 +147,7 @@ ins.adsbygoogle
.tianliGPT-title-icon svg .tianliGPT-title-icon svg
width: 20px width: 20px
height: 20px height: 20px
fill: var(--heo-main) fill: var(--text-p2)
.tianliGPT-title-icon svg path .tianliGPT-title-icon svg path
fill: var(--heo-main) fill: var(--text-p2)