lang.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow.css */
  2. pre.prettyprint .str { color: #718c00; } /* string */
  3. pre.prettyprint .kwd { color: #8959a8; } /* keyword */
  4. pre.prettyprint .com { color: #8e908c; } /* comment */
  5. pre.prettyprint .typ { color: #4271ae; } /* type */
  6. pre.prettyprint .lit { color: #f5871f; } /* literal */
  7. pre.prettyprint .pun { color: #4d4d4c; } /* punctuation */
  8. pre.prettyprint .pln { color: #4d4d4c; } /* plaintext */
  9. pre.prettyprint .tag { color: #c82829 } /* html tag */
  10. pre.prettyprint .atn { color: #f5871f } /* attribute name */
  11. pre.prettyprint .atv { color: #3e999f } /* attribute value */
  12. pre.prettyprint .dec { color: #f5871f; } /* decimal */
  13. pre.prettyprint .var { color: #4271ae } /* variable name */
  14. pre.prettyprint .fun { color: #4271ae } /* function name */
  15. pre.prettyprint ul.modifiedlines {
  16. list-style-type: none;
  17. padding-left: 0;
  18. }
  19. pre.prettyprint ul.modifiedlines li.linemodified {
  20. list-style-type: none;
  21. background-color: #ffffff;
  22. }
  23. pre.prettyprint ul.modifiedlines li.linedeleted {
  24. list-style-type: none;
  25. background-color: #ffebe9;
  26. }
  27. pre.prettyprint ul.modifiedlines li.linedeleted:before {
  28. content: '-';
  29. background-color: #ffebe9;
  30. padding-right: 8px;
  31. }
  32. pre.prettyprint ul.modifiedlines li.lineadded {
  33. list-style-type: none;
  34. background-color: #e6ffec;
  35. }
  36. pre.prettyprint ul.modifiedlines li.lineadded:before {
  37. content: '+';
  38. background-color: #e6ffec;
  39. padding-right: 8px;
  40. }
  41. pre.prettyprint, code.prettyprint, .dos {
  42. background: #f5f5f5;
  43. font-family: 'Roboto Mono', monospace;
  44. font-size: calc(var(--font-size) - 1px);
  45. line-height: calc(var(--line-height) - 1px);
  46. margin: 16px calc(-1 * var(--page-padding));
  47. padding: calc(var(--page-padding) - 6px) var(--page-padding);
  48. overflow: auto;
  49. white-space: pre-wrap;
  50. box-sizing: border-box;
  51. }
  52. @media (prefers-color-scheme: dark) {
  53. /* https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.css */
  54. pre.prettyprint .str { color: #b5bd68; } /* string */
  55. pre.prettyprint .kwd { color: #b294bb; } /* keyword */
  56. pre.prettyprint .com { color: #969896; } /* comment */
  57. pre.prettyprint .typ { color: #81a2be; } /* type */
  58. pre.prettyprint .lit { color: #de935f; } /* literal */
  59. pre.prettyprint .pun { color: #c5c8c6; } /* punctuation */
  60. pre.prettyprint .pln { color: #c5c8c6; } /* plaintext */
  61. pre.prettyprint .tag { color: #cc6666 } /* html tag */
  62. pre.prettyprint .atn { color: #de935f } /* attribute name */
  63. pre.prettyprint .atv { color: #8abeb7 } /* attribute value */
  64. pre.prettyprint .dec { color: #de935f; } /* decimal */
  65. pre.prettyprint .var { color: #cc6666 } /* variable name */
  66. pre.prettyprint .fun { color: #81a2be } /* function name */
  67. pre.prettyprint ul.modifiedlines li.linemodified {
  68. background-color: #222222;
  69. }
  70. pre.prettyprint ul.modifiedlines li.linedeleted {
  71. background-color: #412e32;
  72. }
  73. pre.prettyprint ul.modifiedlines li.linedeleted:before {
  74. background-color: #412e32;
  75. }
  76. pre.prettyprint ul.modifiedlines li.lineadded {
  77. background-color: #293832;
  78. }
  79. pre.prettyprint ul.modifiedlines li.lineadded:before {
  80. background-color: #293832;
  81. }
  82. pre.prettyprint, code.prettyprint, .dos {
  83. background: #333333;
  84. }
  85. }