mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
151 lines
3.9 KiB
Plaintext
151 lines
3.9 KiB
Plaintext
@import "./mixin.less";
|
|
|
|
.memo-editor-container {
|
|
@apply transition-all relative w-full flex flex-col justify-start items-start bg-white px-4 rounded-lg border-2 border-gray-200;
|
|
|
|
&.fullscreen {
|
|
@apply fixed w-full h-full top-0 left-0 z-1000 border-none rounded-none sm:p-8;
|
|
background-color: #f6f5f4;
|
|
|
|
> .memo-editor {
|
|
@apply p-4 mb-4 rounded-lg border shadow-lg flex flex-col flex-grow justify-start items-start relative w-full h-full bg-white;
|
|
|
|
> .common-editor-inputer {
|
|
@apply flex-grow w-full !h-full max-h-full;
|
|
}
|
|
}
|
|
|
|
.tag-action > .tag-list {
|
|
@apply bottom-7;
|
|
top: unset !important;
|
|
}
|
|
|
|
.emoji-picker-react {
|
|
@apply !bottom-8;
|
|
top: unset !important;
|
|
}
|
|
}
|
|
|
|
&.edit-ing {
|
|
@apply border-blue-500;
|
|
}
|
|
|
|
> .editor-header-container {
|
|
@apply w-full flex flex-row justify-between items-center mt-3 mb-1;
|
|
|
|
> .editing-container {
|
|
@apply flex flex-row justify-start items-center text-xs;
|
|
|
|
> .tip-text {
|
|
@apply text-gray-400 mr-2;
|
|
}
|
|
|
|
> .cancel-btn {
|
|
@apply px-2 border rounded-full leading-5 text-blue-600 hover:border-blue-600;
|
|
}
|
|
}
|
|
}
|
|
|
|
> .memo-editor {
|
|
@apply flex flex-col justify-start items-start relative w-full h-auto bg-white;
|
|
}
|
|
|
|
> .common-tools-wrapper {
|
|
@apply relative w-full flex flex-row justify-between items-center pt-2;
|
|
|
|
> .common-tools-container {
|
|
@apply flex flex-row justify-start items-center;
|
|
|
|
> .action-btn {
|
|
@apply flex flex-row justify-center items-center p-1 w-auto h-auto mr-1 select-none rounded cursor-pointer opacity-60 hover:opacity-90 hover:bg-gray-300 hover:shadow;
|
|
|
|
&.tag-action {
|
|
@apply relative;
|
|
|
|
&:hover {
|
|
> .tag-list {
|
|
@apply flex;
|
|
}
|
|
}
|
|
|
|
> .tag-list {
|
|
@apply hidden flex-col justify-start items-start absolute top-6 left-0 mt-1 p-1 z-1 rounded w-36 max-h-52 overflow-auto font-mono bg-black;
|
|
|
|
> .item-container {
|
|
@apply w-full text-white cursor-pointer rounded text-sm leading-6 px-2 truncate hover:bg-gray-700 shrink-0;
|
|
}
|
|
|
|
> .tip-text {
|
|
@apply w-full text-sm text-gray-200 leading-6 px-2 cursor-default;
|
|
}
|
|
}
|
|
}
|
|
|
|
> .icon-img {
|
|
@apply w-5 h-5 mx-auto flex flex-row justify-center items-center;
|
|
}
|
|
|
|
> .tip-text {
|
|
@apply hidden ml-1 text-xs leading-5 text-gray-700 border border-gray-300 rounded-xl px-2;
|
|
}
|
|
}
|
|
|
|
.emoji-picker-react {
|
|
@apply absolute shadow left-6 top-8;
|
|
|
|
li.emoji::before {
|
|
@apply hidden;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
> .resource-list-wrapper {
|
|
@apply w-full flex flex-row justify-start flex-wrap;
|
|
|
|
> .resource-container {
|
|
@apply mt-1 mr-1 flex flex-row justify-start items-center flex-nowrap bg-gray-100 px-2 py-1 rounded cursor-pointer hover:bg-gray-200;
|
|
|
|
> .icon-img {
|
|
@apply w-4 h-auto mr-1 text-gray-500;
|
|
}
|
|
|
|
> .name-text {
|
|
@apply text-gray-500 text-sm max-w-xs truncate font-mono;
|
|
}
|
|
|
|
> .close-icon {
|
|
@apply w-4 h-auto ml-1 text-gray-500 hover:text-gray-800;
|
|
}
|
|
}
|
|
}
|
|
|
|
> .editor-footer-container {
|
|
@apply w-full flex flex-row justify-between items-center border-t py-3 mt-2;
|
|
|
|
> .visibility-selector {
|
|
@apply h-8;
|
|
|
|
> .current-value-container {
|
|
@apply rounded-full;
|
|
|
|
> .value-text {
|
|
@apply text-sm w-full;
|
|
}
|
|
}
|
|
}
|
|
|
|
> .buttons-container {
|
|
@apply grow-0 shrink-0 flex flex-row justify-end items-center;
|
|
|
|
> .confirm-btn {
|
|
@apply border-none select-none rounded flex flex-row justify-center items-center 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;
|
|
|
|
> .icon-img {
|
|
@apply ml-1 w-6 h-auto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|