Skip to content

Commit e7e937b

Browse files
authored
Merge pull request #1238 from matthijsgroen/patch-1
Improve readability of sticky header in appendix
2 parents 3f5208a + 70c9a4a commit e7e937b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

appendix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you're here to choose a license, **[start from the home page](/)** to see a f
1111

1212
<table border style="font-size: xx-small; position: relative">
1313
{% assign types = "permissions|conditions|limitations" | split: "|" %}
14-
<tr style="position: sticky; top: 0">
14+
<tr style="position: sticky; top: 0; z-index: 1000001; background: color-mix(in srgb, var(--backgroundColor) 70%, transparent);">
1515
<th scope="col" style="text-align: center">License</th>
1616
{% assign seen_tags = '' %}
1717
{% for type in types %}

assets/css/application.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66

77
body {
88
background: #fafafa;
9+
--backgroundColor: #fafafa;
910
color: #5c5855;
1011
font: 0.875rem/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
1112
}
1213

1314
@media (prefers-color-scheme: dark) {
1415
body {
1516
background: #212121;
17+
--backgroundColor: #212121;
1618
color: #d0c8c1;
1719
}
1820

0 commit comments

Comments
 (0)