forked from OpenNeo/impress
Left-align the alt styles on the page, to flow better with the headers
This commit is contained in:
parent
495366e73e
commit
6206be6c03
2 changed files with 5 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
|||
body.alt_styles-index
|
||||
.alt-styles-header
|
||||
margin-top: 1em
|
||||
margin-bottom: .5em
|
||||
|
||||
.alt-styles-list
|
||||
list-style: none
|
||||
display: flex
|
||||
justify-content: center
|
||||
flex-wrap: wrap
|
||||
gap: 1.5em
|
||||
|
||||
|
|
|
@ -14,5 +14,5 @@
|
|||
may change someday, but probably not soon, sorry!)
|
||||
|
||||
- @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
|
||||
|
|
Loading…
Reference in a new issue