diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-27 09:20:42 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-27 12:40:01 +0100 |
commit | b60d58b4875aea58106c65faa2753dede70152f1 (patch) | |
tree | 95fcd08f5594bc7ecec8b9edcdebc20766cfc617 | |
parent | 12ed096eb7581922574b0934c2da71c4563cdd46 (diff) |
html: disable css items for < 6 items
-rwxr-xr-x | build.py | 5 | ||||
-rw-r--r-- | style.css | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -87,7 +87,10 @@ def write_features(f, feature_data): features = sorted(features.items(), key=lambda t: t[1]['title'].replace('`', '').lower()) - f.write('<ul>') + f.write('<ul') + if len(features) > 5: + f.write(' class=columns') + f.write('>') for feat, data in features: f.write('<li><a') url = data['url'] @@ -2,7 +2,7 @@ body { font-family: sans; } -ul { +.columns { columns: 300px; } |