You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.0 KiB
Plaintext
103 lines
2.0 KiB
Plaintext
8 years ago
|
@import "/customize/src/less/variables.less";
|
||
|
@import "/customize/src/less/mixins.less";
|
||
8 years ago
|
@import "/common/markdown.less";
|
||
8 years ago
|
@import "/common/file-dialog.less";
|
||
8 years ago
|
|
||
|
html, body{
|
||
|
height: 100%;
|
||
|
width: 100%;
|
||
|
padding: 0px;
|
||
|
margin: 0px;
|
||
|
overflow: hidden;
|
||
|
box-sizing: border-box;
|
||
|
position: relative;
|
||
|
}
|
||
|
body {
|
||
|
display: flex;
|
||
|
flex-flow: column;
|
||
|
max-height: 100%;
|
||
|
min-height: auto;
|
||
|
}
|
||
8 years ago
|
|
||
|
@slideTime: 500ms;
|
||
8 years ago
|
.CodeMirror {
|
||
|
display: inline-block;
|
||
|
height: 100%;
|
||
|
width: 50%;
|
||
8 years ago
|
&.transition {
|
||
|
transition: width @slideTime, min-width @slideTime, max-width @slideTime;
|
||
|
}
|
||
8 years ago
|
min-width: 20%;
|
||
|
max-width: 80%;
|
||
|
resize: horizontal;
|
||
7 years ago
|
font-size: initial;
|
||
8 years ago
|
}
|
||
|
.CodeMirror.fullPage {
|
||
8 years ago
|
//min-width: 100%;
|
||
8 years ago
|
max-width: 100%;
|
||
|
resize: none;
|
||
8 years ago
|
flex: 1;
|
||
8 years ago
|
}
|
||
|
.CodeMirror-focused .cm-matchhighlight {
|
||
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);
|
||
|
background-position: bottom;
|
||
|
background-repeat: repeat-x;
|
||
|
}
|
||
|
#editorContainer {
|
||
|
flex: 1;
|
||
|
display: flex;
|
||
|
flex-flow: row;
|
||
|
height: 100%;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
#previewContainer {
|
||
|
flex: 1;
|
||
|
padding: 5px 20px;
|
||
|
overflow: auto;
|
||
|
display: inline-block;
|
||
|
height: 100%;
|
||
|
border-left: 1px solid black;
|
||
|
box-sizing: border-box;
|
||
|
font-family: Calibri,Ubuntu,sans-serif;
|
||
|
word-wrap: break-word;
|
||
7 years ago
|
position: relative;
|
||
7 years ago
|
media-tag {
|
||
|
* {
|
||
|
max-width:100%;
|
||
|
}
|
||
|
iframe[type="application/pdf"] {
|
||
|
max-height:50vh;
|
||
|
}
|
||
8 years ago
|
}
|
||
8 years ago
|
}
|
||
|
|
||
|
#preview {
|
||
|
max-width: 40vw;
|
||
7 years ago
|
margin: 1em auto;
|
||
8 years ago
|
|
||
8 years ago
|
.markdown_preformatted-code;
|
||
|
.markdown_gfm-table(black);
|
||
8 years ago
|
}
|
||
|
|
||
7 years ago
|
.cp-splitter {
|
||
|
position: absolute;
|
||
|
height: 100%;
|
||
|
width: 8px;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
|
||
|
cursor: col-resize;
|
||
|
}
|
||
|
|
||
8 years ago
|
@media (max-width: @media-medium-screen) {
|
||
8 years ago
|
.CodeMirror {
|
||
|
flex: 1;
|
||
|
max-width: 100%;
|
||
|
resize: none;
|
||
|
}
|
||
|
#previewContainer {
|
||
|
display: none !important;
|
||
|
}
|
||
|
}
|
||
|
|