insomnia/app/ui/css/components/markdown-editor.less

39 lines
746 B
Plaintext
Raw Normal View History

@import '../constants/dimensions';
@import '../constants/colors';
2017-06-05 15:09:06 +00:00
@import '../constants/fonts';
.markdown-editor {
border: 1px solid var(--hl-md);
2017-06-01 23:43:27 +00:00
box-sizing: border-box;
.markdown-editor__edit {
padding: @padding-xs @padding-sm;
}
&.markdown-editor--dynamic-height {
.CodeMirror-scroll {
// Not sure why this style doesn't work on .CodeMirror...
max-height: 30vh;
}
.input {
2017-06-13 19:55:18 +00:00
height: auto !important;
}
}
&:not(.markdown-editor--dynamic-height) .markdown-editor__edit {
height: 100%;
display: grid;
grid-template-rows: 1fr auto;
.input {
height: 100%;
}
}
.markdown-editor__preview {
2017-06-05 15:09:06 +00:00
max-height: 35vh;
padding: @padding-sm;
overflow: auto;
}
}