Skip to content

Commit

Permalink
fix(finances): sm layout of revenue
Browse files Browse the repository at this point in the history
- fix overflow issues at large mobile sizes
- add balanced text wrapping to quotes and titles
  • Loading branch information
rpeterman-gp committed Dec 5, 2024
1 parent debe8fa commit 72a1d2b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
7 changes: 5 additions & 2 deletions _data/financials.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@
"type": "revenue",
"color": "yellow",
"positions": [
{
"value": "auto / 1 / span 2 / -1"
},
{
"breakpoint": "sm",
"value": "auto / 1 / span 1 / span 3"
"value": "auto / 1 / span 1 / -1"
}
]
},
Expand All @@ -49,7 +52,7 @@
"positions": [
{
"breakpoint": "sm",
"value": "auto / 4 / span 1 / span 3"
"value": "auto / 1 / span 1 / span 6"
}
]
},
Expand Down
5 changes: 5 additions & 0 deletions _sass/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
grid-column: wide;
justify-self: center;
margin-bottom: 0;
text-wrap: balance;
}

.content-quote {
Expand Down Expand Up @@ -112,12 +113,15 @@
grid-column: wide;
justify-self: center;
text-align: center;
text-wrap: balance;

blockquote.image {
display: grid;
column-gap: var(--_content--column-gap);
row-gap: var(--_content--row-gap);

text-wrap: balance;

img {
border-radius: 20px;
box-shadow: 10px -10px 0px 0px var(--_content--accent--color1), -10px 10px 0px 0px var(--_content--accent--color2);
Expand All @@ -143,6 +147,7 @@
grid-column: wide;
justify-self: center;
text-align: center;
text-wrap: balance;

.quote-text {
&::before {
Expand Down
2 changes: 1 addition & 1 deletion _sass/_finances.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

.content-main {
grid-column: full-width;
padding-inline: 2rem;
}
}

Expand All @@ -27,7 +28,6 @@

max-width: 1600px;

padding-inline: 2rem;
margin-inline: auto;

@container (width > #{$min-width}) {
Expand Down
3 changes: 3 additions & 0 deletions _sass/_show.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
grid-column: wide;
justify-self: center;
margin-bottom: 0;
text-wrap: balance;
}

.show-quote {
Expand All @@ -115,6 +116,7 @@
blockquote {
padding: calc(var(--_show--row-gap) / 1.5);
border-left: 3px dotted var(--_show--accent--color1);
text-wrap: balance;
}
}

Expand Down Expand Up @@ -444,6 +446,7 @@
grid-column: wide;
justify-self: center;
text-align: center;
text-wrap: balance;

.quote-text {
&::before {
Expand Down

0 comments on commit 72a1d2b

Please sign in to comment.