This theme provides a number of improvements to entity and marker text formatting in the side panel of map Explore views, and in the marker detail modal on mobile:
- Text alignment is set to
justify
by default for a cleaner column look, but can be customized.
- Font size is increased slightly to compensate for the font face being different from that used in the rest of Kanka. You can change it as well if you use an altogether different font.
- Adds a delimiting line between the marker’s description and the associated entity’s entry, when both are present, instead of the drab "From entity" heading. The same is added in the marker details modal on mobile, where there is no separation in default Kanka.
It also modifies the default scrolling behaviour in four ways:
- Uses a thin scrollbar rather than a wide one (thickness and colours are customizable).
- Optimizes the wasted space at the top and bottom, and between some elements.
- Pins the following elements to the bottom regardless of scrolling: "Back to (Map Name)" button, in the default (legend) pane; "Remove" button, in the marker pane.
- Fixes a display bug that causes a scrollbar to appear in the main map container.
Customization
The following properties can be added to your campaign CSS for easy customization:
#map-body {
--map-sidebar-text-align: justify;
--map-sidebar-hyphenate: manual; /* Set to 'auto' for automatic hyphenation (support depends on your language) */
--map-sidebar-font-size: 15px; /* Ideal for Source Sans Pro */
--map-sidebar-scrollbar-track-color: auto;
--map-sidebar-scrollbar-slider-color: auto;
--map-sidebar-scrollbar-width: thin; /* Set to 'thin' or 'auto' */
}
However, scrollbar-related properties are still not supported on Safari as of early 2025.
Want to show appreciation for my plugins or request one-on-one CSS help? I accept tips on Ko-fi (no account needed):