Difference between revisions of "MediaWiki:Geshi.css"
(Created page with "/* CSS placed here will be applied to GeSHi syntax highlighting */ →Fix so <tt>, <code>, and <pre> display in a suitable size in firefox, chrome, etc: tt, code, pre { ...") |
|||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to GeSHi syntax highlighting */ | /* CSS placed here will be applied to GeSHi syntax highlighting */ | ||
− | /* Fix so < | + | /* Fix so <source> tags, and .css and .js pages, get normal text size |
− | + | also in some versions of Firefox, Safari, Konqueror, Chrome etc. */ | |
− | + | div.mw-geshi div, | |
+ | pre { | ||
+ | font-family: monospace, "Courier New" !important; | ||
+ | font-size: 1em; /* IE doesn't like inherit here */ | ||
+ | } | ||
+ | |||
+ | pre.mw-geshi { | ||
+ | background-color: #f0f0f0; | ||
+ | font-size: 1.2em; /* IE doesn't like inherit here */ | ||
+ | } | ||
+ | pre.mw-content-ltr { | ||
+ | background-color: #f0f0f0; | ||
+ | font-size: 1.2em; /* IE doesn't like inherit here */ | ||
} | } |
Latest revision as of 10:29, 23 February 2015
/* CSS placed here will be applied to GeSHi syntax highlighting */ /* Fix so <source> tags, and .css and .js pages, get normal text size also in some versions of Firefox, Safari, Konqueror, Chrome etc. */ div.mw-geshi div, pre { font-family: monospace, "Courier New" !important; font-size: 1em; /* IE doesn't like inherit here */ } pre.mw-geshi { background-color: #f0f0f0; font-size: 1.2em; /* IE doesn't like inherit here */ } pre.mw-content-ltr { background-color: #f0f0f0; font-size: 1.2em; /* IE doesn't like inherit here */ }