_editor.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. @use '@growi/core/scss/bootstrap/init' as bs;
  2. @use './variables' as var;
  3. @import './organisms/wiki-custom-sidebar';
  4. // global imported
  5. .layout-root.editing {
  6. overflow: hidden !important;
  7. .page-wrapper {
  8. height: 100vh;
  9. }
  10. // show
  11. .d-edit-block {
  12. display: block !important;
  13. }
  14. // hide unnecessary elements
  15. .d-edit-none {
  16. display: none !important;
  17. }
  18. /*****************
  19. * Expand Editor
  20. *****************/
  21. .dynamic-layout-root {
  22. width: calc(100vw - var.$grw-sidebar-nav-width);
  23. @extend .flex-expand-vh-100;
  24. }
  25. &.builtin-editor {
  26. /*****************
  27. * Editor styles
  28. *****************/
  29. .page-editor-editor-container {
  30. border-right: 1px solid transparent;
  31. // add icon on cursor
  32. .markdown-table-activated,
  33. .markdown-link-activated {
  34. .CodeMirror-cursor {
  35. &:after {
  36. position: relative;
  37. top: -1.1em;
  38. left: 0.3em;
  39. display: block;
  40. width: 1em;
  41. height: 1em;
  42. content: ' ';
  43. background-repeat: no-repeat;
  44. background-size: 1em;
  45. }
  46. }
  47. }
  48. .markdown-table-activated .CodeMirror-cursor {
  49. &:after {
  50. background-image: url(/images/icons/editor/table.svg);
  51. }
  52. }
  53. .markdown-link-activated .CodeMirror-cursor {
  54. &:after {
  55. background-image: url(/images/icons/editor/link.svg);
  56. }
  57. }
  58. .textarea-editor {
  59. font-family: var(--font-family-monospace);
  60. border: none;
  61. }
  62. }
  63. .page-editor-preview-container {
  64. }
  65. .page-editor-preview-body {
  66. flex-grow: 1;
  67. padding: 18px 15px 0;
  68. overflow-y: scroll;
  69. }
  70. // editing /Sidebar
  71. .page-editor-preview-body.preview-sidebar {
  72. flex-grow: 0;
  73. width: 320px;
  74. margin-right: auto;
  75. margin-left: auto;
  76. .wiki {
  77. @extend %grw-custom-sidebar-content;
  78. }
  79. }
  80. .grw-editor-configuration-dropdown {
  81. .icon-container {
  82. width: 20px;
  83. }
  84. .menuitem-label {
  85. min-width: 130px;
  86. }
  87. }
  88. }
  89. // .builtin-editor .tab-pane#edit
  90. /*****************
  91. * Toastr
  92. *****************/
  93. .Toastify .Toastify__toast-container {
  94. top: 4.5em;
  95. }
  96. }
  97. // TODO: Never used this id class
  98. #tag-edit-button-tooltip {
  99. .tooltip-inner {
  100. color: black;
  101. background-color: white;
  102. border: 1px solid bs.$gray-300;
  103. }
  104. .tooltip-arrow {
  105. border-bottom: 5px solid bs.$gray-300;
  106. }
  107. }