Skip to content

Commit

Permalink
[opt] css
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoxuu committed Dec 10, 2022
1 parent f748cf4 commit 60659b4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions scripts/tags/quot.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* quot.js v1.1 | https://github.com/xaoxuu/hexo-theme-stellar/
* quot.js v1.2 | https://github.com/xaoxuu/hexo-theme-stellar/
* 格式与官方标签插件一致使用空格分隔,中括号内的是可选参数(中括号不需要写出来)
*
* quot:
* {% quot [el:h1] [icon:default] text %}
* {% quot [el:h2] [icon:default] text %}
*
*/

Expand Down
4 changes: 2 additions & 2 deletions scripts/tags/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* toc.js v1 | https://github.com/xaoxuu/hexo-theme-stellar/
* 格式与官方标签插件一致使用空格分隔,中括号内的是可选参数(中括号不需要写出来)
*
* {% toc wiki:xxx [open:true] [display:mobile] title %}
* {% toc wiki:xxx [title] [open:true] [display:mobile] %}
*/

'use strict';
Expand Down Expand Up @@ -33,7 +33,7 @@ hexo.extend.tag.register('toc', function(args) {
el += '>';

el += '<details class="toc"';
if (args.open !== false) {
if (args.open != 'false') {
el += ' open';
}
el += '>';
Expand Down
2 changes: 1 addition & 1 deletion source/css/_layout/partial/related.styl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
text-decoration: underline
&:hover
color: $color-hover
&:after
&:before
display: none
div.cmt-body
min-height: 150px
Expand Down
2 changes: 1 addition & 1 deletion source/css/_layout/tag-plugins/common.styl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ set_darkmode_tags()
--theme-bg2: hsl(hue($theme), 16, 16)
--theme-border: hsl(hue($theme), 50, 24)
--text-p0: hsl(hue($theme), 80, 80)
--text-p1: hsl(hue($theme), 64, 90)
--text-p1: hsl(hue($theme), 64, 80)
--text-p2: hsl(hue($theme), 80, 72)
.tag-plugin.tag
set_dynamic_color($color-theme)
Expand Down
2 changes: 1 addition & 1 deletion source/css/_layout/tag-plugins/quot.styl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
color: var(--text-p0)

// type=text
.md-text .tag-plugin.quot
.md-text .tag-plugin.quot
.content[type=text]
&:before,&:after
content: ""
Expand Down

0 comments on commit 60659b4

Please sign in to comment.