mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
Add stickiness to the table header
Added stickiness to the table header so it stays visible while scrolling the licences list
This commit is contained in:
parent
0ccd6c5d0c
commit
eb6ec2fa9a
@ -9,10 +9,10 @@ For reference, here is a table of every license described in the [choosealicense
|
||||
|
||||
If you're here to choose a license, **[start from the home page](/)** to see a few licenses that will work for most cases.
|
||||
|
||||
<table border style="font-size: xx-small">
|
||||
<table border style="font-size: xx-small; position: relative">
|
||||
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
||||
<tr>
|
||||
<th scope="col" style="text-align: center">License</th>
|
||||
<th scope="col" style="text-align: center, background-color: inherit; position: sticky; top :0">License</th>
|
||||
{% assign seen_tags = '' %}
|
||||
{% for type in types %}
|
||||
{% assign rules = site.data.rules[type] | sort: "label" %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user