fix: make randogoth.com's bbs theme readable on narrow viewports
This commit is contained in:
parent
05be426f91
commit
c3864287cf
11 changed files with 150 additions and 8 deletions
|
|
@ -5,10 +5,20 @@
|
|||
{%- for cat, arts in categories %}{% set _ = rows.append((BBS_AREAS.get(cat|string, 99), cat, arts)) %}{% endfor %}
|
||||
{%- set ordered = rows|sort(attribute='0') %}
|
||||
{%- set half = (ordered|length + 1) // 2 %}
|
||||
<div class="desktop-only">
|
||||
<pre class="box">┌─ <span class="boxtitle">MESSAGE AREAS</span> ───────────────────────┬──────────────────────────────────────┐</pre>
|
||||
{%- for i in range(half) %}
|
||||
{%- set a = ordered[i] %}
|
||||
<pre class="box">│ <span class="key">[<b>{{ a[0] }}</b>]</span> <a data-key="{{ a[0] }}" href="{{ SITEURL }}/{{ a[1].url }}"><span class="area">{{ "%-9s"|format(a[1]|string) }}</span></a> <span class="count">{{ "%3d"|format(a[2]|length) }}</span> │ {% if ordered|length > i + half %}{% set b = ordered[i + half] %}<span class="key">[<b>{{ b[0] }}</b>]</span> <a data-key="{{ b[0] }}" href="{{ SITEURL }}/{{ b[1].url }}"><span class="area">{{ "%-9s"|format(b[1]|string) }}</span></a> <span class="count">{{ "%3d"|format(b[2]|length) }}</span>{% else %} {% endif %} │</pre>
|
||||
{%- endfor %}
|
||||
<pre class="box">└───────────────────────────────────────┴──────────────────────────────────────┘</pre>
|
||||
</div>
|
||||
|
||||
<div class="mobile-only">
|
||||
<pre class="box">┌─ <span class="boxtitle">MESSAGE AREAS</span> ──────────────────────┐</pre>
|
||||
{%- for a in ordered %}
|
||||
<pre class="box">│ <span class="key">[<b>{{ "%2d"|format(a[0]) }}</b>]</span> <a data-key="{{ a[0] }}" href="{{ SITEURL }}/{{ a[1].url }}"><span class="area">{{ "%-28s"|format(a[1]|string) }}</span></a><span class="count">{{ "%3d"|format(a[2]|length) }}</span> │</pre>
|
||||
{%- endfor %}
|
||||
<pre class="box">└──────────────────────────────────────┘</pre>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue