history-react.less 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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: 14px;
  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. border-left: 1px solid @history-react-separator-color;
  45. box-sizing: content-box;
  46. .toggle-switch-container {
  47. padding: 0 16px;
  48. }
  49. }
  50. .toggle-switch-label {
  51. flex: 1;
  52. span {
  53. display: block;
  54. }
  55. }
  56. .history-loading-panel {
  57. padding-top: 10rem;
  58. font-family: @font-family-serif;
  59. text-align: center;
  60. }
  61. .history-file-entity-operation-badge {
  62. flex: 0 0 auto;
  63. text-transform: lowercase;
  64. margin-left: 0.5em;
  65. font-size: 0.7em;
  66. background: @history-file-badge-bg;
  67. color: @history-file-badge-color;
  68. border-radius: 8px;
  69. line-height: 1;
  70. padding: 2px 4px 3px;
  71. margin-top: 2px;
  72. }
  73. }