Add markdown-preview to expandable editor for ndoe descriptions

This commit is contained in:
Nick O'Leary
2018-09-21 17:21:04 +01:00
parent 8edf399631
commit 80a15089b4
6 changed files with 172 additions and 42 deletions

View File

@@ -56,6 +56,7 @@
}
.editor-tray-content {
overflow: auto;
position: relative;
}
.editor-tray-header {
@include disable-selection;
@@ -312,7 +313,18 @@
float: none;
text-align: right;
}
.node-input-markdown-editor #dialog-form {
margin: 0;
height: 100%;
.red-ui-panel {
&:first-child {
padding: 20px 20px 0;
}
&:last-child {
padding-bottom: 20px;
}
}
}
#clipboard-hidden {
position: absolute;
top: -3000px;

View File

@@ -17,7 +17,7 @@
.red-ui-panels {
position: relative;
overflow: hidden;
& > div {
// border: 1px solid red;
box-sizing: border-box;
@@ -38,3 +38,22 @@
overflow: auto;
height: calc(50% - 4px);
}
.red-ui-panels.red-ui-panels-horizontal {
height: 100%;
.red-ui-panel {
display: inline-block;
height: 100%;
width: calc(50% - 4px);
}
.red-ui-panels-separator {
border-top: none;
border-bottom: none;
border-left: 1px solid $secondary-border-color;
border-right: 1px solid $secondary-border-color;
height: 100%;
width: 7px;
display: inline-block;
cursor: ew-resize;
}
}