diff.default.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. html.js .diff-js-hidden {
  2. display: none;
  3. }
  4. /**
  5. * Inline diff metadata
  6. */
  7. .diff-inline-metadata {
  8. padding: 4px;
  9. border: 1px solid #ddd;
  10. background: #fff;
  11. margin: 0 0 10px;
  12. }
  13. .diff-inline-legend {
  14. font-size: 11px;
  15. }
  16. .diff-inline-legend span,
  17. .diff-inline-legend label {
  18. margin-right: 5px;
  19. }
  20. /**
  21. * Inline diff markup
  22. */
  23. span.diff-deleted {
  24. color: #ccc;
  25. }
  26. span.diff-deleted img {
  27. border: solid 2px #ccc;
  28. }
  29. span.diff-changed {
  30. background: #ffb;
  31. }
  32. span.diff-changed img {
  33. border: solid 2px #ffb;
  34. }
  35. span.diff-added {
  36. background: #cfc;
  37. }
  38. span.diff-added img {
  39. border: solid 2px #cfc;
  40. }
  41. /**
  42. * Traditional split diff theming
  43. */
  44. table.diff {
  45. border-spacing: 4px;
  46. margin-bottom: 20px;
  47. table-layout: fixed;
  48. width: 100%;
  49. }
  50. table.diff tr.even,
  51. table.diff tr.odd {
  52. background-color: inherit;
  53. border: none;
  54. }
  55. td.diff-prevlink {
  56. text-align: left;
  57. }
  58. td.diff-nextlink {
  59. text-align: right;
  60. }
  61. td.diff-section-title,
  62. div.diff-section-title {
  63. background-color: #f0f0ff;
  64. font-size: 0.83em;
  65. font-weight: bold;
  66. padding: 0.1em 1em;
  67. }
  68. td.diff-context {
  69. background-color: #fafafa;
  70. }
  71. td.diff-deletedline {
  72. background-color: #ffa;
  73. width: 50%;
  74. }
  75. td.diff-addedline {
  76. background-color: #afa;
  77. width: 50%;
  78. }
  79. span.diffchange {
  80. color: #f00;
  81. font-weight: bold;
  82. }
  83. table.diff col.diff-marker {
  84. width: 1.4em;
  85. }
  86. table.diff col.diff-content {
  87. width: 50%;
  88. }
  89. table.diff th {
  90. padding-right: inherit;
  91. }
  92. table.diff td div {
  93. overflow: auto;
  94. padding: 0.1ex 0.5em;
  95. word-wrap: break-word;
  96. }
  97. table.diff td {
  98. padding: 0.1ex 0.4em;
  99. }
  100. table.diff-revisions tr.revision-published td {
  101. background-color: #aaffaa;
  102. }