Skip to content

Commit

Permalink
sync breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed May 21, 2024
1 parent ff6ef46 commit 5b42b12
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/todo2.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ https://salient.tailwindui.com/
// linkedin blog posts, example
https://www.linkedin.com/pulse/react-19-beta-now-available-npm-iii-amigoes-qpjke/

// tailwind guy
// tailwind guy, keystatic, very simple
https://github.com/simonswiss/simonswiss.com

-----------
Expand Down
1 change: 1 addition & 0 deletions docs/todo3.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,5 @@ improve PostItem image and rest
ul li PostList, ProjectList
not-prose not working for my-prose
not-prose fails for font-size, inherited from <main />, i za cn(proseClasses)
keep all breakpoints in sync, prose-lg, h1 sizes, py layout
```
2 changes: 1 addition & 1 deletion src/components/Prose.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const proseClasses = cn(
// responsive styling
// all tags
'md:prose-lg xl:prose-xl',
'md:prose-lg lg:prose-xl',
// limit just h1
'prose-h1:text-3xl md:prose-h1:text-4xl lg:prose-h1:text-5xl',
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/Post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ const props = Astro.props;

<FullWidth {...props}>
<article>
<figure class="w-full max-w-5xl md:mx-auto">
<figure class="not-prose w-full max-w-5xl md:mx-auto">
<slot name="hero-image" />
</figure>
<section class="w-full max-w-4xl md:mx-auto px-4 lg:px-0 py-12 md:py-16">
<section class="w-full max-w-4xl md:mx-auto px-4 lg:px-0 py-12 lg:py-16">
<slot name="hero-text" />
<slot name="content" />
</section>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/my-prose.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/* responsive styling */
/* all tags */
@apply md:prose-lg xl:prose-xl;
@apply md:prose-lg lg:prose-xl;
/* limit just h1 */
@apply prose-h1:text-3xl md:prose-h1:text-4xl lg:prose-h1:text-5xl;

Expand Down

0 comments on commit 5b42b12

Please sign in to comment.