what-to-cook/src/style.css

43 lines
2.8 KiB
CSS

* { box-sizing: border-box; }
body { margin: 0; font: 18px/1.4 system-ui, sans-serif; background: #fffaf3; color: #2b2118; }
main { max-width: 520px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; margin: 8px 0 16px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.result { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 1px 6px #0002; text-align: center; }
.hint { color: #5c4a35; margin: 12px 0 0; }
.add { margin-bottom: 16px; }
.today { margin: 0; color: #7a5c3a; }
.dish { font-size: 2rem; font-weight: 700; margin: 4px 0 12px; word-break: break-word; }
button, input { font: inherit; border-radius: 12px; border: 1px solid #c9b79f; padding: 12px 14px; min-height: 48px; }
button { background: #fff; cursor: pointer; }
button.primary { width: 100%; background: #b4500c; color: #fff; border: 0; font-weight: 600; }
button:disabled { cursor: not-allowed; }
button.primary:disabled { background: #e8dccb; color: #5c4a35; border: 2px dashed #9c8466; }
form label { display: block; font-weight: 600; margin-bottom: 6px; }
form .row { display: flex; gap: 8px; }
form input { flex: 1; min-width: 0; }
form input[aria-invalid="true"] { border: 2px solid #a3260f; }
.error { color: #a3260f; margin: 8px 0 0; }
ul { list-style: none; padding: 0; margin: 12px 0; }
li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eadfce; word-break: break-word; }
li button { padding: 6px 14px; min-height: 48px; min-width: 48px; flex-shrink: 0; }
.level { margin: -4px 0 12px; color: #5c4a35; font-weight: 600; }
.tune { display: flex; gap: 8px; margin-bottom: 12px; }
.tune button { flex: 1; min-height: 48px; font-weight: 600; color: #2b2118; }
[hidden] { display: none !important; }
.suggest { margin: 8px 0 0; }
.suggest li { padding: 4px 0; border-bottom: 0; }
.suggest button { width: 100%; min-height: 48px; text-align: left; background: #fff3e0; border-color: #b4500c; }
.actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.from-catalog { color: #5c4a35; font-size: 0.85rem; border: 1px solid #b4500c; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.no-recipe { color: #5c4a35; font-size: 0.9rem; }
.recipe-btn { color: #7a3a06; border-color: #b4500c; font-weight: 600; }
#recipeToday { width: 100%; margin-bottom: 8px; }
.recipe { font-size: 1.1rem; line-height: 1.5; overflow-wrap: anywhere; }
.recipe h1 { margin-top: 16px; }
.recipe ul.plain li, .recipe ol li { display: list-item; border: 0; padding: 4px 0; }
.recipe ul.plain { list-style: disc; padding-left: 1.2rem; }
.recipe ol { padding-left: 1.4rem; margin: 12px 0; }
.example button { width: 100%; margin-top: 8px; background: #fff3e0; border-color: #b4500c; color: #7a3a06; font-weight: 600; }
@media (max-width: 400px) { li { flex-wrap: wrap; } }