MediaWiki:Common.css

来自康健生活
Kangkk​(留言 | 贡献)2022年12月15日 (四) 16:27的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • 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;
}
#mw-content-text>.mw-parser-output>.mw-highlight>pre {
	margin: 0.5em 0;
}
/* 模板文档皮肤 */
.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>#Consoleoutstyle, .wikiLeftRightBoxMainRight>.mw-highlight, .wikiLeftRightBoxMainRight>code {
	margin: 1em 0 1em 0.5em !important;
}
.wikiLeftRightBoxMainRight>#Consoleoutstyle>pre {
	margin: 0;
}
.wikiLeftRightBoxMainLeft>.mw-highlight pre, .wikiLeftRightBoxMainRight>.mw-highlight pre {
	margin: 0 !important;
}
.wikiLeftRightBoxMainRight>code {
	display: inline-block;
}
.wikiLeftRightBoxMain .mw-highlight pre{
	background: #fff !important;
}
.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 * {
	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;
}
.wiki-shc-background .mw-highlight pre .hll {
	color: black !important;
}
.wiki-shc-background .mw-highlight pre .k {
	color: #00ff87 !important;
}
.wiki-shc-background .mw-highlight pre .o {
	color: #ff00bf !important;
}
.wiki-shc-background .mw-highlight pre .ss {
	color: #00fffc !important;
}
.wiki-shc-background .mw-highlight pre .nf {
	color: #ffba00 !important;
}
.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 {
	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;
}
/* 正则效果图样式 */
.nfa {
  background-color: #ffffff;
  border: 1px solid #707070;
  margin-bottom: 25px;
  width: 100%;
  text-align: center;
}
.nfatext {
  background-color: #ffffff;
  border: 1px solid #707070;
  margin-bottom: 25px;
  width: 100%;
  padding: 5px;
}
.nfabase {
  background-color: #ffffff;
  border: 1px solid #707070;
  margin-bottom: 25px;
}
.nfa-start {
  fill: black;
  stroke: black;
  stroke-width: 2;
}
.nfa-end {
  fill: white;
  stroke: black;
  stroke-width: 2;
}
.nfa-path {
  stroke: #aaaaaa;
  fill: none;
  stroke-width: 2;
}
.nfa-atomic-path {
  stroke: #aaaaaa;
  fill: none;
  stroke-dasharray: 3 3;
  stroke-width: 2;
}
.nfa-ref {
  fill: white;
  stroke: #555555;
  stroke-width: 1px;
  image-rendering: crisp-edges;
}
.nfa-ref-text {
  height: 16px;
  line-height: 16px;
  font-size: 12px;
  letter-spacing: 2px;
  font-family: "courier new";
  fill: #000000;
}
.nfa-backref-detail-holder {
  fill: #000000;
  overflow: hidden;
}
.nfa-label {
  font-size: 10px;
  text-anchor: middle;
}
.nfa-backref-title {
  font-size: 10px;
  text-anchor: middle;
}
.nfa-backref-back {
  fill: #FFFFDD;
}
.nfa-flags {
  fill: transparent;
  stroke: #AAE;
  stroke-width: 1px;
  stroke-dasharray: 15 5;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
}
.nfa-match {
  fill: #a52a2a;
  opacity: 0.08;
}
.nfa-lookahead {
  fill: transparent;
  stroke: #AAA;
  stroke-width: 1px;
  stroke-dasharray: 5 5;
}
.nfa-define {
  fill: #f8f8f8;
  opaicty: 0.08;
}
.nfa-literal {
  fill: #EEDDBB;
}
.nfa-literal-text {
  height: 16px;
  line-height: 16px;
  font-size: 12px;
  letter-spacing: 2px;
  font-family: "courier new";
  fill: #000000;
}
.nfa-escaped {
  font-weight: 900;
  fill: #236f9e;
}
.nfa-charset {
  fill: #DDCCBB;
}
.nfa-charset-text {
  height: 16px;
  line-height: 16px;
  font-size: 12px;
  letter-spacing: 5px;
  font-family: "courier new";
  fill: #000000;
}
.nfa-charset-text tspan {
  white-space: pre;
  letter-spacing: 0px;
}
.nfa-unfocused,
.nfa-charset-separator,
.nfa-charset-range {
  fill: #999999;
}
.nfa-charset-separator {
  font-size: 12px;
}
.nfa-marker {
  fill: #FF0000;
}
.test {
	color: #000000;
}