Skip to content

Commit

Permalink
Merge pull request #1238 from matthijsgroen/patch-1
Browse files Browse the repository at this point in the history
Improve readability of sticky header in appendix
  • Loading branch information
mlinksva authored Aug 30, 2024
2 parents 3f5208a + 70c9a4a commit e7e937b
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; z-index: 1000001; 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 e7e937b

Please sign in to comment.