mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
migrate frontend
This commit is contained in:
87
web/src/less/editor.less
Normal file
87
web/src/less/editor.less
Normal file
@ -0,0 +1,87 @@
|
||||
@import "./mixin.less";
|
||||
|
||||
.common-editor-wrapper {
|
||||
.flex(column, flex-start, flex-start);
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background-color: white;
|
||||
|
||||
> .common-editor-inputer {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
min-height: 24px;
|
||||
max-height: 300px;
|
||||
font-size: 15px;
|
||||
line-height: 24px;
|
||||
resize: none;
|
||||
overflow-x: hidden;
|
||||
overflow-y: scroll;
|
||||
background-color: transparent;
|
||||
z-index: 1;
|
||||
margin-bottom: 4px;
|
||||
white-space: pre-wrap;
|
||||
.hide-scroll-bar();
|
||||
|
||||
&::placeholder {
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
&::placeholder {
|
||||
color: lightgray;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .common-tools-wrapper {
|
||||
.flex(row, space-between, center);
|
||||
width: 100%;
|
||||
|
||||
> .common-tools-container {
|
||||
.flex(row, flex-start, center);
|
||||
}
|
||||
|
||||
> .btns-container {
|
||||
.flex(row, flex-end, center);
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
|
||||
> .action-btn {
|
||||
border: none;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
padding: 6px 12px;
|
||||
border-radius: 6px;
|
||||
font-size: 13px;
|
||||
line-height: 32px;
|
||||
|
||||
&:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
> .cancel-btn {
|
||||
color: gray;
|
||||
background-color: transparent;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
> .confirm-btn {
|
||||
cursor: pointer;
|
||||
padding: 0 12px;
|
||||
background-color: @text-green;
|
||||
color: white;
|
||||
|
||||
&:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
> .icon-text {
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user