parent
e2c80e5a28
commit
5900176b58
|
@ -12,6 +12,7 @@ import ErrorBoundary from "components/ErrorBoundary";
|
|||
import Tooltip from "components/Tooltip";
|
||||
import useMediaQuery from "hooks/useMediaQuery";
|
||||
import useToasts from "hooks/useToasts";
|
||||
import { fadeOutCursor } from "styles/animations";
|
||||
import { type Theme } from "types";
|
||||
import { isModKey } from "utils/keyboard";
|
||||
import { uploadFile } from "utils/uploadFile";
|
||||
|
@ -269,6 +270,7 @@ const StyledEditor = styled(RichMarkdownEditor)`
|
|||
bottom: 0;
|
||||
}
|
||||
> div {
|
||||
animation: ${fadeOutCursor} 2000ms ease-out;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
top: -1.8em;
|
||||
|
@ -285,6 +287,7 @@ const StyledEditor = styled(RichMarkdownEditor)`
|
|||
pointer-events: none;
|
||||
left: -1px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
> div {
|
||||
opacity: 1;
|
||||
|
|
|
@ -6,6 +6,12 @@ export const fadeIn = keyframes`
|
|||
to { opacity: 1; }
|
||||
`;
|
||||
|
||||
export const fadeOutCursor = keyframes`
|
||||
0% { opacity: 1; }
|
||||
90% { opacity: 1; }
|
||||
100% { opacity: 0; }
|
||||
`;
|
||||
|
||||
export const fadeAndScaleIn = keyframes`
|
||||
from {
|
||||
opacity: 0;
|
||||
|
|
Reference in New Issue