Better markdown editor preview

This commit is contained in:
Nick O'Leary
2018-10-07 14:24:32 +01:00
parent e24c22f9be
commit 6bd0682e8c
3 changed files with 43 additions and 22 deletions

View File

@@ -321,14 +321,23 @@
margin: 0;
height: 100%;
.red-ui-panel {
&:first-child {
padding: 20px 20px 0;
}
padding: 20px 20px 10px;
&:last-child {
padding-bottom: 20px;
padding-top: 60px;
background: #f9f9f9;
}
}
}
.node-input-markdown-panel-preview {
padding: 10px;
border:1px solid #ccc;
border-radius:5px;
height: calc(100% - 31px);
overflow-y: scroll;
background: #fff;
}
#clipboard-hidden {
position: absolute;
top: -3000px;

View File

@@ -131,17 +131,27 @@
@mixin workspace-button-toggle {
@include workspace-button;
color: $workspace-button-toggle-color !important;
background:$workspace-button-background-active;
margin-bottom: 1px;
&.selected:not(.disabled):not(:disabled) {
color: $workspace-button-toggle-color-selected !important;
&.single {
color: $workspace-button-color !important;
background: $workspace-button-background;
border-bottom-width: 2px;
border-bottom-color: $form-input-border-selected-color;
margin-bottom: 0;
&:not(.single) {
&.selected:not(.disabled):not(:disabled) {
color: $workspace-button-toggle-color !important;
background: $workspace-button-background-active;
}
}
&:not(.single) {
color: $workspace-button-toggle-color !important;
background:$workspace-button-background-active;
margin-bottom: 1px;
&.selected:not(.disabled):not(:disabled) {
color: $workspace-button-toggle-color-selected !important;
background: $workspace-button-background;
border-bottom-width: 2px;
border-bottom-color: $form-input-border-selected-color;
margin-bottom: 0;
cursor: default;
}
}