Skip to content

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

2.7 KB
Raw Blame
:root {
  color-scheme: light;
  background: #e2e8f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

/* Shared production CSS can include the app shell's fixed, clipped viewport.
   This standalone document must grow in both screen and print media. */
html.edgeever-note-print,
html.edgeever-note-print body {
  height: auto;
  overflow: visible;
}

body {
  min-width: 320px;
  margin: 0;
  background: #e2e8f0;
  color: #0f172a;
}

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #cbd5e1;
  background: rgb(255 255 255 / 0.96);
  padding: 0.65rem 1rem;
  box-shadow: 0 2px 10px rgb(15 23 42 / 0.08);
  backdrop-filter: blur(12px);
}

.print-toolbar > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

#print-status {
  font-size: 0.875rem;
}

#print-hint {
  color: #64748b;
  font-size: 0.75rem;
}

.print-toolbar__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.print-toolbar button {
  min-height: 2.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
  background: white;
  padding: 0.4rem 0.8rem;
  color: #334155;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
}

.print-toolbar button:last-child {
  border-color: #059669;
  background: #059669;
  color: white;
}

.print-toolbar button:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #94a3b8;
  cursor: wait;
}

#print-preview {
  padding: 1.5rem 0 3rem;
}

.pagedjs_pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pagedjs_page {
  flex: 0 0 auto;
  background: white;
  color: #27272a;
  font-family: var(--editor-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans SC Variable", sans-serif);
  font-size: var(--editor-body-font-size, 16px);
  letter-spacing: -0.005em;
  line-height: var(--editor-body-line-height, 1.65);
  box-shadow: 0 14px 35px rgb(15 23 42 / 0.18);
}

@media (max-width: 760px) {
  .print-toolbar {
    align-items: flex-start;
  }

  #print-hint {
    display: none;
  }

  #print-preview {
    overflow-x: auto;
    padding-top: 1rem;
  }
}

@media print {
  body {
    background: white;
  }

  .print-toolbar {
    display: none !important;
  }

  #print-preview {
    padding: 0;
  }

  .pagedjs_pages {
    display: block;
  }

  .pagedjs_page {
    margin: 0 !important;
    font-family: "Noto Sans SC Variable", sans-serif !important;
    box-shadow: none !important;
  }
}