Site Notice

hello, world

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

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
Line 1: Line 1:
.pln {
+
.prettyprint .pln {
 
   color: #1b1ea4 !important;
 
   color: #1b1ea4 !important;
 
}
 
}
  .str {
+
.prettyprint .str {
    color: #080;
+
  color: #080;
  }
+
}
  .kwd {
+
.prettyprint .kwd {
    color: #9b1001 !important;
+
  color: #9b1001 !important;
  }
+
}
  .com {
+
.prettyprint .com {
    color: #9a9a9a !important;
+
  color: #9a9a9a !important;
  }
+
}
  .typ {
+
.prettyprint .typ {
    color: #606
+
  color: #606
  }
+
}
  .lit {
+
.prettyprint .lit {
    color: #066
+
  color: #066
  }
+
}
  .pun,.opn,.clo {
+
.prettyprint .pun,.opn,.clo {
    color: #660
+
  color: #660
  }
+
}
  .tag {
+
.prettyprint .tag {
    color: #008
+
  color: #008
  }
+
}
  .atn {
+
.prettyprint .atn {
    color: #606
+
  color: #606
  }
+
}
  .atv {
+
.prettyprint .atv {
    color: #080
+
  color: #080
  }
+
}
  .dec,.var {
+
.prettyprint .dec,
    color: #606
+
.prettyprint .var {
  }
+
  color: #606
  .fun {
+
}
    color: red
+
.prettyprint .fun {
  }
+
  color: red
 +
}
  
 
/** 自定义样式 **/
 
/** 自定义样式 **/
Line 41: Line 42:
 
   background: #f8f9fa !important;
 
   background: #f8f9fa !important;
 
}
 
}
ol.linenums {
+
.prettyprint ol.linenums {
 
   margin-top: 0;
 
   margin-top: 0;
 
   margin-bottom: 0
 
   margin-bottom: 0
 
}
 
}
ol.linenums li {
+
.prettyprint ol.linenums li {
 
   list-style-type: unset !important;
 
   list-style-type: unset !important;
 
   background: #f8f9fa !important;
 
   background: #f8f9fa !important;
 
}
 
}
ol.linenums li:nth-of-type(2n-1) {
+
.prettyprint ol.linenums li:nth-of-type(2n-1) {
 
   background: #e8e8e8 !important;
 
   background: #e8e8e8 !important;
 
}
 
}
ol.linenums {
+
.prettyprint ol.linenums {
 
   margin: 0 !important;
 
   margin: 0 !important;
 
   list-style: none;
 
   list-style: none;
 
   counter-reset: sectioncounter;
 
   counter-reset: sectioncounter;
 
}
 
}
ol.linenums > li:before {
+
.prettyprint ol.linenums > li:before {
 
   display: inline-block;
 
   display: inline-block;
 
   content: counter(sectioncounter);
 
   content: counter(sectioncounter);

Revision as of 19:14, 9 November 2019

.prettyprint .pln {
  color: #1b1ea4 !important;
}
.prettyprint .str {
  color: #080;
}
.prettyprint .kwd {
  color: #9b1001 !important;
}
.prettyprint .com {
  color: #9a9a9a !important;
}
.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 !important;
  background: #f8f9fa !important;
}
.prettyprint ol.linenums {
  margin-top: 0;
  margin-bottom: 0
}
.prettyprint ol.linenums li {
  list-style-type: unset !important;
  background: #f8f9fa !important;
}
.prettyprint ol.linenums li:nth-of-type(2n-1) {
  background: #e8e8e8 !important;
}
.prettyprint ol.linenums {
  margin: 0 !important;
  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;
  border-right: 1px solid #efefef;
  margin-right: 8px;
}