trackchanges.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. @changesListWidth: 250px;
  2. @changesListPadding: 10px;
  3. #trackChangesPanel {
  4. .track-changes-diff {
  5. position: absolute;
  6. right: @changesListWidth + 1px;
  7. left: 0;
  8. top: 0;
  9. bottom: 0;
  10. padding: 0px 12px;
  11. height: 100%;
  12. .ace_editor {
  13. position: absolute;
  14. top: 0;
  15. left: 0;
  16. right: 0;
  17. bottom: 0;
  18. .ace_active-line, .ace_cursor-layer, .ace_gutter-active-line {
  19. display: none;
  20. }
  21. }
  22. }
  23. .track-changes-side-bar {
  24. border-left: 1px solid #999;
  25. height: 100%;
  26. width: @changesListWidth;
  27. position: absolute;
  28. right: 0;
  29. background-color: white;
  30. .track-changes-header {
  31. background-color: #282828;
  32. h3 {
  33. color: white;
  34. padding-left: 8px;
  35. font-size: 1.2em;
  36. }
  37. a {
  38. color: white;
  39. position: absolute;
  40. top: 6px;
  41. right: 8px;
  42. }
  43. height: 30px;
  44. }
  45. .change-list-area {
  46. overflow: scroll;
  47. position: absolute;
  48. left: 0px;
  49. right: 0px;
  50. top: 30px;
  51. bottom: 0px;
  52. }
  53. }
  54. .deleted-change-background,
  55. .deleted-change-foreground,
  56. .inserted-change-background,
  57. .change-name-marker,
  58. .changes-before,
  59. .changes-after {
  60. position: absolute;
  61. z-index: 2;
  62. }
  63. .change-name-marker {
  64. font-size: 0.8em;
  65. padding: 2px 6px;
  66. .border-radius(3px 3px 3px 3px);
  67. position: absolute;
  68. border: 1px solid #999;
  69. left: 0;
  70. white-space: pre;
  71. }
  72. .changes-before {
  73. top: 6px;
  74. right: 6px;
  75. }
  76. .changes-after {
  77. bottom: 6px;
  78. right: 6px;
  79. }
  80. .changes-before, .changes-after {
  81. padding: 4px 8px;
  82. background-color: #eee;
  83. border: 1px solid #999;
  84. .border-radius(3px);
  85. }
  86. ul.change-list {
  87. li {
  88. position: relative;
  89. border-bottom: 1px solid #ccc;
  90. cursor: pointer;
  91. user-select: none;
  92. -ms-user-select: none;
  93. -moz-user-select: none;
  94. -webkit-user-select: none;
  95. .change-selectors {
  96. .change-selector-from {
  97. position: absolute;
  98. bottom: 5px;
  99. left: 8px;
  100. opacity: 0.8;
  101. }
  102. .change-selector-to {
  103. position: absolute;
  104. top: 5px;
  105. left: 8px;
  106. opacity: 0.8;
  107. }
  108. .range {
  109. position: absolute;
  110. left: 12px;
  111. width: 4px;
  112. top: 0;
  113. bottom: 0;
  114. }
  115. }
  116. .change-description {
  117. padding: 6px 4px 6px 30px;
  118. min-height: 38px;
  119. }
  120. .change-name {
  121. font-size: 0.9em;
  122. color: #666;
  123. text-transform: capitalize;
  124. }
  125. .color-square {
  126. display: inline-block;
  127. height: 10px;
  128. width: 10px;
  129. margin-right: 4px;
  130. margin-bottom: -1px;
  131. }
  132. .restore {
  133. a {
  134. display: block;
  135. padding: 4px;
  136. text-align: center;
  137. border-top: 1px solid #ccc;
  138. }
  139. display: none;
  140. }
  141. &:hover {
  142. background-color: #eaeaea;
  143. }
  144. }
  145. li.loading-changes, li.empty-message {
  146. padding: 6px;
  147. }
  148. li.selected {
  149. background-color: #eaeaea;
  150. .change-selectors {
  151. .range {
  152. background-color: rgb(0, 143, 255);
  153. }
  154. }
  155. }
  156. li.selected-to {
  157. .change-selectors {
  158. .range {
  159. top: 10px;
  160. }
  161. .change-selector-to {
  162. opacity: 1;
  163. }
  164. }
  165. }
  166. li.selected-from {
  167. .change-selectors {
  168. .range {
  169. bottom: 37px;
  170. }
  171. .change-selector-from {
  172. opacity: 1;
  173. bottom: 32px;
  174. }
  175. }
  176. .restore {
  177. display: block;
  178. }
  179. }
  180. }
  181. ul.change-list.hover-state {
  182. li {
  183. .change-selectors {
  184. .range {
  185. background-color: transparent;
  186. top: 0;
  187. bottom: 0;
  188. }
  189. }
  190. }
  191. li.hover-selected {
  192. .change-selectors {
  193. .range {
  194. background-color: #999;
  195. }
  196. }
  197. }
  198. li.hover-selected-to {
  199. .change-selectors {
  200. .range {
  201. top: 10px;
  202. }
  203. .change-selector-to {
  204. opacity: 1;
  205. }
  206. }
  207. }
  208. li.hover-selected-from {
  209. .change-selectors {
  210. .range {
  211. bottom: 10px;
  212. }
  213. .change-selector-from {
  214. opacity: 1;
  215. }
  216. }
  217. }
  218. li.selected-from.hover-selected-from {
  219. .change-selectors {
  220. .range {
  221. bottom: 37px;
  222. }
  223. }
  224. }
  225. }
  226. }