feat: set editor font style (#174)

feat: editor font style
This commit is contained in:
boojack
2022-08-25 20:44:32 +08:00
committed by GitHub
parent 20d7112a05
commit e9d303326f
10 changed files with 89 additions and 20 deletions

View File

@ -1,8 +1,13 @@
@import "./mixin.less";
.common-editor-wrapper {
.flex(column, flex-start, flex-start);
@apply relative w-full h-auto bg-white;
@apply flex flex-col justify-start items-start relative w-full h-auto bg-white;
&.mono {
> .common-editor-inputer {
@apply font-mono;
}
}
> .common-editor-inputer {
@apply w-full h-full mt-1 mb-1 text-base resize-none overflow-x-hidden overflow-y-auto bg-transparent whitespace-pre-wrap;