trackchanges.less 5.7 KB

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