view-source.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /*
  2. * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. * 1. Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * 2. Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. *
  13. * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
  14. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  16. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
  17. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  18. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  19. * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  20. * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  21. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  22. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  23. */
  24. body {
  25. margin: 0
  26. }
  27. table {
  28. width: 100%;
  29. border-spacing: 0;
  30. counter-reset: lines;
  31. white-space: pre-wrap !important;
  32. margin: 0;
  33. word-break: break-word;
  34. font-size: initial;
  35. font-family: monospace;
  36. }
  37. td {
  38. padding: 0 !important;
  39. vertical-align: baseline
  40. }
  41. .webkit-line-gutter-backdrop, .webkit-line-number {
  42. /* Keep this in sync with inspector.css (.webkit-line-gutter-backdrop) */
  43. box-sizing: border-box;
  44. padding: 0 4px !important;
  45. width: 31px;
  46. background-color: rgb(240, 240, 240);
  47. border-right: 1px solid rgb(187, 187, 187) !important;
  48. -webkit-user-select: none;
  49. }
  50. .webkit-line-gutter-backdrop {
  51. /* Keep this in sync with inspector.css (.webkit-line-gutter-backdrop) */
  52. position: absolute;
  53. z-index: -1;
  54. left: 0;
  55. top: 0;
  56. height: 100%
  57. }
  58. .webkit-line-number {
  59. text-align: right;
  60. color: rgb(128, 128, 128);
  61. word-break: normal;
  62. white-space: nowrap;
  63. font-size: 9px;
  64. font-family: Helvetica
  65. }
  66. .webkit-line-number::before {
  67. content: counter(lines);
  68. counter-increment: lines;
  69. -webkit-user-select: none
  70. }
  71. tbody:last-child .webkit-line-content:empty:before {
  72. content: " ";
  73. }
  74. .webkit-line-content {
  75. padding: 0 5px !important;
  76. }
  77. .webkit-html-tag {
  78. /* Keep this in sync with inspector.css (.webkit-html-tag) */
  79. color: rgb(136, 18, 128);
  80. }
  81. .webkit-html-attribute-name {
  82. /* Keep this in sync with inspector.css (.webkit-html-attribute-name) */
  83. color: rgb(153, 69, 0);
  84. }
  85. .webkit-html-attribute-value {
  86. /* Keep this in sync with inspector.css (.webkit-html-attribute-value) */
  87. color: rgb(26, 26, 166);
  88. }
  89. .webkit-html-external-link, .webkit-html-resource-link {
  90. /* Keep this in sync with inspector.css (.webkit-html-external-link, .webkit-html-resource-link) */
  91. color: #00e;
  92. }
  93. .webkit-html-external-link {
  94. /* Keep this in sync with inspector.css (.webkit-html-external-link) */
  95. text-decoration: none;
  96. }
  97. .webkit-html-external-link:hover {
  98. /* Keep this in sync with inspector.css (.webkit-html-external-link:hover) */
  99. text-decoration: underline;
  100. }
  101. .webkit-html-comment {
  102. /* Keep this in sync with inspector.css (.webkit-html-comment) */
  103. color: rgb(35, 110, 37);
  104. }
  105. .webkit-html-doctype {
  106. /* Keep this in sync with inspector.css (.webkit-html-doctype) */
  107. color: rgb(192, 192, 192);
  108. }
  109. .webkit-html-entity {
  110. rgb(136, 18, 128);
  111. }
  112. .webkit-html-message-bubble {
  113. box-shadow: black 0px 2px 5px;
  114. border-radius: 9px;
  115. -webkit-border-fit: lines;
  116. min-height: 13px;
  117. font-size: 9px;
  118. font-family: Lucida Grande, sans-serif;
  119. font-weight: bold;
  120. margin: 6px 25px;
  121. padding: 0 7px 1px;
  122. }
  123. .webkit-html-warning-message {
  124. background-color: rgb(100%, 62%, 42%);
  125. border: 2px solid rgb(100%, 52%, 21%);
  126. }
  127. .webkit-html-error-message {
  128. background-color: rgb(100%, 42%, 42%);
  129. border: 2px solid rgb(100%, 31%, 31%);
  130. }
  131. .webkit-html-message-line {
  132. padding-left: 23px;
  133. text-indent: -20px;
  134. }
  135. .webkit-html-message-icon {
  136. position: relative;
  137. top: 2px;
  138. margin: 0 4px;
  139. }