Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.css 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /**
  2. * Copyright 2015 The Rust Project Developers. See the COPYRIGHT
  3. * file at the top-level directory of this distribution and at
  4. * http://rust-lang.org/COPYRIGHT.
  5. *
  6. * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
  7. * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
  8. * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
  9. * option. This file may not be copied, modified, or distributed
  10. * except according to those terms.
  11. */
  12. /* General structure and fonts */
  13. body {
  14. background-color: white;
  15. color: black;
  16. }
  17. h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
  18. color: black;
  19. }
  20. h1.fqn {
  21. border-bottom-color: #D5D5D5;
  22. }
  23. h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
  24. border-bottom-color: #DDDDDD;
  25. }
  26. .in-band {
  27. background-color: white;
  28. }
  29. .docblock code, .docblock-short code {
  30. background-color: #F5F5F5;
  31. }
  32. pre {
  33. background-color: #F5F5F5;
  34. }
  35. .sidebar {
  36. background-color: #F1F1F1;
  37. }
  38. .sidebar .current {
  39. background-color: #fff;
  40. }
  41. .source .sidebar {
  42. background-color: #fff;
  43. }
  44. .sidebar .location {
  45. border-color: #000;
  46. background-color: #fff;
  47. color: #333;
  48. }
  49. .block a:hover {
  50. background: #F5F5F5;
  51. }
  52. .line-numbers span { color: #c67e2d; }
  53. .line-numbers .line-highlighted {
  54. background-color: #f6fdb0 !important;
  55. }
  56. .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
  57. border-bottom-color: #DDD;
  58. }
  59. .docblock table {
  60. border-color: #ddd;
  61. }
  62. .docblock table td {
  63. border-top-color: #ddd;
  64. border-bottom-color: #ddd;
  65. }
  66. .docblock table th {
  67. border-top-color: #ddd;
  68. border-bottom-color: #ddd;
  69. }
  70. :target { background: #FDFFD3; }
  71. :target > .in-band {
  72. background: #FDFFD3;
  73. }
  74. .content .highlighted {
  75. color: #000 !important;
  76. background-color: #ccc;
  77. }
  78. .content .highlighted a, .content .highlighted span { color: #000 !important; }
  79. .content .highlighted.trait { background-color: #c7b6ff; }
  80. .content .highlighted.mod,
  81. .content .highlighted.externcrate { background-color: #afc6e4; }
  82. .content .highlighted.enum { background-color: #b4d1b9; }
  83. .content .highlighted.struct { background-color: #e7b1a0; }
  84. .content .highlighted.union { background-color: #b7bd49; }
  85. .content .highlighted.fn,
  86. .content .highlighted.method,
  87. .content .highlighted.tymethod { background-color: #c6afb3; }
  88. .content .highlighted.type { background-color: #ffc891; }
  89. .content .highlighted.macro { background-color: #8ce488; }
  90. .content .highlighted.constant,
  91. .content .highlighted.static { background-color: #c3e0ff; }
  92. .content .highlighted.primitive { background-color: #9aecff; }
  93. .content span.enum, .content a.enum, .block a.current.enum { color: #508157; }
  94. .content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
  95. .content span.type, .content a.type, .block a.current.type { color: #ba5d00; }
  96. .content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
  97. .content span.union, .content a.union, .block a.current.union { color: #767b27; }
  98. .content span.constant, .content a.constant, .block a.current.constant,
  99. .content span.static, .content a.static, .block a.current.static { color: #546e8a; }
  100. .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2c8093; }
  101. .content span.externcrate,
  102. .content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
  103. .content span.trait, .content a.trait, .block a.current.trait { color: #7c5af3; }
  104. .content span.fn, .content a.fn, .block a.current.fn,
  105. .content span.method, .content a.method, .block a.current.method,
  106. .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
  107. .content .fnname { color: #9a6e31; }
  108. pre.rust .comment { color: #8E908C; }
  109. pre.rust .doccomment { color: #4D4D4C; }
  110. nav {
  111. border-bottom-color: #e0e0e0;
  112. }
  113. nav.main .current {
  114. border-top-color: #000;
  115. border-bottom-color: #000;
  116. }
  117. nav.main .separator {
  118. border: 1px solid #000;
  119. }
  120. a {
  121. color: #000;
  122. }
  123. .docblock a, .docblock-short a, .stability a {
  124. color: #3873AD;
  125. }
  126. a.test-arrow {
  127. color: #f5f5f5;
  128. }
  129. .search-input {
  130. color: #555;
  131. box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
  132. background-color: white;
  133. }
  134. .stab.unstable { background: #FFF5D6; border-color: #FFC600; }
  135. .stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
  136. .stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
  137. #help > div {
  138. background: #e9e9e9;
  139. border-color: #bfbfbf;;
  140. }
  141. #help dt {
  142. border-color: #bfbfbf;
  143. background: #fff;
  144. }
  145. .since {
  146. color: grey;
  147. }
  148. .line-numbers :target { background-color: transparent; }
  149. /* Code highlighting */
  150. pre.rust .kw { color: #8959A8; }
  151. pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
  152. pre.rust .number, pre.rust .string { color: #718C00; }
  153. pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
  154. pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
  155. pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
  156. pre.rust .lifetime { color: #B76514; }
  157. pre.rust .question-mark {
  158. color: #ff9011;
  159. }
  160. a.test-arrow {
  161. background-color: rgba(78, 139, 202, 0.2);
  162. }
  163. a.test-arrow:hover{
  164. background-color: #4e8bca;
  165. }
  166. .toggle-label {
  167. color: #999;
  168. }
  169. :target > code {
  170. background: #FDFFD3;
  171. }