Add one decimal place to kevq.uk, add very minor CSS for better readability etc

This commit is contained in:
Bradley Taunt 2021-05-17 10:28:42 -04:00
parent 4b5ec6d7eb
commit 435302b9ac
3 changed files with 11 additions and 7 deletions

View file

@ -1,4 +1,4 @@
---
pageurl: kevq.uk
size: 166
size: 166.0
---

View file

@ -56,7 +56,7 @@ summary: Listing all websites under 1MB in total size
<tbody>
{% assign site_items = site.site_listings | sort: 'size' %}
<tr><td><br></td><td><br></td></tr>
<tr><td id="50">&lt;50KB</td><td></td></tr>
<tr class="size-section"><td id="50">&lt;50KB</td><td></td></tr>
{% for item in site_items %}
{% if item.size <= 50 %}
<tr>
@ -67,7 +67,7 @@ summary: Listing all websites under 1MB in total size
{% endfor %}
<tr><td><br></td><td><br></td></tr>
<tr><td id="100">&lt;100KB</td><td></td></tr>
<tr class="size-section"><td id="100">&lt;100KB</td><td></td></tr>
{% for item in site_items %}
{% if item.size >= 50.1 and item.size <=100 %}
<tr>
@ -78,7 +78,7 @@ summary: Listing all websites under 1MB in total size
{% endfor %}
<tr><td><br></td><td><br></td></tr>
<tr><td id="250">&lt;250KB</td><td></td></tr>
<tr class="size-section"><td id="250">&lt;250KB</td><td></td></tr>
{% for item in site_items %}
{% if item.size >= 100.1 and item.size <=250 %}
<tr>
@ -89,7 +89,7 @@ summary: Listing all websites under 1MB in total size
{% endfor %}
<tr><td><br></td><td><br></td></tr>
<tr><td id="512">&lt;512KB</td><td></td></tr>
<tr class="size-section"><td id="512">&lt;512KB</td><td></td></tr>
{% for item in site_items %}
{% if item.size >= 250.1 and item.size <=512 %}
<tr>
@ -100,7 +100,7 @@ summary: Listing all websites under 1MB in total size
{% endfor %}
<tr><td><br></td><td><br></td></tr>
<tr><td id="700">&lt;700KB</td><td></td></tr>
<tr class="size-section"><td id="700">&lt;700KB</td><td></td></tr>
{% for item in site_items %}
{% if item.size >= 512.1 and item.size <=700 %}
<tr>
@ -111,7 +111,7 @@ summary: Listing all websites under 1MB in total size
{% endfor %}
<tr><td><br></td><td><br></td></tr>
<tr><td id="1000"><i>Just Under</i> 1MB</td><td></td></tr>
<tr class="size-section"><td id="1000"><i>Just Under</i> 1MB</td><td></td></tr>
{% for item in site_items %}
{% if item.size >= 700.1 and item.size <=1000 %}
<tr>

View file

@ -1,3 +1,7 @@
body{margin:0 auto;max-width:75ch;padding:10px;}
table{border-collapse:collapse;width:100%;}
table tbody tr:nth-of-type(even) td{background:#f9f9f9;}
table tbody tr.size-section td{background:#191919;color:white;}
@media (prefers-color-scheme: dark) {
body{background:#191919;filter:invert(1);}
}