220 lines
3.7 KiB
CSS
220 lines
3.7 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#mobile-editor-root {
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: #fff;
|
|
color: #0f172a;
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
button,
|
|
input {
|
|
font: inherit;
|
|
}
|
|
|
|
.mobile-editor-shell {
|
|
min-height: 100dvh;
|
|
background: #fff;
|
|
}
|
|
|
|
.mobile-editor-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
min-height: 52px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
background: #fff;
|
|
padding: max(8px, env(safe-area-inset-top)) 12px 8px;
|
|
}
|
|
|
|
.mobile-editor-back,
|
|
.mobile-editor-done {
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
color: #0f172a;
|
|
font-weight: 700;
|
|
min-height: 36px;
|
|
padding: 7px 12px;
|
|
}
|
|
|
|
.mobile-editor-back {
|
|
min-width: 38px;
|
|
padding: 4px 8px;
|
|
font-size: 30px;
|
|
font-weight: 400;
|
|
line-height: 1;
|
|
}
|
|
|
|
.mobile-editor-actions {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.mobile-editor-done {
|
|
background: #020617;
|
|
color: #fff;
|
|
}
|
|
|
|
.mobile-editor-done:disabled {
|
|
background: #e2e8f0;
|
|
color: #64748b;
|
|
}
|
|
|
|
.mobile-editor-status {
|
|
align-self: center;
|
|
border-radius: 999px;
|
|
background: #f1f5f9;
|
|
color: #64748b;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
padding: 6px 10px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mobile-editor-status.active {
|
|
background: #ecfdf5;
|
|
color: #047857;
|
|
}
|
|
|
|
.mobile-editor-status.error {
|
|
background: #fff1f2;
|
|
color: #be123c;
|
|
}
|
|
|
|
.mobile-editor-main {
|
|
display: grid;
|
|
gap: 10px;
|
|
padding: 14px 12px max(16px, env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.mobile-editor-error {
|
|
border: 1px solid #fecdd3;
|
|
border-radius: 8px;
|
|
background: #fff1f2;
|
|
color: #9f1239;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
padding: 10px;
|
|
}
|
|
|
|
.mobile-editor-title,
|
|
.mobile-editor-tags {
|
|
width: 100%;
|
|
border: 0;
|
|
background: #fff;
|
|
color: #0f172a;
|
|
outline: none;
|
|
}
|
|
|
|
.mobile-editor-title {
|
|
font-size: 28px;
|
|
font-weight: 800;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.mobile-editor-tags {
|
|
color: #64748b;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.mobile-editor-title::placeholder,
|
|
.mobile-editor-tags::placeholder {
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.edgeever-mobile-tiptap-editor {
|
|
min-height: calc(100dvh - 14rem);
|
|
border-top: 1px solid #f1f5f9;
|
|
margin: 4px -12px 0;
|
|
}
|
|
|
|
.edgeever-mobile-tiptap-content {
|
|
min-height: calc(100dvh - 14rem);
|
|
outline: none;
|
|
padding: 18px 12px 32px;
|
|
color: #0f172a;
|
|
font-size: 17px;
|
|
line-height: 1.7;
|
|
-webkit-user-select: text;
|
|
user-select: text;
|
|
caret-color: auto;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.edgeever-mobile-tiptap-content p {
|
|
margin: 0 0 0.85em;
|
|
}
|
|
|
|
.edgeever-mobile-tiptap-content h1,
|
|
.edgeever-mobile-tiptap-content h2,
|
|
.edgeever-mobile-tiptap-content h3 {
|
|
line-height: 1.25;
|
|
margin: 0.9em 0 0.45em;
|
|
}
|
|
|
|
.edgeever-mobile-tiptap-content ul,
|
|
.edgeever-mobile-tiptap-content ol {
|
|
margin: 0 0 0.85em;
|
|
padding-left: 1.4em;
|
|
}
|
|
|
|
.edgeever-mobile-tiptap-content blockquote {
|
|
border-left: 3px solid #cbd5e1;
|
|
color: #475569;
|
|
margin: 0 0 0.85em;
|
|
padding-left: 0.9em;
|
|
}
|
|
|
|
.edgeever-mobile-tiptap-content img {
|
|
height: auto;
|
|
max-width: 100%;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.edgeever-mobile-tiptap-content p.is-editor-empty:first-child::before {
|
|
content: attr(data-placeholder);
|
|
float: left;
|
|
height: 0;
|
|
color: #94a3b8;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.mobile-editor-fallback {
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
color: #475569;
|
|
font-size: 13px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.mobile-editor-fallback pre {
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
}
|