Skip to content

Commit

Permalink
💄 (sources) make data citation smaller on smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Dec 29, 2023
1 parent 549138e commit 6cb74f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const DataCitation = (props: {
<>
<p className="citation__paragraph">
<span className="citation__type">In-line citation</span>
<br />
If you have limited space (e.g. in data visualizations),
you can use this abbreviated in-line citation:
</p>
Expand Down
10 changes: 4 additions & 6 deletions packages/@ourworldindata/grapher/src/modal/SourcesModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@

.citation__type {
color: $dark-text;
font-weight: 500;
}

.indicator-processing .indicator-processing__link {
Expand All @@ -147,11 +148,6 @@
&:hover {
text-decoration: none;
}

svg {
//display: inline-block;
//transform: rotate(-90deg);
}
}
}
}
Expand Down Expand Up @@ -188,7 +184,9 @@
}

.indicator-descriptions .key-info__learn-more,
.indicator-processing .indicator-processing__link {
.indicator-processing .indicator-processing__link,
.citation__paragraph,
.citation__type {
font-size: var(--text-small);
}
}
Expand Down
1 change: 1 addition & 0 deletions site/DataPageContent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@
}

.citation__type {
display: block;
color: $blue-90;
}

Expand Down

0 comments on commit 6cb74f4

Please sign in to comment.