Skip to content

Commit 31c61f9

Browse files
committed
Fix icon alignment
1 parent 0887261 commit 31c61f9

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

source/_static/overrides.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* Overrides for theme and plugin styles */
2+
3+
/* https://github.com/executablebooks/sphinx-copybutton/blob/v0.4.0/sphinx_copybutton/_static/copybutton.css */
4+
5+
button.copybtn img {
6+
/* Fix alignment for pypa_theme */
7+
padding: 0;
8+
}

source/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@
181181
# Add any paths that contain custom static files (such as style sheets) here,
182182
# relative to this directory. They are copied after the builtin static files,
183183
# so a file named "default.css" will overwrite the builtin "default.css".
184-
# html_static_path = ['_static']
184+
html_static_path = ['_static']
185+
186+
html_css_files = ['overrides.css']
185187

186188
# Add any extra paths that contain custom files (such as robots.txt or
187189
# .htaccess) here, relative to this directory. These files are copied

0 commit comments

Comments
 (0)