Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative font-size to respect the user's font size settings in the browser #7800

Merged
merged 1 commit into from
Nov 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dist/leaflet.css
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
/* general typography */
.leaflet-container {
font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
font: 0.75rem/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
}


Expand Down Expand Up @@ -424,6 +425,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
.leaflet-container .leaflet-control-attribution,
.leaflet-container .leaflet-control-scale {
font-size: 11px;
font-size: 0.69rem;
}
.leaflet-left .leaflet-control-scale {
margin-left: 5px;
Expand All @@ -437,6 +439,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
line-height: 1.1;
padding: 2px 5px 1px;
font-size: 11px;
font-size: 0.69rem;
white-space: nowrap;
overflow: hidden;
-moz-box-sizing: border-box;
Expand Down