Skip to content

Commit 05d6091

Browse files
authored
Add scrolling overflow to code examples (#215)
This introduces a top margin to the highlight class block, which doesn't seem to respond to style overrides without calling it important.
1 parent 56a014a commit 05d6091

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

readthedocs_theme/static/css/site.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sui/themes/rtd-site/globals/site.overrides

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
padding-top: 250px;
2929
}
3030

31+
// TODO move this to common theme
32+
.ui.ui.ui.inverted.segment > div.highlight {
33+
margin-top: 1rem;
34+
overflow-x: scroll;
35+
}
36+
3137
// Article styles for docutils reST and Markdown
3238
.ui.docutils.container,
3339
.ui.docutils.segment {

0 commit comments

Comments
 (0)