Skip to content

Commit

Permalink
Fixed external link style [#58]
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Oct 9, 2022
1 parent 132bedb commit 905c7a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ ul .task-list-item ul::before {

/** editor mode **/

.cm-s-obsidian span.cm-link,
.cm-s-obsidian span.cm-link:not(.cm-formatting-link) .cm-underline,
.cm-s-obsidian span.cm-hmd-internal-link .cm-underline {
text-shadow: -1px -1px 2px var(--background-secondary), -1px 1px 2px var(--background-secondary),
1px -1px 2px var(--background-secondary), 1px 1px 2px var(--background-secondary);
Expand All @@ -779,7 +779,7 @@ ul .task-list-item ul::before {
text-decoration: none;
}

.cm-s-obsidian span.cm-link:not(.cm-formatting-link) {
.cm-s-obsidian span.cm-link:not(.cm-formatting-link) .cm-underline {
background-image: linear-gradient(
to bottom,
var(--bg-sub-accent-55) 0%,
Expand Down Expand Up @@ -831,6 +831,7 @@ ul .task-list-item ul::before {
background-size: 4px 50px;
}

.cm-s-obsidian span.cm-link:not(.cm-formatting-link) .cm-underline:hover,
.external-link:hover {
text-shadow: -1px -1px 2px var(--background-modifier-border),
-1px 1px 2px var(--background-modifier-border), 1px -1px 2px var(--background-modifier-border),
Expand Down

0 comments on commit 905c7a1

Please sign in to comment.