history-react.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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: 6px;
  70. padding-bottom: 6px;
  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. font-weight: bold;
  80. color: @neutral-90;
  81. }
  82. .history-version-metadata-users,
  83. .history-version-changes {
  84. margin: 0;
  85. padding: 0;
  86. list-style: none;
  87. }
  88. .history-version-metadata-users {
  89. display: inline;
  90. > li {
  91. display: inline-flex;
  92. align-items: center;
  93. margin-right: 8px;
  94. }
  95. }
  96. .history-version-changes {
  97. > li {
  98. margin-bottom: 4px;
  99. }
  100. }
  101. .history-version-user-badge-color {
  102. @size: 8px;
  103. display: inline-block;
  104. width: @size;
  105. height: @size;
  106. margin-right: 4px;
  107. border-radius: 2px;
  108. }
  109. .history-version-day,
  110. .history-version-change-action,
  111. .history-version-metadata-users,
  112. .history-version-origin {
  113. color: @neutral-70;
  114. }
  115. .history-version-change-doc {
  116. color: @neutral-90;
  117. }
  118. .history-version-divider {
  119. margin: 6px 8px;
  120. border-color: @neutral-20;
  121. }
  122. .history-version-badge {
  123. display: inline-flex;
  124. align-items: center;
  125. overflow: hidden;
  126. height: 24px;
  127. margin-bottom: 3px;
  128. margin-right: 10px;
  129. padding: 4px;
  130. white-space: nowrap;
  131. color: @ol-blue-gray-6;
  132. background-color: @neutral-20;
  133. border-radius: 4px;
  134. &-comment {
  135. margin-left: 2px;
  136. }
  137. }
  138. .history-version-label-delete-btn {
  139. .reset-button;
  140. marigin-left: 8px;
  141. padding: 4px;
  142. font-size: 24px;
  143. }
  144. .history-loading-panel {
  145. padding-top: 10rem;
  146. font-family: @font-family-serif;
  147. text-align: center;
  148. }
  149. .history-file-entity-operation-badge {
  150. flex: 0 0 auto;
  151. text-transform: lowercase;
  152. margin-left: 0.5em;
  153. font-size: 0.7em;
  154. background: @history-file-badge-bg;
  155. color: @history-file-badge-color;
  156. border-radius: 8px;
  157. line-height: 1;
  158. padding: 2px 4px 3px;
  159. margin-top: 2px;
  160. }
  161. }
  162. .history-version-label-tooltip {
  163. padding: 6px;
  164. text-align: initial;
  165. &-row {
  166. margin-bottom: 6.25px;
  167. &:last-child {
  168. margin-bottom: initial;
  169. }
  170. }
  171. }