From 1f04c5343abfb8ad58724360ef6d15c58188fb72 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Sun, 2 Aug 2026 19:57:57 +0000 Subject: [PATCH] feat(web): refresh CutList visual system --- .../Components/Layout/NavMenu.razor.css | 24 +++--- CutList.Web/wwwroot/css/app.css | 84 +++++++++---------- tests/test_nav_menu_brand_contrast.py | 14 ++++ 3 files changed, 68 insertions(+), 54 deletions(-) diff --git a/CutList.Web/Components/Layout/NavMenu.razor.css b/CutList.Web/Components/Layout/NavMenu.razor.css index 4022dc2..0e70078 100644 --- a/CutList.Web/Components/Layout/NavMenu.razor.css +++ b/CutList.Web/Components/Layout/NavMenu.razor.css @@ -1,19 +1,19 @@ -.top-row { padding: 1.5rem 1.35rem 1.25rem; } +.top-row { justify-content: flex-start; padding: 1.5rem 1.35rem 1.25rem; } .brand-lockup { display: flex; align-items: center; gap: .75rem; } -.brand-mark { align-items: center; background: #f26b38; border-radius: .45rem; color: #161817; display: flex; font-size: 1rem; height: 2.25rem; justify-content: center; text-decoration: none; transform: rotate(-8deg); width: 2.25rem; } +.brand-mark { align-items: center; background: #2b75a8; border-radius: .45rem; color: #fff; display: flex; font-size: 1rem; height: 2.25rem; justify-content: center; text-decoration: none; transform: rotate(-8deg); width: 2.25rem; } .brand-mark i { transform: rotate(8deg); } -.navbar-brand { color: #f7f3eb; font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -.06em; line-height: .9; text-decoration: none; } -.navbar-brand .brand-cut { color: #f26b38; } -.navbar-brand .brand-list { color: #20231f; } -.navbar-brand small { color: #8f968d; display: block; font-family: Arial, sans-serif; font-size: .48rem; font-weight: 700; letter-spacing: .14em; margin-top: .45rem; } -.nav-section-label { color: #737a73; font-size: .62rem; font-weight: 700; letter-spacing: .13em; margin: 1.35rem 1.5rem .5rem; text-transform: uppercase; } +.navbar-brand { color: #17212b; font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -.06em; line-height: .9; text-decoration: none; } +.navbar-brand .brand-cut { color: #2b75a8; } +.navbar-brand .brand-list { color: #17212b; } +.navbar-brand small { color: #60778b; display: block; font-family: Arial, sans-serif; font-size: .48rem; font-weight: 700; letter-spacing: .14em; margin-top: .45rem; } +.nav-section-label { color: #91a8b8; font-size: .62rem; font-weight: 700; letter-spacing: .13em; margin: 1.35rem 1.5rem .5rem; text-transform: uppercase; } .nav-item { padding: .1rem .75rem; } -.nav-item ::deep .nav-link { align-items: center; border-radius: .4rem; color: #bbc0b8; display: flex; font-size: .9rem; font-weight: 600; gap: .8rem; min-height: 2.8rem; padding: .65rem .75rem; transition: background .18s ease, color .18s ease; } -.nav-item ::deep .nav-link i { color: #838b82; font-size: 1rem; width: 1.1rem; } +.nav-item ::deep .nav-link { align-items: center; border-radius: .4rem; color: #c4d3dc; display: flex; font-size: .9rem; font-weight: 600; gap: .8rem; min-height: 2.8rem; padding: .65rem .75rem; transition: background .18s ease, color .18s ease; } +.nav-item ::deep .nav-link i { color: #8fa7b7; font-size: 1rem; width: 1.1rem; } .nav-item ::deep .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; } -.nav-item ::deep a.active { background: #303531; color: #fff; } -.nav-item ::deep a.active i { color: #f26b38; } -.navbar-toggler { appearance: none; background: transparent; border: 1px solid #485048; border-radius: .35rem; color: white; cursor: pointer; height: 2.25rem; position: absolute; right: 1rem; top: 1rem; width: 2.75rem; } +.nav-item ::deep a.active { background: #294655; color: #fff; } +.nav-item ::deep a.active i { color: #72b5df; } +.navbar-toggler { appearance: none; background: transparent; border: 1px solid #587382; border-radius: .35rem; color: white; cursor: pointer; height: 2.25rem; position: absolute; right: 1rem; top: 1rem; width: 2.75rem; } .navbar-toggler::after { content: '☰'; } .nav-scrollable { display: none; } .navbar-toggler:checked ~ .nav-scrollable { display: block; } diff --git a/CutList.Web/wwwroot/css/app.css b/CutList.Web/wwwroot/css/app.css index 346f7aa..820890d 100644 --- a/CutList.Web/wwwroot/css/app.css +++ b/CutList.Web/wwwroot/css/app.css @@ -88,8 +88,8 @@ main { } .top-row { - background-color: #f3f1ee; - border-bottom: 1px solid #e0ddd8; + background-color: #edf2f5; + border-bottom: 1px solid #d4dee5; justify-content: flex-end; height: 3.5rem; display: flex; @@ -145,7 +145,7 @@ main { width: 0; } - .top-row, article { + article { padding-left: 2rem !important; padding-right: 1.5rem !important; } @@ -226,77 +226,77 @@ h1 { } } -/* CutList visual system */ +/* CutList visual system: industrial blue and steel, not seasonal orange/green. */ :root { - --ink: #20231f; - --muted: #697168; - --paper: #f4f1e9; - --paper-bright: #fbfaf6; - --line: #d9d5ca; - --orange: #ed6b3b; - --orange-dark: #d95a2d; - --green: #28534a; - --rail: #1d211e; + --ink: #17212b; + --muted: #617282; + --paper: #f3f6f8; + --paper-bright: #ffffff; + --line: #d4dee5; + --accent: #2b75a8; + --accent-dark: #1d5d8d; + --navy: #203747; + --rail: #18242e; } html, body { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } body { letter-spacing: -.01em; } main { background: var(--paper); box-shadow: none; min-width: 0; } -.sidebar { background: var(--rail); border-right: 1px solid #30342f; } +.sidebar { background: var(--rail); border-right: 1px solid #314653; } .content { margin: 0 auto; max-width: 1440px; padding: 2.75rem clamp(1.5rem, 4vw, 4.5rem) 4rem; } -.workspace-header { align-items: center; background: rgba(244,241,233,.88); border-bottom: 1px solid var(--line); display: flex; height: 4.5rem; justify-content: space-between; padding: 0 clamp(1.5rem, 4vw, 4.5rem); position: sticky; top: 0; z-index: 5; } +.workspace-header { align-items: center; background: rgba(243,246,248,.9); border-bottom: 1px solid var(--line); display: flex; height: 4.5rem; justify-content: space-between; padding: 0 clamp(1.5rem, 4vw, 4.5rem); position: sticky; top: 0; z-index: 5; } .workspace-eyebrow, .eyebrow { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .14em; margin: 0; text-transform: uppercase; } .workspace-status { align-items: center; color: var(--muted); display: flex; font-size: .78rem; font-weight: 650; gap: .45rem; } -.status-dot { background: #4d9d75; border-radius: 50%; box-shadow: 0 0 0 3px rgba(77,157,117,.14); height: .45rem; width: .45rem; } +.status-dot { background: #3d9b78; border-radius: 50%; box-shadow: 0 0 0 3px rgba(61,155,120,.14); height: .45rem; width: .45rem; } h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.045em; } h1 { font-size: clamp(2.25rem, 4vw, 4.1rem); line-height: .98; } h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); } .job-title { font-size: clamp(1.75rem, 2.5vw, 2.5rem); line-height: 1.1; } -a, .btn-link { color: var(--green); } +a, .btn-link { color: var(--accent-dark); } .btn { border-radius: .35rem; font-size: .85rem; font-weight: 750; letter-spacing: .01em; padding: .65rem 1rem; } -.btn-primary { background: var(--orange); border-color: var(--orange); color: #231c19; } -.btn-primary:hover, .btn-primary:focus { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; } -.btn-outline-primary { border-color: #8e968c; color: var(--green); } -.btn-outline-primary:hover { background: var(--green); border-color: var(--green); } -.btn-success { background: var(--green); border-color: var(--green); } -.btn-success:hover { background: #1f423a; border-color: #1f423a; } -.form-control, .form-select { background: var(--paper-bright); border-color: #c9c5b9; border-radius: .35rem; padding: .62rem .75rem; } -.form-control:focus, .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 .2rem rgba(237,107,59,.14); } +.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; } +.btn-primary:hover, .btn-primary:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; } +.btn-outline-primary { border-color: #8299a8; color: var(--accent-dark); } +.btn-outline-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); } +.btn-success { background: #267c6c; border-color: #267c6c; } +.btn-success:hover { background: #1d6558; border-color: #1d6558; } +.form-control, .form-select { background: var(--paper-bright); border-color: #c5d2db; border-radius: .35rem; padding: .62rem .75rem; } +.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(43,117,168,.14); } .card { background: var(--paper-bright); border: 1px solid var(--line); border-radius: .5rem; box-shadow: none; } -.card-header { background: #eeebe3; } -.table { --bs-table-striped-bg: rgba(32,35,31,.025); border-color: var(--line); font-size: .9rem; } +.card-header { background: #edf2f5; } +.table { --bs-table-striped-bg: rgba(23,33,43,.025); border-color: var(--line); font-size: .9rem; } .table > :not(caption) > * > * { padding: .85rem .75rem; } .table thead th { border-bottom-width: 1px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; } -.table a { font-weight: 700; text-decoration-color: rgba(40,83,74,.28); text-underline-offset: .15em; } +.table a { font-weight: 700; text-decoration-color: rgba(43,117,168,.28); text-underline-offset: .15em; } .table-actions { align-items: center; display: inline-flex; flex-wrap: nowrap; gap: .35rem; white-space: nowrap; } .table-actions .btn { align-items: center; display: inline-flex; justify-content: center; min-height: 2rem; min-width: 2rem; padding: .35rem .45rem; } .alert { border-radius: .4rem; border-width: 1px; } /* Dashboard */ -.dashboard-hero { background: var(--green); color: #f8f4ea; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.2fr) minmax(190px, .8fr); min-height: 310px; overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem); position: relative; } -.dashboard-hero h1 { color: #fffaf0; margin: .55rem 0 1rem; max-width: 8.5ch; } -.dashboard-hero .eyebrow { color: #b4c6b8; } -.hero-copy { color: #d7e0d8; font-size: 1.05rem; line-height: 1.6; margin: 0; max-width: 33rem; } +.dashboard-hero { background: var(--navy); color: #f5f9fc; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.2fr) minmax(190px, .8fr); min-height: 310px; overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem); position: relative; } +.dashboard-hero h1 { color: #f8fbfd; margin: .55rem 0 1rem; max-width: 8.5ch; } +.dashboard-hero .eyebrow { color: #a8c5d7; } +.hero-copy { color: #d1e0e9; font-size: 1.05rem; line-height: 1.6; margin: 0; max-width: 33rem; } .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; } -.btn-quiet { align-items: center; color: #fffaf0; display: inline-flex; gap: .5rem; padding-left: .5rem; } -.btn-quiet:hover { color: var(--orange); } +.btn-quiet { align-items: center; color: #f8fbfd; display: inline-flex; gap: .5rem; padding-left: .5rem; } +.btn-quiet:hover { color: #8fc5e4; } .hero-graphic { align-self: stretch; min-height: 180px; position: relative; } .hero-graphic b { bottom: -.35em; color: rgba(255,255,255,.09); font-family: Georgia, serif; font-size: clamp(8rem, 18vw, 15rem); line-height: .7; position: absolute; right: -.1em; } -.cut-line { background: var(--orange); display: block; height: 5px; position: absolute; transform: rotate(-28deg); transform-origin: left center; } -.line-one { left: 6%; top: 23%; width: 75%; }.line-two { background: #b8c9ba; left: 20%; top: 51%; width: 64%; }.line-three { left: 1%; top: 78%; width: 53%; } +.cut-line { background: var(--accent); display: block; height: 5px; position: absolute; transform: rotate(-28deg); transform-origin: left center; } +.line-one { left: 6%; top: 23%; width: 75%; }.line-two { background: #9fc5db; left: 20%; top: 51%; width: 64%; }.line-three { left: 1%; top: 78%; width: 53%; } .dashboard-section { margin-top: 4rem; } .section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 1.5rem; } .section-heading h2 { margin: .35rem 0 0; }.section-note { color: var(--muted); font-size: .82rem; } .action-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); } .action-card { background: var(--paper-bright); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; min-height: 255px; padding: 1.5rem; position: relative; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; } .action-card:hover { box-shadow: 5px 5px 0 var(--line); color: var(--ink); transform: translate(-2px, -2px); } -.action-card > .bi { color: var(--orange); font-size: 1.55rem; margin-top: 1.35rem; }.action-card h3 { font-size: 1.35rem; margin: 1rem 0 .4rem; } -.action-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0; }.card-number { color: #9a9f96; font-size: .7rem; font-weight: 800; letter-spacing: .12em; } -.action-card-featured { background: #e7e1d5; border-color: #c7bead; }.card-link { color: var(--green); font-size: .8rem; font-weight: 800; margin-top: auto; padding-top: 1.25rem; } -.workflow-panel { background: #e9e5da; display: grid; gap: 2rem; grid-template-columns: .75fr 1.25fr; margin-top: 4rem; padding: 2.25rem; } +.action-card > .bi { color: var(--accent); font-size: 1.55rem; margin-top: 1.35rem; }.action-card h3 { font-size: 1.35rem; margin: 1rem 0 .4rem; } +.action-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0; }.card-number { color: #8494a1; font-size: .7rem; font-weight: 800; letter-spacing: .12em; } +.action-card-featured { background: #e8f0f5; border-color: #bfd0dc; }.card-link { color: var(--accent-dark); font-size: .8rem; font-weight: 800; margin-top: auto; padding-top: 1.25rem; } +.workflow-panel { background: #e8f0f5; display: grid; gap: 2rem; grid-template-columns: .75fr 1.25fr; margin-top: 4rem; padding: 2.25rem; } .workflow-panel h2 { margin: .35rem 0 0; max-width: 14rem; }.workflow-list { counter-reset: item; display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; } -.workflow-list li { align-items: center; border-bottom: 1px solid #ccc5b7; display: flex; gap: 1rem; padding: .65rem 0; }.workflow-list li:last-child { border-bottom: 0; } -.workflow-list li > span { align-items: center; background: var(--orange); border-radius: 50%; display: inline-flex; font-size: .72rem; font-weight: 800; height: 1.6rem; justify-content: center; width: 1.6rem; } +.workflow-list li { align-items: center; border-bottom: 1px solid #c3d2dc; display: flex; gap: 1rem; padding: .65rem 0; }.workflow-list li:last-child { border-bottom: 0; } +.workflow-list li > span { align-items: center; background: var(--accent); border-radius: 50%; display: inline-flex; font-size: .72rem; font-weight: 800; height: 1.6rem; justify-content: center; width: 1.6rem; } .workflow-list strong, .workflow-list small { display: block; }.workflow-list strong { font-size: .9rem; }.workflow-list small { color: var(--muted); font-size: .78rem; margin-top: .1rem; } @media (max-width: 800px) { .dashboard-hero, .workflow-panel { grid-template-columns: 1fr; }.hero-graphic { display: none; }.action-grid { grid-template-columns: 1fr; }.section-heading { align-items: start; flex-direction: column; gap: .5rem; } } @media (max-width: 640.98px) { .content { padding-top: 2rem; }.workspace-header { height: 3.5rem; padding-left: 4.6rem; }.workspace-context { display: none; } .workspace-status { margin-left: auto; } } diff --git a/tests/test_nav_menu_brand_contrast.py b/tests/test_nav_menu_brand_contrast.py index d183a2e..9b9add7 100644 --- a/tests/test_nav_menu_brand_contrast.py +++ b/tests/test_nav_menu_brand_contrast.py @@ -44,6 +44,20 @@ class NavMenuBrandContrastTests(unittest.TestCase): markup = NAV_MENU.read_text() self.assertIn('CutList', markup) + def test_visual_system_uses_the_industrial_blue_accent(self) -> None: + css = APP_CSS.read_text() + self.assertIn("--accent: #2b75a8;", css) + self.assertIn("--navy: #203747;", css) + self.assertNotIn("--orange:", css) + + def test_desktop_content_padding_does_not_push_the_nav_brand_right(self) -> None: + css = APP_CSS.read_text() + self.assertNotIn(".top-row, article {", css) + + def test_nav_brand_is_left_aligned_with_the_navigation_items(self) -> None: + css = NAV_MENU_CSS.read_text() + self.assertIn(".top-row { justify-content: flex-start;", css) + if __name__ == "__main__": unittest.main()