Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

3.0 KB
Raw Blame
: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,
#tiptap-ime-test-root {
  min-height: 100%;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
textarea {
  font: inherit;
}

.tiptap-ime-page {
  display: grid;
  gap: 12px;
  min-height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
}

.tiptap-ime-header,
.tiptap-ime-panel {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.05);
}

.tiptap-ime-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

.tiptap-ime-header h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.tiptap-ime-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.tiptap-ime-header button,
.tiptap-ime-panel-title button,
.tiptap-ime-actions button {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  min-height: 34px;
  padding: 6px 11px;
  white-space: nowrap;
}

.tiptap-ime-header button {
  background: #0f172a;
  color: #fff;
}

.tiptap-ime-panel {
  overflow: hidden;
}

.tiptap-ime-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 10px;
}

.tiptap-ime-editor-wrap {
  background: #fff;
}

.tiptap-ime-editor {
  min-height: 220px;
  outline: none;
  padding: 12px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.7;
  -webkit-user-select: text;
  user-select: text;
  caret-color: auto;
  white-space: pre-wrap;
}

.tiptap-ime-editor p {
  margin: 0 0 0.75em;
}

.tiptap-ime-editor img {
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}

.tiptap-ime-editor p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  color: #94a3b8;
  pointer-events: none;
}

.tiptap-ime-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  padding: 10px;
}

.tiptap-ime-panel textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 0;
  outline: none;
  padding: 12px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.7;
}

.tiptap-ime-panel textarea::placeholder {
  color: #94a3b8;
}

.tiptap-ime-diagnostics pre {
  margin: 0;
  overflow-x: auto;
  padding: 10px;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.tiptap-ime-log-list {
  display: grid;
  gap: 5px;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}