_editor.scss 2.0 KB

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