mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 01:10:10 +08:00
Add rich text and learning blocks, media uploads, page trees, and revisioned notebook storage. Present AI suggestions at their target blocks with durable accept and dismiss actions. Unify saved outputs as Favorites with typed expandable blocks, stable source links, atomic batch insertion, nesting, dragging, and undo/redo. Validation: 99 frontend tests and 99 backend tests pass in an isolated snapshot, along with TypeScript, scoped ESLint, dependency architecture, and locale parity checks.
1569 lines
34 KiB
CSS
1569 lines
34 KiB
CSS
.dt-note-editor {
|
|
--bn-colors-editor-background: transparent;
|
|
--bn-colors-editor-text: var(--foreground);
|
|
color: var(--foreground);
|
|
width: 100%;
|
|
}
|
|
.dt-note-editor .bn-editor {
|
|
padding: 16px 46px 120px;
|
|
background: transparent;
|
|
color: var(--foreground);
|
|
font-family: inherit;
|
|
font-size: 15px;
|
|
line-height: 1.75;
|
|
min-height: 50vh;
|
|
}
|
|
.dt-note-editor .bn-block-content {
|
|
padding: 3px 0;
|
|
}
|
|
.dt-note-editor .bn-block-content[data-content-type='heading'] {
|
|
margin-top: 20px;
|
|
}
|
|
.dt-note-editor .bn-container {
|
|
font-family: inherit;
|
|
}
|
|
.dt-note-menu,
|
|
.dt-note-toolbar {
|
|
background: var(--card);
|
|
color: var(--foreground);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 18px #00000014;
|
|
padding: 4px;
|
|
z-index: 60;
|
|
}
|
|
.dt-note-menu {
|
|
min-width: 200px;
|
|
max-height: 320px;
|
|
overflow-y: auto;
|
|
}
|
|
.dt-note-menu button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 6px 8px;
|
|
font-size: 13px;
|
|
border-radius: 4px;
|
|
}
|
|
.dt-note-menu button:disabled {
|
|
opacity: .4;
|
|
cursor: default;
|
|
}
|
|
.dt-note-menu button:hover:not(:disabled),
|
|
.dt-note-menu button.selected,
|
|
.dt-note-toolbar button:hover {
|
|
background: var(--secondary);
|
|
}
|
|
.dt-note-toolbar button[aria-pressed='true'] {
|
|
background: var(--secondary);
|
|
color: var(--primary);
|
|
}
|
|
.dt-note-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
.dt-note-toolbar button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 5px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
.dt-note-toolbar select {
|
|
font-size: 12px;
|
|
max-width: 70px;
|
|
background: transparent;
|
|
}
|
|
.dt-note-handle {
|
|
display: flex;
|
|
position: relative;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-drag-handle { touch-action: none; cursor: grab; }
|
|
.dt-note-drag-handle:active { cursor: grabbing; }
|
|
.dt-note-drop-line { position: fixed; height: 3px; background: var(--primary); border-radius: 2px; pointer-events: none; z-index: 1000; }
|
|
.dt-note-handle > button,
|
|
.dt-note-handle > span button {
|
|
padding: 2px;
|
|
border-radius: 3px;
|
|
}
|
|
.dt-note-handle .dt-note-menu {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 24px;
|
|
}
|
|
.dt-note-clip {
|
|
padding: 10px 14px;
|
|
border-left: 3px solid var(--border);
|
|
width: 100%;
|
|
background: color-mix(in srgb, var(--secondary) 40%, transparent);
|
|
}
|
|
.dt-note-clip summary {
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-clip a,
|
|
.dt-note-link {
|
|
color: var(--primary);
|
|
text-decoration: underline;
|
|
font-size: 13px;
|
|
}
|
|
.dt-note-math {
|
|
width: 100%;
|
|
text-align: center;
|
|
padding: 8px;
|
|
}
|
|
.dt-note-math input {
|
|
width: 100%;
|
|
background: var(--secondary);
|
|
padding: 8px;
|
|
}
|
|
.dt-note-math button {
|
|
width: 100%;
|
|
}
|
|
.dt-note-learning {
|
|
width: 100%;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 14px;
|
|
margin: 8px 0;
|
|
}
|
|
.dt-note-learning input:not([type='checkbox']):not([type='date']) {
|
|
background: transparent;
|
|
outline: none;
|
|
width: 100%;
|
|
font-size: 13px;
|
|
}
|
|
.dt-note-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 5px 7px;
|
|
border-radius: 5px;
|
|
font-size: 13px;
|
|
}
|
|
.dt-note-button:hover {
|
|
background: var(--secondary);
|
|
}
|
|
.dt-note-button:disabled {
|
|
opacity: 0.4;
|
|
}
|
|
@media (max-width: 640px) {
|
|
.dt-note-editor .bn-editor {
|
|
padding-left: 30px;
|
|
padding-right: 16px;
|
|
}
|
|
}
|
|
|
|
.dt-note-inline-math,
|
|
.dt-note-inline-math button,
|
|
.dt-note-inline-math .prose,
|
|
.dt-note-inline-math p {
|
|
display: inline;
|
|
margin: 0;
|
|
}
|
|
.dt-note-inline-math input {
|
|
width: 150px;
|
|
background: var(--secondary);
|
|
}
|
|
|
|
.dt-note-editor .bn-block-content[data-content-type='codeBlock'] {
|
|
border-radius: 6px;
|
|
}
|
|
.dt-note-editor .bn-side-menu {
|
|
z-index: 20;
|
|
}
|
|
|
|
.dt-note-editor .bn-block-content[data-content-type='heading'] h1 {
|
|
font-size: 28px;
|
|
}
|
|
.dt-note-editor .bn-block-content[data-content-type='heading'] h2 {
|
|
font-size: 23px;
|
|
}
|
|
.dt-note-editor .bn-block-content[data-content-type='heading'] h3 {
|
|
font-size: 19px;
|
|
}
|
|
.dt-note-editor .bn-block-content[data-content-type='heading'] :is(h1, h2, h3, h4, h5, h6) {
|
|
font-family: var(--font-serif), Georgia, serif;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Insertion palette: readable groups, quiet chrome and a separate example. */
|
|
.dt-note-insert-menu {
|
|
position: relative;
|
|
width: 316px;
|
|
max-width: calc(100vw - 32px);
|
|
color: var(--foreground);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
box-shadow:
|
|
0 10px 40px #00000018,
|
|
0 2px 6px #00000008;
|
|
font-family: var(--font-geist-sans), sans-serif;
|
|
font-size: 14px;
|
|
z-index: 70;
|
|
}
|
|
.dt-note-menu-hint {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 12px 14px 7px;
|
|
color: var(--muted-foreground);
|
|
font-size: 12px;
|
|
}
|
|
.dt-note-menu-items {
|
|
max-height: min(380px, 48vh);
|
|
overflow: auto;
|
|
padding: 0 5px 6px;
|
|
overscroll-behavior: contain;
|
|
scrollbar-width: thin;
|
|
}
|
|
.dt-note-menu-group {
|
|
padding: 13px 10px 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-menu-items > div:has(.dt-note-menu-group):not(:first-child) {
|
|
border-top: 1px solid var(--border);
|
|
margin-top: 6px;
|
|
}
|
|
.dt-note-menu-items button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-height: 37px;
|
|
padding: 7px 10px;
|
|
width: 100%;
|
|
text-align: left;
|
|
border-radius: 6px;
|
|
}
|
|
.dt-note-menu-items button.selected {
|
|
background: var(--secondary);
|
|
}
|
|
.dt-note-menu-icon {
|
|
display: flex;
|
|
width: 23px;
|
|
flex-shrink: 0;
|
|
justify-content: center;
|
|
color: var(--foreground);
|
|
}
|
|
.dt-note-menu-items kbd {
|
|
margin-left: auto;
|
|
font: 12px inherit;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-insert-menu footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px 12px;
|
|
border-top: 1px solid var(--border);
|
|
font-size: 12px;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-insert-menu footer button,
|
|
.dt-note-insert-menu footer span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.dt-note-insert-menu footer kbd {
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
padding: 0 3px;
|
|
font-size: 10px;
|
|
}
|
|
.dt-note-menu-preview {
|
|
position: absolute;
|
|
bottom: 36px;
|
|
width: 224px;
|
|
padding: 10px;
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
box-shadow: 0 6px 28px #0000001a;
|
|
pointer-events: none;
|
|
}
|
|
.dt-note-menu-preview.right {
|
|
left: calc(100% + 10px);
|
|
}
|
|
.dt-note-menu-preview.left {
|
|
right: calc(100% + 10px);
|
|
}
|
|
.dt-note-menu-preview > strong {
|
|
display: block;
|
|
font-size: 13px;
|
|
margin: 10px 3px 4px;
|
|
}
|
|
.dt-note-menu-preview > p {
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
color: var(--muted-foreground);
|
|
margin: 0 3px 3px;
|
|
}
|
|
.dt-note-preview-example {
|
|
background: var(--background);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
min-height: 115px;
|
|
padding: 15px;
|
|
font-size: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
overflow: hidden;
|
|
}
|
|
.dt-note-preview-example h3 {
|
|
font-family: var(--font-serif), Georgia, serif;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
.dt-note-preview-example p {
|
|
display: block;
|
|
margin: 0;
|
|
}
|
|
.dt-note-preview-example label {
|
|
display: flex;
|
|
gap: 7px;
|
|
align-items: center;
|
|
}
|
|
.dt-note-preview-example input {
|
|
accent-color: var(--primary);
|
|
}
|
|
.dt-note-preview-example blockquote {
|
|
border-left: 3px solid var(--border);
|
|
padding-left: 10px;
|
|
}
|
|
.dt-note-preview-example ul {
|
|
padding-left: 16px;
|
|
list-style: disc;
|
|
line-height: 1.8;
|
|
}
|
|
.dt-note-preview-example table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 10px;
|
|
}
|
|
.dt-note-preview-example :is(td, th) {
|
|
border: 1px solid var(--border);
|
|
padding: 4px;
|
|
text-align: left;
|
|
}
|
|
.dt-note-preview-example pre {
|
|
white-space: pre-wrap;
|
|
font-size: 10px;
|
|
}
|
|
.dt-note-preview-equation {
|
|
font-family: Georgia, serif;
|
|
font-size: 17px;
|
|
}
|
|
.dt-note-callout {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
border-radius: 6px;
|
|
padding: 14px 16px;
|
|
width: 100%;
|
|
background: color-mix(in srgb, var(--secondary) 80%, transparent);
|
|
}
|
|
.dt-note-callout[data-tone='tip'] {
|
|
background: color-mix(in srgb, #e0b54a 12%, var(--card));
|
|
}
|
|
.dt-note-callout[data-tone='warning'] {
|
|
background: color-mix(in srgb, #f59e0b 13%, var(--card));
|
|
}
|
|
.dt-note-callout[data-tone='info'] {
|
|
background: color-mix(in srgb, #3b82f6 9%, var(--card));
|
|
}
|
|
.dt-note-callout > button {
|
|
padding-top: 3px;
|
|
flex-shrink: 0;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-callout-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.dt-note-toggle {
|
|
display: flex;
|
|
gap: 6px;
|
|
width: 100%;
|
|
}
|
|
.dt-note-toggle > button {
|
|
flex-shrink: 0;
|
|
align-self: flex-start;
|
|
margin-top: 24px;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
}
|
|
.dt-note-toggle > button:hover {
|
|
background: var(--secondary);
|
|
}
|
|
.dt-note-toggle[data-collapsed='false'] > button svg {
|
|
transform: rotate(90deg);
|
|
}
|
|
.dt-note-toggle-body {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
.dt-note-toggle[data-collapsed='true'] > .dt-note-toggle-body > .bn-block-group {
|
|
display: none;
|
|
}
|
|
.dt-note-toggle-title {
|
|
font-family: var(--font-serif), Georgia, serif;
|
|
font-weight: 600;
|
|
margin-top: 16px;
|
|
}
|
|
.dt-note-toggle-title.level-1 {
|
|
font-size: 28px;
|
|
}
|
|
.dt-note-toggle-title.level-2 {
|
|
font-size: 23px;
|
|
}
|
|
.dt-note-toggle-title.level-3 {
|
|
font-size: 19px;
|
|
}
|
|
.dt-note-columns {
|
|
display: flex;
|
|
width: 100%;
|
|
gap: 28px;
|
|
margin: 12px 0;
|
|
}
|
|
.dt-note-columns > .bn-block-group {
|
|
display: contents;
|
|
}
|
|
.dt-note-columns > :is(.bn-block-group > *, .bn-block-outer) {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.dt-note-column {
|
|
min-width: 0;
|
|
width: 100%;
|
|
min-height: 50px;
|
|
}
|
|
.dt-note-column > .bn-block-group {
|
|
padding: 0 !important;
|
|
border: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
.dt-note-column:hover {
|
|
outline: 1px dashed var(--border);
|
|
outline-offset: 8px;
|
|
}
|
|
.dt-note-toc {
|
|
width: 100%;
|
|
padding: 12px 0;
|
|
}
|
|
.dt-note-toc a {
|
|
display: block;
|
|
color: var(--muted-foreground);
|
|
font-size: 13px;
|
|
line-height: 1.8;
|
|
text-decoration: none;
|
|
padding-top: 3px;
|
|
padding-bottom: 3px;
|
|
border-radius: 3px;
|
|
}
|
|
.dt-note-toc a:hover {
|
|
color: var(--foreground);
|
|
background: var(--secondary);
|
|
}
|
|
.dt-note-block-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
font-size: 12px;
|
|
color: var(--muted-foreground);
|
|
margin-bottom: 9px;
|
|
}
|
|
.dt-note-block-label button {
|
|
margin-left: auto;
|
|
}
|
|
.dt-note-toc p,
|
|
.dt-note-hint {
|
|
color: var(--muted-foreground);
|
|
font-size: 12px;
|
|
padding: 8px 0;
|
|
}
|
|
.dt-note-web-card,
|
|
.dt-note-html,
|
|
.dt-note-data-view {
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
margin: 6px 0;
|
|
}
|
|
.dt-note-web-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 16px;
|
|
}
|
|
.dt-note-web-card-header > svg {
|
|
color: var(--muted-foreground);
|
|
flex-shrink: 0;
|
|
}
|
|
.dt-note-web-card-header a {
|
|
min-width: 0;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
}
|
|
.dt-note-web-card-header a span {
|
|
color: var(--muted-foreground);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.dt-note-web-card-header small {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
color: var(--muted-foreground);
|
|
font-size: 11px;
|
|
}
|
|
.dt-note-web-card-header > button {
|
|
opacity: 0;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-web-card:hover .dt-note-web-card-header > button,
|
|
.dt-note-web-card:focus-within .dt-note-web-card-header > button {
|
|
opacity: 1;
|
|
}
|
|
.dt-note-web-card form {
|
|
padding: 14px;
|
|
}
|
|
.dt-note-web-card label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: 12px;
|
|
color: var(--muted-foreground);
|
|
gap: 4px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.dt-note-web-card input,
|
|
.dt-note-link-form input {
|
|
border: 1px solid var(--border);
|
|
background: var(--background);
|
|
border-radius: 5px;
|
|
padding: 7px 9px;
|
|
font-size: 13px;
|
|
color: var(--foreground);
|
|
width: 100%;
|
|
}
|
|
.dt-note-web-card iframe,
|
|
.dt-note-html iframe {
|
|
width: 100%;
|
|
height: 340px;
|
|
border: 0;
|
|
background: white;
|
|
}
|
|
.dt-note-web-card .dt-note-hint {
|
|
padding: 4px 16px 10px;
|
|
}
|
|
.dt-note-html > .dt-note-block-label {
|
|
padding: 9px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
margin: 0;
|
|
}
|
|
.dt-note-html textarea {
|
|
width: 100%;
|
|
min-height: 200px;
|
|
padding: 12px;
|
|
background: var(--secondary);
|
|
font: 13px/1.6 monospace;
|
|
resize: vertical;
|
|
outline: none;
|
|
}
|
|
.dt-note-date {
|
|
font-size: 13px;
|
|
color: var(--primary);
|
|
background: var(--secondary);
|
|
border-radius: 4px;
|
|
padding: 0 3px;
|
|
}
|
|
.dt-note-data-view {
|
|
font-size: 13px;
|
|
}
|
|
.dt-note-data-view header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.dt-note-data-view [role='tablist'] {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-left: auto;
|
|
}
|
|
.dt-note-data-view [role='tab'] {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 4px 6px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
.dt-note-data-view [aria-selected='true'] {
|
|
background: var(--secondary);
|
|
}
|
|
.dt-note-view-search {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
align-items: center;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-data-view input:not([type='checkbox']),
|
|
.dt-note-data-view select {
|
|
background: transparent;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
outline: none;
|
|
font-size: 12px;
|
|
}
|
|
.dt-note-table-scroll {
|
|
overflow: auto;
|
|
}
|
|
.dt-note-data-view table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
.dt-note-data-view :is(th, td) {
|
|
text-align: left;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--border);
|
|
font-weight: normal;
|
|
}
|
|
.dt-note-data-view th {
|
|
color: var(--muted-foreground);
|
|
font-size: 12px;
|
|
background: var(--secondary);
|
|
}
|
|
.dt-note-task-columns {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 10px;
|
|
padding: 10px;
|
|
}
|
|
.dt-note-task-columns > div {
|
|
background: var(--secondary);
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
}
|
|
.dt-note-task-columns h4 {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
color: var(--muted-foreground);
|
|
margin-bottom: 8px;
|
|
}
|
|
.dt-note-task-columns article {
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 5px;
|
|
margin-bottom: 7px;
|
|
padding: 9px;
|
|
}
|
|
.dt-note-task-columns article p {
|
|
margin-bottom: 8px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.dt-note-task-columns small {
|
|
display: block;
|
|
color: var(--muted-foreground);
|
|
margin-top: 5px;
|
|
}
|
|
.dt-note-task-list label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 9px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.dt-note-task-list small {
|
|
margin-left: auto;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-new-task {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 10px 12px;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-new-task input {
|
|
flex: 1;
|
|
}
|
|
.dt-note-new-task button {
|
|
color: var(--foreground);
|
|
}
|
|
.dt-note-data-view .dt-note-hint {
|
|
padding: 8px 12px;
|
|
}
|
|
.dt-note-link-form {
|
|
position: absolute;
|
|
top: calc(100% + 5px);
|
|
left: 0;
|
|
width: 290px;
|
|
padding: 10px;
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 20px #0002;
|
|
}
|
|
.dt-note-toolbar {
|
|
position: relative;
|
|
flex-wrap: wrap;
|
|
max-width: calc(100vw - 24px);
|
|
}
|
|
@media (max-width: 640px) {
|
|
.dt-note-columns {
|
|
display: block;
|
|
}
|
|
.dt-note-column {
|
|
margin-bottom: 16px;
|
|
}
|
|
.dt-note-task-columns {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.dt-note-web-card-header > button {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
.dt-note-generation-preview {
|
|
border-left: 2px solid var(--primary);
|
|
padding: 8px 14px;
|
|
margin: 10px 0;
|
|
max-height: 420px;
|
|
overflow: auto;
|
|
font-size: 14px;
|
|
}
|
|
.dt-note-generation-preview > p {
|
|
color: var(--muted-foreground);
|
|
font-size: 13px;
|
|
}
|
|
.dt-note-insert-menu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: inherit;
|
|
}
|
|
.dt-note-menu-hint,
|
|
.dt-note-insert-menu footer {
|
|
flex-shrink: 0;
|
|
}
|
|
.dt-note-menu-items {
|
|
min-height: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
.dt-note-preview-paragraph {
|
|
font-size: 13px;
|
|
line-height: 1.75;
|
|
}
|
|
.dt-note-preview-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-family: var(--font-serif), Georgia, serif;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
margin-bottom: 8px;
|
|
}
|
|
.dt-note-preview-heading.level-1 {
|
|
font-size: 25px;
|
|
}
|
|
.dt-note-preview-heading.level-2 {
|
|
font-size: 21px;
|
|
}
|
|
.dt-note-preview-heading.level-3 {
|
|
font-size: 18px;
|
|
}
|
|
.dt-note-preview-heading.level-4 {
|
|
font-size: 16px;
|
|
}
|
|
.dt-note-preview-section > p {
|
|
color: var(--muted-foreground);
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
.dt-note-preview-example ol {
|
|
padding-left: 18px;
|
|
list-style: decimal;
|
|
line-height: 1.8;
|
|
}
|
|
.dt-note-preview-toggle-body {
|
|
padding-left: 20px;
|
|
line-height: 1.6;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-preview-example hr {
|
|
border: 0;
|
|
border-top: 1px solid var(--border);
|
|
width: 100%;
|
|
}
|
|
.dt-note-preview-example label:has(input:checked) {
|
|
text-decoration: line-through;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-columns .dt-note-column {
|
|
flex: 1;
|
|
width: auto;
|
|
min-width: 0;
|
|
}
|
|
.dt-note-columns > [data-node-view-content-react] > .node-noteColumn {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.dt-note-toggle[data-collapsed='true']
|
|
> .dt-note-toggle-body
|
|
> [data-node-view-content-react]
|
|
> .bn-block-group {
|
|
display: none;
|
|
}
|
|
|
|
.dt-note-page-title {
|
|
field-sizing: content;
|
|
resize: none;
|
|
overflow: hidden;
|
|
line-height: 1.3;
|
|
text-wrap: wrap;
|
|
}
|
|
@media (max-width: 640px) {
|
|
.dt-note-page-title {
|
|
min-height: 2.6em;
|
|
}
|
|
}
|
|
|
|
/* The same math renderer serves inline, display and insertion previews. */
|
|
.dt-note-formula {
|
|
display: inline;
|
|
}
|
|
.dt-note-formula .katex {
|
|
font-size: 1.08em;
|
|
}
|
|
.dt-note-formula.display {
|
|
display: block;
|
|
overflow-x: auto;
|
|
width: 100%;
|
|
}
|
|
.dt-note-formula.display .katex-display {
|
|
margin: 0.65em 0;
|
|
}
|
|
.dt-note-inline-math button {
|
|
vertical-align: baseline;
|
|
font: inherit;
|
|
}
|
|
.dt-note-editor .bn-block-content[data-content-type='heading'] h4 {
|
|
font-size: 16px;
|
|
}
|
|
.dt-note-menu-preview.inline {
|
|
position: static;
|
|
order: 2;
|
|
width: auto;
|
|
margin: 0 8px 8px;
|
|
padding: 8px;
|
|
box-shadow: none;
|
|
flex-shrink: 1;
|
|
min-height: 100px;
|
|
overflow-y: auto;
|
|
pointer-events: auto;
|
|
}
|
|
.dt-note-insert-menu.preview-inline footer {
|
|
order: 3;
|
|
}
|
|
.dt-note-menu-preview.inline .dt-note-preview-example {
|
|
min-height: 72px;
|
|
padding: 9px 12px;
|
|
}
|
|
.dt-note-menu-preview.inline > strong {
|
|
margin: 5px 3px 0;
|
|
font-size: 12px;
|
|
}
|
|
.dt-note-menu-preview.inline > p {
|
|
display: none;
|
|
}
|
|
.dt-note-insert-menu.preview-inline .dt-note-menu-items {
|
|
min-height: 74px;
|
|
max-height: min(280px, 36vh);
|
|
}
|
|
.dt-note-preview-example {
|
|
line-height: 1.6;
|
|
}
|
|
.dt-note-preview-example svg {
|
|
flex-shrink: 0;
|
|
}
|
|
.dt-note-preview-example .dt-note-preview-row {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
}
|
|
.dt-note-preview-example small {
|
|
font-size: 10px;
|
|
line-height: 1.5;
|
|
}
|
|
.dt-note-preview-muted {
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-preview-example .dt-note-callout {
|
|
padding: 10px;
|
|
gap: 7px;
|
|
}
|
|
.dt-note-preview-example .dt-note-formula {
|
|
font-size: 12px;
|
|
}
|
|
.dt-note-preview-code {
|
|
background: #161616;
|
|
color: #f0f0f0;
|
|
padding: 9px;
|
|
border-radius: 5px;
|
|
}
|
|
.dt-note-preview-code small {
|
|
color: #aaa;
|
|
}
|
|
.dt-note-link {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
gap: 4px;
|
|
vertical-align: baseline;
|
|
}
|
|
.dt-note-link svg {
|
|
flex-shrink: 0;
|
|
align-self: center;
|
|
}
|
|
.dt-note-preview-page-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--primary);
|
|
}
|
|
.dt-note-preview-page-link span {
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.dt-note-preview-checks > div {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
margin: 5px 0;
|
|
}
|
|
.dt-note-preview-checkbox {
|
|
display: inline-flex;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 13px;
|
|
height: 13px;
|
|
border: 1px solid var(--muted-foreground);
|
|
border-radius: 2px;
|
|
}
|
|
.dt-note-preview-checks .done {
|
|
text-decoration: line-through;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-preview-checks .done .dt-note-preview-checkbox {
|
|
background: var(--primary);
|
|
color: var(--primary-foreground);
|
|
border-color: var(--primary);
|
|
}
|
|
.dt-note-preview-image img {
|
|
width: 100%;
|
|
height: 74px;
|
|
object-fit: contain;
|
|
border-radius: 3px;
|
|
background: white;
|
|
}
|
|
.dt-note-preview-image small {
|
|
display: block;
|
|
margin-top: 5px;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-preview-video {
|
|
background: var(--secondary);
|
|
height: 85px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 7px;
|
|
border-radius: 5px;
|
|
}
|
|
.dt-note-preview-player {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
font-size: 9px;
|
|
padding: 6px 0;
|
|
}
|
|
.dt-note-preview-player i {
|
|
height: 3px;
|
|
border-radius: 3px;
|
|
background: var(--border);
|
|
flex: 1;
|
|
}
|
|
.dt-note-preview-file {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
}
|
|
.dt-note-preview-file div {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.dt-note-preview-file small {
|
|
display: block;
|
|
color: var(--muted-foreground);
|
|
margin-top: 4px;
|
|
}
|
|
.dt-note-preview-bookmark {
|
|
border: 1px solid var(--border);
|
|
border-radius: 5px;
|
|
padding: 10px;
|
|
}
|
|
.dt-note-preview-bookmark p {
|
|
font-size: 11px;
|
|
color: var(--muted-foreground);
|
|
margin: 5px 0 9px;
|
|
}
|
|
.dt-note-preview-bookmark small {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
.dt-note-preview-window {
|
|
border: 1px solid var(--border);
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
}
|
|
.dt-note-preview-window > small {
|
|
padding: 4px 7px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-preview-window > div {
|
|
padding: 10px;
|
|
}
|
|
.dt-note-preview-window h3 {
|
|
font-size: 17px;
|
|
}
|
|
.dt-note-preview-window p {
|
|
font-size: 11px;
|
|
margin: 4px 0 8px;
|
|
}
|
|
.dt-note-preview-tag {
|
|
display: inline-block;
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
background: var(--secondary);
|
|
font-size: 10px;
|
|
white-space: nowrap;
|
|
}
|
|
.dt-note-preview-board {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 7px;
|
|
}
|
|
.dt-note-preview-board > div {
|
|
background: var(--secondary);
|
|
padding: 6px;
|
|
border-radius: 4px;
|
|
}
|
|
.dt-note-preview-board article {
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
padding: 6px;
|
|
border-radius: 4px;
|
|
margin-top: 6px;
|
|
font-size: 10px;
|
|
}
|
|
.dt-note-preview-task-list > small {
|
|
display: block;
|
|
border-top: 1px solid var(--border);
|
|
color: var(--muted-foreground);
|
|
padding-top: 5px;
|
|
}
|
|
.dt-note-preview-toc {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
.dt-note-preview-toc strong {
|
|
font-size: 11px;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-preview-toc span {
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
.dt-note-preview-toc span:not(:nth-child(2)) {
|
|
padding-left: 12px;
|
|
color: var(--muted-foreground);
|
|
font-size: 11px;
|
|
}
|
|
.dt-note-preview-columns {
|
|
display: grid;
|
|
gap: 7px;
|
|
}
|
|
.dt-note-preview-columns > div {
|
|
border-left: 1px solid var(--border);
|
|
padding-left: 6px;
|
|
min-height: 70px;
|
|
min-width: 0;
|
|
}
|
|
.dt-note-preview-columns > div:first-child {
|
|
border: 0;
|
|
padding-left: 0;
|
|
}
|
|
.dt-note-preview-columns strong {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
}
|
|
.dt-note-preview-columns p {
|
|
font:
|
|
11px/1.7 var(--font-serif),
|
|
Georgia,
|
|
serif;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.dt-note-preview-date {
|
|
display: inline-flex;
|
|
gap: 4px;
|
|
align-items: center;
|
|
color: var(--primary);
|
|
background: var(--secondary);
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
}
|
|
.dt-note-preview-diagram {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 3px;
|
|
}
|
|
.dt-note-preview-diagram span {
|
|
border: 1px solid var(--border);
|
|
background: var(--secondary);
|
|
padding: 3px 9px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
}
|
|
.dt-note-preview-quiz > strong {
|
|
display: block;
|
|
font-size: 11px;
|
|
margin-bottom: 6px;
|
|
}
|
|
.dt-note-preview-quiz > div {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 4px 6px;
|
|
margin: 4px 0;
|
|
font-size: 10px;
|
|
}
|
|
.dt-note-preview-quiz > div.answer {
|
|
background: var(--secondary);
|
|
border-color: var(--primary);
|
|
}
|
|
.dt-note-preview-quiz > div > span {
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-preview-quiz > small {
|
|
display: block;
|
|
margin-top: 6px;
|
|
color: var(--primary);
|
|
}
|
|
.dt-note-preview-flashcard {
|
|
text-align: center;
|
|
border: 1px solid var(--border);
|
|
border-radius: 7px;
|
|
padding: 12px 6px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
.dt-note-preview-flashcard small,
|
|
.dt-note-preview-flashcard span {
|
|
color: var(--muted-foreground);
|
|
font-size: 10px;
|
|
}
|
|
.dt-note-preview-flashcard strong {
|
|
font-family: var(--font-serif), Georgia, serif;
|
|
font-size: 17px;
|
|
}
|
|
.dt-note-preview-timeline {
|
|
border-left: 2px solid var(--border);
|
|
margin: 0 5px;
|
|
padding-left: 12px;
|
|
}
|
|
.dt-note-preview-timeline > div {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 4px 0 12px;
|
|
}
|
|
.dt-note-preview-timeline > div:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
.dt-note-preview-timeline > div::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -16px;
|
|
top: 5px;
|
|
height: 6px;
|
|
width: 6px;
|
|
background: var(--primary);
|
|
border-radius: 50%;
|
|
}
|
|
.dt-note-preview-timeline b {
|
|
font-size: 10px;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-preview-research p {
|
|
margin: 8px 0;
|
|
font-size: 11px;
|
|
}
|
|
.dt-note-preview-research small {
|
|
display: block;
|
|
margin-top: 6px;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-preview-research sup {
|
|
color: var(--primary);
|
|
}
|
|
.dt-note-preview-animation {
|
|
text-align: center;
|
|
padding: 10px;
|
|
background: var(--secondary);
|
|
border-radius: 5px;
|
|
}
|
|
.dt-note-preview-wave {
|
|
margin: 10px auto 0;
|
|
width: 110px;
|
|
height: 23px;
|
|
border-top: 2px solid var(--primary);
|
|
border-radius: 50%;
|
|
transform: rotate(-12deg);
|
|
}
|
|
.dt-note-preview-concepts {
|
|
text-align: center;
|
|
}
|
|
.dt-note-preview-concepts > strong {
|
|
display: inline-block;
|
|
background: var(--secondary);
|
|
border: 1px solid var(--border);
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
font-size: 11px;
|
|
}
|
|
.dt-note-preview-concepts > div {
|
|
display: flex;
|
|
gap: 7px;
|
|
justify-content: center;
|
|
padding-top: 22px;
|
|
}
|
|
.dt-note-preview-concepts span {
|
|
position: relative;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 4px;
|
|
font-size: 10px;
|
|
}
|
|
.dt-note-preview-concepts span::before {
|
|
content: '';
|
|
height: 22px;
|
|
border-left: 1px solid var(--border);
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 100%;
|
|
}
|
|
.dt-note-preview-geometry svg {
|
|
width: 100%;
|
|
height: 100px;
|
|
color: var(--primary);
|
|
}
|
|
.dt-note-preview-geometry small {
|
|
color: var(--muted-foreground);
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
.dt-note-preview-transcript {
|
|
border-left: 2px solid var(--border);
|
|
padding-left: 6px;
|
|
font-size: 10px;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-preview-ai p {
|
|
padding: 7px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
margin: 8px 0;
|
|
font-size: 11px;
|
|
}
|
|
.dt-note-preview-ai > div:last-child {
|
|
font-size: 10px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.dt-note-generation-form {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 8px 12px;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
font-size: 13px;
|
|
color: var(--muted-foreground);
|
|
}
|
|
.dt-note-generation-form > span {
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
.dt-note-generation-form > textarea {
|
|
grid-row: 2;
|
|
grid-column: 1 / -1;
|
|
width: 100%;
|
|
min-width: 0;
|
|
resize: vertical;
|
|
padding: 9px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
line-height: 1.5;
|
|
font-size: 13px;
|
|
}
|
|
.dt-note-generation-form > textarea:focus {
|
|
outline: 2px solid var(--primary);
|
|
outline-offset: 1px;
|
|
}
|
|
.dt-note-generation-form > button {
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
white-space: nowrap;
|
|
}
|
|
.dt-note-upload {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
padding: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
}
|
|
.dt-note-upload > svg {
|
|
flex-shrink: 0;
|
|
}
|
|
.dt-note-upload > button {
|
|
white-space: nowrap;
|
|
}
|
|
.dt-note-learning {
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.dt-note-learning audio,
|
|
.dt-note-learning video,
|
|
.dt-note-learning img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.dt-note-file {
|
|
width: 100%;
|
|
margin: 4px 0;
|
|
}
|
|
.dt-note-file a {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
text-decoration: none;
|
|
}
|
|
.dt-note-file a:hover {
|
|
background: var(--secondary);
|
|
}
|
|
.dt-note-file a:focus-visible {
|
|
outline: 2px solid var(--primary);
|
|
}
|
|
.dt-note-file a span {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.dt-note-file svg {
|
|
flex-shrink: 0;
|
|
}
|
|
.dt-note-file p {
|
|
margin-top: 6px;
|
|
color: var(--muted-foreground);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.dt-note-audio-options {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-bottom: 14px;
|
|
border: 0;
|
|
padding: 0;
|
|
}
|
|
.dt-note-audio-options label {
|
|
display: flex;
|
|
flex: 1 1 140px;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
color: var(--muted-foreground);
|
|
font-size: 12px;
|
|
}
|
|
.dt-note-learning .dt-note-audio-options input,
|
|
.dt-note-audio-options select {
|
|
border: 1px solid var(--border);
|
|
border-radius: 5px;
|
|
padding: 7px;
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
min-width: 0;
|
|
}
|
|
|
|
.dt-note-inline-review {
|
|
width: 100%;
|
|
padding: 8px 0 18px;
|
|
white-space: normal;
|
|
}
|
|
.dt-note-page-tree {
|
|
width: 240px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
padding: 4px;
|
|
font-size: 13px;
|
|
}
|
|
.dt-note-tree-heading { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; color: var(--muted-foreground); font-size: 12px; }
|
|
.dt-note-tree-scroll { overflow: auto; flex: 1; min-height: 0; }
|
|
.dt-note-page-tree ul { list-style: none; margin: 0; padding: 0; }
|
|
.dt-note-page-tree .dt-note-tree-children { margin-left: 14px; padding-left: 6px; border-left: 1px solid var(--border); }
|
|
.dt-note-tree-row { display: flex; align-items: center; min-height: 34px; border-radius: 6px; margin: 2px 0; }
|
|
.dt-note-tree-row:hover { background: var(--secondary); }
|
|
.dt-note-tree-row.is-current { background: color-mix(in srgb, var(--primary) 9%, transparent); color: var(--primary); font-weight: 500; }
|
|
.dt-note-tree-row a { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; padding: 7px 6px 7px 0; }
|
|
.dt-note-tree-toggle { display: flex; align-items: center; justify-content: center; width: 24px; height: 26px; flex-shrink: 0; border-radius: 4px; color: var(--muted-foreground); }
|
|
button.dt-note-tree-toggle:hover { background: var(--border); }
|
|
.dt-note-tree-icon { display: inline-flex; width: 17px; flex-shrink: 0; align-items: center; justify-content: center; }
|
|
.dt-note-tree-create { margin-top: 8px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 12px; }
|
|
@media (max-width: 767px) {
|
|
.dt-note-page-tree { position: absolute; top: 48px; bottom: 8px; left: 8px; z-index: 30; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px; box-shadow: 0 8px 30px #0002; max-width: calc(100% - 16px); }
|
|
}
|
|
.dt-note-review-original {
|
|
background: color-mix(in srgb, var(--primary) 4%, transparent);
|
|
border-radius: 6px;
|
|
}
|
|
.dt-note-review-card {
|
|
border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
background: var(--background);
|
|
box-shadow: 0 3px 12px #00000005;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
}
|
|
.dt-note-review-card header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
.dt-note-review-card header > span,
|
|
.dt-note-review-card header > div {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.dt-note-review-card header > span {
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
}
|
|
.dt-note-review-card .dt-note-review-accept {
|
|
color: var(--primary-foreground);
|
|
background: var(--primary);
|
|
}
|
|
.dt-note-review-reason {
|
|
color: var(--muted-foreground);
|
|
margin: 0 0 12px;
|
|
font-size: 12px;
|
|
}
|
|
.dt-note-review-content {
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
margin-bottom: 10px;
|
|
}
|
|
.dt-note-review-content .dt-note-learning {
|
|
border: none;
|
|
padding: 0;
|
|
background: transparent;
|
|
}
|
|
.dt-note-review-content img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 6px;
|
|
}
|
|
.dt-note-editor .md-renderer {
|
|
font-family: inherit;
|
|
font-size: 15px;
|
|
line-height: 1.75;
|
|
}
|
|
.dt-note-review-content .md-renderer :is(h1, h2, h3, h4, h5, h6) {
|
|
font-family: var(--font-serif), Georgia, serif;
|
|
font-weight: 600;
|
|
}
|
|
.dt-note-review-content .md-renderer h1 { font-size: 28px; }
|
|
.dt-note-review-content .md-renderer h2 { font-size: 23px; }
|
|
.dt-note-review-content .md-renderer h3 { font-size: 19px; }
|
|
.dt-note-review-error {
|
|
color: var(--destructive, #b42318);
|
|
background: color-mix(in srgb, var(--destructive, #b42318) 6%, transparent);
|
|
border-radius: 6px;
|
|
padding: 8px 10px;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Archived favorites keep a compact, recognizable identity within a page. */
|
|
.dt-note-favorite { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; }
|
|
.dt-note-favorite-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; color: var(--foreground); }
|
|
.dt-note-favorite-toggle:hover { background: color-mix(in srgb, var(--muted) 45%, transparent); }
|
|
.dt-note-favorite-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; border-radius: 10px; }
|
|
.dt-note-favorite-toggle strong { font-family: var(--font-sans); font-size: 15px; line-height: 1.5; }
|
|
.dt-note-favorite-icon { display: grid; place-items: center; width: 38px; height: 42px; flex-shrink: 0; border-radius: 8px; color: var(--muted-foreground); background: var(--muted); }
|
|
.dt-note-favorite-kind { display: block; margin-bottom: 3px; font-size: 11px; color: var(--muted-foreground); }
|
|
.dt-note-favorite-body { max-height: min(65vh, 640px); overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--border); padding: 18px; font-family: var(--font-sans); }
|
|
.dt-note-favorite-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; background: color-mix(in srgb, var(--muted) 25%, transparent); color: var(--muted-foreground); font-size: 11px; }
|
|
.dt-note-favorite-footer a { color: var(--primary); text-decoration: none; font-size: 12px; }
|
|
.dt-note-favorite-footer a:hover { text-decoration: underline; }
|
|
.dt-favorite-content { min-width: 0; font-size: 14px; line-height: 1.75; }
|
|
.dt-favorite-content h1, .dt-favorite-content h2, .dt-favorite-content h3 { font-family: var(--font-sans); }
|
|
.dt-favorite-content video, .dt-favorite-content audio { display: block; max-height: 320px; margin-bottom: 16px; }
|
|
.dt-favorite-content pre, .dt-favorite-content table { max-width: 100%; overflow-x: auto; }
|
|
.dt-favorite-content img { max-height: 420px; object-fit: contain; }
|