Skip to content

Commit

Permalink
style: colorize anchor in rendered markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Xecades committed Feb 8, 2024
1 parent bbd411a commit 5fe3345
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/assets/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ body {
min-width: 200px;
}

.md a {
color: #2892ff;
text-decoration: none;
}

.md a:hover {
color: #79bcff;
}

@media screen and (min-width: 768px) {
#app {
width: 800px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/RemarkComp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ onMounted(() => {
· {{ data.name || "匿名" }} · {{ data.grade }} · {{ data.course }}
</el-text>
</template>
<div v-html="parsed" class="content"></div>
<div v-html="parsed" class="content md"></div>
</el-card>
</template>

Expand Down

0 comments on commit 5fe3345

Please sign in to comment.