You are here

diff.css in Diff 7.3

Same filename and directory in other branches
  1. 5.2 diff.css
  2. 5 diff.css
  3. 6.2 diff.css
  4. 6 diff.css
  5. 7.2 diff.css
html.js .diff-js-hidden {
  display:none;
}

/**
 * Inline diff metadata
 */
.diff-inline-metadata {
  padding: 4px;
  border: 1px solid #ddd;
  background: #fff;
  margin: 0 0 10px;
}

.diff-inline-legend {
  font-size: 11px;
}
.diff-inline-legend span,
.diff-inline-legend label {
  margin-right: 5px;
}

/**
 * Inline diff markup
 */
span.diff-deleted {
  color: #ccc;
}
span.diff-deleted img {
  border: solid 2px #ccc;
}
span.diff-changed {
  background: #ffb;
}
span.diff-changed img {
  border: solid 2px #ffb;
}
span.diff-added {
  background: #cfc;
}
span.diff-added img {
  border: solid 2px #cfc;
}

/**
 * Traditional split diff theming
 */
table.diff {
  border-spacing: 4px;
  margin-bottom: 20px;
  table-layout: fixed;
  width: 100%;
}
table.diff tr.even,
table.diff tr.odd {
  background-color: inherit;
  border: none;
}
td.diff-prevlink {
  text-align: left;
}
td.diff-nextlink {
  text-align: right;
}
td.diff-section-title,
div.diff-section-title {
  background-color: #f0f0ff;
  font-size: 0.83em;
  font-weight: bold;
  padding: 0.1em 1em;
}
td.diff-deletedline {
  background-color: #ffa;
  width: 50%;
}
td.diff-addedline {
  background-color: #afa;
  width: 50%;
}
td.diff-context {
  background-color: #fafafa;
}
span.diffchange {
  color: #f00;
  font-weight: bold;
}

table.diff col.diff-marker {
  width: 1.4em;
}
table.diff col.diff-content {
  width: 50%;
}
table.diff th {
  padding-right: inherit;
}
table.diff td div {
  overflow: auto;
  padding: 0.1ex 0.5em;
  word-wrap: break-word;
}
table.diff td {
  padding: 0.1ex 0.4em;
}

File

diff.css
View source
  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-deletedline {
  69. background-color: #ffa;
  70. width: 50%;
  71. }
  72. td.diff-addedline {
  73. background-color: #afa;
  74. width: 50%;
  75. }
  76. td.diff-context {
  77. background-color: #fafafa;
  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. }