mirror of
https://github.com/youwen5/site.git
synced 2024-11-24 17:33:51 -08:00
style: change h1 toc link styling
This commit is contained in:
parent
9f2c27d429
commit
51556c3336
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
||||||
export let tocStore: TocStore;
|
export let tocStore: TocStore;
|
||||||
|
|
||||||
const calcTextClasses = (el: HTMLElement) => {
|
const calcTextClasses = (el: HTMLElement) => {
|
||||||
if (el.tagName === 'H1') return 'text-xl font-medium';
|
if (el.tagName === 'H1') return 'font-medium';
|
||||||
if (el.tagName === 'H2') return 'text-lg';
|
if (el.tagName === 'H2') return 'text-lg';
|
||||||
return 'text-sm text-muted-foreground';
|
return 'text-sm text-muted-foreground';
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
export let tocStore: TocStore;
|
export let tocStore: TocStore;
|
||||||
|
|
||||||
const calcTextClasses = (el: HTMLElement) => {
|
const calcTextClasses = (el: HTMLElement) => {
|
||||||
if (el.tagName === 'H1') return 'text-lg xl:text-xl font-medium';
|
if (el.tagName === 'H1') return 'text-md xl:text-lg font-medium';
|
||||||
if (el.tagName === 'H2') return 'text-md xl:text-lg';
|
if (el.tagName === 'H2') return 'text-md xl:text-lg';
|
||||||
if (el.id === 'end-marker') return 'text-lg xl:text-xl';
|
if (el.id === 'end-marker') return 'text-lg xl:text-xl';
|
||||||
return 'text-sm text-muted-foreground';
|
return 'text-sm text-muted-foreground';
|
||||||
|
|
Loading…
Reference in a new issue