3 Commits
5 changed files with 48 additions and 18 deletions
+1 -1
View File
@@ -1 +1 @@
2.0.3
2.1.0
+3 -3
View File
@@ -177,7 +177,7 @@ export default function Forum() {
<div style={{ marginBottom: 16 }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 4 }}>
<h3 style={{ fontWeight: 600, fontSize: 20, margin: 0 }}>{currentCat.name}</h3>
<span className="chip" style={{ cursor: 'default', fontSize: 12, padding: '1px 8px', color: 'var(--md-ref-on-surface-variant)', border: '1px solid var(--md-ref-outline-variant)' }}>板块</span>
<span className="chip chip-static">板块</span>
</div>
<p className="text-muted" style={{ fontSize: 14 }}>{currentCat.description || ''}</p>
{currentCat.announcement && (
@@ -214,9 +214,9 @@ export default function Forum() {
<span>{p.created_at}</span>
<span>{p.reply_count || 0} 回复</span>
<span style={{ color: 'var(--md-ref-outline)', margin: '0 4px' }}>|</span>
<span className="chip" style={{ cursor: 'default', fontSize: 11, padding: '1px 8px', background: 'transparent', border: '1px solid var(--md-ref-outline-variant)', color: 'var(--md-ref-on-surface-variant)' }}>{catName}</span>
<span className="chip chip-static">{catName}</span>
{p.sub_category ? (
<span className="chip" style={{ cursor: 'default', fontSize: 11, padding: '1px 8px', background: 'var(--md-ref-secondary-container)', color: 'var(--md-ref-on-secondary-container)' }}>{p.sub_category}</span>
<span className="chip chip-tonal">{p.sub_category}</span>
) : null}
</div>
</Link>
+7 -7
View File
@@ -1,12 +1,12 @@
{
"name": "rainweb-links",
"version": "2.0.3",
"version": "2.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "rainweb-links",
"version": "2.0.3",
"version": "2.1.0",
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
@@ -506,7 +506,7 @@
}
},
"node_modules/@emotion/utils": {
"version": "2.0.3",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.4.2.tgz",
"integrity": "sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA==",
"license": "MIT"
@@ -1320,7 +1320,7 @@
}
},
"node_modules/concat-stream": {
"version": "2.0.3",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz",
"integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==",
"engines": [
@@ -1480,7 +1480,7 @@
"license": "MIT"
},
"node_modules/depd": {
"version": "2.0.3",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
"license": "MIT",
@@ -1557,7 +1557,7 @@
"license": "MIT"
},
"node_modules/encodeurl": {
"version": "2.0.3",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
"license": "MIT",
@@ -2557,7 +2557,7 @@
}
},
"node_modules/ms": {
"version": "2.0.3",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
"license": "MIT"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "rainweb-links",
"version": "2.0.3",
"version": "2.1.0",
"description": "链接聚合管理平台",
"main": "server.js",
"scripts": {
+36 -6
View File
@@ -556,14 +556,41 @@ table tr:hover td {
}
.chip:hover {
background: var(--md-ref-surface-variant);
border-color: var(--md-ref-outline);
transform: translateY(-1px);
}
/* 选中态优先级:hover 不覆盖 active(保持 primary-container 底) */
.chip.active:hover {
background: var(--md-ref-primary-container);
border-color: transparent;
}
.chip:active {
transform: translateY(0);
}
/* 装饰性静态徽标(替代内联样式):不可点、紧凑尺寸;
static=描边中性,tonal=次级色容器(均无交互态) */
.chip.chip-static {
background: transparent;
border: 1px solid var(--md-ref-outline-variant);
color: var(--md-ref-on-surface-variant);
cursor: default;
font-size: 12px;
padding: 1px 8px;
}
.chip.chip-tonal {
background: var(--md-ref-secondary-container);
color: var(--md-ref-on-secondary-container);
border-color: transparent;
cursor: default;
font-size: 12px;
padding: 1px 8px;
}
@keyframes chipPop {
from { transform: scale(0.92); }
50% { transform: scale(1.06); }
@@ -1006,13 +1033,15 @@ table tr:hover td {
gap: 8px;
/* div/span → button 后补偿:保持块级填充、左对齐与自然高度 */
font-family: inherit;
min-height: 40px;
height: auto;
justify-content: flex-start;
text-align: left;
/* B2 div→button 后补偿:清除 UA 默认浅色按钮底/描边——否则深色模式下
非选中态按钮仍是白色 buttonface(点击切换分类时尤明显),背景随主题变体 */
background: transparent;
border: none;
text-align: inherit;
/* B2 div→button 后补偿:清除 UA 默认浅色按钮底/描边;同时基础态保留
主题化底色(surface-container)而非透明——否则深色模式下非选中按钮
与页面暗底融为一体,点击切换分类后"背景消失"(沿用 .chip 的既有模式) */
background: var(--md-ref-surface-container);
border: 1px solid transparent;
}
.forum-cat-item:hover { background: var(--md-ref-surface-variant); }
@@ -1499,6 +1528,7 @@ table tr:hover td {
/* ===== Markdown toggle ===== */
.toggle-group { display: flex; gap: 8px; margin-bottom: 16px; }
.toggle-btn { padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid var(--md-ref-outline-variant); background: transparent; color: var(--md-ref-on-surface-variant); }
.toggle-btn:hover { background: var(--md-ref-surface-variant); }
.toggle-btn.active { background: var(--md-ref-primary-container); color: var(--md-ref-on-primary-container); border-color: transparent; }
/* ===== Captcha ===== */
@@ -2257,7 +2287,7 @@ body.has-wallpaper .article-toc-side {
}
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.article-tag-chip { text-decoration: none; transition: all 0.2s; }
.article-tag-chip:hover { border-color: var(--md-ref-primary); background: var(--md-ref-primary-container); }
.article-tag-chip:hover { border-color: var(--md-ref-primary); background: var(--md-ref-surface-variant); }
.article-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.like-btn {
height: 34px;