Sticky column titles, tighter grid

This commit is contained in:
Jason Zimdars
2025-01-28 16:49:59 -06:00
parent 6c96995e43
commit e8622ed402
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -13,6 +13,7 @@
display: grid;
gap: var(--grid-lines);
justify-items: center;
margin: var(--grid-lines);
padding: calc(var(--grid-lines) / 2);
.event {
@@ -47,9 +48,15 @@
border-radius: 0;
display: flex;
inline-size: 100%;
margin: var(--grid-lines);
}
.events__index {
--row-gap: calc(4 * var(--block-space));
}
.event-grid-column-title {
background-color: var(--color-bg);
inset-block-start: 0;
padding-block: var(--grid-lines);
z-index: 1;
}
+1 -1
View File
@@ -45,7 +45,7 @@ module EventsHelper
def render_column_headers
[ "Touched", "Discussed", "Added", "Popped" ].map do |header|
content_tag(:h3, header, class: "event-grid-column-title margin-block-end-half")
content_tag(:h3, header, class: "event-grid-column-title margin-block-end-half position-sticky")
end.join.html_safe
end
end