Skip to content

Commit fdbf4f5

Browse files
authored
fix: use correct styles when hovering over feedback button, project name, doc title (#92)
* fix: use correct underline color for "Give feedback" button (visited hover) * fix: use correct underline color for sidebar title * fix: use correct underline color for project name * fix: remove underline on hover from project name
1 parent a462177 commit fdbf4f5

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

canonical_sphinx/theme/static/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,14 @@ details summary {
344344
opacity: 0;
345345
}
346346

347+
/* For sidebar documentation title, match text color and underline color on hover */
348+
.sidebar-brand:hover {
349+
text-decoration-color: var(--color-sidebar-brand-text);
350+
}
351+
.sidebar-brand:visited:hover {
352+
text-decoration-color: var(--color-sidebar-brand-text);
353+
}
354+
347355
/* Mimicking the 'Give feedback' button for UX consistency */
348356
.sidebar-search-container input[type=submit] {
349357
color: #FFFFFF;

canonical_sphinx/theme/static/github_issue_links.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
color: #FFFFFF;
1919
text-decoration: underline;
2020
}
21+
.muted-link.github-issue-link:visited:hover {
22+
color: #FFFFFF;
23+
text-decoration: underline;
24+
}
2125
.github-issue-link:active {
2226
color: #FFFFFF;
2327
text-decoration: underline;

canonical_sphinx/theme/static/header.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
text-decoration: none;
1414
}
1515

16+
.p-logo:hover {
17+
text-decoration: none;
18+
}
19+
20+
.p-logo:visited:hover {
21+
text-decoration: none;
22+
}
23+
1624
.p-logo-image {
1725
height: 44px;
1826
padding-right: 10px;

0 commit comments

Comments
 (0)