viewsource.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. @charset "utf-8";
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
  6. *|*:root {
  7. background-color: white;
  8. color: black;
  9. direction: ltr;
  10. -moz-control-character-visibility: visible;
  11. height: 100%;
  12. }
  13. #viewsource {
  14. font-family: -moz-fixed;
  15. font-weight: normal;
  16. white-space: pre;
  17. counter-reset: line;
  18. height: 100%;
  19. box-sizing: border-box;
  20. margin: 0;
  21. padding: 8px;
  22. }
  23. #viewsource.wrap {
  24. white-space: pre-wrap;
  25. word-wrap: break-word;
  26. }
  27. pre {
  28. font: inherit;
  29. color: inherit;
  30. white-space: inherit;
  31. margin: 0 0 0 5ch;
  32. }
  33. pre[id]:before,
  34. span[id]:before {
  35. content: counter(line) " ";
  36. counter-increment: line;
  37. -moz-user-select: none;
  38. display: inline-block;
  39. width: 5ch;
  40. margin: 0 0 0 -5ch;
  41. text-align: right;
  42. color: #ccc;
  43. font-weight: normal;
  44. font-style: normal;
  45. }
  46. .highlight .start-tag {
  47. color: purple;
  48. font-weight: bold;
  49. }
  50. .highlight .end-tag {
  51. color: purple;
  52. font-weight: bold;
  53. }
  54. .highlight .comment {
  55. color: green;
  56. font-style: italic;
  57. }
  58. .highlight .cdata {
  59. color: #CC0066;
  60. }
  61. .highlight .doctype {
  62. color: steelblue;
  63. font-style: italic;
  64. }
  65. .highlight .pi {
  66. color: orchid;
  67. font-style: italic;
  68. }
  69. .highlight .entity {
  70. color: #FF4500;
  71. font-weight: normal;
  72. }
  73. .highlight .text {
  74. font-weight: normal;
  75. }
  76. .highlight .attribute-name {
  77. color: black;
  78. font-weight: bold;
  79. }
  80. .highlight .attribute-value {
  81. color: blue;
  82. font-weight: normal;
  83. }
  84. .highlight .markupdeclaration {
  85. color: steelblue;
  86. font-style: italic;
  87. }
  88. span:not(.error), a:not(.error) {
  89. unicode-bidi: embed;
  90. }
  91. span[id] {
  92. unicode-bidi: isolate;
  93. }
  94. .highlight .error,
  95. .highlight .error > :-moz-any(.start-tag, .end-tag, .comment, .cdata, .doctype,
  96. .pi, .entity, .attribute-name, .attribute-value) {
  97. color: red;
  98. font-weight: bold;
  99. }