From 98e062611e30e1cfcabfd7e4bc45e9ab5c4adad0 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Thu, 4 Jan 2024 16:06:52 +0100 Subject: [PATCH] feat: add dedicated class to hide contents on small-width screens --- www/static/dergstyle.css | 12 ++++++++++++ www/static/directorystyle.css | 7 ------- www/templates/fragments/filepath_bar.html | 9 +++------ www/templates/post_types/directory.html | 4 ++-- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/www/static/dergstyle.css b/www/static/dergstyle.css index b95e70e..6051215 100644 --- a/www/static/dergstyle.css +++ b/www/static/dergstyle.css @@ -31,6 +31,13 @@ body { padding-bottom: 4rem; } +@media only screen and (max-width: 600px) { + .hsmol_hide { + display: none !important; + visibility: hidden !important; + } +} + :link { color: var(--highlight_1); font-style: italic; @@ -158,6 +165,11 @@ a:hover { display: flex; flex-direction: row; list-style-type: none; + + overflow-x: scroll; + overflow-y: hidden; + + white-space: nowrap; } #post_file_path a { color: var(--text_1); diff --git a/www/static/directorystyle.css b/www/static/directorystyle.css index 79a8bfc..d762c6f 100644 --- a/www/static/directorystyle.css +++ b/www/static/directorystyle.css @@ -33,11 +33,4 @@ table.directory tr.entry .entry_title { table.directory .entry_update_time { display: block; width: 12rem; -} - -@media only screen and (max-width: 600px) { - table.directory .entry_update_time { - visibility: hidden; - display: none; - } } \ No newline at end of file diff --git a/www/templates/fragments/filepath_bar.html b/www/templates/fragments/filepath_bar.html index 077345c..31b5265 100644 --- a/www/templates/fragments/filepath_bar.html +++ b/www/templates/fragments/filepath_bar.html @@ -8,12 +8,9 @@ {% set split_post = post.post_path |split('/') %} {% for i in range(0, split_post|length - 1) %}
  • - {% if i != 0 %} - > - {% endif %} {% if i != 0 %} - {{ split_post[i] }} + > {{ split_post[i] }} {% else %} root @@ -22,11 +19,11 @@ {% endfor %} -
  • +
  • raw api
  • -
  • +
  • {{ fa['rss']|raw }} diff --git a/www/templates/post_types/directory.html b/www/templates/post_types/directory.html index b583665..2872ab4 100644 --- a/www/templates/post_types/directory.html +++ b/www/templates/post_types/directory.html @@ -14,7 +14,7 @@ Name Title - Modified + Modified {% for subpost in subposts %} @@ -27,7 +27,7 @@ {{ subpost.post_metadata.title }} - + {{ subpost.post_update_time }}