Tweak home spacing and code style#17
Merged
ssciolla merged 8 commits intoJun 16, 2026
Merged
Conversation
…ion.bootstrap; fix spacing in _home.html.erb
There was a problem hiding this comment.
Pull request overview
This PR updates the home page layout/spacing and introduces a small stylesheet tweak for card headings, while also adjusting the main Blacklight layout container class.
Changes:
- Swaps the Blacklight base layout
<main>container class toviewport-container. - Refactors homepage markup for improved indentation and spacing utilities.
- Adds
card.scssand imports it into the Bootstrap application stylesheet.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| app/views/layouts/blacklight/base.html.erb | Changes the main layout container class applied to <main>. |
| app/views/catalog/_home.html.erb | Adjusts homepage structure/spacing and simplifies icon markup. |
| app/assets/stylesheets/card.scss | Adds new styles targeting .card-title. |
| app/assets/stylesheets/application.bootstrap.scss | Imports the new card stylesheet. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <%= render partial: 'shared/header_navbar' %> | ||
|
|
||
| <main id="main-container" class="<%= container_classes %>" role="main" aria-label="<%= t('blacklight.main.aria.main_container') %>"> | ||
| <main id="main-container" class="viewport-container" role="main" aria-label="<%= t('blacklight.main.aria.main_container') %>"> |
Comment on lines
+1
to
+7
| .card-title { | ||
| margin-bottom: 0.75rem; | ||
| } | ||
|
|
||
| .card-title > a { | ||
| font-size: 1.25rem; | ||
| } No newline at end of file |
Comment on lines
55
to
59
| <div id="homepage-text-blocks" class="row mt-4 mb-5 d-flex flex-wrap"> | ||
| <div class="mb-2"> | ||
| <div class="card-title d-flex align-items-center"> | ||
| <div class="card-icon"><span class="material-icons"> | ||
| info | ||
| </span></div> | ||
| <div class="card-icon"><span class="material-icons">info</span></div> | ||
| <h2><%= t('um_arclight.home.about.heading') %></h2> |
…his Site row in _home.html.erb
rshiggin
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.