Line 1: Line 1:
 
/* CSS placed here will be applied to GeSHi syntax highlighting */
 
/* CSS placed here will be applied to GeSHi syntax highlighting */
div.mw-geshi div,pre {
+
/* This css will override styles used by the GeSHi syntax highlighting,
font-family: monospace, "Courier New" !important;
+
  such that less awful colors for the highlighting can be chosen. */
font-size:15px;
+
 +
/**
 +
* Language code: "vb"
 +
*
 +
* Overrides colors used for keywords from that horrible gold
 +
* to more tolerable blue. Other colors left as default at present time.
 +
*/
 +
.source-vb .kw1 {
 +
    color: #006 !important;
 +
}
 +
 
 +
/**
 +
* Language code: "c"
 +
*
 +
* Color fix for member variables
 +
*/
 +
.source-cpp .me1 { color:#499; }
 +
.source-cpp .me2 { color:#499; }
 +
 
 +
 
 +
/* Reinstating borders */
 +
body.skin-monobook div.mw-geshi {
 +
    padding: 1em;
 +
    border: 1px dashed #2f6fab;
 +
    color: black;
 +
    background-color: #f9f9f9;
 +
    line-height: 1.1em;
 +
}
 +
 
 +
body.skin-modern div.mw-geshi {
 +
    border: solid 1px #3c78b5;
 +
    padding: 0.4em;
 +
    background-color: #f0f0f0;
 +
}
 +
 
 +
body.skin-simple div.mw-geshi {
 +
    margin: 2em;
 +
    border: solid 1px black;
 +
}
 +
 
 +
body.skin-chick div.mw-geshi {
 +
    padding: 1em;
 +
    border: 1px dashed #2f6fab;
 +
    color: black;
 +
    background-color: #f9f9f9;
 +
    line-height: 1.1em;
 +
}
 +
 
 +
body.skin-vector div.mw-geshi {
 +
    padding: 1em;
 +
    border: 1px dashed #2f6fab;
 +
    color: black;
 +
    background-color: #f9f9f9;
 +
    line-height: 1.1em;
 +
}
 +
 
 +
 
 +
/* 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;
 +
}
 +
 
 +
/* Geshi's colourscheme for MySQL is absolutely hideous. */
 +
.mysql.source-mysql .kw1,
 +
.mysql.source-mysql .kw2,
 +
.mysql.source-mysql .kw3,
 +
.mysql.source-mysql .kw6,
 +
.mysql.source-mysql .kw10 {
 +
    color: #993333;
 +
}
 +
 
 +
.mysql.source-mysql .coMULTI,
 +
.mysql.source-mysql .sy1 {
 +
    color: #808080;
 +
}
 +
 
 +
.mysql.source-mysql .br0 {
 +
    color: #66cc66;
 
}
 
}

Revision as of 18:23, 22 October 2013

  1. /* CSS placed here will be applied to GeSHi syntax highlighting */
  2. /* This css will override styles used by the GeSHi syntax highlighting,
  3. such that less awful colors for the highlighting can be chosen. */
  4.  
  5. /**
  6. * Language code: "vb"
  7. *
  8. * Overrides colors used for keywords from that horrible gold
  9. * to more tolerable blue. Other colors left as default at present time.
  10. */
  11. .source-vb .kw1 {
  12. color: #006 !important;
  13. }
  14.  
  15. /**
  16. * Language code: "c"
  17. *
  18. * Color fix for member variables
  19. */
  20. .source-cpp .me1 { color:#499; }
  21. .source-cpp .me2 { color:#499; }
  22.  
  23.  
  24. /* Reinstating borders */
  25. body.skin-monobook div.mw-geshi {
  26. padding: 1em;
  27. border: 1px dashed #2f6fab;
  28. color: black;
  29. background-color: #f9f9f9;
  30. line-height: 1.1em;
  31. }
  32.  
  33. body.skin-modern div.mw-geshi {
  34. border: solid 1px #3c78b5;
  35. padding: 0.4em;
  36. background-color: #f0f0f0;
  37. }
  38.  
  39. body.skin-simple div.mw-geshi {
  40. margin: 2em;
  41. border: solid 1px black;
  42. }
  43.  
  44. body.skin-chick div.mw-geshi {
  45. padding: 1em;
  46. border: 1px dashed #2f6fab;
  47. color: black;
  48. background-color: #f9f9f9;
  49. line-height: 1.1em;
  50. }
  51.  
  52. body.skin-vector div.mw-geshi {
  53. padding: 1em;
  54. border: 1px dashed #2f6fab;
  55. color: black;
  56. background-color: #f9f9f9;
  57. line-height: 1.1em;
  58. }
  59.  
  60.  
  61. /* Fix so <source> tags, and .css and .js pages, get normal text size
  62. also in some versions of Firefox, Safari, Konqueror, Chrome etc. */
  63. div.mw-geshi div,
  64. pre {
  65. font-family: monospace, "Courier New" !important;
  66. }
  67.  
  68. /* Geshi's colourscheme for MySQL is absolutely hideous. */
  69. .mysql.source-mysql .kw1,
  70. .mysql.source-mysql .kw2,
  71. .mysql.source-mysql .kw3,
  72. .mysql.source-mysql .kw6,
  73. .mysql.source-mysql .kw10 {
  74. color: #993333;
  75. }
  76.  
  77. .mysql.source-mysql .coMULTI,
  78. .mysql.source-mysql .sy1 {
  79. color: #808080;
  80. }
  81.  
  82. .mysql.source-mysql .br0 {
  83. color: #66cc66;
  84. }