Skip to content

Commit

Permalink
Merge pull request sphinx-doc#7986 from mgeier/css-highlight-selector
Browse files Browse the repository at this point in the history
basic CSS: fix "highlight-" selector
  • Loading branch information
tk0miya committed Aug 2, 2020
2 parents 5e6da19 + 4164383 commit 4f56fad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -86,6 +86,7 @@ Bugs fixed
* #7619: Duplicated node IDs are generated if node has multiple IDs
* #2050: Symbols sections are appeared twice in the index page
* #8017: Fix circular import in sphinx.addnodes
* #7986: CSS: make "highlight" selector more robust

Testing
--------
Expand Down
4 changes: 2 additions & 2 deletions sphinx/themes/basic/static/basic.css_t
Expand Up @@ -693,7 +693,7 @@ pre {
overflow-y: hidden; /* fixes display issues on Chrome browsers */
}

pre, div[class|="highlight"] {
pre, div[class*="highlight-"] {
clear: both;
}

Expand All @@ -704,7 +704,7 @@ span.pre {
hyphens: none;
}

div[class^="highlight-"] {
div[class*="highlight-"] {
margin: 1em 0;
}

Expand Down

0 comments on commit 4f56fad

Please sign in to comment.