trackchanges.less 4.1 KB

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