Skip to content

Commit

Permalink
improve croissance viz
Browse files Browse the repository at this point in the history
  • Loading branch information
robindemourat committed Aug 14, 2024
1 parent 1a67b0c commit bf5ca79
Show file tree
Hide file tree
Showing 7 changed files with 566 additions and 374 deletions.
2 changes: 1 addition & 1 deletion src/components/ScrollyPage/ScrollyPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
> h3 {
margin: 0;
position: relative;
padding-top: $medium-gutter;
// padding-top: $medium-gutter;
// top: -1em;
}
display: flex;
Expand Down
12 changes: 6 additions & 6 deletions src/i18n/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -543,14 +543,14 @@ GuerreEtCroissance:
fr: an
en: year
tooltip:
fr: En ${year}, valeur de ${value} lt. (perte de ${loss} lt.)
en: In ${year}, value of ${value} lt. (loss of ${loss} lt.)
fr: En ${year}, valeur de ${value} ${unit} (perte de ${loss} ${unit})
en: In ${year}, value of ${value} ${unit} (loss of ${loss} ${unit})
filters-title:
fr: Afficher ...
en: Display ...
filters-directions-title:
fr: "Afficher les directions :"
en: "Display directions:"
fr: "Directions des fermes"
en: "Directions des fermes"
filters-series-title:
fr: "Afficher les séries :"
en: "Display series:"
fr: "Séries"
en: "Series"
20 changes: 12 additions & 8 deletions src/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,14 @@ input[type="radio"] {
margin: 0;
font: inherit;
color: currentColor;
width: 1em;
height: 1em;
min-width: 1em;
min-height: 1em;
width: .5em;
height: .5em;
min-width: .5em;
min-height: .5em;
max-width: .5em;
max-height: .5em;
position: relative;
top: .25em;
border: 0.15em solid currentColor;
border-radius: 50%;
transform: translateY(0.25em);
Expand All @@ -114,8 +118,8 @@ input[type="radio"] {

&::before {
content: "";
width: 0.65em;
height: 0.65em;
width: 0.3em;
height: 0.3em;
border-radius: 50%;
transform: scale(0);
transition: 120ms transform ease-in-out;
Expand All @@ -124,10 +128,10 @@ input[type="radio"] {
}

&:checked{
background: red;
background: $color-accent-background;
&::before {
transform: scale(1);
background: red;
background: $color-accent-background;
}
}

Expand Down
Loading

0 comments on commit bf5ca79

Please sign in to comment.