koishi-plugin-mcdle 0.3.0 → 0.3.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/lib/index.js +12 -9
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -14956,11 +14956,14 @@ function components() {
|
|
|
14956
14956
|
.m3-header__title{font-size:32px;line-height:40px;font-weight:600;letter-spacing:0;color:var(--md-sys-color-on-surface);margin:0}
|
|
14957
14957
|
.m3-header__support{font-size:14px;line-height:20px;font-weight:400;letter-spacing:.25px;color:var(--md-sys-color-on-surface-variant);margin:0}
|
|
14958
14958
|
|
|
14959
|
-
/*
|
|
14959
|
+
/*
|
|
14960
|
+
* 页脚署名。层次靠字号与字重拉开,不靠压低对比度 ——
|
|
14961
|
+
* outline 是描边色(WCAG 只要求 3:1),拿来写字会掉到 AA 线下。
|
|
14962
|
+
*/
|
|
14960
14963
|
.m3-footnote{
|
|
14961
14964
|
padding-top:16px;text-align:center;
|
|
14962
14965
|
font-size:12px;line-height:16px;letter-spacing:.4px;
|
|
14963
|
-
color:var(--md-sys-color-
|
|
14966
|
+
color:var(--md-sys-color-on-surface-variant);
|
|
14964
14967
|
}
|
|
14965
14968
|
`;
|
|
14966
14969
|
}
|
|
@@ -15570,7 +15573,7 @@ th.list .col{max-width:168px}
|
|
|
15570
15573
|
.thumb img{max-width:38px;max-height:38px;display:block}
|
|
15571
15574
|
.thumb img.sharp{image-rendering:pixelated}
|
|
15572
15575
|
.thumb img.broken{display:none}
|
|
15573
|
-
.thumb .fb{display:none;color:var(--md-sys-color-
|
|
15576
|
+
.thumb .fb{display:none;color:var(--md-sys-color-on-surface-variant)}
|
|
15574
15577
|
.thumb.failed .fb{display:block}
|
|
15575
15578
|
.name .txt{min-width:0}
|
|
15576
15579
|
.name .cn{font-size:15px;font-weight:600;line-height:1.25}
|
|
@@ -15578,7 +15581,7 @@ th.list .col{max-width:168px}
|
|
|
15578
15581
|
white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
|
|
15579
15582
|
.name.correct .cn,.name.correct .en,.name.correct .no{color:#fff}
|
|
15580
15583
|
.name.correct .en,.name.correct .no{opacity:.78}
|
|
15581
|
-
.name .no{font-size:10px;color:var(--md-sys-color-
|
|
15584
|
+
.name .no{font-size:10px;color:var(--md-sys-color-on-surface-variant);margin-top:3px}
|
|
15582
15585
|
|
|
15583
15586
|
/* 最新一行的强调:外圈描边 + 行首的圆头标记 */
|
|
15584
15587
|
tr.fresh .tile,tr.fresh .name{box-shadow:0 0 0 2px var(--accent)}
|
|
@@ -15609,7 +15612,7 @@ tr.fresh .name::before{content:"";position:absolute;left:0;top:14px;bottom:14px;
|
|
|
15609
15612
|
font-size:11.5px;color:#fff;background:var(--tile);
|
|
15610
15613
|
}
|
|
15611
15614
|
.lg.s-none{color:var(--md-sys-color-on-surface-variant)}
|
|
15612
|
-
.tip{margin-left:auto;font-size:11.5px;color:var(--md-sys-color-
|
|
15615
|
+
.tip{margin-left:auto;font-size:11.5px;color:var(--md-sys-color-on-surface-variant);letter-spacing:.02em}
|
|
15613
15616
|
|
|
15614
15617
|
/* ── 通用区块 ─────────────────────────────────────── */
|
|
15615
15618
|
.sec{margin-top:22px}
|
|
@@ -15665,7 +15668,7 @@ tr.fresh .name::before{content:"";position:absolute;left:0;top:14px;bottom:14px;
|
|
|
15665
15668
|
.reveal .big-thumb img{max-width:112px;max-height:112px;display:block}
|
|
15666
15669
|
.reveal .big-thumb img.sharp{image-rendering:pixelated}
|
|
15667
15670
|
.reveal .big-thumb img.broken{display:none}
|
|
15668
|
-
.reveal .big-thumb .fb{display:none;color:var(--md-sys-color-
|
|
15671
|
+
.reveal .big-thumb .fb{display:none;color:var(--md-sys-color-on-surface-variant)}
|
|
15669
15672
|
.reveal .big-thumb.failed .fb{display:block}
|
|
15670
15673
|
.reveal .cn{font-size:36px;font-weight:600;line-height:1.1}
|
|
15671
15674
|
.reveal .en{font-size:13px;letter-spacing:.1em;color:var(--md-sys-color-on-surface-variant);margin-top:10px}
|
|
@@ -15707,11 +15710,11 @@ tr.fresh .name::before{content:"";position:absolute;left:0;top:14px;bottom:14px;
|
|
|
15707
15710
|
.rk .sp{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--md-sys-color-on-surface-variant)}
|
|
15708
15711
|
.rk .tot{flex:none;text-align:right}
|
|
15709
15712
|
.rk .tot .n{font-size:22px;font-weight:600;color:var(--accent);line-height:1;font-variant-numeric:tabular-nums}
|
|
15710
|
-
.rk .tot .c{font-size:10px;color:var(--md-sys-color-
|
|
15713
|
+
.rk .tot .c{font-size:10px;color:var(--md-sys-color-on-surface-variant);margin-top:5px;letter-spacing:.06em}
|
|
15711
15714
|
|
|
15712
15715
|
.empty{padding:36px 20px;min-width:400px;text-align:center;
|
|
15713
15716
|
color:var(--md-sys-color-on-surface-variant);font-size:13.5px;line-height:2}
|
|
15714
|
-
.empty .px{margin:0 auto 14px;color:var(--md-sys-color-
|
|
15717
|
+
.empty .px{margin:0 auto 14px;color:var(--md-sys-color-on-surface-variant)}
|
|
15715
15718
|
`;
|
|
15716
15719
|
function shell(body, opts) {
|
|
15717
15720
|
const width = opts.width ? `width:${opts.width}px;` : "";
|
|
@@ -15947,7 +15950,7 @@ function rankCard(entries, shown) {
|
|
|
15947
15950
|
const pos = i + 1;
|
|
15948
15951
|
const split = ["mob", "item", "block"].map((m) => {
|
|
15949
15952
|
const n = m === "mob" ? e.mob : m === "item" ? e.item : e.block;
|
|
15950
|
-
return `<span class="sp" style="color:${n ? MODES[m].accent : SCHEME.
|
|
15953
|
+
return `<span class="sp" style="color:${n ? MODES[m].accent : SCHEME.onSurfaceVariant}">${px(MODES[m].icon, 10)}<span>${n}</span></span>`;
|
|
15951
15954
|
}).join("");
|
|
15952
15955
|
const w = Math.round(e.total / max * 100);
|
|
15953
15956
|
return `<div class="rk p${pos <= 3 ? pos : "n"}">
|