migrate frontend

This commit is contained in:
LeeShuang
2021-12-08 23:43:52 +08:00
parent 2f72bfa946
commit 06bffd0ba5
145 changed files with 11409 additions and 0 deletions

87
web/src/less/editor.less Normal file
View 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;
}
}
}
}
}