MediaWiki:Common.css

From ChinaEnglish
Revision as of 15:42, 23 November 2026 by Chinaenglish (talk | contribs)
Jump to navigation Jump to search

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.
/* CSS placed here will be applied to all skins */


/* viesz,仅隐藏分类页面 "Pages in category" 的 h2 标题,保留提示段落和列表 */
#mw-pages > h2 {
    display: none !important;
}


/*viesz1980开始端,这个要配合首页的viesz1980那段代码使用*/
/* ============================================================
   首页两栏自适应布局
   桌面端:左右两列并列
   移动端(屏幕宽度 ≤ 768px):变为上下单列
   ============================================================ */

/* 桌面端:两列网格 */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 移动端:屏幕宽度小于等于 768px 时,改为单列 */
@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
/*viesz1980结束端*/



/* viesz,只改普通未访问内链,新链接、外链、已访问保持原样 */
.mw-body-content a:link:not(.new):not(.extiw):not(.mw-selflink):not(.selflink) {
    color: #6B8E9B !important;
}