Skip to content

Commit 7ccbb48

Browse files
committed
feat: show paragraph mark when hovering on h2 titles with link
1 parent 59c0ff2 commit 7ccbb48

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

assets/index.scss

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ $green: #a7ecad;
99
$bg-secondary: #3f6075;
1010
$common-margin: 24px;
1111

12-
@use 'heti'
13-
with ($line-length: none,
12+
@use 'heti' with (
13+
$line-length: none,
1414
$darkmode: 'manual',
1515
$manualmode-dark-selector: 'body.dark &',
1616
$font-size-h2: normal,
@@ -37,11 +37,6 @@ with ($line-length: none,
3737

3838
h2 {
3939
margin-bottom: $common-margin;
40-
41-
a:hover {
42-
border-block-end: inherit;
43-
padding-block-end: 0;
44-
}
4540
}
4641

4742
img {
@@ -75,6 +70,15 @@ with ($line-length: none,
7570
padding: 5px 10px;
7671
color: white;
7772
user-select: none;
73+
74+
> a:hover {
75+
border-block-end: inherit;
76+
padding-block-end: 0;
77+
78+
&::after {
79+
content: '';
80+
}
81+
}
7882
}
7983

8084
:root {
@@ -134,7 +138,6 @@ table {
134138
border-collapse: collapse;
135139

136140
tr {
137-
138141
th,
139142
td {
140143
border: 1px solid $bg-secondary;
@@ -192,4 +195,4 @@ td {
192195

193196
.language-menu {
194197
margin-top: -7px;
195-
}
198+
}

components/CategorySecond.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
const props = defineProps({
2+
defineProps({
33
title: { type: String, required: true },
44
titleUrl: { type: String, default: undefined },
55
rightText: { type: String, default: undefined },

0 commit comments

Comments
 (0)