_syntax-highlighting.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. // Jekyll syntax highlighting styles adjusted to match Google Code Prettify
  2. .highlight {
  3. background: #fff;
  4. // Text
  5. .nx {
  6. color: #333;
  7. }
  8. // Keywords and operators
  9. .k, .o {
  10. font-weight: bold;
  11. }
  12. // Attribute name
  13. .na {
  14. color: #428BCA;
  15. }
  16. // Strings
  17. .s, .s1, .s2, .sb, .sc, .sd, .se, .sh, .si, .sx {
  18. color: #C7254E;
  19. }
  20. // Literals
  21. .m, .mf, mh, .mi, .mo {
  22. color: #195f91;
  23. }
  24. // Parentheses
  25. .p {
  26. color: #93a1a1;
  27. }
  28. // Tag
  29. .nt {
  30. color: #2F6F9F;
  31. }
  32. // Comments
  33. .c {
  34. color: #999;
  35. font-style: italic;
  36. }
  37. // Error
  38. .err {
  39. background-color: #e3d2d2;
  40. color: #a61717;
  41. }
  42. // Generic error
  43. .gr {
  44. color: #a00;
  45. }
  46. // Container styles
  47. pre {
  48. border: none;
  49. margin: 0;
  50. }
  51. & > pre {
  52. border: 1px solid #eee;
  53. padding: 0;
  54. margin-bottom: 14px;
  55. }
  56. // Line numbers
  57. .lineno {
  58. background-color: #fbfbfb;
  59. color: #bebebe;
  60. -ms-user-select: none;
  61. -moz-user-select: none;
  62. -webkit-user-select: none;
  63. }
  64. }
  65. .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
  66. .highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
  67. .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
  68. .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
  69. .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
  70. .highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
  71. .highlight .ge { font-style: italic } /* Generic.Emph */
  72. .highlight .gh { color: #999999 } /* Generic.Heading */
  73. .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
  74. .highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
  75. .highlight .go { color: #888888 } /* Generic.Output */
  76. .highlight .gp { color: #555555 } /* Generic.Prompt */
  77. .highlight .gs { font-weight: bold } /* Generic.Strong */
  78. .highlight .gu { color: #aaaaaa } /* Generic.Subheading */
  79. .highlight .gt { color: #aa0000 } /* Generic.Traceback */
  80. .highlight .kc { font-weight: bold } /* Keyword.Constant */
  81. .highlight .kd { font-weight: bold } /* Keyword.Declaration */
  82. .highlight .kp { font-weight: bold } /* Keyword.Pseudo */
  83. .highlight .kr { font-weight: bold } /* Keyword.Reserved */
  84. .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
  85. .highlight .nb { color: #0086B3 } /* Name.Builtin */
  86. .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
  87. .highlight .no { color: #008080 } /* Name.Constant */
  88. .highlight .ni { color: #800080 } /* Name.Entity */
  89. .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
  90. .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
  91. .highlight .nn { color: #555555 } /* Name.Namespace */
  92. .highlight .nv { color: #008080 } /* Name.Variable */
  93. .highlight .ow { font-weight: bold } /* Operator.Word */
  94. .highlight .w { color: #bbbbbb } /* Text.Whitespace */
  95. .highlight .sr { color: #009926 } /* Literal.String.Regex */
  96. .highlight .ss { color: #990073 } /* Literal.String.Symbol */
  97. .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
  98. .highlight .vc { color: #008080 } /* Name.Variable.Class */
  99. .highlight .vg { color: #008080 } /* Name.Variable.Global */
  100. .highlight .vi { color: #008080 } /* Name.Variable.Instance */
  101. .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */