This commit is contained in:
Mateusz Gruszczyński
2026-07-29 11:48:44 +02:00
parent 904f59146b
commit 0655cfe48c
12 changed files with 938 additions and 191 deletions
+386 -98
View File
@@ -441,8 +441,8 @@ textarea:focus {
display: none;
}
.workspace > .editor-column,
.workspace > .preview-column {
.workspace>.editor-column,
.workspace>.preview-column {
transition: opacity .18s ease, transform .18s ease;
}
@@ -2138,6 +2138,12 @@ dialog::backdrop {
border-radius: 4px;
outline: none;
cursor: text;
user-select: text;
-webkit-user-select: text;
}
.preview-editable[contenteditable="true"] {
caret-color: auto;
}
.preview-editable:hover {
@@ -3799,7 +3805,7 @@ dialog::backdrop {
position: relative;
}
.emoji-picker > summary {
.emoji-picker>summary {
display: flex;
align-items: center;
min-height: 34px;
@@ -3813,12 +3819,12 @@ dialog::backdrop {
white-space: nowrap;
}
.emoji-picker > summary::-webkit-details-marker {
.emoji-picker>summary::-webkit-details-marker {
display: none;
}
.emoji-picker > summary:hover,
.emoji-picker[open] > summary {
.emoji-picker>summary:hover,
.emoji-picker[open]>summary {
border-color: var(--border);
background: var(--surface-2);
color: white;
@@ -4014,10 +4020,13 @@ dialog::backdrop {
}
@media (max-width: 720px) {
.authorship-layer { left: 42px; }
.authorship-layer {
left: 42px;
}
.hide-editor-line-numbers .authorship-layer {
left: 0;
}
left: 0;
}
}
/* Multiple authors can contribute to one line. */
@@ -4245,7 +4254,7 @@ dialog::backdrop {
display: flex;
}
.pad-page .header-actions > * {
.pad-page .header-actions>* {
width: 100%;
flex: 0 0 auto;
}
@@ -4255,6 +4264,23 @@ dialog::backdrop {
justify-content: flex-start;
}
.pad-page .header-actions .page-settings>summary {
box-sizing: border-box;
display: flex;
width: 100%;
min-height: 36px;
align-items: center;
justify-content: flex-start;
}
.pad-page .header-actions .page-settings-menu {
position: static;
width: 100%;
min-width: 0;
margin-top: 8px;
box-shadow: none;
}
.pad-page .header-actions .public-task-toggle {
min-height: 40px;
padding: 8px 10px;
@@ -4420,7 +4446,10 @@ dialog::backdrop {
}
/* Quick actions appear when the editor header switches to its compact menu. */
.mobile-editor-bubble { display: none; }
.mobile-editor-bubble {
display: none;
}
@media (max-width: 1499px) {
.pad-page .mobile-editor-bubble {
position: fixed;
@@ -4432,13 +4461,14 @@ dialog::backdrop {
gap: 5px;
max-width: calc(100vw - 20px);
padding: 5px;
border: 1px solid rgba(255,255,255,.12);
border: 1px solid rgba(255, 255, 255, .12);
border-radius: 999px;
background: rgba(17,21,28,.88);
box-shadow: 0 8px 24px rgba(0,0,0,.28);
background: rgba(17, 21, 28, .88);
box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
backdrop-filter: blur(10px);
}
.mobile-editor-bubble > button {
.mobile-editor-bubble>button {
display: inline-grid;
width: 34px;
height: 34px;
@@ -4446,17 +4476,19 @@ dialog::backdrop {
place-items: center;
border: 0;
border-radius: 50%;
background: rgba(255,255,255,.07);
background: rgba(255, 255, 255, .07);
color: var(--text);
font-size: 1rem;
}
.mobile-color-dot {
width: 15px;
height: 15px;
border: 2px solid rgba(255,255,255,.75);
border: 2px solid rgba(255, 255, 255, .75);
border-radius: 50%;
background: var(--owner, var(--accent));
}
.mobile-connection-status {
display: inline-flex;
align-items: center;
@@ -4467,12 +4499,16 @@ dialog::backdrop {
font-size: .72rem;
white-space: nowrap;
}
.mobile-connection-status #mobile-status-text {
max-width: 92px;
overflow: hidden;
text-overflow: ellipsis;
}
.pad-page .toast { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
.pad-page .toast {
bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}
}
/* Movable quick actions for compact editor screens. */
@@ -4496,35 +4532,12 @@ dialog::backdrop {
max-height: min(560px, calc(100dvh - 96px));
}
.mobile-time-button {
position: relative;
}
.mobile-time-preview {
position: absolute;
right: 8px;
bottom: calc(100% + 8px);
padding: 6px 9px;
border: 1px solid var(--border-strong);
border-radius: 8px;
background: var(--surface);
box-shadow: 0 8px 24px rgb(0 0 0 / 32%);
color: var(--text);
font-size: .78rem;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.mobile-time-preview[hidden] {
display: none;
}
.pad-page .mobile-editor-bubble.is-dragging {
transition: none;
cursor: grabbing;
}
.mobile-editor-bubble > .mobile-bubble-drag {
.mobile-editor-bubble>.mobile-bubble-drag {
width: 24px;
background: transparent;
color: var(--muted-2);
@@ -4562,39 +4575,120 @@ dialog::backdrop {
}
/* Authorship display modes */
.editor-column-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.authorship-mode-control { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--panel) 88%, transparent); }
.authorship-mode-control button { min-height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; }
.authorship-mode-control button.active { background: var(--surface-strong, #262b35); color: var(--text); }
.participant-badges { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 6px; min-width: 0; min-height: 0; padding: 7px 12px; border-bottom: 1px solid var(--border); }
.participant-badges[hidden] { display: none; }
.participant-badge { display: inline-flex; flex: 0 0 auto; align-items: center; width: auto; max-width: 100%; min-height: 0; padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--owner) 65%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--owner) 18%, transparent); font: 600 11px/1.3 system-ui, sans-serif; }
@media (max-width: 720px) {
.editor-column-label { align-items: flex-start; }
.authorship-mode-control button { padding-inline: 7px; }
.participant-badges { padding: 6px 8px; }
.public-task-toggle { width: 100%; }
.editor-column-label {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.public-page-options { display: grid; gap: 4px; align-content: center; }
.public-page-options .public-task-toggle { min-height: 24px; }
@media (max-width: 720px) { .public-page-options { width: 100%; } }
.authorship-mode-control {
display: inline-flex;
gap: 2px;
padding: 2px;
border: 1px solid var(--border);
border-radius: 8px;
background: color-mix(in srgb, var(--panel) 88%, transparent);
}
.authorship-mode-control button {
min-height: 26px;
padding: 0 9px;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--muted);
font-size: 11px;
}
.authorship-mode-control button.active {
background: var(--surface-strong, #262b35);
color: var(--text);
}
.participant-badges {
display: flex;
flex-wrap: wrap;
align-items: center;
align-content: center;
gap: 6px;
min-width: 0;
min-height: 0;
padding: 7px 12px;
border-bottom: 1px solid var(--border);
}
.participant-badges[hidden] {
display: none;
}
.participant-badge {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
width: auto;
max-width: 100%;
min-height: 0;
padding: 3px 8px;
border: 1px solid color-mix(in srgb, var(--owner) 65%, transparent);
border-radius: 999px;
background: color-mix(in srgb, var(--owner) 18%, transparent);
font: 600 11px/1.3 system-ui, sans-serif;
}
@media (max-width: 720px) {
.editor-column-label {
align-items: flex-start;
}
.authorship-mode-control button {
padding-inline: 7px;
}
.participant-badges {
padding: 6px 8px;
}
.public-task-toggle {
width: 100%;
}
}
.public-page-options {
display: grid;
gap: 4px;
align-content: center;
}
.public-page-options .public-task-toggle {
min-height: 24px;
}
@media (max-width: 720px) {
.public-page-options {
width: 100%;
}
}
/* Keep the whole editor surface consistent in Simple and Full modes. */
.editor-shell {
background: #0d1015;
}
.editor-shell textarea {
z-index: 3;
background: transparent;
}
.authorship-layer {
z-index: 2;
background: transparent;
}
.owner-labels {
z-index: 4;
}
.line-gutter {
z-index: 5;
}
@@ -4688,37 +4782,105 @@ dialog::backdrop {
min-height: 0;
}
.pad-page .editor-column > .column-label,
.pad-page .editor-column > .participant-badges {
.pad-page .editor-column>.column-label,
.pad-page .editor-column>.participant-badges {
flex: 0 0 auto;
}
.pad-page .editor-column > .editor-shell {
.pad-page .editor-column>.editor-shell {
flex: 1 1 auto;
width: 100%;
min-height: 0;
}
/* Compact Page settings dropdown. */
.page-settings { position: relative; }
.page-settings > summary { list-style: none; cursor: pointer; }
.page-settings > summary::-webkit-details-marker { display: none; }
.page-settings-menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; display: grid; gap: 4px; min-width: 220px; padding: 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.page-settings-menu .public-task-toggle { min-height: 30px; padding: 5px 7px; border-radius: 6px; }
.page-settings-menu .public-task-toggle:hover { background: color-mix(in srgb, var(--surface-strong, #262b35) 72%, transparent); }
#publish-page:disabled { opacity: .45; cursor: not-allowed; }
.page-settings {
position: relative;
}
.page-settings>summary {
list-style: none;
cursor: pointer;
}
.page-settings>summary::-webkit-details-marker {
display: none;
}
.page-settings-menu {
position: absolute;
z-index: 30;
top: calc(100% + 6px);
right: 0;
display: grid;
gap: 4px;
min-width: 220px;
padding: 8px;
border: 1px solid var(--border);
border-radius: 9px;
background: var(--panel);
box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}
.page-settings-menu .public-task-toggle {
min-height: 30px;
padding: 5px 7px;
border-radius: 6px;
}
.page-settings-menu .public-task-toggle:hover {
background: color-mix(in srgb, var(--surface-strong, #262b35) 72%, transparent);
}
#publish-page:disabled {
opacity: .45;
cursor: not-allowed;
}
/* Keep the Simple/Full switch inside the editor label frame. */
.authorship-mode-control { padding: 1px; border-radius: 7px; }
.authorship-mode-control button { min-height: 20px; height: 20px; padding: 0 7px; border-radius: 5px; line-height: 20px; }
.authorship-mode-control {
padding: 1px;
border-radius: 7px;
}
.authorship-mode-control button {
min-height: 20px;
height: 20px;
padding: 0 7px;
border-radius: 5px;
line-height: 20px;
}
/* Make secondary editor actions read clearly as buttons. */
.markdown-more > summary,
.pad-page .toolbar-action { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-strong, #262b35); color: var(--text); font-weight: 600; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.markdown-more > summary:hover,
.pad-page .toolbar-action:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); filter: brightness(1.08); }
.markdown-more > summary { list-style: none; }
.markdown-more > summary::-webkit-details-marker { display: none; }
.markdown-more>summary,
.pad-page .toolbar-action {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 30px;
padding: 5px 10px;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--surface-strong, #262b35);
color: var(--text);
font-weight: 600;
cursor: pointer;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.markdown-more>summary:hover,
.pad-page .toolbar-action:hover {
border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
filter: brightness(1.08);
}
.markdown-more>summary {
list-style: none;
}
.markdown-more>summary::-webkit-details-marker {
display: none;
}
/* Final UI fixes: opaque Page settings and per-note authorship controls. */
@@ -4727,32 +4889,151 @@ dialog::backdrop {
opacity: 1;
backdrop-filter: none;
}
.authorship-controls { display: inline-flex; align-items: center; gap: 7px; }
.authorship-color-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; color: var(--muted); font-size: 11px; cursor: pointer; }
.authorship-color-toggle input { width: 28px; height: 16px; margin: 0; accent-color: var(--accent); }
.authorship-layer { overflow: hidden; padding: 0; }
.authorship-canvas { position: absolute; top: 0; left: 0; box-sizing: border-box; color: transparent; white-space: pre; tab-size: 4; will-change: transform; }
.share-link-row .share-link-info { justify-self: end; width: min(100%, 520px); text-align: right; }
.share-link-row .share-link-inline { width: 100%; text-align: left; }
@media (max-width: 800px) {
.share-link-row .share-link-info { justify-self: stretch; width: 100%; text-align: left; }
.authorship-controls { max-width: 100%; gap: 5px; }
.authorship-controls {
display: inline-flex;
align-items: center;
gap: 7px;
}
.page-settings-menu .public-task-toggle { background: #171c24; }
.page-settings-menu .public-task-toggle:hover { background: #242b36; }
.authorship-color-toggle {
display: inline-flex;
align-items: center;
gap: 5px;
min-height: 22px;
color: var(--muted);
font-size: 11px;
cursor: pointer;
}
.authorship-color-toggle input {
width: 28px;
height: 16px;
margin: 0;
accent-color: var(--accent);
}
.authorship-layer {
overflow: hidden;
padding: 0;
}
.authorship-canvas {
position: absolute;
top: 0;
left: 0;
box-sizing: border-box;
color: transparent;
white-space: pre;
tab-size: 4;
will-change: transform;
}
.share-link-row .share-link-info {
justify-self: end;
width: min(100%, 520px);
text-align: right;
}
.share-link-row .share-link-inline {
width: 100%;
text-align: left;
}
@media (max-width: 800px) {
.share-link-row .share-link-info {
justify-self: stretch;
width: 100%;
text-align: left;
}
.authorship-controls {
max-width: 100%;
gap: 5px;
}
}
.page-settings-menu .public-task-toggle {
background: #171c24;
}
.page-settings-menu .public-task-toggle:hover {
background: #242b36;
}
/* Shared editor display settings */
.authorship-controls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.switch-control { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; color: var(--muted); user-select: none; }
.switch-control input { position: absolute; opacity: 0; pointer-events: none; }
.switch-control__track { position: relative; width: 30px; height: 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-strong, #262b35); transition: .15s ease; }
.switch-control__track::after { content: ""; position: absolute; width: 10px; height: 10px; left: 2px; top: 2px; border-radius: 50%; background: var(--muted); transition: .15s ease; }
.switch-control input:checked + .switch-control__track { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 28%, var(--surface-strong, #262b35)); }
.switch-control input:checked + .switch-control__track::after { transform: translateX(14px); background: var(--accent); }
.editor-settings-save { min-height: 22px; height: 22px; padding: 0 8px; font-size: 11px; }
.editor-settings-save:disabled { opacity: .45; cursor: not-allowed; }
.share-link-row .share-link-info { margin-top: 8px; justify-self: start; text-align: left; }
.authorship-controls {
display: flex;
align-items: center;
gap: 7px;
flex-wrap: wrap;
}
.switch-control {
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
font-size: 11px;
color: var(--muted);
user-select: none;
}
.switch-control input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.switch-control__track {
position: relative;
width: 30px;
height: 16px;
border: 1px solid var(--border);
border-radius: 999px;
background: var(--surface-strong, #262b35);
transition: .15s ease;
}
.switch-control__track::after {
content: "";
position: absolute;
width: 10px;
height: 10px;
left: 2px;
top: 2px;
border-radius: 50%;
background: var(--muted);
transition: .15s ease;
}
.switch-control input:checked+.switch-control__track {
border-color: var(--accent);
background: color-mix(in srgb, var(--accent) 28%, var(--surface-strong, #262b35));
}
.switch-control input:checked+.switch-control__track::after {
transform: translateX(14px);
background: var(--accent);
}
.editor-settings-save {
min-height: 22px;
height: 22px;
padding: 0 8px;
font-size: 11px;
}
.editor-settings-save:disabled {
opacity: .45;
cursor: not-allowed;
}
.share-link-row .share-link-info {
margin-top: 8px;
justify-self: start;
text-align: left;
}
.preview-editable--source {
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
@@ -4768,17 +5049,21 @@ dialog::backdrop {
padding-top: 12px;
border-top: 1px solid var(--border);
}
.share-link-list-wrap h5 {
margin: 0;
font-size: .86rem;
}
.share-link-list {
width: 100%;
}
.share-link-row {
grid-template-columns: minmax(130px, auto) 100px auto auto;
align-items: end;
}
.share-link-row .share-link-info {
grid-column: 1 / -1;
width: 100%;
@@ -4786,14 +5071,17 @@ dialog::backdrop {
text-align: left;
margin-top: 0;
}
.share-link-row .share-link-inline {
width: 100%;
}
@media (max-width: 800px) {
.share-link-row {
grid-template-columns: 1fr;
}
.share-link-row .share-link-info {
grid-column: 1;
}
}
}