MediaWiki:Common.css

Revision as of 19:32, 15 January 2020 by LovelyA72 (talk | contribs) (Created page with "→‎这里放置的CSS将应用于所有皮肤: h1 { font-weight: 700; border-bottom: 2px solid #0074f9; } h2 { font-weight: 700; border-bottom: 1px solid #00...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After saving, 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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* 这里放置的CSS将应用于所有皮肤 */
h1 {
    font-weight: 700;
    border-bottom: 2px solid #0074f9;
}
h2 {
    font-weight: 700;
    border-bottom: 1px solid #0074f9;
}
.mw-wiki-logo{
	background-size:220%;
}
/* 被点过的外部链接不变色 */
div#content a.external:visited {
    color: #36b;
}
/* 隐藏首页空行,讨论、查看源代码tab */
.page-Mainpage #siteSub,
.page-Mainpage #contentSub,
.page-Mainpage li#ca-viewsource,
.page-Mainpage li#ca-talk {
    display: none;
}

/* 黑幕模板配合CSS */

/* 把这几行单独拎出来写,否则会被Firefox合并到“.heimu a”这条规则,然后又被上面的“点过外链不变色”规则override */

span.heimu a.external,

span.heimu a.external:visited,

span.heimu a.extiw,

span.heimu a.extiw:visited {

    color: #252525;

}

.heimu,

.heimu a,

a .heimu,

.heimu a.new {

    background-color: #252525;

    color: #252525;

    text-shadow: none;

}

body:not(.heimu_toggle_on) .heimu:hover,

body:not(.heimu_toggle_on) .heimu:active,

body:not(.heimu_toggle_on) .heimu.off {

    transition: color .13s linear;

    color: white;

}

body:not(.heimu_toggle_on) .heimu:hover a,

body:not(.heimu_toggle_on) a:hover .heimu,

body:not(.heimu_toggle_on) .heimu.off a,

body:not(.heimu_toggle_on) a:hover .heimu.off {

    transition: color .13s linear;

    color: lightblue;

}

body:not(.heimu_toggle_on) .heimu.off .new,

body:not(.heimu_toggle_on) .heimu.off .new:hover,

body:not(.heimu_toggle_on) .new:hover .heimu.off,

body:not(.heimu_toggle_on) .heimu.off .new,

body:not(.heimu_toggle_on) .heimu.off .new:hover,

body:not(.heimu_toggle_on) .new:hover .heimu.off {

    transition: color .13s linear;

    color: #BA0000;

}