diff.default.css 1.5 KB

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