Skip to content

Commit 7ed3664

Browse files
committed
Suppress the flickering of links of generated documents
Our default theme uses `a:hover { font-weight: bold; }` but this changes the width of texts and breaks the layout. It's annoying.
1 parent 30b57ff commit 7ed3664

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

onlinejudge_verify_resources/_includes/theme_fix.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,15 @@
1111
width: calc(100% - 300px);
1212
}
1313
}
14+
a:hover, a:focus {
15+
font-weight: normal;
16+
text-decoration: underline;
17+
}
18+
h1 a:hover {
19+
font-weight: bold;
20+
}
21+
h1 a:focus {
22+
font-weight: bold;
23+
}
1424
</style>
1525
{% endif %}

0 commit comments

Comments
 (0)