Skip to content

Commit

Permalink
fix: optimize style
Browse files Browse the repository at this point in the history
  • Loading branch information
recoluan committed Apr 16, 2024
1 parent c159a10 commit dd7b754
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,32 +49,34 @@
@apply -mt-8 mb-8 mx-0 pt-12 leading-5 z-negative-10;
}
h1 {
@apply text-3xl -mt-12;
@apply -mt-12 text-3xl;
}

h2 {
@apply leading-tight text-2xl;
/* @apply -mt-4 relative; */
@apply leading-tight;
span {
@apply text-2xl;
}
&::before {
@apply mb-6 block w-full border-t border-solid border-reco-border-lightmode;
@apply dark:border-reco-border-darkmode;
content: ' ';
}
}

h3 {
h3 span {
@apply text-xl;
}

h4 {
h4 span {
@apply text-lg;
}

h5 {
h5 span {
@apply text-base;
}

h6 {
h6 span {
@apply text-sm;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.vp-back-to-top-button {
@apply text-reco-primary/90 hover:text-reco-primary !important;
@apply text-reco-primary !important;
}
12 changes: 11 additions & 1 deletion packages/vuepress-theme-reco/src/client/styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,20 @@ h6:focus .header-anchor {
}

a.header-anchor {
@apply text-base float-left opacity-0 mt-0.5 mr-1 -ml-3;
@apply text-base mt-0.5;
span {
@apply text-basic;
}
&::before {
@apply -ml-4 mr-1 invisible;
content: '#';
}
&:hover,
&:focus {
@apply no-underline;
&::before {
@apply visible;
}
}
}

Expand Down

0 comments on commit dd7b754

Please sign in to comment.