feat: highlight on hover for most els
This commit is contained in:
@@ -11,7 +11,7 @@ const latest = docs.at(-1) as BlogParsedContent;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="prose dark:prose-invert flex">
|
||||
<div class="prose dark:prose-invert flex onhover">
|
||||
<HomeStatBox
|
||||
:href="latest._path"
|
||||
color="lightblue"
|
||||
@@ -46,8 +46,12 @@ const latest = docs.at(-1) as BlogParsedContent;
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
<style scoped lang="scss">
|
||||
h2 {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
div.onhover:hover h2 {
|
||||
@apply text-blue-700 dark:text-blue-400;
|
||||
}
|
||||
</style>
|
||||
|
@@ -56,6 +56,10 @@ const imgUrl = props.project.img
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.project-anchor:hover h3 {
|
||||
@apply text-blue-700 dark:text-blue-400;
|
||||
}
|
||||
|
||||
.card {
|
||||
border: 0.2rem solid pink;
|
||||
background: white;
|
||||
|
@@ -11,7 +11,7 @@ const latest = docs.at(-1) as StoryParsedContent;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="prose dark:prose-invert flex">
|
||||
<div class="prose dark:prose-invert flex onhover">
|
||||
<HomeStatBox
|
||||
:href="latest._path"
|
||||
color="lightgreen"
|
||||
@@ -50,4 +50,8 @@ const latest = docs.at(-1) as StoryParsedContent;
|
||||
h2 {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
div.onhover:hover h2 {
|
||||
@apply text-blue-700 dark:text-blue-400;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user