Skip to content

Commit

Permalink
Documentation: Fix CSS issue (#1154)
Browse files Browse the repository at this point in the history
* Fix css issue

* Fix css issues on markers and icons
  • Loading branch information
gjmooney authored Dec 12, 2023
1 parent b6ac034 commit 1b37189
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
12 changes: 9 additions & 3 deletions docs/_static/main_stylesheet.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.wy-nav-content{
max-width: 1000px;
margin: auto;
.wy-nav-content {
max-width: 1000px;
margin: auto;
}

/* Undo img background from pydata-sphinx-theme dark theme */
html[data-theme="dark"] img:not(.only-dark):not(.dark-light) {
background-color: transparent !important;
padding: 0 !important;
}
13 changes: 8 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@
# "../../examples/WealthOfNations.ipynb", # did not install bqplot widget as a federated extension?
"../../examples/WidgetControl.ipynb",
]

# Output file base name for HTML help builder.
html_theme = "pydata_sphinx_theme"
#html_theme_path = [pydata_sphinx_theme.get_html_theme_path()]
htmlhelp_basename = 'ipyleafletdoc'
html_static_path = ['_static']


def setup(app):
app.add_css_file("main_stylesheet.css")

Expand All @@ -77,8 +85,3 @@ def setup(app):
highlight_language = 'python'
pygments_style = 'sphinx'

# Output file base name for HTML help builder.
html_theme = "pydata_sphinx_theme"
#html_theme_path = [pydata_sphinx_theme.get_html_theme_path()]
htmlhelp_basename = 'ipyleafletdoc'
html_static_path = ['_static']

0 comments on commit 1b37189

Please sign in to comment.