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.
 
 
 
 
 
 

187 lines
4.7 KiB

  1. /* Diff preferences */
  2. #prefs fieldset { margin: 1em .5em .5em; padding: .5em 1em 0 }
  3. /* Diff/change overview */
  4. #overview { line-height: 130%; margin-top: 1em; padding: .5em }
  5. #overview dt.property {
  6. font-weight: bold;
  7. padding-right: .25em;
  8. position: absolute;
  9. left: 0;
  10. text-align: right;
  11. width: 7.75em;
  12. }
  13. #overview dd { margin-left: 8em }
  14. #overview .message { padding: 1em 0 1px }
  15. #overview dd.message p, #overview dd.message ul, #overview dd.message ol,
  16. #overview dd.message pre { margin-bottom: 1em; margin-top: 0; }
  17. /* Colors for change types */
  18. #chglist .edit, #overview .mod, .diff .legend .mod { background: #fd8 }
  19. #chglist .delete, #overview .rem, .diff .legend .rem { background: #f88 }
  20. #chglist .add, #overview .add, .diff .legend .add { background: #bfb }
  21. #chglist .copy, #overview .cp, .diff .legend .cp { background: #88f }
  22. #chglist .move, #overview .mv, .diff .legend .mv { background: #ccc }
  23. #chglist .unknown { background: #fff }
  24. /* Legend for diff and file colors */
  25. .legend {
  26. font-size: 9px;
  27. line-height: 1em;
  28. padding: .5em 0;
  29. }
  30. .legend h3 { display: none; }
  31. .legend dt {
  32. background: #fff;
  33. border: 1px solid #999;
  34. float: left;
  35. margin: .1em .5em .1em 0;
  36. overflow: hidden;
  37. width: .8em; height: .8em;
  38. }
  39. .legend dl {
  40. display: inline;
  41. padding: 0;
  42. margin: 0;
  43. margin-right: .5em;
  44. }
  45. .legend dd {
  46. display: inline;
  47. float: left;
  48. padding: 0;
  49. margin: 0;
  50. margin-right: 2em;
  51. }
  52. #diff-legend {
  53. float: left;
  54. clear: right;
  55. margin: 1em .5em;
  56. }
  57. #file-legend dd { margin-left: 0; }
  58. /* Styles for the list of diffs */
  59. .diff ul.entries { clear: both; margin: 0; padding: 0 }
  60. .diff li.entry {
  61. background: #f7f7f7;
  62. border: 1px solid #d7d7d7;
  63. list-style-type: none;
  64. margin: 0 0 2em;
  65. padding: 2px;
  66. position: relative;
  67. width: 100%;
  68. }
  69. .diff h2 {
  70. color: #333;
  71. font-size: 14px;
  72. letter-spacing: normal;
  73. margin: 0 auto;
  74. padding: .1em 0 .25em .5em;
  75. }
  76. .diff h2 .switch { color: #999; float: right; font-size: 75%;
  77. line-height: 1.6;
  78. }
  79. .diff h2 .switch span { border-left: 1px solid #ccc; cursor: pointer;
  80. padding: 0 1em;
  81. }
  82. .diff h2 .switch span:first-child { border: none; }
  83. .diff h2 .switch span.active { color: #333; cursor: default; }
  84. /* Styles for the actual diff tables (side-by-side and inline) */
  85. .diff table {
  86. border: 1px solid #ddd;
  87. border-spacing: 0;
  88. border-top: 0;
  89. empty-cells: show;
  90. font-size: 12px;
  91. line-height: 130%;
  92. padding: 0;
  93. margin: 0 auto;
  94. table-layout: fixed;
  95. width: 100%;
  96. }
  97. .diff table col.lineno { width: 4em }
  98. .diff table th {
  99. border-right: 1px solid #d7d7d7;
  100. border-bottom: 1px solid #998;
  101. font-size: 11px;
  102. }
  103. .diff table thead th {
  104. background: #eee;
  105. border-top: 1px solid #d7d7d7;
  106. color: #999;
  107. padding: 0 .25em;
  108. text-align: center;
  109. white-space: nowrap;
  110. }
  111. .diff table tbody th {
  112. background: #eed;
  113. color: #886;
  114. font-weight: normal;
  115. padding: 0 .5em;
  116. text-align: right;
  117. vertical-align: top;
  118. }
  119. .diff table tbody td {
  120. background: #fff;
  121. font: normal 11px monospace;
  122. overflow: visible;
  123. padding: 1px 2px;
  124. vertical-align: top;
  125. }
  126. .diff table tbody.skipped td {
  127. background: #f7f7f7;
  128. border: 1px solid #d7d7d7;
  129. }
  130. .diff td ins, .diff td del {text-decoration: none;}
  131. /* Styles for the inline diff */
  132. .diff table.inline tbody.mod td.l, .diff table.inline tbody.rem td.l {
  133. background: #fdd;
  134. border-color: #c00;
  135. border-style: solid;
  136. border-width: 0 1px 0 1px;
  137. }
  138. .diff table.inline tbody.mod td.r, .diff table.inline tbody.add td.r {
  139. background: #dfd;
  140. border-color: #0a0;
  141. border-style: solid;
  142. border-width: 0 1px 0 1px;
  143. }
  144. .diff table.inline tbody.mod tr.first td.l,
  145. .diff table.inline tbody.rem tr.first td.l { border-top-width: 1px }
  146. .diff table.inline tbody.mod tr.last td.l,
  147. .diff table.inline tbody.rem tr.last td.l { border-bottom-width: 1px }
  148. .diff table.inline tbody.mod tr.first td.r,
  149. .diff table.inline tbody.add tr.first td.r { border-top-width: 1px }
  150. .diff table.inline tbody.mod tr.last td.r,
  151. .diff table.inline tbody.add tr.last td.r { border-bottom-width: 1px }
  152. .diff table.inline tbody.mod td del {
  153. background: #e99;
  154. color: #000;
  155. }
  156. .diff table.inline tbody.mod td ins {
  157. background: #9e9;
  158. color: #000;
  159. }
  160. /* Styles for the side-by-side diff */
  161. .diff table.sidebyside colgroup.content { width: 50% }
  162. .diff table.sidebyside tbody.mod td.l { background: #fe9 }
  163. .diff table.sidebyside tbody.mod td.r { background: #fd8 }
  164. .diff table.sidebyside tbody.add td.l { background: #dfd }
  165. .diff table.sidebyside tbody.add td.r { background: #cfc }
  166. .diff table.sidebyside tbody.rem td.l { background: #f88 }
  167. .diff table.sidebyside tbody.rem td.r { background: #faa }
  168. .diff table.sidebyside tbody.mod del, .diff table.sidebyside tbody.mod ins {
  169. background: #fc0;
  170. }
  171. /* Styles for the plain-text diff view */
  172. .diff pre { background: #fff; border: 1px solid #ddd; font-size: 85%;
  173. margin: 0;
  174. }