8000 underline right sidebar links on hover instead of vice versa · SaFiSec/docs.hackerone.com@e7495e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit e7495e8

Browse files
committed
underline right sidebar links on hover instead of vice versa
1 parent e4a726d commit e7495e8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/components/sidebar/sidebar.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ $sidebar-tablet-width: 160px;
6767
word-break: break-word;
6868
}
6969

70+
.right_sidebar__link {
71+
text-decoration: none;
72+
73+
&:hover {
74+
text-decoration: underline;
75+
}
76+
}
77+
7078
.sidebar__link {
7179
text-decoration: none;
7280
color: $daisy-eclipse;

src/components/toc/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class ToC extends React.Component {
2525
<ul className="sidebar__items sidebar__items--active">
2626
{headings.map(header => (
2727
<li key={header.value} className="sidebar__item">
28-
<a href={`#${this.slug(header.value)}`}>
28+
<a href={`#${this.slug(header.value)}`} className="right_sidebar__link">
2929
{header.value}
3030
</a>
3131
</li>

0 commit comments

Comments
 (0)
0