Skip to content

Commit

Permalink
css to disable new tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
goodroot committed Dec 13, 2024
1 parent 8cd7148 commit 8dc0fbc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/css/_global.css
Original file line number Diff line number Diff line change
Expand Up @@ -318,4 +318,15 @@ html[data-theme="dark"] .DocSearch {
.table-alternate th:nth-child(even),
.table-alternate td:nth-child(even) {
background: var(--color-even);
}

/* Force DocSearch links to open in same tab */
.DocSearch-Hit-Container a[target="_blank"],
.DocSearch-Hit a[target="_blank"] {
pointer-events: none;
}

.DocSearch-Hit-Container a,
.DocSearch-Hit a {
pointer-events: auto;
}

0 comments on commit 8dc0fbc

Please sign in to comment.