feat: add monaco editor and align markdown toggle in tabs
This commit is contained in:
19
styles.css
19
styles.css
@@ -316,17 +316,17 @@ textarea {
|
||||
}
|
||||
|
||||
.md-toggle {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
z-index: 2;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
position: static;
|
||||
z-index: 0;
|
||||
width: var(--top-control-btn-h);
|
||||
min-width: var(--top-control-btn-h);
|
||||
height: var(--top-control-btn-h);
|
||||
padding: 0;
|
||||
border-radius: 999px;
|
||||
font-size: 15px;
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
background: #163057;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.md-toggle.active {
|
||||
@@ -355,6 +355,11 @@ textarea {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.file-editor.monaco-host {
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.md-preview {
|
||||
background: #0b1830;
|
||||
border: 1px solid var(--line);
|
||||
|
||||
Reference in New Issue
Block a user