MediaWiki:Common.css
来自康健生活
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 这里放置的CSS将应用于所有皮肤 */
html body {
font-family: Times New Roman,Trebuchet MS,Sans Serif,Arial;
}
body, #mw-page-base, .vectorTabs li, .vectorTabs, .vectorTabs span, #mw-head .vectorMenu h3, #mw-panel .portal .body {
background: transparent !important;
}
#ca-talk, #ca-nstab-mediawiki, #ca-nstab-main, #p-coll-print_export {
display: none;
}
.mw-body {
border: 1px solid transparent !important;
}
#content h1 {
border-bottom: 2px double #a2a9b1 !important;
}
#content h2 {
border-bottom: 1px dashed #a2a9b1 !important;
}
h3, h4, h5, h6, .portal h3, #p-cactions-label, #content .mw-body-content .toc h2 {
border-bottom: 1px solid transparent !important;
}
/* 这里放置的CSS将应用于所有皮肤 */
div.wiki-template-box.wiki-template-box-tip {
background-color: #dfd;
border-color: #bdb;
}
div.wiki-template-box {
padding: 5px;
border: thin solid black;
margin: 0.5em 0;
overflow: hidden;
}
#content pre, #content code, #content tt {
background-color: #ebf1f5;
font-family: monospace;
}
#content pre {
border: 1px solid #bbccdd;
overflow: auto;
word-break: break-all;
white-space: pre-wrap !important;
}
#content table, #content h1, #content h2, #content h3, #content h4, #content h5, #content pre, #content code, #content tt {
color: #222222;
}
/* 模板文档皮肤 */
.template-documentation {
background: aliceblue;
padding: 1em;
border: 1px solid #aaa;
}
.template-documentation-header {
padding-bottom:3px;
border-bottom: 1px solid #aaa;
margin-bottom:1ex;
}
.template-documentation-header span {
font-weight: bold;
font-size: 125%;
}
.template-documentation-header span.plainlinks {
font-size:small;
}
#template_doc_page_transcluded {
font-size:84%;
}
.pageBoxGreen {
background: #E9FBE9;
padding: .5em;
margin: .5em 0;
page-break-inside: avoid;
border-left: .5em solid #52E052;
}
.wikiLeftRightBoxMain {
height: auto;
display: flex;
margin: auto;
}
.wikiLeftRightBoxMainLeft>pre, .wikiLeftRightBoxMainLeft>.mw-highlight {
margin: 1em 0.5em 1em 0 !important;
}
.wikiLeftRightBoxMainRight>pre, .wikiLeftRightBoxMainRight>.mw-highlight, .wikiLeftRightBoxMainRight>code {
margin: 1em 0 1em 0.5em !important;
}
.wikiLeftRightBoxMainRight>code {
display: inline-block;
}
.wikiLeftRightBoxMain .mw-highlight pre{
background: #fff !important;
}
.wikiLeftRightBoxMain>div:first-child .mw-highlight {
display: grid;
width: 100%;
height: 100%;
margin: 0;
background: rgba(0,0,0,0);
}
.wikiLeftRightBoxMain .left, .wikiLeftRightBoxMain .right {
flex: 0;
}
.wikiLeftRightBoxMain>div {
/* margin: .5em; */
flex: 1;
}
div.wiki-shc-background pre{
background: #222222 !important;
color: #f6f6f6 !important;
margin: 0 !important;
border: 1px solid #fff !important;
border-left: none !important;
}
div.wiki-hc-background{
margin-bottom: 15px;
}
div.wiki-hc-background>div {
border-top: 1px dashed #bbccdd !important;
padding: 0 !important;
}
div.wiki-hc-background>div pre {
margin: 0 !important;
border-top: none !important;
}
div.wiki-hcdiff-main div.right pre {
border-left: none !important;
}
div.wiki-codepen div.wikiLeftRightBoxMain {
width: 100%;
}
div.wiki-codepen div.wikiLeftRightBoxMain .tabs-tabbox{
margin: 0;
}
div.wiki-codepen div.wikiLeftRightBoxMain .tabs-tabbox .tabs-container {
margin: 0;
padding: 0;
height: 300px;
border-radius: 0;
}
div.wiki-codetab .tabs-tabbox .tabs-container pre, div.wiki-codepen div.wikiLeftRightBoxMain .tabs-tabbox .tabs-container pre{
box-sizing: border-box;
}
div.wiki-codetab .tabs-tabbox .tabs-container {
margin: 0;
padding: 0;
height: 300px;
border-radius: 0;
}
div.wiki-codepen .tabs-content {
width: 100%;
height: 100%;
}
div.wiki-codepen .tabs-content .mw-highlight {
display: table;
height: 100%;
width: 100%;
}
div.wiki-codepen .tabs-content .mw-highlight pre{
border: none !important;
height: 100%;
}
div.wiki-codepen .tabs-content, div.wiki-codepen .tabs-content .mw-highlight, div.wiki-codepen .tabs-content .mw-highlight pre {
margin: 0;
}
div.wiki-codepen .wiki-codepen-iframe{
margin: 0;
}
div.wiki-codepen .wiki-codepen-iframe iframe{
width: 100%;
height: 300px;
margin-top: 25px;
border: 1px solid #AAA;
padding: 0;
overflow: auto;
display: block;
}
table.wikitable div.mw-highlight pre, table.wikitable div.shc-content pre{
margin: 0;
}
div.wiki-test-content{
display: block;
position: absolute;
top: 10px;
right: 10px;
background: red;
border: 1px solid black;
width: 50px;
height: 50px;
color: white;
text-align: center;
border-radius: 10px;
}
.wikiLeftRightBoxMain .wiki-hc-background>div, .wikiLeftRightBoxMain .wiki-hc-background>div>div.mw-highlight {
margin: 0 !important;
}
div#Consoleoutstyle {
margin:0;
padding:0;
display: grid;
width: 100%;
height: 100%;
}
div#Consoleoutstyle * {
background-color: #000;
color: #fff;
}
blockquote>div.mw-highlight>pre, blockquote>pre {
background: #d0ee87 !important;
}
blockquote>div.mw-highlight>pre span.nt{
color: #247ff0 !important;
}
blockquote>div.mw-highlight>pre span.p{
color: red !important;
}
div.shc_out-content {
margin-bottom: 15px;
}
div.shc_out-content div.wiki-shc-out-background>div.mw-highlight>pre, div.shc_out-content div.wiki-shc-out-background>pre {
border: 1px solid transparent !important;
color: black !important;
margin: 0 1px !important;
border-top: none !important;
background: #f3f1f1 !important;
}
div.shc_out-content div.shc_out-content_header div.wiki-shc-background>div.mw-highlight>pre, div.shc_out-content div.shc_out-content_header>div>pre {
margin-bottom: 0 !important;
border-bottom: none !important;
}
/**
* Styling for links generated by [[MediaWiki:Edittools]]
* @source https://www.mediawiki.org/wiki/Extension:CharInsert#Styling
* @updated 2020-03-17
*/
.mw-charinsert-buttons {
border: 1px solid #aaa;
margin-top: 10px;
padding: 1px;
font-size: 1.1em;
text-align: center;
}
.mw-charinsert-buttons a {
background-color: #cde !important;
color: #000;
border: thin #069 outset;
padding: 0 1px 1px;
font-weight: bold;
font-size: .9em;
text-decoration: none;
}
.mw-charinsert-buttons a:hover,
.mw-charinsert-buttons a:active {
background-color: #bcd;
border-style: inset;
}
.client-js .mw-edittools-section {
display: inline;
}
.client-js .mw-edittools-section input[type="button"] {
font-size: .9em;
margin-left: 1px;
padding-left: 1px;
padding-right: 1px;
}
.wiki-shc-background .mw-highlight pre .nv {
color: #efe3ab;
}
.mw-mmv-pre-image .mw-mmv-download-button, .mw-mmv-pre-image .mw-mmv-reuse-button {
display: none;
}
.mw-highlight {
background: transparent !important;
}
.mw-highlight pre, div#Consoleoutstyle pre{
margin: .5em;
}
.wiki-timepoint {
background: #000000;
color: white;
padding: 0px 2px;
}
/* shc https://kangkk.cn/index.php/%E6%A8%A1%E6%9D%BF:Shc */
.shc-content {
display: flex !important;
}
.shc-pre {
border: 1px solid #fff !important;
font-weight:bold !important;
user-select: none !important;
word-break: normal;
white-space: nowrap !important;
background: #54595d !important;
color: white !important;
margin: 0 !important;
border-right: none !important;
height: 100% !important;
box-sizing: border-box !important;
}
No categories