Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Sticky column headers for matrix #524

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ GIT
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
colorator (1.1.0)
concurrent-ruby (1.3.1)
concurrent-ruby (1.3.3)
diff-lcs (1.5.1)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
ethon (0.16.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
ffi (1.16.3)
ffi (1.17.0)
forwardable-extended (2.6.0)
html-proofer (3.19.0)
addressable (~> 2.3)
Expand Down Expand Up @@ -78,33 +78,33 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.8.6)
nokogiri (1.16.5)
mini_portile2 (2.8.7)
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogumbo (2.0.5)
nokogiri (~> 1.8, >= 1.8.4)
parallel (1.24.0)
parallel (1.25.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.5)
racc (1.8.0)
public_suffix (6.0.1)
racc (1.8.1)
rainbow (3.1.1)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
redcarpet (3.6.0)
rexml (3.2.8)
strscan (>= 3.0.9)
rexml (3.3.4)
strscan
rouge (3.30.0)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
rspec-expectations (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
Expand Down
8 changes: 7 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ code {
display: table !important;
overflow-x: unset !important;
border-width: 0 0 1px !important;
border: none !important;
}

.viewer tr {
Expand All @@ -42,3 +41,10 @@ code {
.viewer td {
border: none !important;
}

.scrolling-header {
position: sticky;
top: 0px;
background-color: white;
box-shadow: inset 0 -1px 0 #dbdbdb;
}
4 changes: 2 additions & 2 deletions recipe/matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ The possible values for viewer support are YES, NO or Partial. Click on the reci

<table class="viewer">
<tr>
<th>Recipe</th>
<th class="scrolling-header">Recipe</th>
{% for viewer in page.viewers %}
<th>{{ viewer }}</th>
<th class="scrolling-header">{{ viewer }}</th>
{% endfor %}
</tr>
{% for recipe in sorted %}
Expand Down
Loading