Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,11 @@ sniper-link[hidden] {
box-sizing: border-box;
}

/* Keep title-to-meta spacing consistent across breakpoints */
[data-book-section] article h1:first-of-type {
margin-bottom: 0.25rem !important;
}

/* Ensure page navigation is constrained to content width */
[data-book-section] nav[data-book-navigation] {
max-width: 100%;
Expand Down Expand Up @@ -935,7 +940,7 @@ sniper-link[hidden] {
/* h1 title comes first in visible order */
[data-book-section] article h1:first-of-type {
order: 1 !important;
margin-bottom: 0.5rem !important;
margin-bottom: 0.25rem !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
Expand All @@ -955,7 +960,7 @@ sniper-link[hidden] {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
margin: 0 0 0.75rem 0 !important;
margin: 0 0 1rem 0 !important;
font-size: 0.8125rem !important;
color: var(--muted-foreground) !important;
text-align: left !important;
Expand Down Expand Up @@ -1013,8 +1018,8 @@ sniper-link[hidden] {
/* Datestamp styling after JS moves it below h1 */
[data-book-section] article main > div:has(time),
[data-book-section] article main div:has(> time) {
margin-top: 0.5rem !important;
margin-bottom: 1.5rem !important;
margin-top: 0 !important;
margin-bottom: 1rem !important;
font-size: 0.875rem !important;
color: var(--muted-foreground) !important;
text-align: left !important;
Expand Down
4 changes: 2 additions & 2 deletions components/book-datestamp-mover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export function BookDatestampMover() {

// Style the datestamp
const div = datestampDiv as HTMLElement
div.style.marginTop = '0.5rem'
div.style.marginBottom = '1.5rem'
div.style.marginTop = '0'
div.style.marginBottom = '1rem'
div.style.textAlign = 'left'
div.style.fontSize = '0.875rem'
div.style.color = '#8A8A8A'
Expand Down