mirror of https://github.com/usememos/memos
refactor: retire less
parent
4ed6862423
commit
372fc3655a
@ -0,0 +1,7 @@
|
||||
html.dark {
|
||||
@import "highlight.js/styles/atom-one-dark.css";
|
||||
}
|
||||
|
||||
html:not(.dark) {
|
||||
@import "highlight.js/styles/github.css";
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
.dialog-wrapper {
|
||||
@apply fixed top-0 left-0 flex flex-col justify-start items-center w-full h-full pt-16 pb-8 px-4 z-1000 overflow-x-hidden overflow-y-scroll bg-transparent transition-all hide-scrollbar bg-black bg-opacity-60;
|
||||
|
||||
> .dialog-container {
|
||||
@apply max-w-full shadow flex flex-col justify-start items-start bg-white dark:bg-zinc-800 dark:text-gray-300 p-4 rounded-lg;
|
||||
|
||||
> .dialog-header-container {
|
||||
@apply flex flex-row justify-between items-center w-full mb-4;
|
||||
|
||||
> .title-text {
|
||||
> .icon-text {
|
||||
@apply mr-2 text-base dark:text-gray-300;
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
@apply flex flex-col justify-center items-center w-6 h-6 rounded hover:bg-gray-100 dark:hover:bg-zinc-900 hover:shadow;
|
||||
}
|
||||
}
|
||||
|
||||
> .dialog-content-container {
|
||||
@apply flex flex-col justify-start items-start w-full;
|
||||
}
|
||||
|
||||
> .dialog-footer-container {
|
||||
@apply flex flex-row justify-end items-center w-full mt-4;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
.common-dialog {
|
||||
> .dialog-container {
|
||||
@apply w-80;
|
||||
|
||||
> .dialog-content-container {
|
||||
@apply flex flex-col justify-start items-start;
|
||||
|
||||
> .btns-container {
|
||||
@apply flex flex-row justify-end items-center w-full mt-4;
|
||||
|
||||
> .btn {
|
||||
@apply text-sm py-1 px-3 mr-2 rounded-md hover:opacity-80 cursor-pointer;
|
||||
|
||||
&.confirm-btn {
|
||||
@apply bg-red-100 border border-solid border-blue-600 text-blue-600;
|
||||
|
||||
&.warning {
|
||||
@apply border-red-600 text-red-600;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .content-text{
|
||||
@apply whitespace-pre-wrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
html.dark {
|
||||
@import (less) "highlight.js/styles/atom-one-dark.css";
|
||||
}
|
||||
|
||||
html:not(.dark) {
|
||||
@import (less) "highlight.js/styles/github.css";
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
.preview-image-dialog {
|
||||
@apply p-0;
|
||||
z-index: 1001;
|
||||
background-color: rgba(0, 0, 0, 0.6);
|
||||
|
||||
> .dialog-container {
|
||||
@apply flex flex-col justify-center items-center relative w-full h-full p-0;
|
||||
background-color: unset;
|
||||
|
||||
> .btns-container {
|
||||
@apply fixed top-8 right-8 flex flex-col justify-start items-center;
|
||||
|
||||
> .btn {
|
||||
@apply mb-3 last:mb-0 w-8 h-8 p-1 cursor-pointer rounded opacity-90 bg-gray-300 dark:bg-zinc-600 z-10 shadow-md hover:opacity-70;
|
||||
|
||||
> .icon-img {
|
||||
@apply w-6 h-auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .img-container {
|
||||
@apply w-full h-full p-4 sm:p-20 flex flex-col justify-center items-center hide-scrollbar;
|
||||
background-color: unset;
|
||||
|
||||
> img {
|
||||
@apply h-auto w-auto max-w-full max-h-full shadow;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue