Skip to content

Commit e63676d

Browse files
committed
fix: make more obvious that imports are clickable
1 parent a57fa90 commit e63676d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

app/components/CodeViewer.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,17 @@ watch(
131131
.code-content :deep(.import-link) {
132132
color: inherit;
133133
text-decoration: underline;
134-
text-decoration-color: transparent;
134+
text-decoration-style: dotted;
135+
text-decoration-color: rgba(158, 203, 255, 0.5); /* syntax.str with transparency */
135136
text-underline-offset: 2px;
136-
transition: text-decoration-color 0.15s;
137+
transition:
138+
text-decoration-color 0.15s,
139+
text-decoration-style 0.15s;
137140
cursor: pointer;
138141
}
139142
140143
.code-content :deep(.import-link:hover) {
141-
text-decoration-color: currentColor;
144+
text-decoration-style: solid;
145+
text-decoration-color: #9ecbff; /* syntax.str - light blue */
142146
}
143147
</style>

0 commit comments

Comments
 (0)