[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)) {
const js = ctx.services[id];
if (id == 'siteinfo') {
const els = document.querySelectorAll('a.link-card[cardlink]');
if (els?.length > 0) {
ctx.cardlinks = document.querySelectorAll('a.link-card[cardlink]');
if (ctx.cardlinks?.length > 0) {
utils.js(js, { defer: true }).then(function () {
setCardLink(els);
setCardLink(ctx.cardlinks);
});
}
} else {

View File

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

View File

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

View File

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