gravitystorm left a comment (openstreetmap/openstreetmap-website#6383)
The font sizes used in the right click menu are much smaller than what we use
elsewhere on the site. I don't think this is a deliberate design decision.
The styling for the menu comes directly from upstream Leaflet - see
https://github.com/Leaflet/Leaflet/blob/0eee3776d3a6929aad71c2fa112bc4a935b0950c/src/leaflet.css#L238-L244
This overrides both the font list that we use on the site, and also overrides
the font sizes, for this menu. (The 0.75rem declaration is the important one
for sizes, the px is a fallback for older browsers).
This is smaller than what we would achieve with bootstrap. All the other menus
on the site are using the default font size. Even if we were to use bootstrap
"small" typography, that's [only 0.875
em](https://github.com/twbs/bootstrap/blob/ec7a45b8f3d3af80b891f8c385bb26f3afab4f8f/scss/_variables.scss#L616),
so would still be larger.
I'd like to find a way to remove the leaflet customisations from this menu,
both font size and list of fonts, and to use the bootstrap typography (either
standard, or small) instead.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6383#issuecomment-3280461552
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/issues/6383/3280461...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev