Skip to content

Instantly share code, notes, and snippets.

@d6y
Created February 3, 2026 21:47
Show Gist options
  • Select an option

  • Save d6y/4b5ac97d07764eedb9f9cc2ac78e78c7 to your computer and use it in GitHub Desktop.

Select an option

Save d6y/4b5ac97d07764eedb9f9cc2ac78e78c7 to your computer and use it in GitHub Desktop.
Pagecord custom CSS
@import url(https://fonts.bunny.net/css?family=merriweather:300,300i,400,400i,700,700i,900,900i|merriweather-sans:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i);
body {
font-family: Merriweather, serif;
}
h1, h2, h3, h4, h5 {
font-family: 'Merriweather Sans', sans-serif;
}
.blog-title {
font-family: Merriweather, serif;
}
nav {
justify-content: left;
}
.titlebar, .avatar-container {
justify-content: left;
}
.bio {
text-align: left;
}
.avatar img {
border-radius: clamp(5px, 12%, 10px);
}
/* Labels on the footer icons from https://help.pagecord.com/custom-css */
.reply-by-email::after {
content: "Reply";
margin-inline-start: 0.25em;
}
.upvote::after {
content: "Like";
margin-inline-start: 0.25em;
}
/*
Position the <nav> under the blog title
HTML structure:
- header
- nav
- div .titlebar
- div .avatar-container
- div .avatar
- div .blog-title
- div .bio
Grid structure for header:
col1 col2
+--------+------------+
| avatar | blog-title | row1
| | nav | row2
|---------------------| row3 <hr>
| bio | row4
+--------+------------+
*/
header {
display: grid;
grid-template-rows: auto;
grid-template-columns: min-content 1fr;
}
/* Flatten the nested HTML */
.titlebar, .avatar-container {
display: contents;
}
.avatar {
grid-column: 1;
grid-row: 1 / span 2;
}
.blog-title {
grid-column: 2;
grid-row: 1;
margin-left: 10px; /* Match in <nav> below to align */
}
nav {
grid-column: 2;
grid-row: 2;
margin-left: 10px; /* <- here */
}
header hr {
grid-row: 3;
grid-column: 1 / span 2;
margin-top: 1rem;
/* Colour for the <hr> in the header */
border: none;
background-color: var(--color-text-muted);
height: 1px;
}
.bio {
grid-row: 4;
grid-column: 1 / span 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment