Site Notice

hello, world

Difference between revisions of "MediaWiki:Css-prettify.css"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
m
Line 1: Line 1:
 
.prettyprint .pln {
 
.prettyprint .pln {
   color: #1b1ea4 !important;
+
   color: #1b1ea4;
 
}
 
}
 
.prettyprint .str {
 
.prettyprint .str {
Line 6: Line 6:
 
}
 
}
 
.prettyprint .kwd {
 
.prettyprint .kwd {
   color: #9b1001 !important;
+
   color: #9b1001;
 
}
 
}
 
.prettyprint .com {
 
.prettyprint .com {
   color: #9a9a9a !important;
+
   color: #9a9a9a;
 
}
 
}
 
.prettyprint .typ {
 
.prettyprint .typ {
Line 39: Line 39:
 
/** 自定义样式 **/
 
/** 自定义样式 **/
 
pre.prettyprint {
 
pre.prettyprint {
   padding: 0px !important;
+
   padding: 0px;
   background: #f8f9fa !important;
+
   background: #f8f9fa;
 
}
 
}
 
.prettyprint ol.linenums {
 
.prettyprint ol.linenums {
Line 47: Line 47:
 
}
 
}
 
.prettyprint ol.linenums li {
 
.prettyprint ol.linenums li {
   list-style-type: unset !important;
+
   list-style-type: unset;
   background: #f8f9fa !important;
+
   background: #f8f9fa;
 
}
 
}
 
.prettyprint ol.linenums li:nth-of-type(2n-1) {
 
.prettyprint ol.linenums li:nth-of-type(2n-1) {
   background: #e8e8e8 !important;
+
   background: #e8e8e8;
 
}
 
}
 
.prettyprint ol.linenums {
 
.prettyprint ol.linenums {
   margin: 0 !important;
+
   margin: 0;
 
   list-style: none;
 
   list-style: none;
 
   counter-reset: sectioncounter;
 
   counter-reset: sectioncounter;

Revision as of 19:50, 9 November 2019

.prettyprint .pln {
  color: #1b1ea4;
}
.prettyprint .str {
  color: #080;
}
.prettyprint .kwd {
  color: #9b1001;
}
.prettyprint .com {
  color: #9a9a9a;
}
.prettyprint .typ {
  color: #606
}
.prettyprint .lit {
  color: #066
}
.prettyprint .pun,.opn,.clo {
  color: #660
}
.prettyprint .tag {
  color: #008
}
.prettyprint .atn {
  color: #606
}
.prettyprint .atv {
  color: #080
}
.prettyprint .dec,
.prettyprint .var {
  color: #606
}
.prettyprint .fun {
  color: red
}

/** 自定义样式 **/
pre.prettyprint {
  padding: 0px;
  background: #f8f9fa;
}
.prettyprint ol.linenums {
  margin-top: 0;
  margin-bottom: 0;
}
.prettyprint ol.linenums li {
  list-style-type: unset;
  background: #f8f9fa;
}
.prettyprint ol.linenums li:nth-of-type(2n-1) {
  background: #e8e8e8;
}
.prettyprint ol.linenums {
  margin: 0;
  list-style: none;
  counter-reset: sectioncounter;
}
.prettyprint ol.linenums > li:before {
  display: inline-block;
  content: counter(sectioncounter);
  counter-increment: sectioncounter;
  text-align: center;
  width: 3em;
  font-size: 1em;
  color: #666;
  background: #e8e8e8;
  border: 1px solid #f8f8f8;
  margin-right: 4px;
}