diff --git a/make_post_sell/static/css/common.css b/make_post_sell/static/css/common.css index da4474d..13f4e15 100644 --- a/make_post_sell/static/css/common.css +++ b/make_post_sell/static/css/common.css @@ -1546,6 +1546,40 @@ form.tag-suggest-form { margin: 0; } +/* MPS-24 Phase 2.4: SPA flash toasts on the bulk tagger */ +div.tag-flash { + display: grid; + gap: var(--space-2, 8px); + margin: 0 0 var(--space-3, 12px) 0; +} + +div.tag-flash-toast { + padding: var(--space-2, 8px) var(--space-3, 12px); + border-radius: var(--radius-sm, 4px); + border: 1px solid var(--color-border, #d1d5db); + background: var(--color-surface-2, #f9fafb); + color: var(--color-text, #111); + transition: opacity 400ms ease; +} + +div.tag-flash-success { + background: var(--color-success-subtle, #ecfdf5); + border-color: var(--color-success, #10b981); + color: var(--color-success-strong, #065f46); +} + +div.tag-flash-error { + background: var(--color-danger-subtle, #fef2f2); + border-color: var(--color-danger, #ef4444); + color: var(--color-danger-strong, #991b1b); +} + +div.tag-flash-info { + background: var(--color-info-subtle, #eff6ff); + border-color: var(--color-info, #3b82f6); + color: var(--color-info-strong, #1e40af); +} + /* Tag detail page header */ section.tag-detail-header { margin: var(--space-3, 12px) 0; @@ -2631,12 +2665,15 @@ textarea.markup-editor-textarea { color: var(--color-green, #a3c765); } -@media (max-width: 800px) { +/* Use 959px (one below the desktop two-column breakpoint at 960px) so + tablet portrait + small-laptop widths get the same hoisted-CTA stack + as phone — without it, viewports in the 800-959 gap fall to source + order and the buy zone sinks below comments again. */ +@media (max-width: 959px) { /* the two-column is stacked by default. */ section.two-column { display: grid; grid-template-columns: 1fr; - max-width: 600px; margin-left: auto; margin-right: auto; padding-left: 4px; @@ -2735,7 +2772,18 @@ textarea.markup-editor-textarea { width: 100%; min-width: 100%; } +} +/* Mobile-only readability constraint: keep the single-column stack from + stretching edge-to-edge on phones. Tablet (800-959) intentionally + skips this so its wider viewport isn't pinned to a 600px column. */ +@media (max-width: 800px) { + section.two-column { + max-width: 600px; + } +} + +@media (max-width: 800px) { /* the cart-grid is stacked by default. */ section.cart-grid { max-width: 600px;