Skip to content

Commit 4ea5b81

Browse files
committed
Fixed search highlighting
1 parent 23a977c commit 4ea5b81

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

pytorch_sphinx_theme2/static/css/theme.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3333,6 +3333,10 @@ html[data-theme=dark] {
33333333
transform-origin: none;
33343334
}
33353335

3336+
span.highlighted {
3337+
background-color: #ffe4e4;
3338+
}
3339+
33363340
/*!
33373341
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
33383342
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Search Styles
2+
@use 'variables';
3+
4+
span.highlighted {
5+
background-color: #ffe4e4;
6+
}

pytorch_sphinx_theme2/static/scss/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
@use 'tutorials';
1313
@use 'runllm';
1414
@use 'sphinx_design';
15+
@use 'search';
1516

1617
// Import FontAwesome
1718
@use "@fortawesome/fontawesome-free/scss/fontawesome";

0 commit comments

Comments
 (0)