From 76a59b215142a91a9a5c2b77ed01cf178861d316 Mon Sep 17 00:00:00 2001 From: Bruce Crevensten Date: Mon, 25 Nov 2024 12:05:38 -0800 Subject: [PATCH] Demographic Adjustments (#682) --- assets/scss/main.scss | 14 ++ .../demographics/DemographicsAgesChart.vue | 29 +++-- .../demographics/DemographicsHealthChart.vue | 60 ++++++--- .../demographics/DemographicsOther.vue | 95 ++++++++++---- .../DemographicsRaceEthnicityChart.vue | 38 +++++- .../demographics/DemographicsReport.vue | 20 +-- pages/credits.vue | 22 +++- pages/data.vue | 103 +++++++-------- store/demographics.js | 121 +++++++++--------- utils/http_errors.js | 2 + 10 files changed, 324 insertions(+), 180 deletions(-) diff --git a/assets/scss/main.scss b/assets/scss/main.scss index 72b35297..6d88eb12 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -24,12 +24,26 @@ label.label { font-weight: 500; } +.block-centered { + margin-left: auto; + margin-right: auto; +} + .content-wrapper { max-width: 50rem; margin-left: auto; margin-right: auto; } +// Some lighter formatting for the demographic tables, still more +// like other tables +table.table.demographic { + td { + font-family: 'IBM Plex Mono', monospace; + font-weight: 500; + } +} + // Formatting common for report tables (temp/precip, indicators) table.table.report-table { width: 100%; diff --git a/components/reports/demographics/DemographicsAgesChart.vue b/components/reports/demographics/DemographicsAgesChart.vue index eced87bb..ea7fe223 100644 --- a/components/reports/demographics/DemographicsAgesChart.vue +++ b/components/reports/demographics/DemographicsAgesChart.vue @@ -1,16 +1,20 @@ - +