/* Notebook editor form component */ .notebook-editor { container-type: inline-size; display: flex; flex-direction: column; gap: 1rem; } .notebook-editor-title { margin: 0; font-size: 1.25rem; font-weight: 600; } .notebook-editor-form { display: flex; flex-direction: column; gap: 1rem; } /* Top fields section - two columns when wide */ .notebook-editor-top { display: flex; flex-direction: column; gap: 1rem; } @container (min-width: 40rem) { .notebook-editor-top { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; } } /* Left column: title, path */ .notebook-editor-top-left { display: flex; flex-direction: column; gap: 1rem; } /* Right column: publish globally, tags */ .notebook-editor-top-right { display: flex; flex-direction: column; gap: 1rem; } .notebook-editor-field { display: flex; flex-direction: column; gap: 0.25rem; } .notebook-editor-field label { font-size: 0.875rem; font-weight: 500; } .notebook-editor-field input[type="text"] { padding: 0.5rem; border: 1px solid var(--color-border); border-radius: 0; background: var(--color-base); color: var(--color-text); font-size: 0.875rem; } .notebook-editor-field input[type="text"]:focus { outline: 2px solid var(--color-primary); outline-offset: -1px; } .notebook-editor-hint { font-size: 0.75rem; color: var(--color-muted); } .notebook-editor-toggle { /* Keep column direction from .notebook-editor-field, just adjust gap */ gap: 0.25rem; } .notebook-editor-toggle label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; } .notebook-editor-toggle input[type="checkbox"] { appearance: none; width: 1rem; height: 1rem; border: 1px solid var(--color-border); border-radius: 0; background: var(--color-base); cursor: pointer; flex-shrink: 0; } .notebook-editor-toggle input[type="checkbox"]:checked { background: var(--color-primary); border-color: var(--color-primary); } .notebook-editor-toggle input[type="checkbox"]:checked::after { content: "✓"; display: block; color: var(--color-base); font-size: 0.75rem; text-align: center; line-height: 1rem; } .notebook-editor-toggle input[type="checkbox"]:focus { border-color: var(--color-primary); } .notebook-editor-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; border: 1px solid var(--color-border); border-radius: 0; background: var(--color-base); } .notebook-editor-tag { display: flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; background: var(--color-surface); font-size: 0.75rem; } .notebook-editor-tag-remove { background: none; border: none; color: var(--color-muted); cursor: pointer; padding: 0; font-size: 1rem; line-height: 1; } .notebook-editor-tag-remove:hover { color: var(--color-error); } .notebook-editor-tags-input { flex: 1; min-width: 8rem; border: none; background: transparent; font-size: 0.875rem; color: var(--color-text); } .notebook-editor-tags-input:focus { outline: none; } .notebook-editor-error { padding: 0.75rem; background: color-mix(in srgb, var(--color-error) 10%, var(--color-surface)); border: 1px solid var(--color-error); color: var(--color-error); font-size: 0.875rem; } .notebook-editor-actions { display: flex; gap: 0.5rem; justify-content: flex-end; padding-top: 0.5rem; } /* Content settings section */ .notebook-editor-content-settings { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); } .notebook-editor-content-settings h4 { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; } .notebook-editor-warning { background: color-mix(in srgb, var(--color-warning) 15%, var(--color-surface)); border: 1px solid color-mix(in srgb, var(--color-warning) 40%, transparent); } .notebook-editor-field select { padding: 0.5rem; padding-right: 2rem; border: 1px solid var(--color-border); border-radius: 0; background: var(--color-base); color: var(--color-text); font-size: 0.875rem; font-family: inherit; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L2 4h8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; cursor: pointer; } .notebook-editor-field select:focus { outline: 2px solid var(--color-primary); outline-offset: -1px; } .notebook-editor-field select option { background: var(--color-surface); color: var(--color-text); padding: 0.5rem; }