Skip to content

Commit

Permalink
fixed transition for link
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Apr 11, 2023
1 parent 0f3b309 commit 8c48975
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,7 @@ cm-s-obsidian span.cm-link:not(.cm-formatting-link) .cm-underline {
background-repeat: repeat-x;
background-size: 5px 5px;
text-decoration: none;
transition: all 350ms ease-in-out;
transition-property: color, background;
transition: background 350ms ease-in-out;
}

.cm-s-obsidian span.cm-link:not(.cm-formatting-link) .cm-underline,
Expand All @@ -733,15 +732,13 @@ cm-s-obsidian span.cm-link:not(.cm-formatting-link) .cm-underline {
var(--bg-sub-accent-55) 0%,
var(--bg-sub-accent-55) 100%
);
transition: all 350ms ease-in-out;
transition-property: color, background;
transition: background 350ms ease-in-out;
}

.cm-s-obsidian span.cm-hmd-internal-link .cm-underline,
.internal-link {
background-image: linear-gradient(to bottom, var(--bg-accent-55) 0%, var(--bg-accent-55) 100%);
transition: all 350ms ease-in-out;
transition-property: color, background;
transition: background 350ms ease-in-out;
}

.internal-link:hover,
Expand Down

0 comments on commit 8c48975

Please sign in to comment.