@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"); .simple-editor-wrapper { --tt-toolbar-height: 44px; --tt-theme-text: var(--tt-gray-light-900); .dark & { --tt-theme-text: var(--tt-gray-dark-900); } } .tiptap.ProseMirror { font-family: "DM Sans", sans-serif; } .simple-editor-wrapper { display: flex; flex-direction: column; width: 100%; height: auto; min-height: 200px; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--background); overflow: hidden; // Prevents border being covered by content } .simple-editor-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; min-height: 150px; } .simple-editor-content .tiptap.ProseMirror.simple-editor { flex: 1; padding: 1rem; outline: none; min-height: 150px; } // Ensure toolbar is visible and at the top on mobile .simple-editor-wrapper .tiptap-toolbar[data-variant="fixed"] { @media screen and (max-width: 480px) { position: sticky; top: 0; bottom: auto; border-top: none; border-bottom: 1px solid var(--tt-toolbar-border-color); } } @media screen and (max-width: 480px) { .simple-editor-content .tiptap.ProseMirror.simple-editor { padding: 1rem; } }