new functions
This commit is contained in:
@@ -4698,3 +4698,102 @@ dialog::backdrop {
|
||||
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; }
|
||||
|
||||
/* 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; }
|
||||
|
||||
/* 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; }
|
||||
|
||||
|
||||
/* Final UI fixes: opaque Page settings and per-note authorship controls. */
|
||||
.page-settings-menu {
|
||||
background: #171c24;
|
||||
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; }
|
||||
}
|
||||
|
||||
.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; }
|
||||
|
||||
.preview-editable--source {
|
||||
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
|
||||
/* Keep generated individual links below the new-link form. */
|
||||
.share-link-list-wrap {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
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%;
|
||||
justify-self: stretch;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user