solarized.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /*
  2. Solarized theme for code-mirror
  3. http://ethanschoonover.com/solarized
  4. */
  5. /*
  6. Solarized color palette
  7. http://ethanschoonover.com/solarized/img/solarized-palette.png
  8. */
  9. .solarized.base03 { color: #002b36; }
  10. .solarized.base02 { color: #073642; }
  11. .solarized.base01 { color: #586e75; }
  12. .solarized.base00 { color: #657b83; }
  13. .solarized.base0 { color: #839496; }
  14. .solarized.base1 { color: #93a1a1; }
  15. .solarized.base2 { color: #eee8d5; }
  16. .solarized.base3 { color: #fdf6e3; }
  17. .solarized.solar-yellow { color: #b58900; }
  18. .solarized.solar-orange { color: #cb4b16; }
  19. .solarized.solar-red { color: #dc322f; }
  20. .solarized.solar-magenta { color: #d33682; }
  21. .solarized.solar-violet { color: #6c71c4; }
  22. .solarized.solar-blue { color: #268bd2; }
  23. .solarized.solar-cyan { color: #2aa198; }
  24. .solarized.solar-green { color: #859900; }
  25. /* Color scheme for code-mirror */
  26. .cm-s-solarized {
  27. line-height: 1.45em;
  28. color-profile: sRGB;
  29. rendering-intent: auto;
  30. }
  31. .cm-s-solarized.cm-s-dark {
  32. color: #839496;
  33. background-color: #002b36;
  34. }
  35. .cm-s-solarized.cm-s-light {
  36. background-color: #fdf6e3;
  37. color: #657b83;
  38. }
  39. .cm-s-solarized .CodeMirror-widget {
  40. text-shadow: none;
  41. }
  42. .cm-s-solarized .cm-header { color: #586e75; }
  43. .cm-s-solarized .cm-quote { color: #93a1a1; }
  44. .cm-s-solarized .cm-keyword { color: #cb4b16; }
  45. .cm-s-solarized .cm-atom { color: #d33682; }
  46. .cm-s-solarized .cm-number { color: #d33682; }
  47. .cm-s-solarized .cm-def { color: #2aa198; }
  48. .cm-s-solarized .cm-variable { color: #839496; }
  49. .cm-s-solarized .cm-variable-2 { color: #b58900; }
  50. .cm-s-solarized .cm-variable-3, .cm-s-solarized .cm-type { color: #6c71c4; }
  51. .cm-s-solarized .cm-property { color: #2aa198; }
  52. .cm-s-solarized .cm-operator { color: #6c71c4; }
  53. .cm-s-solarized .cm-comment { color: #586e75; font-style:italic; }
  54. .cm-s-solarized .cm-string { color: #859900; }
  55. .cm-s-solarized .cm-string-2 { color: #b58900; }
  56. .cm-s-solarized .cm-meta { color: #859900; }
  57. .cm-s-solarized .cm-qualifier { color: #b58900; }
  58. .cm-s-solarized .cm-builtin { color: #d33682; }
  59. .cm-s-solarized .cm-bracket { color: #cb4b16; }
  60. .cm-s-solarized .CodeMirror-matchingbracket { color: #859900; }
  61. .cm-s-solarized .CodeMirror-nonmatchingbracket { color: #dc322f; }
  62. .cm-s-solarized .cm-tag { color: #93a1a1; }
  63. .cm-s-solarized .cm-attribute { color: #2aa198; }
  64. .cm-s-solarized .cm-hr {
  65. color: transparent;
  66. border-top: 1px solid #586e75;
  67. display: block;
  68. }
  69. .cm-s-solarized .cm-link { color: #93a1a1; cursor: pointer; }
  70. .cm-s-solarized .cm-special { color: #6c71c4; }
  71. .cm-s-solarized .cm-em {
  72. color: #999;
  73. text-decoration: underline;
  74. text-decoration-style: dotted;
  75. }
  76. .cm-s-solarized .cm-error,
  77. .cm-s-solarized .cm-invalidchar {
  78. color: #586e75;
  79. border-bottom: 1px dotted #dc322f;
  80. }
  81. .cm-s-solarized.cm-s-dark div.CodeMirror-selected { background: #073642; }
  82. .cm-s-solarized.cm-s-dark.CodeMirror ::selection { background: rgba(7, 54, 66, 0.99); }
  83. .cm-s-solarized.cm-s-dark .CodeMirror-line::-moz-selection, .cm-s-dark .CodeMirror-line > span::-moz-selection, .cm-s-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(7, 54, 66, 0.99); }
  84. .cm-s-solarized.cm-s-light div.CodeMirror-selected { background: #eee8d5; }
  85. .cm-s-solarized.cm-s-light .CodeMirror-line::selection, .cm-s-light .CodeMirror-line > span::selection, .cm-s-light .CodeMirror-line > span > span::selection { background: #eee8d5; }
  86. .cm-s-solarized.cm-s-light .CodeMirror-line::-moz-selection, .cm-s-light .CodeMirror-line > span::-moz-selection, .cm-s-light .CodeMirror-line > span > span::-moz-selection { background: #eee8d5; }
  87. /* Editor styling */
  88. /* Little shadow on the view-port of the buffer view */
  89. .cm-s-solarized.CodeMirror {
  90. -moz-box-shadow: inset 7px 0 12px -6px #000;
  91. -webkit-box-shadow: inset 7px 0 12px -6px #000;
  92. box-shadow: inset 7px 0 12px -6px #000;
  93. }
  94. /* Remove gutter border */
  95. .cm-s-solarized .CodeMirror-gutters {
  96. border-right: 0;
  97. }
  98. /* Gutter colors and line number styling based of color scheme (dark / light) */
  99. /* Dark */
  100. .cm-s-solarized.cm-s-dark .CodeMirror-gutters {
  101. background-color: #073642;
  102. }
  103. .cm-s-solarized.cm-s-dark .CodeMirror-linenumber {
  104. color: #586e75;
  105. }
  106. /* Light */
  107. .cm-s-solarized.cm-s-light .CodeMirror-gutters {
  108. background-color: #eee8d5;
  109. }
  110. .cm-s-solarized.cm-s-light .CodeMirror-linenumber {
  111. color: #839496;
  112. }
  113. /* Common */
  114. .cm-s-solarized .CodeMirror-linenumber {
  115. padding: 0 5px;
  116. }
  117. .cm-s-solarized .CodeMirror-guttermarker-subtle { color: #586e75; }
  118. .cm-s-solarized.cm-s-dark .CodeMirror-guttermarker { color: #ddd; }
  119. .cm-s-solarized.cm-s-light .CodeMirror-guttermarker { color: #cb4b16; }
  120. .cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text {
  121. color: #586e75;
  122. }
  123. /* Cursor */
  124. .cm-s-solarized .CodeMirror-cursor { border-left: 1px solid #819090; }
  125. /* Fat cursor */
  126. .cm-s-solarized.cm-s-light.cm-fat-cursor .CodeMirror-cursor { background: #77ee77; }
  127. .cm-s-solarized.cm-s-light .cm-animate-fat-cursor { background-color: #77ee77; }
  128. .cm-s-solarized.cm-s-dark.cm-fat-cursor .CodeMirror-cursor { background: #586e75; }
  129. .cm-s-solarized.cm-s-dark .cm-animate-fat-cursor { background-color: #586e75; }
  130. /* Active line */
  131. .cm-s-solarized.cm-s-dark .CodeMirror-activeline-background {
  132. background: rgba(255, 255, 255, 0.06);
  133. }
  134. .cm-s-solarized.cm-s-light .CodeMirror-activeline-background {
  135. background: rgba(0, 0, 0, 0.06);
  136. }