1
0
Fork 0
forked from OpenNeo/impress

Left-align the alt styles on the page, to flow better with the headers

This commit is contained in:
Emi Matchu 2024-01-24 08:02:19 -08:00
parent 495366e73e
commit 6206be6c03
2 changed files with 5 additions and 2 deletions

View file

@ -1,8 +1,11 @@
body.alt_styles-index body.alt_styles-index
.alt-styles-header
margin-top: 1em
margin-bottom: .5em
.alt-styles-list .alt-styles-list
list-style: none list-style: none
display: flex display: flex
justify-content: center
flex-wrap: wrap flex-wrap: wrap
gap: 1.5em gap: 1.5em

View file

@ -14,5 +14,5 @@
may change someday, but probably not soon, sorry!) may change someday, but probably not soon, sorry!)
- @alt_styles.group_by(&:species).each do |species, species_styles| - @alt_styles.group_by(&:species).each do |species, species_styles|
%h2= species.human_name %h2.alt-styles-header= species.human_name
%ul.alt-styles-list= render partial: "alt_style", collection: species_styles %ul.alt-styles-list= render partial: "alt_style", collection: species_styles