Skip to content

Commit

Permalink
fix: note blockquote style
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Aug 18, 2023
1 parent ba7a6d1 commit cb2b5e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/app/notes/[id]/page.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
.with-indent {
& {
--padding-h: -1rem;

@screen lg {
--padding-h: -45px;
}
}

:global {
.paragraph:first-child {
margin-bottom: 4rem;
Expand Down Expand Up @@ -35,8 +43,8 @@
}
}

margin-left: calc(-3em + 2px);
margin-right: calc(-3em + 2px);
margin-left: var(--padding-h);
margin-right: var(--padding-h);

line-height: 1.8;
padding: 1em 1em 1em 2em;
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/note/NoteBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const NoteRootBanner = () => {
if (!banner) return null

return (
<div className="mx-[-1rem] mb-4 mt-8 text-sm lg:mx-[-3rem]">
<div className="mx-[var(--padding-h)] mb-4 mt-8 text-sm">
<NoteBanner {...banner} />
</div>
)
Expand Down

1 comment on commit cb2b5e4

@vercel
Copy link

@vercel vercel bot commented on cb2b5e4 Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
innei.in
shiro-innei.vercel.app
springtide.vercel.app

Please sign in to comment.