fix(widgets): keep widget-content an unstyled structural layer

Reference contract: widget cards carry their own 15px padding and
.widget-content is bare. The added 20px padding inset every widget
card from the content max width on the fixed homepage (the only
bundle loading sidebar.css).

- drop the root padding rule and the unreferenced --flush modifier
- drop the now-redundant user-widget padding:0 workaround
- drop the dead --card-padding-lg token
- lock the contract with negative assertions in the display test
This commit is contained in:
kate522 committed 2026-09-05 13:26:52 +08:00
1 parent 5b7b904bde
commit d7950730dd
8 files changed
+10 -20

No files matched your search

+2 -7
View File
@@ -36,13 +36,8 @@
font-size: 14px;
}
.widget-content {
padding: var(--card-padding-lg, 20px);
}
.widget-content--flush {
padding: 0;
}
/* .widget-content 是无样式结构层(对齐参考主题):小工具卡片自带内边距,
* 在这里加 padding 会让所有小工具与内容列宽产生左右空隙。 */
/* Widget 链接 */
.widget a {