Skip to content

Commit 67aa6a2

Browse files
committed
tweak: scale code and add a -1 step
so that we can fit more of the good stuff without side scrolling on mobile
1 parent b82399a commit 67aa6a2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/scss/component.syntax.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pre {
33
@extend %o-media;
44
padding: 1.5rem $article-gutter;
5-
font: 1.2rem monospace;
5+
font: var(--step--1) monospace;
66
overflow: scroll;
77
background: $colour-cream;
88

src/scss/settings.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ $container-width: 50rem;
2020
$article-gutter: 3.125rem;
2121
$article-gutter-mobile: $article-gutter / 2;
2222

23-
/* @link https://utopia.fyi/type/calculator?c=360,16,1.2,960,18,1.2,5,0,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
23+
/* @link https://utopia.fyi/type/calculator?c=360,16,1.2,960,18,1.2,5,1,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
2424

2525
:root {
26+
--step--1: clamp(0.8333rem, 0.7708rem + 0.2778vw, 0.9375rem);
2627
--step-0: clamp(1rem, 0.925rem + 0.3333vw, 1.125rem);
2728
--step-1: clamp(1.2rem, 1.11rem + 0.4vw, 1.35rem);
2829
--step-2: clamp(1.44rem, 1.332rem + 0.48vw, 1.62rem);

0 commit comments

Comments
 (0)