track-changes.less 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. @changesListWidth: 250px;
  2. @changesListPadding: @line-height-computed / 2;
  3. @selector-padding-vertical: 10px;
  4. @selector-padding-horizontal: @line-height-computed / 2;
  5. @day-header-height: 24px;
  6. @range-bar-color: @link-color;
  7. @range-bar-selected-offset: 14px;
  8. #trackChanges {
  9. .upgrade-prompt {
  10. position: absolute;
  11. top: 0;
  12. bottom: 0;
  13. left: 0;
  14. right: 0;
  15. z-index: 100;
  16. background-color: rgba(128,128,128,0.4);
  17. .message {
  18. margin: auto;
  19. margin-top: 100px;
  20. padding: 10px 10px 14px 10px;
  21. width: 500px;
  22. font-weight: bold;
  23. text-align: center;
  24. background-color: white;
  25. border-radius: 8px;
  26. }
  27. }
  28. .diff-panel {
  29. .full-size;
  30. margin-right: @changesListWidth;
  31. }
  32. .diff {
  33. .full-size;
  34. .toolbar {
  35. padding: 3px;
  36. .name {
  37. float: left;
  38. padding: 3px @line-height-computed / 4;
  39. display: inline-block;
  40. }
  41. }
  42. .diff-editor {
  43. .full-size;
  44. top: 40px;
  45. }
  46. .hide-ace-cursor {
  47. .ace_active-line, .ace_cursor-layer, .ace_gutter-active-line {
  48. display: none;
  49. }
  50. }
  51. .diff-deleted {
  52. padding: @line-height-computed;
  53. }
  54. }
  55. aside.change-list {
  56. border-left: 1px solid @toolbar-border-color;
  57. height: 100%;
  58. width: @changesListWidth;
  59. position: absolute;
  60. right: 0;
  61. background-color: white;
  62. .loading {
  63. text-align: center;
  64. font-family: @font-family-serif;
  65. }
  66. ul {
  67. li.change {
  68. position: relative;
  69. user-select: none;
  70. -ms-user-select: none;
  71. -moz-user-select: none;
  72. -webkit-user-select: none;
  73. .day {
  74. background-color: #fafafa;
  75. border-bottom: 1px solid @toolbar-border-color;
  76. padding: 4px;
  77. font-weight: bold;
  78. text-align: center;
  79. height: @day-header-height;
  80. font-size: 14px;
  81. line-height: 1;
  82. }
  83. .selectors {
  84. input {
  85. margin: 0;
  86. }
  87. position: absolute;
  88. left: @selector-padding-horizontal;
  89. top: 0;
  90. bottom: 0;
  91. width: 24px;
  92. .selector-from {
  93. position: absolute;
  94. bottom: @selector-padding-vertical;
  95. left: 0;
  96. opacity: 0.8;
  97. }
  98. .selector-to {
  99. position: absolute;
  100. top: @selector-padding-vertical;
  101. left: 0;
  102. opacity: 0.8;
  103. }
  104. .range {
  105. position: absolute;
  106. left: 5px;
  107. width: 4px;
  108. top: 0;
  109. bottom: 0;
  110. }
  111. }
  112. .description {
  113. padding: (@line-height-computed / 4);
  114. padding-left: 38px;
  115. min-height: 38px;
  116. border-bottom: 1px solid @toolbar-border-color;
  117. cursor: pointer;
  118. &:hover {
  119. background-color: @gray-lightest;
  120. }
  121. }
  122. .users {
  123. .user {
  124. font-size: 0.8rem;
  125. color: @gray;
  126. text-transform: capitalize;
  127. position: relative;
  128. padding-left: 16px;
  129. .color-square {
  130. height: 12px;
  131. width: 12px;
  132. border-radius: 3px;
  133. position: absolute;
  134. top: 3px;
  135. left: 0;
  136. }
  137. .name {
  138. display: inline-block;
  139. }
  140. }
  141. }
  142. .time {
  143. float: right;
  144. color: @gray;
  145. display: inline-block;
  146. padding-right: (@line-height-computed / 2);
  147. font-size: 0.8rem;
  148. line-height: @line-height-computed;
  149. }
  150. .docs {
  151. font-weight: bold;
  152. font-size: 0.9rem;
  153. }
  154. }
  155. li.loading-changes, li.empty-message {
  156. padding: 6px;
  157. cursor: default;
  158. &:hover {
  159. background-color: inherit;
  160. }
  161. }
  162. li.selected {
  163. border-left: 4px solid @range-bar-color;
  164. .day {
  165. padding-left: 0;
  166. }
  167. .description {
  168. padding-left: 34px;
  169. }
  170. .selectors {
  171. left: @selector-padding-horizontal - 4px;
  172. .range {
  173. background-color: @range-bar-color;
  174. }
  175. }
  176. }
  177. li.selected-to {
  178. .selectors {
  179. .range {
  180. top: @range-bar-selected-offset;
  181. }
  182. .selector-to {
  183. opacity: 1;
  184. }
  185. }
  186. }
  187. li.selected-from {
  188. .selectors {
  189. .range {
  190. bottom: @range-bar-selected-offset;
  191. }
  192. .selector-from {
  193. opacity: 1;
  194. }
  195. }
  196. }
  197. li.first-in-day {
  198. .selectors {
  199. .selector-to {
  200. top: @day-header-height + @selector-padding-vertical;
  201. }
  202. }
  203. }
  204. li.first-in-day.selected-to {
  205. .selectors {
  206. .range {
  207. top: @day-header-height + @range-bar-selected-offset;
  208. }
  209. }
  210. }
  211. }
  212. ul.hover-state {
  213. li {
  214. .selectors {
  215. .range {
  216. background-color: transparent;
  217. top: 0;
  218. bottom: 0;
  219. }
  220. }
  221. }
  222. li.hover-selected {
  223. .selectors {
  224. .range {
  225. top: 0;
  226. background-color: @gray-light;
  227. }
  228. }
  229. }
  230. li.hover-selected-to {
  231. .selectors {
  232. .range {
  233. top: @range-bar-selected-offset;
  234. }
  235. .selector-to {
  236. opacity: 1;
  237. }
  238. }
  239. }
  240. li.hover-selected-from {
  241. .selectors {
  242. .range {
  243. bottom: @range-bar-selected-offset;
  244. }
  245. .selector-from {
  246. opacity: 1;
  247. }
  248. }
  249. }
  250. li.first-in-day.hover-selected-to {
  251. .selectors {
  252. .range {
  253. top: @day-header-height + @range-bar-selected-offset;
  254. }
  255. }
  256. }
  257. }
  258. }
  259. }