Files
wr.do/components/shared/tiptap/tiptap-templates/simple/simple-editor.scss
2025-10-20 11:34:05 +08:00

84 lines
1.5 KiB
SCSS

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
body {
--tt-toolbar-height: 44px;
--tt-theme-text: var(--tt-gray-light-900);
.dark & {
--tt-theme-text: var(--tt-gray-dark-900);
}
}
body {
font-family: "Inter", sans-serif;
color: var(--tt-theme-text);
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
padding: 0;
overscroll-behavior-y: none;
}
html,
body {
overscroll-behavior-x: none;
}
html,
body,
#root,
#app {
height: 100%;
background-color: var(--tt-bg-color);
}
::-webkit-scrollbar {
width: 0.25rem;
}
* {
scrollbar-width: thin;
scrollbar-color: var(--tt-scrollbar-color) transparent;
}
::-webkit-scrollbar-thumb {
background-color: var(--tt-scrollbar-color);
border-radius: 9999px;
}
::-webkit-scrollbar-track {
background: transparent;
}
.tiptap.ProseMirror {
font-family: "DM Sans", sans-serif;
}
.simple-editor-wrapper {
width: 100%;
height: 100%;
overflow: auto;
}
.simple-editor-content {
// max-width: 648px;
width: 100%;
// margin: 0 auto;
height: 100%;
display: flex;
flex-direction: column;
flex: 1;
}
.simple-editor-content .tiptap.ProseMirror.simple-editor {
flex: 1;
// padding: 3rem 3rem 30vh;
padding: 1rem;
}
@media screen and (max-width: 480px) {
.simple-editor-content .tiptap.ProseMirror.simple-editor {
padding: 1rem 1.5rem 30vh;
}
}