track-changes.less 4.6 KB

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