Skip to content

Commit

Permalink
feat: prevent first h1 from having too-large top margin
Browse files Browse the repository at this point in the history
  • Loading branch information
limulus authored Sep 29, 2024
1 parent 10f6337 commit f4b87dd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
4 changes: 1 addition & 3 deletions www/404.webc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: Not Found
layout: page
---

<header>
<h1 class="title">Not Found</h1>
</header>
<h1 @text="title"></h1>

<p>Sorry, the resource you were looking for could not be found.</p>
8 changes: 4 additions & 4 deletions www/_includes/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ a:visited {
position: absolute;
}

h1:first-of-type {
margin-top: 0;
}

body > header {
/* padding: 0 0 1rem 0; */
font-size: 1rem;
Expand Down Expand Up @@ -121,10 +125,6 @@ body > header a:visited {
color: #333;
}

h1.title {
margin-top: 0;
}

code {
font-family: 'Monaspace Neon', monospace;
/**
Expand Down
2 changes: 1 addition & 1 deletion www/_includes/layouts/article.webc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ layout: page

<article>
<header>
<h1 class="title" @text="title"></h1>
<h1 @text="title"></h1>
<article-meta :date="page.date"></article-meta>
</header>

Expand Down
5 changes: 2 additions & 3 deletions www/penumbra/index.webc
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: A Web-Centric Ray Tracer Challenge Implementation
title: Penumbra
subtitle: A Web-Centric Ray Tracer Challenge Implementation
layout: page
teaser: >-
A development journal and web-centric implementation of The Ray Tracer Challenge.
---

<h1 class="title">Penumbra</h1>

<p>
<em>Penumbra</em> is a
<a href="https://pragprog.com/titles/jbtracer/the-ray-tracer-challenge/"
Expand Down
4 changes: 1 addition & 3 deletions www/penumbra/journal/index.webc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: Penumbra Development Journal
layout: page
---

<header>
<h1>Penumbra Development Journal</h1>
</header>
<h1 @text="title"></h1>

<article-list :@articles="collections.journal"></article-list>

0 comments on commit f4b87dd

Please sign in to comment.