Site Notice

hello, world

MediaWiki:Css-prettify.css

From Project-EPB Commons
Revision as of 19:41, 9 November 2019 by 机智的小鱼君 (talk | contribs) ([InPageEdit] 没有编辑摘要)

Invoke this: https://common.wjghj.cn/css/{{#replace:{{#replace:Css-prettify.css|Css-|}}|.css|}}

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: 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.
.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;
  background: #e8e8e8;
  border-right: 1px solid #efefef;
  margin-right: 8px;
}