inveniosoftware / invenio-theme

Invenio standard theme.
https://invenio-theme.readthedocs.io
MIT License
7 stars 55 forks source link

theme: Adds some general classes and fixes alignment for labeled flui… #363

Closed jennur closed 1 year ago

jennur commented 1 year ago

Closes https://github.com/inveniosoftware/invenio-communities/issues/983

Adds better padding to .fluid.labeled buttons (there is no padding for this combo in SUI, so the buttons might end up squished if container is too small).

Explanation for the .auto-column-grid change

Makes .auto-column-grid more flexible with:

grid-template-columns: auto max-content;
grid-auto-columns: max-content;

This defines the first two columns to be auto and max-content. All extra columns (grid-auto-columns) will be max-content, vs the previous version:

grid-auto-columns: auto max-content

which will repeat this sizing rule if more than two columns are added, example: auto max-content auto max-content vs new version: auto max-content max-content max-content which I believe the first implementation was intended for. Please correct me if I'm wrong.