Skip to content

Commit

Permalink
chore: link style
Browse files Browse the repository at this point in the history
  • Loading branch information
EveSunMaple committed Jan 6, 2025
1 parent 62c88dd commit af1913e
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,28 @@ a {
.main-card p,
.main-card li,
.main-card blockquote {
:not(#toc-phone) {
a {
@apply px-0.5 rounded-md font-medium;
color: oklch(var(--p));
transition:
background-color 0.3s,
background-size 0.3s,
background-position 0.3s ease;
box-decoration-break: clone;
background-image: linear-gradient(oklch(var(--p)), oklch(var(--p)));
background-size: 100% 2px;
background-position: left bottom;
background-repeat: no-repeat;
}
a {
@apply px-0.5 rounded-md font-medium;
color: oklch(var(--p));
transition:
background-color 0.3s,
background-size 0.3s,
background-position 0.3s ease;
box-decoration-break: clone;
background-image: linear-gradient(oklch(var(--p)), oklch(var(--p)));
background-size: 100% 2px;
background-position: left bottom;
background-repeat: no-repeat;
}

a:hover {
background-color: oklch(var(--p) / 0.3);
background-size: 0% 2px;
}
a:hover {
background-color: oklch(var(--p) / 0.3);
background-size: 0% 2px;
}

a:active {
background-color: oklch(var(--p) / 0.2);
background-size: 0% 2px;
}
a:active {
background-color: oklch(var(--p) / 0.2);
background-size: 0% 2px;
}
}

Expand Down

0 comments on commit af1913e

Please sign in to comment.