|
|
@ -5,18 +5,11 @@
|
|
|
|
@apply relative w-full h-auto bg-white;
|
|
|
|
@apply relative w-full h-auto bg-white;
|
|
|
|
|
|
|
|
|
|
|
|
> .common-editor-inputer {
|
|
|
|
> .common-editor-inputer {
|
|
|
|
@apply w-full h-full mt-1 mb-1;
|
|
|
|
@apply w-full h-full mt-1 mb-1 text-base resize-none overflow-x-hidden overflow-y-auto bg-transparent whitespace-pre-wrap;
|
|
|
|
min-height: 40px;
|
|
|
|
min-height: 40px;
|
|
|
|
max-height: 300px;
|
|
|
|
max-height: 300px;
|
|
|
|
.pretty-scroll-bar(2px, 0);
|
|
|
|
.pretty-scroll-bar(2px, 0);
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
|
|
|
resize: none;
|
|
|
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
|
|
|
overflow-y: scroll;
|
|
|
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
z-index: 1;
|
|
|
|
z-index: 1;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
&::placeholder {
|
|
|
|
padding-left: 2px;
|
|
|
|
padding-left: 2px;
|
|
|
@ -30,64 +23,32 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
> .common-tools-wrapper {
|
|
|
|
> .common-tools-wrapper {
|
|
|
|
.flex(row, space-between, center);
|
|
|
|
@apply w-full flex flex-row justify-between items-center;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
> .common-tools-container {
|
|
|
|
> .common-tools-container {
|
|
|
|
.flex(row, flex-start, center);
|
|
|
|
@apply flex flex-row justify-start items-center;
|
|
|
|
|
|
|
|
|
|
|
|
> .action-btn {
|
|
|
|
> .action-btn {
|
|
|
|
width: 18px;
|
|
|
|
@apply p-1 w-7 h-auto mr-1 select-none rounded cursor-pointer opacity-60 hover:opacity-80 hover:bg-gray-300 hover:shadow;
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
> .btns-container {
|
|
|
|
> .btns-container {
|
|
|
|
.flex(row, flex-end, center);
|
|
|
|
@apply grow-0 shrink-0 flex flex-row justify-end items-center;
|
|
|
|
flex-grow: 0;
|
|
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
> .action-btn {
|
|
|
|
> .action-btn {
|
|
|
|
border: none;
|
|
|
|
@apply border-none select-none cursor-pointer py-1 px-3 rounded text-sm hover:opacity-80;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
padding: 6px 12px;
|
|
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
|
|
line-height: 32px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
> .cancel-btn {
|
|
|
|
> .cancel-btn {
|
|
|
|
color: gray;
|
|
|
|
@apply text-gray-500 bg-transparent mr-2;
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
> .confirm-btn {
|
|
|
|
> .confirm-btn {
|
|
|
|
cursor: pointer;
|
|
|
|
@apply shadow cursor-pointer px-3 py-0 leading-8 bg-green-600 text-white text-sm hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-60;
|
|
|
|
padding: 0 12px;
|
|
|
|
|
|
|
|
background-color: @text-green;
|
|
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
> .icon-text {
|
|
|
|
> .icon-text {
|
|
|
|
margin-left: 4px;
|
|
|
|
@apply text-base ml-1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|