Skip to content

Commit

Permalink
Improve readability of sticky header in appendix
Browse files Browse the repository at this point in the history
The header of the appendix table was transparent, making the text in the header hard to read when scrolling

Fixes #1110
  • Loading branch information
matthijsgroen committed Aug 13, 2024
1 parent 3f5208a commit f7d9c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appendix.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ If you're here to choose a license, **[start from the home page](/)** to see a f

<table border style="font-size: xx-small; position: relative">
{% assign types = "permissions|conditions|limitations" | split: "|" %}
<tr style="position: sticky; top: 0">
<tr style="position: sticky; top: 0; background: color-mix(in srgb, var(--backgroundColor) 70%, transparent);">
<th scope="col" style="text-align: center">License</th>
{% assign seen_tags = '' %}
{% for type in types %}
Expand Down
2 changes: 2 additions & 0 deletions assets/css/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

body {
background: #fafafa;
--backgroundColor: #fafafa;
color: #5c5855;
font: 0.875rem/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
body {
background: #212121;
--backgroundColor: #212121;
color: #d0c8c1;
}

Expand Down

0 comments on commit f7d9c59

Please sign in to comment.