User:Xp00000000/common.css
From Rizline中文维基
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 数学公式无框表格的修复 */
table:has(math) {
display: block;
border: 0;
max-width: 100%;
overflow-x: auto;
}
/* 曲目导航无框表格的修复 */
.navbox:not(:has(.mw-collapsed)) {
display: inline-block;
max-width: 100%;
overflow-x: auto;
white-space: nowrap;
}
.navbox-inner:not(.mw-collapsed) {
display: inline-block;
white-space: nowrap;
}
.navbox-subgroup:not(.mw-collapsed) {
display: inline-table;
white-space: normal;
}
/* 移动端特定表格样式 */
@media (max-width: 768px) {
table.mobile-200-width {
width: 200% ;
transform-origin: left top;
margin-bottom: 2em;
}
.mw-body table.mobile-200-width {
overflow-x: auto;
}
}
/* 文字背景下移 */
.half-bg {
background: linear-gradient(
to top,
#ffd966 60%,
transparent 60%
);
border-radius: 999px;
padding: 2px 6px;
display: inline;
}
/* 我喜欢你 */
.songinfo-details .songinfo-details-badge {
display: inline-flex;
max-width: 100%;
gap: 0.2em;
vertical-align: middle;
justify-content: center;
align-items: center;
}
.songinfo-details .songinfo-details-badge span[style*="border-radius:1em"] {
display: inline-flex !important;
max-width: 100%;
box-sizing: border-box;
margin: 0.1em 0 !important;
padding: 0.32em 0.8em !important;
font-size: 90%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.4;
justify-content: center;
align-items: center;
}