MediaWiki:Common.css/src/extension/SyntaxHighlight.scss
< MediaWiki:Common.css | src
Jump to navigation
Jump to search
This page is one of the SCSS pages which are the basis for MediaWiki:Common.css. After you edit this page, you will need to recompile them for your changes to take effect. See Terraria Wiki:CSS to learn more.
Ancestors: / src / extension / SyntaxHighlight.scss
Siblings: AbuseFilter.scss Cargo.scss CategoryTree.scss Cite.scss CiteThisPage.scss CodeEditor.scss DebugTemplates.scss Echo.scss EmbedVideo.scss InputBox.scss Interwiki.scss Math.scss MultimediaViewer.scss ReplaceText.scss Scribunto.scss SimpleMathJax.scss SyntaxHighlight.scss TabberNeue.scss TemplateData.scss ThemeToggle.scss WikiEditor.scss
Children: (none)
/********* Extension:SyntaxHighlight *********/
/* (formerly known as "SyntaxHighlight_GeSHi") */
/* overwriting styles from here:
* https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/SyntaxHighlight_GeSHi/+/refs/heads/master/modules/pygments.wrapper.less */
.mw-highlight {
pre {
margin-top: 1em;
background: #282828 !important;
color: #fff !important;
overflow: auto; /* scroll if needed */
}
}
/* overwriting styles from here:
* https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/SyntaxHighlight_GeSHi/+/refs/heads/master/modules/pygments.generated.css */
.mw-highlight, .kw1 {
color: #FFFFFF;
font-weight: bold;
}
.mw-highlight .nf {
color: aqua;
}
/* Operators */
.mw-highlight .p,
.mw-highlight .o {
color: #fff;
font-weight: bold;
}
/* Comments */
.mw-highlight .c {
color: #8d9e6b;
font-weight: bold;
}
/* HTML Tags */
.mw-highlight .nt {
color: #bfe431;
}
/* IDs */
.mw-highlight .nn {
color: #a8a8ff;
}
/* Classes */
.mw-highlight .nc {
color: #7676ff;
}
/* Pseudo-classes */
.mw-highlight .nd {
color: #cf82ff;
}
/* Properties */
.mw-highlight .k,
.mw-highlight .kp {
color: #fff;
font-weight: normal;
}
/* Keywords */
.mw-highlight .nb {
color: #ff5858;
}
/* Text values, strings */
.mw-highlight .kc,
.mw-highlight .s1,
.mw-highlight .s2,
.mw-highlight .sx,
.mw-highlight .n {
color: #00c6d2;
}
/* Numeric values */
.mw-highlight .mi,
.mw-highlight .mf {
color: #60feff;
font-weight: bold;
}
/* Units */
.mw-highlight .kt {
color: #ff3f85;
font-weight: bold;
}
/* #Color values */
.mw-highlight .mh {
color: #b2d241;
}
/* !important */
.mw-highlight .cp {
color: #F37F20;
}
/* JS generic */
.mw-highlight .nx {
color: #a8a8ff;
}
.mw-highlight .nv {
color: #fff;
}
/* Highlighted lines */
.mw-highlight .hll {
background-color: #50503e;
}
/* Highlight fields inside code class (e.g. Template:Code) */
code.mw-highlight {
background: var(--theme-page-background-color);
color: var(--theme-text-color);
}