Closed jakobaxelsson closed 11 months ago
Did some experiments with Pico CSS, but not as easy as expected. In particular, the nav bar did not work at al. Have restructured the layout of the UI so that configuration controls are now to the right of the map.
The SVG drawing now scales reasonably well to available space. Also, the drawing has been simplified so that one grid unit corresponds to one unit in the SVG's internal coordinate system. Scaling takes place on the entire SVG through CSS styles.
A CSS file is now provided, where UI styling should be put.
The menubar is in place. What remains is to save configurations from file and load them again.
Fixed load and save of configuration files.
Use a CSS framework. Pico CSS appears to be a simple alternative mainly based on semantic tags. It can be customized e.g. to have a sparser layout by setting CSS variables (--spacing in the case of layout).
Main UI elements:
Some restructuring of the UI code is needed for this.
Also, the map area should be configured based on the available space given to it, and the actual map should be scaled to fit within that area.