_diff.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /**
  2. * This file provides styles for the diff view, which shows you
  3. * differences between two versions of a page (?do=diff).
  4. */
  5. @font-face {
  6. font-family: "Roboto";
  7. font-weight: 200;
  8. font-style: normal;
  9. font-stretch: normal;
  10. src: url("lib/tpl/mytemplate/css/roboto.ttf") format("truetype");
  11. }
  12. :root {
  13. --ini-text: #333;
  14. --ini-background: #fff;
  15. --ini-text-alt: #999;
  16. --ini-background-alt: #eee;
  17. --ini-text-neu: #666;
  18. --ini-background-neu: #ddd;
  19. --ini-border: #1C3031;
  20. --ini-highlight: #F2C94C;
  21. --ini-link: #1C3031;
  22. --ini-background-site: #fbfaf9;
  23. --ini-existing: #27AE60;
  24. --ini-missing: #EE1010;
  25. --ini-site-width: 75em;
  26. --ini-sidebar-width: 16em;
  27. --ini-tablet-width: 800px;
  28. --ini-phone-width: 480px;
  29. --ini-theme-color: #008800;
  30. }
  31. .edit, .input {
  32. background-color: transparent !important;
  33. color: #000;
  34. }
  35. label {
  36. background-color: transparent !important;
  37. }
  38. .selection, .selectiondefault {
  39. background-color: transparent !important;
  40. }
  41. .selection:hover, .selectiondefault:hover {
  42. background-color: #eee !important;
  43. }
  44. .dokuwiki table.diff {
  45. width: 100%;
  46. border-width: 0;
  47. }
  48. .dokuwiki table.diff th,
  49. .dokuwiki table.diff td {
  50. vertical-align: top;
  51. padding: 0;
  52. border-width: 0;
  53. /* no style.ini colours because deleted and added lines have a fixed background colour */
  54. background-color: #fff;
  55. color: #333;
  56. }
  57. /* table header */
  58. .dokuwiki table.diff th {
  59. border-bottom: 1px solid var(--ini-border);
  60. font-size: 110%;
  61. font-weight: normal;
  62. }
  63. .dokuwiki table.diff th a {
  64. font-weight: bold;
  65. }
  66. .dokuwiki table.diff th span.user {
  67. font-size: .9em;
  68. }
  69. .dokuwiki table.diff th span.sum {
  70. font-size: .9em;
  71. font-weight: bold;
  72. }
  73. .dokuwiki table.diff th.minor {
  74. color: #999;
  75. }
  76. .dokuwiki table.diff_sidebyside th {
  77. width: 50%;
  78. }
  79. /* table body */
  80. .dokuwiki table.diff .diff-lineheader {
  81. width: .7em;
  82. text-align: right;
  83. }
  84. [dir=rtl] .dokuwiki table.diff .diff-lineheader {
  85. text-align: left;
  86. }
  87. .dokuwiki table.diff .diff-lineheader,
  88. .dokuwiki table.diff td {
  89. font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
  90. }
  91. .dokuwiki table.diff td.diff-blockheader {
  92. font-weight: bold;
  93. }
  94. .dokuwiki table.diff .diff-addedline {
  95. background-color: #cfc;
  96. color: inherit;
  97. width: calc(50% - .7em);
  98. }
  99. .dokuwiki table.diff .diff-deletedline {
  100. background-color: #fdd;
  101. color: inherit;
  102. width: calc(50% - .7em);
  103. }
  104. .dokuwiki table.diff td.diff-context {
  105. background-color: #eee;
  106. color: inherit;
  107. width: calc(50% - .7em);
  108. }
  109. .dokuwiki table.diff td.diff-addedline strong,
  110. .dokuwiki table.diff td.diff-deletedline strong {
  111. color: #f00;
  112. background-color: inherit;
  113. font-weight: bold;
  114. }
  115. /* diff options */
  116. .dokuwiki .diffoptions form {
  117. float: left;
  118. }
  119. .dokuwiki .diffoptions p {
  120. float: right;
  121. }
  122. /* diff nav */
  123. .dokuwiki table.diff_sidebyside td.diffnav {
  124. padding-bottom: .7em;
  125. }
  126. .dokuwiki .diffnav a {
  127. display: inline-block;
  128. vertical-align: middle;
  129. }
  130. .dokuwiki .diffnav a span {
  131. display: none;
  132. }
  133. .dokuwiki .diffnav a:hover,
  134. .dokuwiki .diffnav a:active,
  135. .dokuwiki .diffnav a:focus {
  136. background-color: var(--ini-background-alt);
  137. text-decoration: none;
  138. }
  139. .dokuwiki .diffnav a:before {
  140. display: inline-block;
  141. line-height: 1;
  142. padding: .2em .4em;
  143. border: 1px solid var(--ini-border);
  144. border-radius: 2px;
  145. color: var(--ini-text);
  146. }
  147. .dokuwiki .diffnav a.diffprevrev:before {
  148. content: '\25C0'; /* left triangle */
  149. }
  150. .dokuwiki .diffnav a.diffnextrev:before,
  151. .dokuwiki .diffnav a.difflastrev:before {
  152. content: '\25B6'; /* right triangle */
  153. }
  154. .dokuwiki .diffnav a.diffbothprevrev:before {
  155. content: '\25C0\25C0';
  156. }
  157. .dokuwiki .diffnav a.diffbothnextrev:before {
  158. content: '\25B6\25B6';
  159. }
  160. .dokuwiki .diffnav select {
  161. width: 60%;
  162. min-width: 9em;
  163. height: 1.5em; /* height is necessary for longer options in Webkit */
  164. }
  165. .dokuwiki .diffnav select option[selected] {
  166. font-weight: bold;
  167. }