trackchanges.less 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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. .track-changes-upgrade-control, .track-changes-upgrade-popup {
  78. position: absolute;
  79. top: 0;
  80. bottom: 0;
  81. left: 0;
  82. right: 0;
  83. z-index: 100;
  84. }
  85. .track-changes-upgrade-popup {
  86. background-color: rgba(128,128,128,0.4);
  87. .message {
  88. margin: auto;
  89. margin-top: 200px;
  90. padding: 10px 10px 14px 10px;
  91. width: 400px;
  92. font-weight: bold;
  93. text-align: center;
  94. background-color: white;
  95. .border-radius(8px);
  96. }
  97. }
  98. .track-changes-upgrade-control {
  99. background-color: #eeeeee;
  100. text-align: center;
  101. .message {
  102. font-size: 18px;
  103. margin: 12px;
  104. margin-top: 36px;
  105. }
  106. }
  107. .deleted-change-background,
  108. .deleted-change-foreground,
  109. .inserted-change-background,
  110. .change-name-marker,
  111. .changes-before,
  112. .changes-after {
  113. position: absolute;
  114. z-index: 2;
  115. }
  116. .change-name-marker {
  117. font-size: 0.8em;
  118. padding: 2px 6px;
  119. .border-radius(3px 3px 3px 3px);
  120. position: absolute;
  121. border: 1px solid #999;
  122. left: 0;
  123. white-space: pre;
  124. }
  125. .changes-before {
  126. top: 6px;
  127. right: 6px;
  128. }
  129. .changes-after {
  130. bottom: 6px;
  131. right: 6px;
  132. }
  133. .changes-before, .changes-after {
  134. padding: 4px 8px;
  135. background-color: #eee;
  136. border: 1px solid #999;
  137. .border-radius(3px);
  138. }
  139. ul.change-list {
  140. li {
  141. position: relative;
  142. border-bottom: 1px solid #ccc;
  143. cursor: pointer;
  144. user-select: none;
  145. -ms-user-select: none;
  146. -moz-user-select: none;
  147. -webkit-user-select: none;
  148. .track-changes-date-header {
  149. border-bottom: 1px solid #ccc;
  150. padding: 2px;
  151. font-weight: bold;
  152. text-align: center;
  153. height: 19px;
  154. display: none;
  155. }
  156. .change-selectors {
  157. .change-selector-from {
  158. position: absolute;
  159. bottom: 5px;
  160. left: 8px;
  161. opacity: 0.8;
  162. }
  163. .change-selector-to {
  164. position: absolute;
  165. top: 5px;
  166. left: 8px;
  167. opacity: 0.8;
  168. }
  169. .range {
  170. position: absolute;
  171. left: 12px;
  172. width: 4px;
  173. top: 0;
  174. bottom: 0;
  175. }
  176. }
  177. .change-description {
  178. padding: 6px 4px 6px 30px;
  179. min-height: 38px;
  180. }
  181. .change-name {
  182. font-size: 11px;
  183. color: #666;
  184. text-transform: capitalize;
  185. }
  186. .change-time {
  187. float: right;
  188. color: #666;
  189. font-size: 12px;
  190. display: inline-block;
  191. padding-right: 6px;
  192. }
  193. .color-square {
  194. display: inline-block;
  195. height: 10px;
  196. width: 10px;
  197. margin-right: 4px;
  198. margin-bottom: -1px;
  199. }
  200. .changed-docs {
  201. font-weight: bold;
  202. }
  203. .restore {
  204. a {
  205. display: block;
  206. padding: 4px;
  207. text-align: center;
  208. border-top: 1px solid #ccc;
  209. }
  210. display: none;
  211. }
  212. &:hover {
  213. background-color: #eaeaea;
  214. }
  215. }
  216. li.loading-changes, li.empty-message {
  217. padding: 6px;
  218. cursor: default;
  219. &:hover {
  220. background-color: inherit;
  221. }
  222. }
  223. li.selected-change {
  224. background-color: #eaeaea;
  225. .change-selectors {
  226. .range {
  227. background-color: rgb(0, 143, 255);
  228. }
  229. }
  230. }
  231. li.selected-change-to {
  232. .change-selectors {
  233. .range {
  234. top: 10px;
  235. }
  236. .change-selector-to {
  237. opacity: 1;
  238. }
  239. }
  240. }
  241. li.selected-change-from {
  242. .change-selectors {
  243. .range {
  244. bottom: 10px;
  245. }
  246. .change-selector-from {
  247. opacity: 1;
  248. }
  249. }
  250. .restore {
  251. display: block;
  252. }
  253. }
  254. li.first-in-day {
  255. .track-changes-date-header {
  256. display: block;
  257. }
  258. .change-selectors {
  259. .change-selector-to {
  260. top: 28px;
  261. }
  262. }
  263. }
  264. li.first-in-day.selected-change-to {
  265. .change-selectors {
  266. .range {
  267. top: 33px;
  268. }
  269. }
  270. }
  271. li.track-changes-upgrade-oneweek {
  272. padding: 15px;
  273. background-color: rgb(255, 251, 210);
  274. cursor: default;
  275. }
  276. }
  277. ul.change-list.hover-state {
  278. li {
  279. .change-selectors {
  280. .range {
  281. background-color: transparent;
  282. top: 0;
  283. bottom: 0;
  284. }
  285. }
  286. }
  287. li.hover-selected {
  288. .change-selectors {
  289. .range {
  290. top: 0;
  291. background-color: #999;
  292. }
  293. }
  294. }
  295. li.hover-selected-to {
  296. .change-selectors {
  297. .range {
  298. top: 10px;
  299. }
  300. .change-selector-to {
  301. opacity: 1;
  302. }
  303. }
  304. }
  305. li.hover-selected-from {
  306. .change-selectors {
  307. .range {
  308. bottom: 10px;
  309. }
  310. .change-selector-from {
  311. opacity: 1;
  312. }
  313. }
  314. }
  315. li.first-in-day.hover-selected-to {
  316. .change-selectors {
  317. .range {
  318. top: 33px;
  319. }
  320. }
  321. }
  322. }
  323. }