history-react.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. @versions-list-width: 320px;
  2. @history-toolbar-height: 40px;
  3. history-root {
  4. height: 100%;
  5. display: block;
  6. }
  7. .history-react {
  8. display: flex;
  9. height: 100%;
  10. background-color: @history-main-bg;
  11. .history-header {
  12. height: @history-toolbar-height;
  13. background-color: @history-react-header-bg;
  14. color: @history-react-header-color;
  15. font-size: @font-size-small;
  16. display: flex;
  17. flex-direction: column;
  18. justify-content: center;
  19. box-sizing: border-box;
  20. }
  21. .doc-panel {
  22. flex: 1;
  23. display: flex;
  24. flex-direction: column;
  25. .toolbar-container {
  26. border-bottom: 1px solid @history-react-separator-color;
  27. padding: 0 8px;
  28. }
  29. .doc-container {
  30. flex: 1;
  31. overflow-y: auto;
  32. }
  33. }
  34. .change-list {
  35. width: @versions-list-width;
  36. font-size: @font-size-small;
  37. border-left: 1px solid @history-react-separator-color;
  38. box-sizing: content-box;
  39. }
  40. .toggle-switch-label {
  41. flex: 1;
  42. span {
  43. display: block;
  44. }
  45. }
  46. .history-toggle-switch-container,
  47. .history-version-day,
  48. .history-version-details {
  49. padding: 0 16px;
  50. }
  51. .history-version-day {
  52. position: sticky;
  53. top: 0;
  54. display: block;
  55. padding-top: 12px;
  56. padding-bottom: 4px;
  57. line-height: 20px;
  58. background-color: @white;
  59. }
  60. .history-version-details {
  61. padding-top: 8px;
  62. padding-bottom: 8px;
  63. &:hover {
  64. cursor: pointer;
  65. background-color: @neutral-10;
  66. }
  67. }
  68. .history-version-metadata-time {
  69. display: block;
  70. margin-bottom: 4px;
  71. color: @neutral-90;
  72. &:last-child {
  73. margin-bottom: initial;
  74. }
  75. }
  76. .history-version-metadata-users,
  77. .history-version-changes {
  78. margin: 0;
  79. padding: 0;
  80. list-style: none;
  81. }
  82. .history-version-metadata-users {
  83. display: inline;
  84. > li {
  85. display: inline-flex;
  86. align-items: center;
  87. margin-right: 8px;
  88. }
  89. }
  90. .history-version-changes {
  91. > li {
  92. margin-bottom: 4px;
  93. }
  94. }
  95. .history-version-user-badge-color {
  96. @size: 8px;
  97. display: inline-block;
  98. width: @size;
  99. height: @size;
  100. margin-right: 4px;
  101. border-radius: 2px;
  102. }
  103. .history-version-day,
  104. .history-version-change-action,
  105. .history-version-metadata-users,
  106. .history-version-origin,
  107. .history-version-saved-by {
  108. color: @neutral-70;
  109. }
  110. .history-version-change-doc {
  111. color: @neutral-90;
  112. }
  113. .history-version-divider {
  114. margin: 6px 8px;
  115. border-color: @neutral-20;
  116. }
  117. .history-version-badge {
  118. margin-bottom: 4px;
  119. margin-right: 10px;
  120. }
  121. .history-version-saved-by {
  122. margin-bottom: 4px;
  123. &-label {
  124. margin-right: 8px;
  125. }
  126. &:last-child {
  127. margin-bottom: initial;
  128. }
  129. }
  130. .history-loading-panel {
  131. padding-top: 10rem;
  132. font-family: @font-family-serif;
  133. text-align: center;
  134. }
  135. .history-file-entity-operation-badge {
  136. flex: 0 0 auto;
  137. text-transform: lowercase;
  138. margin-left: 0.5em;
  139. font-size: 0.7em;
  140. background: @history-file-badge-bg;
  141. color: @history-file-badge-color;
  142. border-radius: 8px;
  143. line-height: 1;
  144. padding: 2px 4px 3px;
  145. margin-top: 2px;
  146. }
  147. }
  148. .history-version-label-tooltip {
  149. padding: 6px;
  150. text-align: initial;
  151. &-row {
  152. margin-bottom: 6.25px;
  153. &:last-child {
  154. margin-bottom: initial;
  155. }
  156. }
  157. }
  158. .document-diff-container {
  159. height: 100%;
  160. display: flex;
  161. flex-direction: column;
  162. position: relative;
  163. .cm-viewer-container,
  164. .cm-editor {
  165. height: 100%;
  166. }
  167. .previous-highlight-button,
  168. .next-highlight-button {
  169. position: absolute;
  170. right: 16px;
  171. }
  172. .previous-highlight-button {
  173. top: 16px;
  174. }
  175. .next-highlight-button {
  176. bottom: 16px;
  177. }
  178. }