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.

162 lines
3.1 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. div > p:first-child {
  2. margin-top: 0;
  3. }
  4. div > p:last-child {
  5. margin-bottom: 0;
  6. }
  7. #diff {
  8. border: 0;
  9. margin: 0;
  10. padding: 0;
  11. white-space: nowrap;
  12. }
  13. #diff > .pane {
  14. border: 0;
  15. box-sizing: box-border;
  16. display: inline-block;
  17. margin: 0;
  18. padding: 0;
  19. position: relative;
  20. vertical-align: top;
  21. white-space: normal;
  22. width: calc(50% - 2px);
  23. }
  24. #diff > .pane > div {
  25. padding: 0 0 1em 0;
  26. text-align: center;
  27. }
  28. #diff > .pane > div > span {
  29. float: left;
  30. }
  31. body[dir="ltr"] #revertButton:after {
  32. content: '\2009\f061';
  33. font-family: FontAwesome;
  34. font-style: normal;
  35. font-weight: normal;
  36. line-height: 1;
  37. vertical-align: baseline;
  38. display: inline-block;
  39. }
  40. body[dir="rtl"] #revertButton:after {
  41. content: '\2009\f060';
  42. font-family: FontAwesome;
  43. font-style: normal;
  44. font-weight: normal;
  45. line-height: 1;
  46. vertical-align: baseline;
  47. display: inline-block;
  48. }
  49. body[dir="ltr"] #commitButton:before {
  50. content: '\f060\2009';
  51. font-family: FontAwesome;
  52. font-style: normal;
  53. font-weight: normal;
  54. line-height: 1;
  55. vertical-align: baseline;
  56. display: inline-block;
  57. }
  58. body[dir="rtl"] #commitButton:before {
  59. content: '\f061\2009';
  60. font-family: FontAwesome;
  61. font-style: normal;
  62. font-weight: normal;
  63. line-height: 1;
  64. vertical-align: baseline;
  65. display: inline-block;
  66. }
  67. #revertButton,
  68. #commitButton,
  69. #diff.edit #editEnterButton {
  70. opacity: 0.25;
  71. pointer-events: none;
  72. }
  73. #editStopButton,
  74. #editCancelButton {
  75. display: none;
  76. }
  77. #diff.dirty:not(.edit) #revertButton,
  78. #diff.dirty:not(.edit) #commitButton {
  79. opacity: 1;
  80. pointer-events: auto;
  81. }
  82. #diff.edit #editStopButton,
  83. #diff.edit #editCancelButton {
  84. display: initial;
  85. }
  86. #diff.edit #importButton,
  87. #diff.edit #exportButton {
  88. display: none;
  89. }
  90. #diff ul {
  91. border: 0;
  92. border-top: 1px solid #eee;
  93. list-style-type: none;
  94. margin: 0;
  95. overflow: hidden;
  96. padding: 1em 0 0 0;
  97. }
  98. #diff ul,
  99. #diff textarea {
  100. font: 12px/1.8 monospace;
  101. }
  102. #diff.edit .right ul {
  103. visibility: hidden;
  104. }
  105. #diff .left {
  106. padding: 0 0 0 0;
  107. }
  108. #diff .right > ul {
  109. color: #888;
  110. }
  111. #diff li {
  112. background-color: white;
  113. direction: ltr;
  114. padding: 0;
  115. text-align: left;
  116. white-space: nowrap;
  117. }
  118. #diff li:nth-of-type(2n+0) {
  119. background-color: #eee;
  120. }
  121. #diff .right li {
  122. cursor: pointer;
  123. }
  124. #diff .right li:hover {
  125. background-color: #ffc;
  126. color: #000;
  127. }
  128. #diff .right li.notLeft {
  129. color: #000;
  130. }
  131. #diff .right li.notLeft:hover {
  132. text-decoration: line-through;
  133. }
  134. #diff .right li.notRight {
  135. color: #000;
  136. }
  137. #diff .right li.toRemove {
  138. color: #000;
  139. text-decoration: line-through;
  140. }
  141. #diff textarea {
  142. border: 0;
  143. border-top: 1px solid #eee;
  144. direction: ltr;
  145. height: 100%;
  146. left: 0;
  147. margin: 0;
  148. overflow: hidden;
  149. overflow-y: auto;
  150. padding: 1em 0 0 0;
  151. position: absolute;
  152. resize: none;
  153. visibility: hidden;
  154. white-space: pre;
  155. width: 100%;
  156. }
  157. #diff.edit textarea {
  158. visibility: visible;
  159. }
  160. .hidden {
  161. display: none;
  162. }