Skip to content

Commit

Permalink
Autoformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Sep 6, 2024
1 parent 2b5d789 commit ecf4f59
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/Notice.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { colorClass, className } = Astro.props

<div
class={twJoin(
'p-4 rounded leading-normal prose prose-blue [--tw-prose-bullets:_black] prose-p:first-child:my-0 prose-h1:mt-0 prose-h2:!mt-0',
'prose-p:first-child:my-0 prose prose-blue rounded p-4 leading-normal [--tw-prose-bullets:_black] prose-h1:mt-0 prose-h2:!mt-0',
className,
colorClass || 'bg-sky-100',
)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/text/CardWrapper.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { classes, sectionClasses, headline } = Astro.props

<ProseSection classes={sectionClasses}>
{headline ? <h2>{headline}</h2> : ''}
<div class={twMerge('grid sm:grid-cols-2 gap-4 mb-3', classes)}>
<div class={twMerge('mb-3 grid gap-4 sm:grid-cols-2', classes)}>
<slot />
</div>
</ProseSection>
2 changes: 1 addition & 1 deletion src/components/text/ProjectHeadline.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const { title, subtitle, titleClasses, subtitleClasses } = Astro.props
>
{title}
</h1>
<p class={twMerge('text-3xl font-bold text-sky-700 mb-20', subtitleClasses)}>{subtitle}</p>
<p class={twMerge('mb-20 text-3xl font-bold text-sky-700', subtitleClasses)}>{subtitle}</p>
</header>
2 changes: 1 addition & 1 deletion src/layouts/Navigation/MenuItem/MenuItem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const active = highlightExactMatch
href={href}
class={twMerge(
active ? menuActiveClasses : 'hover:bg-blue-50',
'flex items-center border-b border-gray-200 py-2.5 pl-4 pr-2 leading-tight justify-between group/item',
'group/item flex items-center justify-between border-b border-gray-200 py-2.5 pl-4 pr-2 leading-tight',
)}
data-item-active-debugger={active}
{...{ rel: external ? 'noopener noreferrer' : undefined }}
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Navigation/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { layoutType, project, menuHighlight } = Astro.props
data-navigation-project={project}
class={twJoin(
layoutType === 'app' ? 'bg-white' : 'mb-10 lg:mb-0',
'flex lg:block justify-between lg:relative z-[1001] w-full px-3 py-3 shadow-xl lg:z-auto lg:w-64 lg:py-6 lg:shadow-none flex-none',
'z-[1001] flex w-full flex-none justify-between px-3 py-3 shadow-xl lg:relative lg:z-auto lg:block lg:w-64 lg:py-6 lg:shadow-none',
'group/navi',
)}
lang="de"
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Navigation/NavigationFooter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const { menuHighlight, additionalLinks } = Astro.props
}
<li>
<a
class={(twJoin(menuHighlight === 'contact' ? 'text-black text-bold' : 'hover:text-gray-500'),
class={(twJoin(menuHighlight === 'contact' ? 'text-bold text-black' : 'hover:text-gray-500'),
'underline')}
href="/contact"
lang="de"
Expand Down
8 changes: 4 additions & 4 deletions src/layouts/baseStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const proseBase = twJoin(
// <ul>
'[--tw-prose-bullets:_gray]',
// <code>
'prose-code:rounded prose-code:bg-neutral-100 prose-code:box-decoration-clone prose-code:py-1 prose-code:px-1.5 prose-code:text-neutral-800 prose-code:before:content-none prose-code:after:content-none',
'prose-code:rounded prose-code:bg-neutral-100 prose-code:box-decoration-clone prose-code:px-1.5 prose-code:py-1 prose-code:text-neutral-800 prose-code:before:content-none prose-code:after:content-none',
// <blockquote>
'prose-blockquote:bg-gray-100 prose-blockquote:p-4 prose-blockquote:pb-2',
)
Expand All @@ -17,9 +17,9 @@ export const proseHeadings = twJoin(
// <h#> anchor position
'prose-headings:scroll-mt-10',
// <h1>
'prose-h1:text-sky-700 prose-h1:mt-16 prose-h1:mb-3 first:prose-h1:mt-0',
'prose-h1:mb-3 prose-h1:mt-16 prose-h1:text-sky-700 first:prose-h1:mt-0',
// <h2>
'prose-h2:mt-16 prose-h2:mb-4',
'prose-h2:mb-4 prose-h2:mt-16',
// <h3>
'prose-h3:mt-8 prose-h3:mb-4',
'prose-h3:mb-4 prose-h3:mt-8',
)

0 comments on commit ecf4f59

Please sign in to comment.