latest changes

This commit is contained in:
Joren de Graaf
2026-10-14 18:02:27 +02:00
parent 2934662d7a
commit b72283818c
19 changed files with 201 additions and 28 deletions
+25
View File
@@ -4,3 +4,28 @@
@media(prefers-reduced-motion:reduce){.recipe-match__card{transition:none}.recipe-match__confetti i{animation:none;display:none}}
.recipe-match{--recipe-surface:#fff;--recipe-line:#e4e8e2;--recipe-ink:#25292e;--recipe-muted:#687178}body[data-theme=dark] .recipe-match{--recipe-surface:#202a23;--recipe-line:#435046;--recipe-ink:#eaf0ea;--recipe-muted:#afbbb2}
.recipe-match__celebration{bottom:auto;height:320px}@media(max-width:600px){.recipe-match__celebration{height:min(76vw,320px)}}
.recipe-match__filter-panel{margin-bottom:24px;border:1px solid var(--recipe-line);border-radius:15px;background:var(--recipe-surface)}.recipe-match__filter-panel summary{display:flex;align-items:center;gap:10px;min-height:54px;padding:12px 16px;list-style:none;cursor:pointer;font-size:.88rem;font-weight:800}.recipe-match__filter-panel summary::-webkit-details-marker{display:none}.recipe-match__filter-panel summary small{margin-left:auto;color:var(--recipe-muted);font-size:.72rem;font-weight:600}.recipe-match__filter-panel summary::after{content:'⌄';margin-left:5px;color:var(--recipe-muted);font-size:1.25rem;line-height:1;transition:transform .15s ease}.recipe-match__filter-panel[open] summary::after{transform:rotate(180deg)}.recipe-match__filter-panel summary:focus-visible{outline:3px solid #a44cbe;outline-offset:3px;border-radius:12px}.recipe-match__filter-panel .recipe-match__filters{margin:0;padding:15px;border:0;border-radius:0;background:transparent}.recipe-match__image{height:280px}.recipe-match__celebration{height:280px}@media(min-width:601px){.recipe-match__filter-panel[open]>summary{display:none}}@media(max-width:600px){.recipe-match__filter-panel{margin-bottom:18px}.recipe-match__filter-panel[open] summary{border-bottom:1px solid var(--recipe-line)}.recipe-match__filter-panel .recipe-match__filters{padding:12px}.recipe-match__image,.recipe-match__celebration{height:min(70vw,280px)}}
.recipe-match__header{margin-bottom:16px}.recipe-match__eyebrow{margin-top:14px}.recipe-match__filter-panel{margin-bottom:18px}.recipe-match__counter{margin-bottom:8px}.recipe-match__actions{margin-top:16px}.recipe-match__image,.recipe-match__celebration{height:clamp(240px,26vh,280px)}@media(max-width:600px){.recipe-match__image,.recipe-match__celebration{height:min(70vw,280px)}}
body[data-theme=dark] .recipe-match__image-fallback{color:#253029}body[data-theme=dark] .recipe-match__kind{color:#a9dfb8}
@media(min-width:701px) and (max-width:820px){.site-header__inner{gap:10px;padding-inline:16px}.primary-nav{gap:10px;font-size:.82rem}}
@media(min-width:601px) and (max-width:820px){.recipe-match__filter-panel[open]>summary{display:flex;border-bottom:1px solid var(--recipe-line)}}
/* Search stays visible while native details collapse the advanced fields. */
.recipe-match__filter-panel{display:block;padding:12px 15px}
.recipe-match__search-row{display:flex;align-items:end;gap:9px}
.recipe-match__search-row label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.recipe-match__search-row input{flex:1;min-width:0;min-height:44px;padding:9px;border:1px solid var(--recipe-line);border-radius:9px;color:var(--recipe-ink);background:var(--recipe-surface)}
.recipe-match__search-row button{min-height:44px;padding:9px 15px;border:0;border-radius:9px;color:#fff;background:#235943;font-weight:700;cursor:pointer}
.recipe-match__more-filters summary{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:7px;padding:0 2px;list-style:none;cursor:pointer;font-size:.82rem;font-weight:800}
.recipe-match__more-filters summary::-webkit-details-marker{display:none}
.recipe-match__more-filters summary small{margin-left:auto;color:var(--recipe-muted);font-size:.72rem;font-weight:600}
.recipe-match__more-filters summary::after{content:'⌄';margin-left:5px;color:var(--recipe-muted);font-size:1.25rem;line-height:1;transition:transform .15s ease}
.recipe-match__more-filters[open] summary::after{transform:rotate(180deg)}
.recipe-match__more-filters summary:focus-visible{outline:3px solid #a44cbe;outline-offset:2px;border-radius:6px}
.recipe-match__filter-panel .recipe-match__filters{margin:0;padding:7px 0 0;border:0;border-radius:0;background:transparent}
.recipe-match__filters label:first-child{flex:1 1 135px}
.recipe-match__reset{justify-self:end;margin:0 0 7px}
.recipe-match__reset button{min-height:44px;padding:8px 13px;border:1px solid var(--recipe-line);border-radius:9px;color:var(--recipe-ink);background:var(--recipe-surface);font-size:.82rem;font-weight:700;cursor:pointer}
.recipe-match__reset button:hover{border-color:#a44cbe}
@media(min-width:821px){.recipe-match__more-filters[open]>summary{display:none}}
@media(max-width:600px){.recipe-match__filter-panel{padding:12px}.recipe-match__filter-panel .recipe-match__filters{padding-top:7px}.recipe-match__search-row button{padding-inline:12px}}
+9
View File
@@ -24,3 +24,12 @@ body[data-theme=dark] .recipes-markdown-editor .toastui-editor-defaultUI,body[da
.recipes-cook-entry{margin:16px 0 0}.recipes-cook-entry .button{display:inline-flex;align-items:center;min-height:44px}.recipes-cooking,.recipes-cooking-finish{max-width:960px}.recipes-cooking-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:16px}.recipes-cooking .recipes-panel h2,.recipes-cooking-finish .recipes-panel h2{margin:0 0 12px;font-family:Fraunces,Georgia,serif;font-size:1.35rem}.recipes-cooking-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.recipes-cooking-progress{margin:4px 0 18px;color:var(--recipe-accent);font-size:.85rem;font-weight:700}.recipes-cooking-step{display:flex;align-items:start;gap:18px;min-height:180px;font-size:1.15rem;line-height:1.65}.recipes-cooking-step[hidden]{display:none}.recipes-cooking-step .recipes-markdown-source{font-size:inherit}.recipes-cooking-number{display:grid;flex:none;place-items:center;width:40px;height:40px;border-radius:50%;color:#fff;background:#235943;font-weight:700}.recipes-cooking-navigation{display:flex;justify-content:space-between;gap:12px;margin-top:18px}.recipes-cooking-navigation button{min-height:44px}.recipes-cooking-navigation button:disabled{opacity:.5;cursor:not-allowed}.recipes-cooking-ingredients ul{padding:0;margin:0;list-style:none}.recipes-cooking-ingredients li{border-bottom:1px solid var(--recipe-line)}.recipes-cooking-ingredients li:last-child{border:0}.recipes-cooking-ingredients label{display:flex;align-items:center;gap:10px;min-height:52px;font-size:.87rem}.recipes-cooking-ingredients input{flex:none;width:20px;height:20px;accent-color:var(--recipe-accent)}.recipes-cooking-ingredients span{flex:1;min-width:0}.recipes-cooking-ingredients small{display:block;color:var(--recipe-muted)}.recipes-cooking-ingredients strong{white-space:nowrap}.recipes-cooking-ingredients input:checked+span{text-decoration:line-through;color:var(--recipe-muted)}.recipes-cooking-components{margin-top:25px;border-top:1px solid var(--recipe-line)}.recipes-cooking-components h3{margin:18px 0 8px}.recipes-cooking-components details{padding:10px 0;border-bottom:1px solid var(--recipe-line)}.recipes-cooking-components summary{cursor:pointer;font-weight:700}.recipes-cooking-components .recipes-markdown-source{margin-top:12px}.recipes-cooking-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-top:16px;padding:16px;border:1px solid var(--recipe-line);border-radius:12px;background:var(--recipe-surface)}.recipes-cooking-footer p{margin:0;color:var(--recipe-muted);font-size:.84rem}.recipes-cooking-finish>.recipes-panel{margin-bottom:14px}.recipes-completion-form{display:grid;gap:15px}.recipes-completion-form>p{margin:0;color:var(--recipe-muted);font-size:.85rem}.recipes-completion-choice{display:flex;align-items:start;gap:12px;padding:13px;border:1px solid var(--recipe-line);border-radius:10px;cursor:pointer}.recipes-completion-choice input{width:20px;height:20px;accent-color:var(--recipe-accent)}.recipes-completion-choice span{display:grid;gap:3px}.recipes-completion-choice small{color:var(--recipe-muted)}.recipes-completion-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.recipes-completion-fields label{display:grid;gap:5px;font-size:.82rem;font-weight:700}.recipes-completion-fields input,.recipes-completion-fields select{width:100%;min-height:44px;padding:8px;border:1px solid var(--recipe-line);border-radius:8px;color:var(--recipe-ink);background:var(--recipe-surface)}.recipes-completion-form>.button{justify-self:start;min-height:44px}
@media(max-width:767px){.recipes-cooking-grid{grid-template-columns:1fr}.recipes-cooking-steps{min-height:300px}.recipes-cooking-step{min-height:190px}.recipes-cooking-footer .button{width:100%;text-align:center}.recipes-completion-fields{grid-template-columns:1fr}.recipes-cooking-navigation button{flex:1}}
.recipes-cooking-meter{display:block;width:100%;height:9px;margin:-9px 0 21px;accent-color:var(--recipe-accent)}
/* Keep search available while the additional library filters are collapsed. */
.recipes-filter-details{min-width:0}
.recipes-filter-details summary{display:flex;align-items:center;min-height:44px;padding:0 2px;cursor:pointer;color:var(--recipe-ink);font-size:.82rem;font-weight:700}
.recipes-filter-details summary:focus-visible{outline:3px solid var(--recipe-accent);outline-offset:2px;border-radius:6px}
.recipes-filter-options{display:grid;gap:12px;padding-top:7px}
@media(min-width:821px){.recipes-filter-details[open]>summary{display:none}}
.recipes-filter-details summary::after{content:'⌄';margin-left:auto;font-size:1.2rem;line-height:1}
.recipes-filter-details[open] summary::after{transform:rotate(180deg)}