Skip to content

Commit

Permalink
font
Browse files Browse the repository at this point in the history
  • Loading branch information
mbourdo committed Jul 22, 2024
1 parent 7192e12 commit 9fb74ae
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
19 changes: 18 additions & 1 deletion other.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,22 @@
"Other": "You are pregnant or have children under 21",
"URL":"https://www.mass.gov/how-to/apply-for-emergency-assistance-ea-family-shelter"
}
}
},
"WIC": {
"Parent": "Services",
"Size": 119009,
"Spending": 11792643,
"Color ": 4,
"Site": "https://www.mass.gov/orgs/women-infants-children-nutrition-program",
"Department": "DPH",
"RoundSize": "119K",
"RoundSpend": "11.8M",
"Description": "Women, Infants, & Children Nutrition Program",
"Elig": {
"Income": "$27,861",
"Resident": "Massachusetts Resident",
"Other": "Children under age 5, a new mom, or pregnant",
"URL":"https://www.mass.gov/forms/apply-for-wic-online"
}
}
}
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function drawTreeMap(data, transition = false) {
group.append("text")
.attr("x", (d.x1 - d.x0) / 2)
.attr("y", (d.y1 - d.y0) / 2 - lineHeight + yOffset)
.attr("fill", "black")
.style("fill", "black") // color of text, css wont work for this
.attr("class", "node-text")
.style("text-anchor", "middle")
.style("font-size", nameFontSize + 'px')
Expand All @@ -157,7 +157,7 @@ function drawTreeMap(data, transition = false) {
group.append("text")
.attr("x", (d.x1 - d.x0) / 2)
.attr("y", (d.y1 - d.y0) / 2 + yOffset)
.attr("fill", "black")
.style("fill", "#545E5F") // color of text, css wont work for this
.attr("class", "node-text-enrolled")
.style("text-anchor", "middle")
.style("font-size", smallFontSize + 'px')
Expand All @@ -167,7 +167,7 @@ function drawTreeMap(data, transition = false) {
group.append("text")
.attr("x", (d.x1 - d.x0) / 2)
.attr("y", (d.y1 - d.y0) / 2 + lineHeight + yOffset)
.attr("fill", "black")
.style("fill", "#545E5F") // color of text, css wont work for this
.attr("class", "node-text-enrolled")
.style("text-anchor", "middle")
.style("font-size", smallFontSize + 'px')
Expand Down
4 changes: 2 additions & 2 deletions services.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"Description": "Massachusetts Medicaid",
"Elig": {
"Income": "$20,040",
"Age": "Ages 19-64",
"Age": "19-64 years",
"Resident": "Massachusetts Resident",
"URL":"https://www.mass.gov/how-to/apply-for-masshealth-the-health-safety-net-or-the-childrens-medical-security-plan"
}
Expand Down Expand Up @@ -74,7 +74,7 @@
"Description": "Supplemental Security Income",
"Elig": {
"Income": "$17,196",
"Age": "Ages 65 and older, or disabled at any age",
"Age": "65 and older, or disabled at any age",
"Resident": "Massachusetts Resident",
"URL":"https://www.mass.gov/how-to/apply-for-ssdi-or-ssi-benefits"
}
Expand Down
7 changes: 4 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/* Variables */
:root {
--font-family: 'Open Sans', sans-serif;
--font-tree: 'Open Sans', sans-serif;
--header-bg: #f8f8f8;
--header-border: 1px solid #ddd;
--header-padding: 10px;
Expand Down Expand Up @@ -336,11 +337,11 @@ h2 {
}

.node-text {
font-size: 18px;
font-family: var(--font-tree);
}

.node-text-enrolled {
font-size: 16px;
font-family: var(--font-tree);
}

.mobile-nav {
Expand Down Expand Up @@ -372,6 +373,7 @@ h2 {
overflow-y: auto;
flex-direction: column;
align-items: flex-start !important;
font-family: var(--font-family);
}

.sidebar h2 {
Expand All @@ -398,7 +400,6 @@ h2 {
padding: 10px !important;
font-size: 16px !important;
line-height: 1.3 !important;

}

.sidebar a {
Expand Down

0 comments on commit 9fb74ae

Please sign in to comment.