Skip to content

Commit

Permalink
Tweak h2 font size (#5)
Browse files Browse the repository at this point in the history
* fix(biome): h2 is not responsive

* fix(biome): only change font-size, don't overthink it

* chore: space
  • Loading branch information
felix-bohlin authored Dec 9, 2024
1 parent 2b390bd commit ce99635
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/biome.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const { title, image, alt, description, features } = Astro.props;
<header id={slugify(title)}>
<img src={image} alt={alt} width="1280" height="720" loading="lazy" />
<div>

<h2 class="retro-title">
<a href=`#${slugify(title)}`>#</a>
{title}
Expand Down Expand Up @@ -76,7 +75,7 @@ const { title, image, alt, description, features } = Astro.props;
}

h2 {
font-size: clamp(5rem, 9vw, 7rem);
font-size: clamp(3rem, 13vi, 6.1rem);
margin-left: -0.4em;
a {
text-decoration: none;
Expand Down

0 comments on commit ce99635

Please sign in to comment.