Skip to content

Commit

Permalink
improving design
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaMajmudar committed May 24, 2024
1 parent dc18997 commit 0c56b30
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions components/StyledMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ const StyledMarkdownBlock = ({ markdown }: { markdown: string }) => {
const fullMarkdown = useContext(FullMarkdownContext);
if (!fullMarkdown) return null;
return (
<div className='text-blue-500 mt-3 bg-slate-50 dark:bg-slate-900 pt-6 pb-3 pr-3 rounded-l border-l-blue-400 border-l-[3px]'>
<div className='text-blue-500 mt-3 bg-slate-50 dark:bg-slate-900 pt-6 pb-3 pr-3 border-dotted border-l-blue-400 border-l-[3px]'>
<TableOfContentMarkdown
markdown={fullMarkdown}
depth={depth}
Expand Down Expand Up @@ -532,10 +532,7 @@ export function TableOfContentMarkdown({
href={`#${slug}`}
className='block cursor-pointer mb-3 text-sm leading-4 ml-[-0.40rem] text-slate-700 font-bold hover:text-blue-500'
>
<span
className='mr-1 text-blue-400'
style={{ fontSize: '1.5em' }}
>
<span className='mr-1 text-blue-400 text-[1.5em]'>
&#9679;
</span>
{children}
Expand All @@ -553,12 +550,7 @@ export function TableOfContentMarkdown({
font-bold hover:text-blue-500'
>
<span
className='mr-1 text-blue-400'
style={{ fontSize: '1em' }}
>
&#9679;
</span>
<span className='mr-1 text-blue-400 text-[1em]'>&#9679;</span>
{children}
</a>
);
Expand All @@ -573,9 +565,15 @@ export function TableOfContentMarkdown({
return (
<a
href={`#${slug}`}
className='block cursor-pointer mb-3 text-sm leading-4 ml-[-0.15rem] hover:text-blue-500'
className='flex flex-row items-center cursor-pointer mb-3 text-sm leading-4 ml-[-0.15rem] hover:text-blue-500'
>
<span className='mr-1 text-blue-400'>&#8212;</span>
<span className='text-blue-400 text-[0.35em] ml-1'>
&#9679; &#9679; &#9679; &#9679;
</span>
<span className='mr-1 text-blue-400 text-[0.75em]'>
&#9679;
</span>

{children}
</a>
);
Expand All @@ -590,15 +588,16 @@ export function TableOfContentMarkdown({
return (
<a
href={`#${slug}`}
className='block cursor-pointer mb-3 text-sm leading-4 ml-[-0.15rem] hover:text-blue-500'
className='flex flex-row items-center cursor-pointer mb-3 text-sm leading-4 ml-[-0.15rem] hover:text-blue-500'
>
<span className='mr-1 text-blue-400'></span>
<span className='ml-[-0.25rem] mr-1 text-blue-400'>
&#8212;
<span className='text-blue-400 text-[0.35em] ml-1'>
&#9679; &#9679; &#9679; &#9679; &#9679; &#9679;
&#9679; &#9679; &#9679; &#9679; &#9679;
</span>
<span className='ml-[-0.25rem] mr-1 text-blue-400'>
&#8212;
<span className='mr-1 text-blue-400 text-[0.75em]'>
&#9679;
</span>

{children}
</a>
);
Expand Down

0 comments on commit 0c56b30

Please sign in to comment.