revisions.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. @versionsListWidth:200px;
  2. @versionsListPadding:10px;
  3. #diffViewArea{
  4. position: absolute;
  5. left: @versionsListWidth + 1px;
  6. right: 0;
  7. padding: 0px 12px;
  8. overflow: scroll;
  9. height: 100%;
  10. }
  11. #historySideBar {
  12. border-right: 1px solid #999;
  13. height: 100%;
  14. width: @versionsListWidth;
  15. position: absolute;
  16. .take-snapshot-wrapper {
  17. height: 30px;
  18. text-align: center;
  19. padding: 10px;
  20. border-bottom: 1px solid #999;
  21. }
  22. #versionListArea {
  23. overflow: scroll;
  24. position: absolute;
  25. left: 0px;
  26. right: 0px;
  27. top: 51px;
  28. bottom: 0px;
  29. #version-list {
  30. margin: 0;
  31. li {
  32. a {
  33. .border-radius(0);
  34. .version-date {
  35. text-align: right;
  36. font-size: 10px;
  37. text-decoration: none;
  38. color: #666;
  39. }
  40. &:hover {
  41. background-color: #DDD;
  42. }
  43. }
  44. }
  45. li.active {
  46. a {
  47. color: white;
  48. .version-date {
  49. color: white;
  50. }
  51. &:hover {
  52. background-color: @linkColor;
  53. }
  54. }
  55. }
  56. .loading, .empty-message {
  57. margin-bottom: 100px;
  58. padding-left: 12px;
  59. }
  60. }
  61. }
  62. }
  63. #enableVersioningMessage {
  64. text-align: center;
  65. .message {
  66. font-size: 18px;
  67. margin: 12px;
  68. margin-top: 36px;
  69. }
  70. }
  71. #snapshotComment {
  72. width: 520px;
  73. }
  74. @fileDiffBorder: #D0D0D0;
  75. .diffView {
  76. h2 {
  77. margin: 6px 0 2px;
  78. }
  79. }
  80. .fileDiffView {
  81. margin-top: 12px;
  82. .fileHeader {
  83. h3 {
  84. font-weight: normal;
  85. padding-left: 6px;
  86. &.created, &.deleted {
  87. padding-left: 6px + 22px;
  88. background-repeat: no-repeat;
  89. background-position: 6px center;
  90. }
  91. &.created {
  92. background-image: url(/img/silk/created.png);
  93. }
  94. &.deleted {
  95. background-image: url(/img/silk/deleted.png);
  96. }
  97. }
  98. .nav {
  99. margin-bottom: 0
  100. }
  101. padding: 4px;
  102. border: 1px solid @fileDiffBorder;
  103. background-color: #f9f9f9;
  104. .clearfix();
  105. }
  106. .rawFileContent {
  107. .border-radius(0);
  108. border-top: none;
  109. white-space: pre-wrap;
  110. word-break: normal;
  111. background-color: white;
  112. }
  113. .binaryFileDiff {
  114. border: 1px solid @fileDiffBorder;
  115. border-top: none;
  116. background-color: #F9F9F9;
  117. text-align: center;
  118. padding: 12px 6px;
  119. }
  120. .fileMoved {
  121. line-height: @baseLineHeight * 1.5;
  122. font-size: 18px;
  123. padding-left: 6px + 20px;
  124. background-image: url(/img/silk/moved.png);
  125. background-repeat: no-repeat;
  126. background-position: 6px 4px;
  127. }
  128. table.sectionDiff {
  129. margin: 0;
  130. border: 1px solid @fileDiffBorder;
  131. border-top: none;
  132. width: 100%;
  133. background-color: white;
  134. td {
  135. vertical-align: top;
  136. line-height: @baseLineHeight;
  137. }
  138. .old_line_number, .new_line_number {
  139. border-right: 1px solid @fileDiffBorder;
  140. width: 30px;
  141. color: #999;
  142. text-align: center;
  143. }
  144. .symbol {
  145. width: 8px;
  146. }
  147. .content {
  148. white-space: pre-wrap;
  149. }
  150. tr.added {
  151. .symbol, .content {
  152. background-color: #ddffdd;
  153. color: green;
  154. }
  155. }
  156. tr.removed {
  157. .symbol, .content {
  158. background-color: #ffdddd;
  159. color: red;
  160. }
  161. }
  162. }
  163. .sectionSeparator {
  164. height: 6px;
  165. background-color: #f9f9f9;
  166. border: 1px solid @fileDiffBorder;
  167. border-top: none;
  168. }
  169. }