history-react.less 3.4 KB

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