MediaWiki:Common.css
MediaWiki界面页面
更多操作
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 这里放置的CSS将应用于所有皮肤 */ @font-face { font-family: 'ShangguSerif'; src: url('/images/fonts/ShangguSerif-ExtraLight.ttf') format('truetype'); font-weight: normal; font-style: normal; } .shanggu-serif { font-family: 'ShangguSerif', serif !important; } @media (max-width: 768px) { /* 让表格和父容器不限制高度、不出现滚动 */ .wikitable, .wikitable * { max-height: none !important; overflow: visible !important; } } /* 桌面端样式 */ .table-container { display: flex; flex-wrap: nowrap; } .table-box { flex: 1 1 auto; } .desktop-text { width: 35%; float: left; padding-left: 10px; } .mobile-text { display: none; clear: both; margin-top: 10px; } /* 手机端样式 */ @media (max-width: 768px) { .table-container { display: block; } .desktop-text { display: none; } .mobile-text { display: block; } .wikitable { width: 100% !important; float: none !important; overflow: visible !important; max-height: none !important; } } .region-group { margin-bottom: 1.5em; padding: 10px; border: 1px solid #282828; border-radius: 6px; background-color: #1a1a1a; } .region-group h3 { font-size: 1.3em; margin-top: 0; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1px solid #3a3a3a; } .dialect-list { display: grid; grid-template-columns: 1fr; gap: 10px; list-style: none; padding: 0; margin: 0; } @media (min-width: 600px) { .dialect-list { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 900px) { .dialect-list { grid-template-columns: repeat(3, 1fr); } } .dialect-list li { background-color: #2a2a2a; padding: 8px 12px; border-radius: 4px; display: flex; align-items: center; } .dialect-list li .place { color: #e0e0e0; font-weight: normal; } .dialect-list li .pronunciation { color: #ffd700; font-family: 'Consolas', 'Monaco', monospace; margin-left: 20px; white-space: nowrap; } a { color: #82b1ff; text-decoration: none; } a:hover { text-decoration: underline; } .toggle-pronunciation-btn { display: inline-block; padding: 6px 12px; background-color: #444; color: #fff; border-radius: 5px; cursor: pointer; font-size: 90%; user-select: none; } .toggle-pronunciation-btn:hover { background-color: #666; } .regional-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5em; } .toggle-pronunciation-btn { cursor: pointer; color: #409eff; user-select: none; } .entry-section { border: 1px solid #333; border-radius: 8px; padding: 12px; margin-bottom: 1.5em; background-color: #1e1e1e; box-shadow: 2px 2px 6px rgba(0,0,0,0.5); }