Skip to content

Commit af1913e

Browse files
committed
chore: link style
1 parent 62c88dd commit af1913e

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

src/styles/global.scss

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,28 @@ a {
2626
.main-card p,
2727
.main-card li,
2828
.main-card blockquote {
29-
:not(#toc-phone) {
30-
a {
31-
@apply px-0.5 rounded-md font-medium;
32-
color: oklch(var(--p));
33-
transition:
34-
background-color 0.3s,
35-
background-size 0.3s,
36-
background-position 0.3s ease;
37-
box-decoration-break: clone;
38-
background-image: linear-gradient(oklch(var(--p)), oklch(var(--p)));
39-
background-size: 100% 2px;
40-
background-position: left bottom;
41-
background-repeat: no-repeat;
42-
}
29+
a {
30+
@apply px-0.5 rounded-md font-medium;
31+
color: oklch(var(--p));
32+
transition:
33+
background-color 0.3s,
34+
background-size 0.3s,
35+
background-position 0.3s ease;
36+
box-decoration-break: clone;
37+
background-image: linear-gradient(oklch(var(--p)), oklch(var(--p)));
38+
background-size: 100% 2px;
39+
background-position: left bottom;
40+
background-repeat: no-repeat;
41+
}
4342

44-
a:hover {
45-
background-color: oklch(var(--p) / 0.3);
46-
background-size: 0% 2px;
47-
}
43+
a:hover {
44+
background-color: oklch(var(--p) / 0.3);
45+
background-size: 0% 2px;
46+
}
4847

49-
a:active {
50-
background-color: oklch(var(--p) / 0.2);
51-
background-size: 0% 2px;
52-
}
48+
a:active {
49+
background-color: oklch(var(--p) / 0.2);
50+
background-size: 0% 2px;
5351
}
5452
}
5553

0 commit comments

Comments
 (0)