Files
eventLabs/assets/event-editor.css
2026-11-11 21:40:16 -05:00

158 lines
6.1 KiB
CSS

/* Keep the block canvas visible when Gutenberg gives an open meta pane automatic height. */
.post-type-burn_event .interface-interface-skeleton__content:has(> .edit-post-meta-boxes-main) > .editor-visual-editor {
min-block-size: min(280px, 42vh);
}
/* A height set by the editor's resize control takes precedence over the default split. */
.post-type-burn_event .edit-post-meta-boxes-main:not([style*="height"]):has(> .edit-post-meta-boxes-main__presenter > [aria-expanded="true"]) {
flex-basis: 46%;
}
.be-event-editor {
--be-editor-ink: #17243a;
--be-editor-muted: #526177;
--be-editor-accent: #3946ba;
--be-editor-border: #d8e1ee;
container-type: inline-size;
display: grid;
gap: 14px;
padding: 5px 0;
color: var(--be-editor-ink);
font: 400 13px/1.45 Inter, system-ui, sans-serif;
}
.be-event-editor *, .be-event-editor *::before, .be-event-editor *::after { box-sizing: border-box; }
.be-event-editor [hidden] { display: none !important; }
.be-editor-section {
min-width: 0;
margin: 0;
padding: 19px 20px;
border: 1px solid var(--be-editor-border);
border-radius: 13px;
background: #fff;
}
.be-editor-schedule { border-color: #d5dff0; background: #f7f9fd; }
.be-editor-heading {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px 14px;
margin-bottom: 14px;
}
.be-editor-heading h3 {
margin: 0;
padding: 0;
color: var(--be-editor-ink);
font: 680 16px/1.25 Inter, system-ui, sans-serif;
letter-spacing: -.02em;
}
.be-editor-fields {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
gap: 12px 14px;
margin: 0;
align-items: start;
}
.be-editor-dates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.be-editor-zone { grid-column: span 2; }
.be-event-editor .be-editor-fields > label:not(.be-editor-toggle), .be-editor-location > label {
display: grid;
gap: 5px;
min-width: 0;
color: var(--be-editor-ink);
font-size: 13px;
font-weight: 630;
}
.be-event-editor :is(input:not([type=checkbox]), select) {
min-width: 0;
width: 100%;
max-width: none;
height: 38px;
min-height: 38px;
margin: 0;
padding: 5px 10px;
border: 1px solid #bfcadc;
border-radius: 7px;
background-color: #fff;
color: var(--be-editor-ink);
font: 400 13px/1.3 Inter, system-ui, sans-serif;
}
.be-event-editor select { padding-inline-end: 26px; }
.be-event-editor :is(input, select, summary):focus-visible {
border-color: var(--be-editor-accent);
outline: 2px solid #6572d3;
outline-offset: 2px;
box-shadow: none;
}
.be-editor-toggle {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 34px;
color: var(--be-editor-ink);
font-weight: 600;
cursor: pointer;
}
.be-event-editor input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
.be-editor-visibility { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 11px; }
.be-editor-recurrence { padding: 0; }
.be-editor-recurrence > summary, .be-editor-picker summary {
display: flex;
align-items: center;
gap: 9px;
cursor: pointer;
list-style: none;
}
.be-editor-recurrence > summary { min-height: 55px; padding: 11px 20px; border-radius: 12px; font-size: 15px; font-weight: 670; }
.be-event-editor summary::-webkit-details-marker { display: none; }
.be-editor-recurrence > summary::after, .be-editor-picker summary::after {
content: '';
flex: none;
width: 7px;
height: 7px;
margin-inline: auto 3px;
border-right: 2px solid #526177;
border-bottom: 2px solid #526177;
transform: translateY(-2px) rotate(45deg);
}
.be-event-editor details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.be-editor-frequency { padding: 3px 8px; border-radius: 999px; background: #eef1fc; color: #34449a; font-size: 11px; font-weight: 650; }
.be-editor-recurrence[open] > summary { border-bottom: 1px solid var(--be-editor-border); border-radius: 12px 12px 0 0; }
.be-editor-recurrence-body { display: grid; gap: 13px; padding: 15px 20px 18px; }
.be-editor-recurrence-body .description { margin: 0; color: var(--be-editor-muted); font-size: 12px; }
.be-editor-weekdays { min-width: 0; margin: 0; padding: 0; border: 0; }
.be-editor-weekdays > div { display: flex; flex-wrap: wrap; gap: 6px; }
.be-editor-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.be-editor-picker legend, .be-editor-weekdays legend { margin: 0 0 5px; padding: 0; color: var(--be-editor-ink); font-size: 13px; font-weight: 630; }
.be-editor-weekdays label {
position: relative;
padding: 6px 10px;
border: 1px solid #cbd5e6;
border-radius: 7px;
background: #fff;
font-weight: 600;
cursor: pointer;
}
.be-editor-weekdays input[type=checkbox] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.be-editor-weekdays label:has(input:checked) { border-color: #abb6f0; background: #edf0ff; color: #26358e; }
.be-editor-weekdays label:has(input:focus-visible) { outline: 2px solid #6572d3; outline-offset: 2px; }
.be-editor-picker details { border: 1px solid #bfcadc; border-radius: 7px; background: #fff; }
.be-editor-picker summary, .be-editor-picker-empty { min-height: 36px; padding: 6px 9px; border-radius: 7px; }
.be-editor-picker summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.be-editor-picker-empty { display: flex; align-items: center; min-height: 38px; border: 1px dashed #d6deeb; background: #f6f8fb; color: var(--be-editor-muted); }
.be-editor-picker-body { padding: 8px; border-top: 1px solid var(--be-editor-border); }
.be-editor-picker-options { max-height: 175px; overflow: auto; }
.be-editor-picker-options label { display: flex; align-items: start; gap: 8px; padding: 6px 4px; cursor: pointer; overflow-wrap: anywhere; }
.be-editor-picker-options input { flex: none; }
.be-editor-no-matches { margin: 4px 0; color: var(--be-editor-muted); }
.be-editor-location { margin-top: 13px; }
@container (max-width: 640px) {
.be-editor-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 335px) {
.be-editor-section:not(.be-editor-recurrence), .be-editor-recurrence-body { padding: 13px; }
.be-editor-recurrence > summary { padding-inline: 13px; }
.be-editor-dates { grid-template-columns: minmax(0, 1fr); }
.be-editor-zone { grid-column: auto; }
}