Spaces:
Runtime error
Runtime error
| /* ============================================================================ */ | |
| /* Hero editable elements */ | |
| /* */ | |
| /* Transparent inputs & click-to-edit affordances used inside FrontmatterHero. */ | |
| /* The !important cluster on .editable-text-input is intentional: it flattens */ | |
| /* every inherited form control style so the input looks identical to the */ | |
| /* surrounding heading text. Loaded AFTER _form.css so these wins the cascade. */ | |
| /* ============================================================================ */ | |
| .editable-text { cursor: text; } | |
| .editable-text:not(.hero-title):not(.hero-desc) { | |
| border-radius: 4px; | |
| transition: background 0.15s; | |
| padding: 2px 4px; | |
| margin: -2px -4px; | |
| } | |
| .editable-text:not(.hero-title):not(.hero-desc):hover { | |
| background: var(--bg-hover); | |
| } | |
| .editable-text-input, | |
| .editable-text-input:focus, | |
| .editable-text-input:hover, | |
| .editable-text-input:active { | |
| font: inherit ; | |
| color: inherit ; | |
| text-align: inherit ; | |
| letter-spacing: inherit ; | |
| line-height: inherit ; | |
| font-weight: inherit ; | |
| font-style: inherit ; | |
| width: 100% ; | |
| display: block ; | |
| box-sizing: border-box ; | |
| resize: none ; | |
| overflow: hidden ; | |
| white-space: pre-wrap ; | |
| word-wrap: break-word ; | |
| overflow-wrap: break-word ; | |
| text-wrap: balance ; | |
| border: none ; | |
| outline: none ; | |
| box-shadow: none ; | |
| background: transparent ; | |
| padding: 0 ; | |
| margin: 0 ; | |
| border-radius: 0 ; | |
| -webkit-appearance: none ; | |
| appearance: none ; | |
| min-height: 0 ; | |
| } | |
| .editable-text-input--inline, | |
| .editable-text-input--inline:focus, | |
| .editable-text-input--inline:hover, | |
| .editable-text-input--inline:active { | |
| display: inline ; | |
| width: auto ; | |
| white-space: normal ; | |
| } | |
| .editable-text-input::placeholder { | |
| color: inherit; | |
| opacity: 0.35; | |
| } | |
| .author-editable { | |
| cursor: pointer; | |
| border-radius: 4px; | |
| transition: background 0.15s; | |
| } | |
| .author-editable:hover { background: var(--bg-hover); } | |
| /* Affiliations open the same manager modal on click (editor-only). The | |
| pointer cursor + subtle hover signal they're interactive without leaking | |
| into the published article, which loads _hero.css but not this file. */ | |
| .affiliations--clickable { cursor: pointer; border-radius: 4px; } | |
| .affiliations--clickable:hover { background: var(--bg-hover); } | |
| .author-add-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| margin-left: 4px; | |
| } | |
| .meta-placeholder-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 4px 10px; | |
| border: 1px dashed var(--border-color); | |
| border-radius: 6px; | |
| background: transparent; | |
| color: var(--muted-color); | |
| font: inherit; | |
| font-size: 0.85rem; | |
| cursor: pointer; | |
| transition: border-color 0.15s, color 0.15s, background 0.15s; | |
| } | |
| .meta-placeholder-btn:hover { | |
| border-color: var(--primary-color); | |
| color: var(--primary-color); | |
| background: rgba(149, 141, 241, 0.06); | |
| } | |