[opt] style

This commit is contained in:
xaoxuu 2024-02-12 23:45:08 +08:00
parent c34c56a462
commit 8d1b4da382
4 changed files with 8 additions and 12 deletions

View File

@ -14,10 +14,10 @@
for (let id of Object.keys(ctx.services)) { for (let id of Object.keys(ctx.services)) {
const js = ctx.services[id]; const js = ctx.services[id];
if (id == 'siteinfo') { if (id == 'siteinfo') {
const els = document.querySelectorAll('a.link-card[cardlink]'); ctx.cardlinks = document.querySelectorAll('a.link-card[cardlink]');
if (els?.length > 0) { if (ctx.cardlinks?.length > 0) {
utils.js(js, { defer: true }).then(function () { utils.js(js, { defer: true }).then(function () {
setCardLink(els); setCardLink(ctx.cardlinks);
}); });
} }
} else { } else {

View File

@ -12,7 +12,7 @@
--fsp: $fsp2 --fsp: $fsp2
.tag-plugin.timeline .timenode .tag-plugin.timeline .timenode
z-index 1 z-index 1
margin-top: 0.5rem margin-top: 0.25rem
.header .header
margin: 0.25rem var(--gap-padding) margin: 0.25rem var(--gap-padding)
.user-info .user-info
@ -23,8 +23,6 @@
.header:before .header:before
left: calc(6px - var(--gap-padding)) left: calc(6px - var(--gap-padding))
&+.timenode
margin-top: 0.75rem
.body .body
border-radius: $border-card border-radius: $border-card
padding: 0.5rem 1rem padding: 0.5rem 1rem

View File

@ -6,8 +6,8 @@
&:before &:before
content: '' content: ''
position absolute position absolute
top: 4px top: 6px
bottom: 4px bottom: 6px
left: 0 left: 0
width: 4px width: 4px
background: var(--block) background: var(--block)
@ -36,8 +36,8 @@
&.active:before &.active:before
content: '' content: ''
position absolute position absolute
top: 4px top: 6px
bottom: 4px bottom: 6px
left: -8px left: -8px
width: 4px width: 4px
background: $color-theme background: $color-theme

View File

@ -31,7 +31,6 @@ utils.jq(() => {
if (hideStr && hideStr.length > 0) { if (hideStr && hideStr.length > 0) {
hide = hideStr.split(","); hide = hideStr.split(",");
} }
console.log('arr', arr);
arr.forEach((item, i) => { arr.forEach((item, i) => {
if (item.user && item.user.login && users.length > 0) { if (item.user && item.user.login && users.length > 0) {
if (!users.includes(item.user.login)) { if (!users.includes(item.user.login)) {
@ -99,7 +98,6 @@ utils.jq(() => {
cell += '</div>'; cell += '</div>';
cell += '</div>'; cell += '</div>';
console.log('cell', cell, el);
$(el).append(cell); $(el).append(cell);
}); });
}); });