Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 30, 2021. It is now read-only.

Commit d66a0ac

Browse files
authored
Typography and color updates. (#1070)
1 parent 55375bd commit d66a0ac

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

covidatlas/base.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
--ButtonBorderSize: var(--spectrum-alias-border-size-thin);
1515
--ButtonBorderRadius: var(--spectrum-global-dimension-size-50);
1616
--spectrum-alias-focus-ring-size: var(--spectrum-alias-border-size-thick);
17-
--HeadingWeight: 700;
17+
--HeadingWeight: 500;
1818
--BodyWeight: 300;
1919
--ca-PageMargin: 24px;
2020

2121
/* Base vars */
22-
--ca-FontBody: "Merriweather", Georgia, serif;
22+
--ca-FontBody: "Open Sans", Helvetica, sans-serif;
2323
--spectrum-body-text-font-family: var(--ca-FontBody);
2424
--spectrum-component-text-font-family: "Open Sans", Helvetica, sans-serif;
25-
--spectrum-heading-text-font-family: "Open Sans", Helvetica, sans-serif;
25+
--spectrum-heading-text-font-family: "Merriweather", Georgia, serif;
2626
--spectrum-sociallinks-text-font-family: var(--spectrum-heading-text-font-family);
2727

2828

covidatlas/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ sp-dropdown[emphasized] {
178178
font-size: var(--spectrum-heading-m-text-size, var(--spectrum-alias-heading-m-text-size));
179179
max-width: 26ch;
180180
margin-top: 0;
181+
line-height: 1.2;
181182
margin-bottom: var(--spectrum-heading-xxl-margin-top, var(--spectrum-alias-heading-xxl-margin-top));
182183
}
183184
}
@@ -330,6 +331,8 @@ hr {
330331
align-items: baseline;
331332
justify-content: space-between;
332333
border-bottom: 1px solid var(--Gray300);
334+
font-family: var(--spectrum-component-text-font-family);
335+
font-weight: 700;
333336

334337
&.spectrum-Heading {
335338
margin-top: var(--spectrum-heading-m-margin-top, var(--spectrum-alias-heading-m-margin-top));
@@ -341,6 +344,8 @@ hr {
341344

342345
.ca-LocalCount {
343346
text-align: right;
347+
font-family: var(--spectrum-component-text-font-family);
348+
font-weight: 700;
344349
}
345350

346351
/* .ca-Active {

covidatlas/lib/color.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import * as d3interpolate from 'd3-interpolate';
44
import * as d3scale from 'd3-scale';
55

6-
const choroplethColor = 'yellowOrangePurple';
6+
const choroplethColor = 'magma';
77

88
export const noCasesColor = '#ffffff';
99
export const noPopulationDataColor = 'rgba(0,0,0,0)';

0 commit comments

Comments
 (0)