From 6206be6c032c8eb1150906dcf297e95b4bbcb858 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Wed, 24 Jan 2024 08:02:19 -0800 Subject: [PATCH] Left-align the alt styles on the page, to flow better with the headers --- app/assets/stylesheets/alt_styles/_index.sass | 5 ++++- app/views/alt_styles/index.html.haml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/alt_styles/_index.sass b/app/assets/stylesheets/alt_styles/_index.sass index 68a7b391..d40d2148 100644 --- a/app/assets/stylesheets/alt_styles/_index.sass +++ b/app/assets/stylesheets/alt_styles/_index.sass @@ -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 diff --git a/app/views/alt_styles/index.html.haml b/app/views/alt_styles/index.html.haml index 34369c76..cf31f5d1 100644 --- a/app/views/alt_styles/index.html.haml +++ b/app/views/alt_styles/index.html.haml @@ -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