| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- @mixin variable-font-size($basesize) {
- font-size: $basesize;
- @media (max-width: $screen-lg) {
- font-size: #{$basesize * 0.9};
- }
- @media (max-width: $screen-md) {
- font-size: #{$basesize * 0.8};
- }
- @media (max-width: $screen-sm) {
- font-size: #{$basesize * 0.7};
- }
- @media (max-width: $screen-xs) {
- font-size: #{$basesize * 0.6};
- }
- }
- @mixin expand-editor($header-plus-footer) {
- $header-plus-footer: $header-plus-footer + 2px; // add .main padding-top
- $editor-margin: $header-plus-footer //
- + 25px // add .btn-open-dropzone height
- + 30px; // add .navbar-editor height
- .main {
- width: 100%;
- height: 100vh;
- padding-top: 2px;
- padding-right: 0;
- padding-left: 0;
- margin-top: 0px !important;
- &,
- .content-main,
- .tab-content {
- display: flex;
- flex: 1;
- flex-direction: column;
- .tab-pane#edit,
- .tab-pane#hackmd {
- height: calc(100vh - #{$header-plus-footer});
- min-height: calc(100vh - #{$header-plus-footer}); // for IE11
- }
- #page-editor {
- // right(preview)
- &,
- & > .row,
- .page-editor-preview-container,
- .page-editor-preview-body {
- height: calc(100vh - #{$header-plus-footer});
- min-height: calc(100vh - #{$header-plus-footer}); // for IE11
- }
- // left(editor)
- .page-editor-editor-container {
- height: calc(100vh - #{$header-plus-footer});
- min-height: calc(100vh - #{$header-plus-footer}); // for IE11
- .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,
- .hackmd-error,
- #iframe-hackmd-container > iframe {
- width: 100vw;
- height: calc(100vh - #{$header-plus-footer});
- min-height: calc(100vh - #{$header-plus-footer}); // for IE11
- }
- }
- }
- }
- }
|