@use '@growi/core/scss/bootstrap/init' as bs; @use './variables' as var; @import './organisms/wiki-custom-sidebar'; // global imported .layout-root.editing { overflow-y: hidden !important; .page-wrapper { top: 0; height: 100vh; } // show .d-edit-block { display: block !important; } // hide unnecessary elements .d-edit-none { display: none !important; } /***************** * Expand Editor *****************/ .grw-editor-navbar-bottom { height: var.$grw-editor-navbar-bottom-height; .grw-grant-selector { @include bs.media-breakpoint-down(sm) { .btn .label { display: none; } } @include bs.media-breakpoint-up(md) { .dropdown-toggle { min-width: 100px; // caret &::after { margin-left: 1em; } } } } .btn-submit { width: 100px; } .btn-expand { // rotate icon i { display: inline-block; transition: transform 200ms; } &.expand i { transform: rotate(-180deg); } } } /********************* * Navigation styles */ .grw-subnav { padding-bottom: 0; h1 { font-size: 16px; } .grw-drawer-toggler { width: 38px; height: 38px; font-size: 18px; } } .grw-copy-dropdown { .btn-copy { padding: 3px !important; // overwrite padding } } &.builtin-editor { /***************** * Editor styles *****************/ .page-editor-editor-container { border-right: 1px solid transparent; // add icon on cursor .markdown-table-activated, .markdown-link-activated { .CodeMirror-cursor { &:after { position: relative; top: -1.1em; left: 0.3em; display: block; width: 1em; height: 1em; content: ' '; background-repeat: no-repeat; background-size: 1em; } } } .markdown-table-activated .CodeMirror-cursor { &:after { background-image: url(/images/icons/editor/table.svg); } } .markdown-link-activated .CodeMirror-cursor { &:after { background-image: url(/images/icons/editor/link.svg); } } .textarea-editor { font-family: var(--font-family-monospace); border: none; } } .page-editor-preview-container { } .page-editor-preview-body { flex-grow: 1; padding: 18px 15px 0; overflow-y: scroll; } // editing /Sidebar .page-editor-preview-body.preview-sidebar { flex-grow: 0; width: 320px; margin-right: auto; margin-left: auto; .wiki { @extend %grw-custom-sidebar-content; } } .grw-editor-configuration-dropdown { .icon-container { width: 20px; } .menuitem-label { min-width: 130px; } } } // .builtin-editor .tab-pane#edit /***************** * Toastr *****************/ .Toastify .Toastify__toast-container { top: 4.5em; } } .layout-root.editing { &:not(.growi-layout-fluid) .page-editor-preview-body { .wiki { max-width: 980px; margin: 0 auto; } } &.growi-layout-fluid .page-editor-preview-body { .wiki { margin: 0 auto; } } } // TODO: Never used this id class #tag-edit-button-tooltip { .tooltip-inner { color: black; background-color: white; border: 1px solid bs.$gray-300; } .tooltip-arrow { border-bottom: 5px solid bs.$gray-300; } }