*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
margin: 0;
}
body {
font-family: var(--font-body);
font-weight: var(--font-weight-body);
color: var(--color-text);
background: var(--color-bg);
line-height: 1.6;
}
h1,
h2,
h3,
h4 {
font-family: var(--font-heading);
font-weight: var(--font-weight-heading);
line-height: 1.25;
}
code,
pre {
font-family: var(--font-mono);
font-weight: var(--font-weight-mono);
}
/* A pond's content root (ADR 0016): sets --font-* (via PondFontScope) so its
* body text uses the pond's body font; headings and code re-resolve the same
* variables through the global rules above. */
.pond-font-scope {
font-family: var(--font-body);
font-weight: var(--font-weight-body);
}
a {
color: var(--color-accent);
}
button {
font: inherit;
}
/* Layout skeleton */
.app {
display: grid;
/* minmax: the topbar row may grow when its controls wrap on narrow
viewports (issue #165, WCAG 1.4.10). */
grid-template-rows: minmax(var(--topbar-height), auto) 1fr;
height: 100%;
}
.app-body {
display: flex;
min-height: 0;
/* Grid items default to a min-content minimum; without this the row can
force the whole app wider than the viewport (issue #100). */
min-width: 0;
}
.topbar {
display: flex;
align-items: center;
gap: var(--space-4);
padding: 0 var(--space-4);
/* Same #100 pattern as .app-body: without this the topbar's min-content
width sizes the shared grid column and forces page-level horizontal
scrolling on narrow viewports (issue #165, WCAG 1.4.10). */
min-width: 0;
border-bottom: 1px solid var(--color-border);
background: var(--color-bg);
/* Own stacking context above the scrolling `.main` content: the nav comes
before `.app-body` in the DOM, so without this the sticky editor toolbar
(z-index 20 inside `.main`) paints over the nav's overflow "…" menu, hiding
its entries. 30 > the toolbar's 20; modals (1100+) still win. */
position: relative;
z-index: 30;
}
.topbar__brand {
font-family: var(--font-heading);
font-size: 1.1rem;
color: var(--color-text);
text-decoration: none;
}
.topbar__spacer {
flex: 1;
}
/* Skip link (#166, WCAG 2.4.1): first tab stop, visible only on focus. */
.skip-link {
position: absolute;
left: -9999px;
top: 0;
z-index: 1200;
padding: var(--space-2) var(--space-4);
background: var(--color-accent);
color: var(--color-accent-contrast);
border-radius: 0 0 var(--radius) 0;
text-decoration: none;
}
.skip-link:focus-visible {
left: 0;
}
/* Narrow viewports (issue #165, WCAG 1.4.10): the topbar wraps onto a
second row instead of pushing the page wider than the viewport; every
control stays visible and reachable. The search button drops to its
icon (the aria-label carries the name). The expanded sidebar becomes
an overlay above the content — 256 px beside a 320 px viewport would
leave the content a sliver and force page-level horizontal scrolling. */
@media (max-width: 40rem) {
.topbar {
flex-wrap: wrap;
row-gap: 0;
padding: var(--space-1) var(--space-2);
}
.topbar__search-text {
display: none;
}
.app-body {
position: relative;
}
.sidebar:not(.sidebar--collapsed) {
position: absolute;
inset: 0 auto 0 0;
z-index: 25;
box-shadow: 2px 0 8px rgb(0 0 0 / 0.15);
}
.sidebar-resizer {
display: none;
}
}
.sidebar {
width: var(--sidebar-width);
flex-shrink: 0;
/* Anchor for the absolutely positioned resize handle (#166). */
position: relative;
/* Column flex so the trash footer can pin to the bottom (margin-top: auto). */
display: flex;
flex-direction: column;
border-right: 1px solid var(--color-border);
background: var(--color-bg-subtle);
padding: var(--space-4);
overflow-y: auto;
transition:
margin-left 0.18s ease-out,
opacity 0.15s ease-out;
}
.sidebar--collapsed {
margin-left: calc(-1 * var(--sidebar-width));
opacity: 0;
}
/* Drag handle on the sidebar's right edge (issue #99). */
.sidebar-resizer {
/* Lives inside the nav landmark (#166); straddles the sidebar edge. */
position: absolute;
top: 0;
bottom: 0;
right: -3px;
width: 6px;
cursor: col-resize;
touch-action: none;
background: transparent;
z-index: 5;
}
.sidebar-resizer:hover,
.sidebar-resizer:focus-visible {
background: var(--color-accent);
outline: none;
}
.sidebar__hint {
color: var(--color-text-muted);
font-size: 0.9rem;
}
.sidebar__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
margin-bottom: var(--space-3);
}
.sidebar__pond-name {
font-size: 1rem;
margin: 0;
}
.sidebar__sort {
font: inherit;
font-size: 0.85rem;
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: var(--color-bg);
padding: var(--space-1) var(--space-2);
}
.sidebar__pages {
list-style: none;
margin: 0 0 var(--space-3);
padding: 0;
}
/* Folder view (issue #108): the page tree with collapsible nodes. */
.sidebar__view-toggle {
display: flex;
gap: var(--space-1);
margin-bottom: var(--space-2);
}
.sidebar__view-btn {
font: inherit;
font-size: 0.8rem;
padding: var(--space-1) var(--space-2);
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: var(--color-bg);
color: var(--color-text-muted);
cursor: pointer;
}
.sidebar__view-btn--active {
color: var(--color-text);
font-weight: 600;
background: var(--color-surface);
}
/* Favorites (issue #132): the latching filter button carries a small star;
golden treatment for the TopBar toggle and favorite tree icons. */
.sidebar__view-btn--favorites {
display: inline-flex;
align-items: center;
gap: var(--space-1);
}
.sidebar__view-btn--favorites svg {
width: 0.85rem;
height: 0.85rem;
color: var(--color-favorite);
}
.icon-button--favorite {
color: var(--color-favorite);
}
.sidebar__tree-row {
display: flex;
align-items: center;
gap: var(--space-1);
min-width: 0;
}
.sidebar__tree-row .sidebar__page {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* In the tree, the nested children
is a SECOND flex item of the
.sidebar__page-item - . Stack it below the parent row (#122) — the
base rule's flex row centered the parent vertically BESIDE its children. */
.sidebar__pages--tree .sidebar__page-item {
flex-direction: column;
align-items: stretch;
gap: 0;
}
.sidebar__tree-children {
/* Per-level indent: about two characters is plenty (#122). */
margin: 0 0 0 1.25em;
}
.sidebar__caret {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 1rem;
border: 0;
background: none;
padding: 0;
cursor: pointer;
color: var(--color-text-muted);
transform: rotate(90deg);
transition: transform 0.12s ease;
}
.sidebar__caret svg {
width: 0.9rem;
height: 0.9rem;
}
.sidebar__caret--collapsed {
transform: rotate(0deg);
}
.sidebar__caret--leaf {
cursor: default;
}
/* Folder pages vs. leaf pages read differently at a glance (#122). */
.sidebar__page-icon {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
color: var(--color-text-muted);
}
/* Favorites carry a golden icon in the tree (issue #132) — after the base
rule, so the equal-specificity color override wins. */
.sidebar__page-icon--favorite {
color: var(--color-favorite);
}
.sidebar__page-icon svg {
width: 0.875rem;
height: 0.875rem;
}
/* Label view (issue #108): pages grouped under the label tree. */
.sidebar__label-group {
margin-bottom: var(--space-2);
}
.sidebar__label-heading {
display: flex;
align-items: center;
gap: var(--space-1);
margin: 0 0 var(--space-1);
font-size: 0.8rem;
font-weight: 600;
color: var(--color-text-muted);
text-transform: uppercase;
letter-spacing: 0.03em;
}
.sidebar__label-group .sidebar__pages {
margin-bottom: 0;
}
.sidebar__new-page-parent {
margin: 0 0 var(--space-2);
font-size: 0.8rem;
color: var(--color-text-muted);
}
/* Drop-into cue while dragging a page onto another (reparent, issue #109). */
.sidebar__page-item--drop-into > .sidebar__tree-row {
outline: 2px solid var(--color-accent);
outline-offset: -2px;
border-radius: var(--radius);
}
/* Minimal modal (issue #109: "Move to…" and the delete-choice dialog). */
.modal-overlay {
position: fixed;
inset: 0;
z-index: 1100;
background: rgb(0 0 0 / 40%);
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-4);
}
.modal {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: var(--space-4);
max-width: 28rem;
width: 100%;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}
.modal__title {
margin: 0 0 var(--space-3);
font-size: 1.1rem;
}
.modal__actions {
display: flex;
align-items: center;
gap: var(--space-3);
margin-top: var(--space-3);
}
.modal__actions--stacked {
flex-direction: column;
align-items: stretch;
gap: var(--space-2);
}
.move-dialog__options {
list-style: none;
margin: 0;
padding: 0;
max-height: 40vh;
overflow-y: auto;
}
.move-dialog__option {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-1) 0;
cursor: pointer;
}
.move-dialog__option:has(input:disabled) {
color: var(--color-text-muted);
cursor: not-allowed;
}
.sidebar__page {
display: block;
/* Compact rows (#122): deep imported trees need to fit on one screen. */
padding: 0.125rem var(--space-2);
border-radius: var(--radius);
color: var(--color-text);
text-decoration: none;
font-size: 0.875rem;
}
.sidebar__page:hover {
background: var(--color-bg);
}
.sidebar__page--active {
background: var(--color-bg);
font-weight: 600;
}
.sidebar__new-page-form {
margin-top: var(--space-2);
}
.sidebar__new-page-form .field {
margin-bottom: var(--space-2);
}
.sidebar__new-page-actions {
display: flex;
align-items: center;
gap: var(--space-3);
}
/* The import control sits in the pinned footer icon row (#124); its
progress list floats ABOVE the row so the icons stay put. */
.sidebar__import {
position: relative;
display: inline-flex;
}
.sidebar__import-list {
list-style: none;
position: absolute;
bottom: calc(100% + var(--space-1));
left: 0;
width: 14rem;
margin: 0;
padding: var(--space-2);
display: flex;
flex-direction: column;
gap: var(--space-2);
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius);
box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
z-index: 30;
}
.sidebar__import-item {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: var(--space-2);
font-size: 0.85rem;
}
.sidebar__import-name {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sidebar__import-status {
color: var(--color-text-muted);
}
.sidebar__import-item--failed .sidebar__import-status {
color: var(--color-danger);
}
.sidebar__import-actions {
display: flex;
gap: var(--space-2);
}
.pond-home {
max-width: 36rem;
}
.main-column {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.main {
flex: 1;
min-height: 0;
min-width: 0;
overflow-y: auto;
padding: var(--space-6) var(--space-8);
}
.icon-button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border: 1px solid transparent;
border-radius: var(--radius);
background: transparent;
cursor: pointer;
color: var(--color-text);
}
.icon-button svg {
width: 1.15rem;
height: 1.15rem;
}
.icon-button--active {
color: var(--color-accent);
background: var(--color-bg-subtle);
}
.icon-button:disabled {
opacity: 0.5;
cursor: default;
}
/* Page actions in the TopBar (issue #101). */
.topbar__page-actions {
display: flex;
align-items: center;
}
/* Live presence next to the page actions (issue #102). */
.topbar__presence {
display: flex;
align-items: center;
}
.page-actions {
display: flex;
align-items: center;
gap: var(--space-1);
}
.page-actions__more {
position: relative;
}
.page-actions__menu {
position: absolute;
right: 0;
top: calc(100% + 4px);
min-width: 14rem;
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius);
box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
display: flex;
flex-direction: column;
z-index: 10;
}
.page-actions__menu a,
.page-actions__menu button {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-3);
text-align: left;
background: none;
border: none;
color: var(--color-text);
text-decoration: none;
cursor: pointer;
font: inherit;
}
.page-actions__menu svg {
width: 1rem;
height: 1rem;
flex-shrink: 0;
}
.page-actions__menu a:hover,
.page-actions__menu button:hover:not(:disabled) {
background: var(--color-bg-subtle);
}
.page-actions__menu button:disabled {
color: var(--color-text-muted);
cursor: default;
}
.page-actions__menu button.page-actions__menu-danger {
color: var(--color-danger);
}
.icon-button:hover {
background: var(--color-bg-subtle);
border-color: var(--color-border);
}
.icon-button:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 1px;
}
.status-pill {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-1) var(--space-3);
border-radius: 999px;
border: 1px solid var(--color-border);
font-size: 0.9rem;
}
.status-pill--ok {
color: var(--color-ok);
}
.status-pill--error {
color: var(--color-danger);
}
/* Forms */
.field {
display: block;
margin-bottom: var(--space-4);
}
.field__label {
display: block;
margin-bottom: var(--space-1);
font-size: 0.9rem;
color: var(--color-text-muted);
}
.field input,
.field select {
width: 100%;
padding: var(--space-2) var(--space-3);
border: 1px solid var(--color-border-input);
border-radius: var(--radius);
font: inherit;
background: var(--color-bg);
}
.field input:focus-visible,
.field select:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 1px;
}
.field__hint,
.field__error {
display: block;
margin-top: var(--space-1);
font-size: 0.85rem;
}
.field__hint {
color: var(--color-text-muted);
}
.field__error {
color: var(--color-danger);
}
.button {
display: inline-block;
padding: var(--space-2) var(--space-4);
border: none;
border-radius: var(--radius);
background: var(--color-accent);
color: var(--color-accent-contrast);
cursor: pointer;
text-decoration: none;
font: inherit;
}
.button:disabled {
opacity: 0.6;
cursor: default;
}
.linklike {
background: none;
border: none;
padding: 0;
color: var(--color-accent);
text-decoration: underline;
cursor: pointer;
font: inherit;
}
.form-banner {
padding: var(--space-2) var(--space-3);
border: 1px solid var(--color-border);
border-radius: var(--radius);
margin-bottom: var(--space-4);
font-size: 0.95rem;
}
.form-banner--error {
border-color: var(--color-danger);
color: var(--color-danger);
}
.form-banner--ok {
border-color: var(--color-ok);
color: var(--color-ok);
}
/* Auth pages */
.auth-card {
max-width: 24rem;
margin: var(--space-8) auto;
}
.auth-card__links {
margin-top: var(--space-4);
font-size: 0.95rem;
}
/* Legal pages + footer (issue #82) */
.app-footer {
display: flex;
align-items: center;
gap: var(--space-2);
flex-shrink: 0;
/* Wrap instead of widening the page on narrow viewports (#165). */
flex-wrap: wrap;
min-width: 0;
padding: var(--space-2) var(--space-8);
border-top: 1px solid var(--color-border);
background: var(--color-bg);
color: var(--color-text-muted);
font-size: 0.85rem;
}
.app-footer__spacer {
flex: 1;
}
.app-footer__status {
display: flex;
align-items: center;
}
/* Instance version next to the connection status (#126). */
.app-footer__version {
font-size: 0.8rem;
white-space: nowrap;
}
.legal-page {
max-width: 44rem;
}
.legal-page__placeholder {
color: var(--color-text-muted);
}
.legal-editor,
.markdown-field {
margin-bottom: var(--space-4);
}
.legal-editor textarea,
.markdown-field textarea {
width: 100%;
font-family: var(--font-mono);
font-size: 0.9rem;
}
.legal-editor__preview,
.markdown-field__preview {
margin-top: var(--space-3);
padding: var(--space-3);
border: 1px dashed var(--color-border);
border-radius: var(--radius);
}
/* First-run setup wizard (issue #81) */
.setup-shell {
min-height: 100vh;
padding: var(--space-4);
}
.setup-wizard {
max-width: 28rem;
}
.setup-progress {
margin-bottom: var(--space-1);
color: var(--color-text-muted);
font-size: 0.9rem;
}
.setup-progress-steps {
display: flex;
flex-wrap: wrap;
gap: var(--space-1) var(--space-3);
margin: 0 0 var(--space-6);
padding: 0;
list-style: none;
color: var(--color-text-muted);
font-size: 0.85rem;
}
.setup-progress-steps li[aria-current='step'] {
color: inherit;
font-weight: 600;
}
.setup-progress-steps__done {
color: var(--color-accent);
}
.setup-language-buttons {
display: flex;
gap: var(--space-3);
}
.button--outline {
background: transparent;
color: var(--color-accent);
box-shadow: inset 0 0 0 1px var(--color-accent);
}
.setup-actions {
display: flex;
align-items: center;
gap: var(--space-3);
margin-top: var(--space-4);
}
.setup-actions__spacer {
flex: 1;
}
.setup-choice {
display: flex;
align-items: flex-start;
gap: var(--space-2);
margin-bottom: var(--space-3);
}
.setup-choice__hint {
display: block;
}
.setup-smtp-detail {
color: var(--color-danger);
font-family: var(--font-mono);
font-size: 0.85rem;
overflow-wrap: anywhere;
}
.setup-summary dt {
margin-top: var(--space-3);
color: var(--color-text-muted);
font-size: 0.9rem;
}
.setup-summary dd {
margin: 0;
}
/* Settings */
.settings-section {
max-width: 36rem;
margin-bottom: var(--space-8);
padding-bottom: var(--space-6);
border-bottom: 1px solid var(--color-border);
}
.table {
width: 100%;
border-collapse: collapse;
margin-bottom: var(--space-4);
}
.table th,
.table td {
text-align: left;
padding: var(--space-2) var(--space-3);
border-bottom: 1px solid var(--color-border);
font-size: 0.95rem;
}
.table th {
color: var(--color-text-muted);
font-weight: 400;
}
.badge {
display: inline-block;
margin-left: var(--space-2);
padding: 0 var(--space-2);
border-radius: 999px;
background: var(--color-bg-subtle);
border: 1px solid var(--color-border);
font-size: 0.8rem;
color: var(--color-text-muted);
}
/* User menu */
.user-menu {
position: relative;
}
.user-menu__trigger {
background: none;
border: 1px solid transparent;
border-radius: var(--radius);
padding: var(--space-1) var(--space-3);
cursor: pointer;
}
.user-menu__trigger:hover {
border-color: var(--color-border);
}
.user-menu__list {
position: absolute;
right: 0;
top: calc(100% + 4px);
min-width: 12rem;
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius);
box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
display: flex;
flex-direction: column;
z-index: 10;
}
.user-menu__list a,
.user-menu__list button {
padding: var(--space-2) var(--space-3);
text-align: left;
background: none;
border: none;
color: var(--color-text);
text-decoration: none;
cursor: pointer;
font: inherit;
}
.user-menu__list a:hover,
.user-menu__list button:hover {
background: var(--color-bg-subtle);
}
.topbar__nav {
display: flex;
gap: var(--space-4);
}
/* Page editor (issue #25). Fills the content area — no width cap (issue
#100); the public read view keeps its own narrow reading layout. */
.editor-page {
min-width: 0;
}
.editor-page__header {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-4);
margin-bottom: var(--space-4);
}
.editor-page__title {
flex: 1;
/* An input's intrinsic size-attribute width must not set the page's
minimum width on narrow viewports (#165). */
min-width: 0;
border: none;
background: none;
font-family: var(--font-heading);
font-weight: var(--font-weight-heading);
font-size: 1.6rem;
padding: var(--space-1) 0;
}
.editor-page__title:disabled {
color: var(--color-text);
opacity: 1;
}
.editor-page__title:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
/* Status line between page header and article (#134). Middot-separated,
muted; shared by the authenticated read view and the public view. */
.page-statusbar {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
margin-top: calc(-1 * var(--space-2));
margin-bottom: var(--space-4);
color: var(--color-text-muted);
font-size: 0.8125rem;
}
.page-statusbar__item {
display: inline-flex;
align-items: center;
}
.page-statusbar__item:not(:first-child)::before {
content: '·';
margin-right: var(--space-2);
color: var(--color-border);
}
/* The export entries flow inline with the other overflow-menu items. */
.editor-page__export {
display: contents;
}
.pond-export__hint {
color: var(--color-text-muted);
margin-bottom: var(--space-2);
}
/* Pond appearance (fonts) settings — issue #66 */
.appearance__intro {
color: var(--color-text-muted);
}
.appearance__slot {
display: flex;
flex-wrap: wrap;
align-items: end;
gap: var(--space-3);
padding: var(--space-3) 0;
border-top: 1px solid var(--color-border);
}
.appearance__slot-label {
flex-basis: 100%;
font-weight: 600;
}
.appearance__field {
display: flex;
flex-direction: column;
gap: var(--space-1);
}
.appearance__preview {
flex: 1 1 16rem;
margin: 0;
font-size: 1.1rem;
}
.appearance__actions {
display: flex;
align-items: center;
gap: var(--space-4);
margin-top: var(--space-3);
}
.font-catalog__table {
border-collapse: collapse;
width: 100%;
}
.font-catalog__table th,
.font-catalog__table td {
text-align: left;
padding: var(--space-2) var(--space-3);
border-bottom: 1px solid var(--color-border);
}
.editor-shell {
border: 1px solid var(--color-border);
border-radius: var(--radius);
}
/* Read mode drops the frame and its inner padding — the rendered page sits
directly in the content area (M10 follow-up). */
.editor-shell--reading {
border: none;
border-radius: 0;
}
.editor-shell--reading > .editor-content {
padding: 0;
}
.editor-toolbar {
display: flex;
flex-wrap: wrap;
gap: var(--space-3);
padding: var(--space-2) var(--space-3);
border-bottom: 1px solid var(--color-border);
background: var(--color-bg-subtle);
/* Long articles: the toolbar pins to the top of the scrolling content area
instead of scrolling away. The scroll container `.main` has a top padding
(`--space-6`); a plain `top: 0` would stick the toolbar at that padding
edge, leaving a visible gap below the nav. Offset by `-1 * --space-6` so it
pins flush against the navigation, with no scrolling page showing through. */
position: sticky;
top: calc(-1 * var(--space-6));
z-index: 20;
}
.editor-toolbar__group {
display: flex;
gap: var(--space-1);
padding-right: var(--space-3);
border-right: 1px solid var(--color-border);
}
.editor-toolbar__group:last-child {
border-right: none;
padding-right: 0;
}
.editor-toolbar__section-select {
height: 1.75rem;
max-width: 12rem;
padding: 0 var(--space-1);
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: var(--color-bg);
color: var(--color-text);
font-size: 0.85rem;
}
/* A section whose plugin is disabled/removed is an invisible wrapper (its
* dt-style-… class matches no stylesheet). While writing, a faint dashed
* hint keeps every section findable, so "unwrap" has a visible target. */
.editor-content .dt-section {
border-radius: var(--radius);
outline: 1px dashed transparent;
outline-offset: 2px;
}
.editor-content:focus-within .dt-section {
outline-color: var(--color-border);
}
/* The page-tools panel (issue #77): active pageTool plugin surfaces behind
* disclosures; each iframe mounts lazily on first open. */
.page-tools {
margin: var(--space-2) var(--space-3);
border: 1px solid var(--color-border);
border-radius: var(--radius);
}
.page-tools__tool + .page-tools__tool {
border-top: 1px solid var(--color-border);
}
.page-tools__toggle {
display: block;
width: 100%;
padding: var(--space-2) var(--space-3);
border: none;
background: var(--color-bg-subtle);
color: var(--color-text);
text-align: left;
font-size: 0.9rem;
cursor: pointer;
}
.page-tools__tool .plugin-frame-host {
padding: var(--space-2) var(--space-3);
}
/* A plugin-owned block (issue #76): a framed island in the content column.
* The sandbox iframe sizes itself via ui.resize; the bar carries the plugin
* name and the edit affordance. */
.plugin-block {
margin: 0.75rem 0;
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: var(--color-bg);
}
.plugin-block--selected {
outline: 2px solid var(--color-accent);
outline-offset: 1px;
}
.plugin-block__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
padding: var(--space-1) var(--space-2);
border-bottom: 1px solid var(--color-border);
background: var(--color-bg-subtle);
font-size: 0.8rem;
color: var(--color-text-muted);
}
.plugin-block__mount .plugin-frame {
display: block;
width: 100%;
border: none;
}
/* Read mode integrates plugin output like normal content: no frame, no
name bar — same principle as the frameless reading shell (M10). */
.editor-shell--reading .plugin-block {
border: none;
border-radius: 0;
background: transparent;
/* No selection outline either — reading is not editing. */
outline: none;
}
.editor-shell--reading .plugin-block__bar {
display: none;
}
.plugin-block__fallback {
padding: var(--space-2) var(--space-3);
}
.plugin-block__fallback-text {
margin: 0;
}
.plugin-block__fallback-note {
margin: var(--space-1) 0 0;
font-size: 0.8rem;
color: var(--color-text-muted);
}
.toolbar-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 1.75rem;
height: 1.75rem;
padding: 0 var(--space-1);
border: 1px solid transparent;
border-radius: var(--radius);
background: transparent;
cursor: pointer;
color: var(--color-text);
font-size: 0.9rem;
}
.toolbar-button:hover:not(:disabled) {
background: var(--color-bg);
border-color: var(--color-border);
}
.toolbar-button:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 1px;
}
.toolbar-button--active {
background: var(--color-accent);
color: var(--color-accent-contrast);
}
.toolbar-button:disabled {
opacity: 0.4;
cursor: default;
}
.editor-link-form {
display: flex;
gap: var(--space-1);
align-items: center;
}
.editor-link-form input {
padding: var(--space-1) var(--space-2);
border: 1px solid var(--color-border);
border-radius: var(--radius);
font: inherit;
font-size: 0.9rem;
}
.editor-link-form__error {
flex-basis: 100%;
font-size: 0.8rem;
color: var(--color-danger);
}
.editor-link-menu {
padding: var(--space-2);
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: var(--color-bg);
box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
}
.editor-link-menu__actions {
display: flex;
gap: var(--space-1);
}
/* The connection-status icon in the content footer (left half). */
.editor-connection {
display: inline-flex;
align-items: center;
color: var(--color-text-muted);
}
.editor-connection svg {
width: 1rem;
height: 1rem;
}
.editor-connection[data-status='connected'] {
color: var(--color-accent);
}
.editor-connection[data-status='offline'] {
color: var(--color-danger);
}
.presence-strip {
display: flex;
gap: calc(-1 * var(--space-1));
align-items: center;
padding: var(--space-1) var(--space-3);
}
.presence-avatar {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.75rem;
height: 1.75rem;
margin-left: -0.4rem;
border: 2px solid var(--color-bg);
border-radius: 50%;
color: #ffffff;
font-size: 0.7rem;
font-weight: 600;
}
.presence-avatar:first-child {
margin-left: 0;
}
.presence-avatar--overflow {
background: var(--color-text-muted);
}
.presence-avatar__ro {
position: absolute;
right: -0.15rem;
bottom: -0.15rem;
font-size: 0.75rem;
line-height: 1;
}
/* Remote collaboration carets and selections (issue #37). */
.collab-caret {
position: relative;
margin-left: -1px;
margin-right: -1px;
border-left: 1px solid;
border-right: 1px solid;
word-break: normal;
pointer-events: none;
}
.collab-caret--hidden {
display: none;
}
.collab-caret__label {
position: absolute;
top: -1.4em;
left: -1px;
padding: 0.05rem 0.3rem;
border-radius: 3px 3px 3px 0;
color: #ffffff;
font-size: 0.7rem;
font-weight: 600;
white-space: nowrap;
user-select: none;
}
.collab-selection {
border-radius: 2px;
}
.editor-banner {
margin: var(--space-1) var(--space-3);
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-sm, 4px);
font-size: 0.9rem;
}
.editor-banner--info {
background: var(--color-bg-subtle);
border: 1px solid var(--color-border);
color: var(--color-text-muted);
}
.editor-banner--error {
background: var(--color-bg-subtle);
border: 1px solid var(--color-danger);
color: var(--color-danger);
}
.editor-page__body {
display: flex;
gap: var(--space-4);
align-items: flex-start;
}
.editor-page__body > .editor-shell {
flex: 1 1 auto;
min-width: 0;
}
/* Column holding the open side panels next to the editor; each panel takes
the column's full width and they stack vertically (M10 follow-up). */
.editor-page__panels {
display: flex;
flex-direction: column;
gap: var(--space-4);
flex: 0 0 22rem;
max-width: 22rem;
}
.editor-page__panels > .label-picker,
.editor-page__panels > .history-panel {
flex: none;
max-width: none;
}
.history-panel {
flex: 0 0 22rem;
max-width: 22rem;
border: 1px solid var(--color-border);
border-radius: var(--radius-sm, 4px);
padding: var(--space-3);
max-height: 80vh;
overflow-y: auto;
}
.history-panel__header {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--space-2);
}
.history-panel__header h2 {
font-size: 1rem;
margin: 0;
}
.history-panel__list {
list-style: none;
margin: var(--space-2) 0;
padding: 0;
}
.history-panel__item {
display: flex;
flex-direction: column;
width: 100%;
text-align: left;
gap: 2px;
padding: var(--space-2);
border: 1px solid transparent;
border-radius: var(--radius-sm, 4px);
background: none;
cursor: pointer;
color: inherit;
}
.history-panel__item:hover {
background: var(--color-bg-subtle);
}
.history-panel__item[aria-current='true'] {
border-color: var(--color-border);
background: var(--color-bg-subtle);
}
/* Owner-facing quick label management inside the picker (M10 follow-up). */
.label-picker__manage {
margin-top: var(--space-3);
padding-top: var(--space-3);
border-top: 1px solid var(--color-border);
font-size: 0.85rem;
}
.label-picker__create {
display: flex;
align-items: center;
gap: var(--space-2);
margin-bottom: var(--space-2);
}
.label-picker__create input {
flex: 1;
min-width: 0;
}
.label-picker__error {
color: var(--color-danger);
font-size: 0.85rem;
}
/* Contributor names under each version entry (M10 follow-up). */
.history-panel__contributors {
display: block;
padding: 0 var(--space-2) var(--space-1);
font-size: 0.8rem;
color: var(--color-text-muted);
}
.history-panel__contributors-more {
font: inherit;
}
.history-panel__when {
font-weight: 600;
font-size: 0.9rem;
}
.history-panel__meta {
font-size: 0.8rem;
color: var(--color-text-muted);
}
.history-panel__error {
color: var(--color-danger);
}
.history-panel__diff {
white-space: pre-wrap;
word-break: break-word;
font-size: 0.85rem;
background: var(--color-bg-subtle);
padding: var(--space-2);
border-radius: var(--radius-sm, 4px);
}
.diff--added {
background: color-mix(in srgb, green 22%, transparent);
text-decoration: none;
}
.diff--removed {
background: color-mix(in srgb, red 22%, transparent);
text-decoration: line-through;
}
.history-panel__preview {
border-top: 1px solid var(--color-border);
padding-top: var(--space-2);
}
.access-revoked__title {
font-weight: 600;
margin: 0 0 var(--space-1);
}
.access-revoked__description {
margin: 0 0 var(--space-2);
}
.access-revoked__actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
}
.editor-content {
padding: var(--space-4) var(--space-6);
min-height: 12rem;
}
.editor-content .ProseMirror {
outline: none;
}
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4 {
margin-top: var(--space-6);
margin-bottom: var(--space-2);
}
.editor-content blockquote {
margin: var(--space-4) 0;
padding-left: var(--space-4);
border-left: 3px solid var(--color-border);
color: var(--color-text-muted);
}
.editor-content pre {
padding: var(--space-3);
border-radius: var(--radius);
background: var(--color-bg-subtle);
overflow-x: auto;
}
.editor-content code {
background: var(--color-bg-subtle);
border-radius: 3px;
padding: 0 0.25em;
}
.editor-content pre code {
background: none;
padding: 0;
}
/* Task lists (checkbox lists). Styled globally via the unique
`data-type='task_list'` attribute — produced only by docToHtml and the
editor nodeview — so checkbox and text line up in the editor
(.editor-content) AND every read-mode container that injects docToHtml
output (.public-page__body, .comment__body, .legal-page__body, .home-page,
.history-panel__preview). Previously these rules were scoped to
.editor-content and never reached the read views. Issue #137. */
ul[data-type='task_list'] {
list-style: none;
padding-left: var(--space-2);
}
ul[data-type='task_list'] li {
display: flex;
align-items: flex-start;
gap: var(--space-2);
}
/* The checkbox is the top flex child; nudge it onto the first text line and
drop the leading/trailing margins of the item's paragraphs so the text meets
the checkbox instead of dropping a line. DESCENDANT selectors on purpose
(issue #137, second regression): the DOM depth differs per surface —
public/docToHtml renders `li > input` + `li > p`, but the editor/auth read
view (TipTap ReactNodeView) nests the paragraph TWO wrappers deep:
`li > div[data-node-view-content] > div > p`. Child-combinator chains keep
missing one of the shapes; matching any `p` inside the task item is the
robust form. `:first-of-type`/`:last-of-type` (NOT `:first-child`) because
the ``/`