-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support leaflet maps in the theme (#1112)
Fix #1110
- Loading branch information
Showing
4 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/pydata_sphinx_theme/assets/styles/extensions/_leaflet.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* style for the various mapping libs based on leaflet (folium, geemap, ipyleaflet) | ||
* mainly ensure the good display of the maps in both themes and avoid the customization | ||
* of the tiles | ||
*/ | ||
|
||
/** | ||
* avoid border override from pydata-sphinx-theme | ||
* minimal selctor to get the priority | ||
*/ | ||
html[data-theme="dark"] .bd-content img.leaflet-tile.leaflet-tile-loaded { | ||
border-radius: 0; | ||
padding: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters