Skip to content

Commit

Permalink
Add scrolling overflow to code examples (#215)
Browse files Browse the repository at this point in the history
This introduces a top margin to the highlight class block, which doesn't
seem to respond to style overrides without calling it important.
  • Loading branch information
agjohnson authored Aug 9, 2023
1 parent 56a014a commit 05d6091
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs_theme/static/css/site.css

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

6 changes: 6 additions & 0 deletions src/sui/themes/rtd-site/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
padding-top: 250px;
}

// TODO move this to common theme
.ui.ui.ui.inverted.segment > div.highlight {
margin-top: 1rem;
overflow-x: scroll;
}

// Article styles for docutils reST and Markdown
.ui.docutils.container,
.ui.docutils.segment {
Expand Down

0 comments on commit 05d6091

Please sign in to comment.