Merge pull request #702 from github/refined-rules-appendix

Make rules with -- eg same-license--file appear lighter in appendix table
This commit is contained in:
Mike Linksvayer 2019-12-04 18:42:03 -08:00 committed by GitHub
commit 3cc80f2602
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -42,7 +42,12 @@ If you're here to choose a license, **[start from the home page](/)** to see a f
{% for r in license[t] %}
{% if r contains req %}
<td class="license-{{ t }}" style="text-align:center">
<span class="{{ r }}">
{% if r contains "--" %}
{% assign lite = " lite" %}
{% else %}
{% assign lite = "" %}
{% endif %}
<span class="{{ r | append: lite }}">
<span class="license-sprite {{ r }}"></span>
</span>
</td>

View File

@ -254,6 +254,7 @@ strong {
.license-limitations span { background-position: -16px 0; width: 12px; height: 12px; }
.license-permissions span { background-position: -28px 0; width: 12px; height: 12px; }
.license-conditions span { background-position: -40px 0; width: 12px; height: 12px; }
.lite span { opacity: 0.5; }
.license-rules-sidebar li {
float: none;