1
0
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:
Joas Sanon 2023-03-17 12:48:35 -04:00 committed by GitHub
parent 0ccd6c5d0c
commit eb6ec2fa9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" %}