[refactor] separate some editor styles .

pull/774/head
charlie 2020-11-28 15:38:00 +08:00
parent 2e60a8085e
commit 54ef3aa574
2 changed files with 45 additions and 19 deletions

View File

@ -236,25 +236,6 @@ li {
white-space: pre-line;
}
.editor textarea {
border: none;
border-radius: 0;
background: transparent;
padding: 0;
}
.non-block-editor textarea, pre {
display: block;
padding: 0.5rem;
box-shadow: 0 0 0 1px rgba(0, 0, 0, .02);
border-radius: 4px;
}
.non-block-editor textarea {
background: #F6F8FA;
background: var(--ls-secondary-background-color);
}
pre {
background: #F6F8FA;
background: var(--ls-secondary-background-color);
@ -1455,6 +1436,23 @@ a.tag:hover {
padding: 5px;
}
// auto complete
#ui__ac {
@apply py-1 rounded-md shadow-xs bg-base-3;
}
#ui__ac-inner {
max-height: 400px;
overflow-x: hidden;
overflow-y: auto;
position: relative;
-webkit-overflow-scrolling: touch;
> .menu-link {
padding: 6px 0;
}
}
/* endregion */
/* Hide scrollbar for IE, Edge and Firefox */

View File

@ -0,0 +1,28 @@
.editor-wrapper {
}
.editor-inner {
position: relative;
display: flex;
}
.editor-inner textarea {
border: none;
border-radius: 0;
background: transparent;
padding: 0;
}
.non-block-editor textarea, pre {
display: block;
padding: 0.5rem;
box-shadow: 0 0 0 1px rgba(0, 0, 0, .02);
border-radius: 4px;
}
.non-block-editor textarea {
background: #F6F8FA;
background: var(--ls-secondary-background-color);
}