|
@@ -11,11 +11,22 @@ body:not(.on-edit) {
|
|
|
body.on-edit {
|
|
body.on-edit {
|
|
|
|
|
|
|
|
// calculate margin
|
|
// calculate margin
|
|
|
- $header-plus-footer: 2px // .main padding-top
|
|
|
|
|
- + 42px // .nav height
|
|
|
|
|
|
|
+ $header-plus-footer: 42px // .nav height
|
|
|
+ 1px // .page-editor-footer border-top
|
|
+ 1px // .page-editor-footer border-top
|
|
|
- + 40px; // .page-editor-footer min-height
|
|
|
|
|
- $editor-margin: $header-plus-footer + 26px; // .btn-open-dropzone height
|
|
|
|
|
|
|
+ + 40px !default; // .page-editor-footer min-height
|
|
|
|
|
+
|
|
|
|
|
+ @include expand-editor($header-plus-footer);
|
|
|
|
|
+
|
|
|
|
|
+ // for growi layout
|
|
|
|
|
+ .main {
|
|
|
|
|
+ > .row {
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ > .col-lg-10, > .col-md-9 {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// hide unnecessary elements
|
|
// hide unnecessary elements
|
|
|
.navbar.navbar-static-top,
|
|
.navbar.navbar-static-top,
|
|
@@ -67,71 +78,6 @@ body.on-edit {
|
|
|
.container-fluid {
|
|
.container-fluid {
|
|
|
padding-bottom: 0;
|
|
padding-bottom: 0;
|
|
|
}
|
|
}
|
|
|
- .main {
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: 100vh;
|
|
|
|
|
- margin-top: 0px !important;
|
|
|
|
|
- padding-top: 2px;
|
|
|
|
|
- padding-left: 0;
|
|
|
|
|
- padding-right: 0;
|
|
|
|
|
-
|
|
|
|
|
- // for growi layout
|
|
|
|
|
- > .row {
|
|
|
|
|
- margin: 0;
|
|
|
|
|
- > .col-lg-10, > .col-md-9 {
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- padding: 0;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- &,
|
|
|
|
|
- .content-main,
|
|
|
|
|
- .tab-content {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- flex-direction: column;
|
|
|
|
|
- flex: 1;
|
|
|
|
|
-
|
|
|
|
|
- .tab-pane#edit, .tab-pane#hackmd {
|
|
|
|
|
- min-height: calc(100vh - #{$header-plus-footer}); // for IE11
|
|
|
|
|
- height: calc(100vh - #{$header-plus-footer});
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- #page-editor {
|
|
|
|
|
- // right(preview)
|
|
|
|
|
- &,
|
|
|
|
|
- &>.row,
|
|
|
|
|
- .page-editor-preview-container,
|
|
|
|
|
- .page-editor-preview-body {
|
|
|
|
|
- min-height: calc(100vh - #{$header-plus-footer}); // for IE11
|
|
|
|
|
- height: calc(100vh - #{$header-plus-footer});
|
|
|
|
|
- }
|
|
|
|
|
- // left(editor)
|
|
|
|
|
- .page-editor-editor-container {
|
|
|
|
|
- min-height: calc(100vh - #{$header-plus-footer}); // for IE11
|
|
|
|
|
- height: calc(100vh - #{$header-plus-footer});
|
|
|
|
|
-
|
|
|
|
|
- .react-codemirror2, .CodeMirror, .CodeMirror-scroll,
|
|
|
|
|
- .textarea-editor {
|
|
|
|
|
- height: calc(100vh - #{$editor-margin});
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @media (min-width: $screen-md) {
|
|
|
|
|
- padding-right: 0;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- #page-editor-with-hackmd {
|
|
|
|
|
- &,
|
|
|
|
|
- .hackmd-preinit, #iframe-hackmd-container > iframe {
|
|
|
|
|
- width: 100vw;
|
|
|
|
|
- min-height: calc(100vh - #{$header-plus-footer}); // for IE11
|
|
|
|
|
- height: calc(100vh - #{$header-plus-footer});
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
.row.bg-title {
|
|
.row.bg-title {
|
|
|
$left-margin: $nav-main-left-tab-width * 2 + 25px; // width of .nav-main-left-tab x 2 + some margin
|
|
$left-margin: $nav-main-left-tab-width * 2 + 25px; // width of .nav-main-left-tab x 2 + some margin
|