Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds highlight color to linked anchors and changes the global highlight color to a lighter yellow #1170

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Empty file modified bin/preinstall.js
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions sphinx_rtd_theme/static/css/theme.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sphinx_rtd_theme/static/js/theme.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/sass/_theme_layout.sass
Original file line number Diff line number Diff line change
Expand Up @@ -424,3 +424,16 @@ footer
display: none
.wy-nav-content-wrap
margin-left: 0

.section:target > h1,
.section:target > h2,
.section:target > h3,
.section:target > h4,
.section:target > h5,
dt:target
background: $highlight-color !important
-webkit-transition: all .8s
transition: all .8s

dt:target
border-color: $yellow !important
1 change: 1 addition & 0 deletions src/sass/_theme_rst.sass
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@
box-shadow: 0 0 0 ($base-line-height / 12) $highlight-color
display: inline
font-weight: bold
color: $text-color

// These are the little citation links [1] that show up within paragraphs.
.footnote-reference, .citation-reference
Expand Down
2 changes: 1 addition & 1 deletion src/sass/_theme_variables.sass
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $sidebar-border-color: $table-border-color
$sidebar-title-background-color: $table-border-color

// Sphinx highlight color
$highlight-color: $yellow
$highlight-color: #fffa77

$base-font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif
$custom-font-family: "Roboto Slab", "ff-tisa-web-pro", "Georgia", Arial, sans-serif
Expand Down
1 change: 1 addition & 0 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = merge(common, {
// development.
devServer: {
contentBase: "docs/build/html",
host: "0.0.0.0",
port: 1919,
open: false,
hot: false,
Expand Down