From 623d54f30726df94223951185d95b40de4f2b238 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Sat, 31 Oct 2020 17:35:56 -0600 Subject: [PATCH] Adjusting markup for feed cards to use the same elements regardless of size, and then use CSS classes to set the size as appropriate. Fixes #36 --- .../jason-williamsca/assets/css/theme.css | 4 + .../partials/feed/template.htm | 84 +++++++++---------- 2 files changed, 45 insertions(+), 43 deletions(-) diff --git a/www/themes/jason-williamsca/assets/css/theme.css b/www/themes/jason-williamsca/assets/css/theme.css index bc9f02c..161316b 100644 --- a/www/themes/jason-williamsca/assets/css/theme.css +++ b/www/themes/jason-williamsca/assets/css/theme.css @@ -166,6 +166,10 @@ html::-webkit-scrollbar-thumb { font-size: 1.2rem; } +.giant, .card p.giant, .card ul.giant { + font-size: 1.5rem; +} + .col-container { margin: 0 -15px; } diff --git a/www/themes/jason-williamsca/partials/feed/template.htm b/www/themes/jason-williamsca/partials/feed/template.htm index eb22113..f59b1ea 100644 --- a/www/themes/jason-williamsca/partials/feed/template.htm +++ b/www/themes/jason-williamsca/partials/feed/template.htm @@ -1,45 +1,43 @@ == -{% if feeditemclass is empty %} - {% set feeditemclass = 'masonry-item' %} -{% else %} - {% set feeditemclass = 'masonry-item ' ~ feeditemclass %} -{% endif %} - -{% if posts is empty %} -

No feed items have been found.

-{% endif %} - -{% for post in posts %} -
-
- {% if post.extra.img %} - - {% elseif post.extra.lat %} - - - {% endif %} -
- {% if post.channel.slug == 'twitter' or post.channel.slug == 'instagram' %} - {% if post.title | striptags | length < 100 %} -

{{ post.title | raw | nl2br }}

- {% elseif post.title | striptags | length < 150 %} -

{{ post.title | raw | nl2br }}

- {% else %} -

{{ post.title | raw | nl2br }}

- {% endif %} - {% elseif post.channel.slug == 'foursquare' %} - {% if post.body %}

{{ post.body | raw | nl2br }}

{% endif %} -

{{ post.title }}

-

{{ post.extra.address }}

- {% endif %} - -
-
-
+{% if feeditemclass is empty %} + {% set feeditemclass = 'masonry-item' %} +{% else %} + {% set feeditemclass = 'masonry-item ' ~ feeditemclass %} +{% endif %} + +{% if posts is empty %} +

No feed items have been found.

+{% endif %} + +{% for post in posts %} +
+
+ {% if post.extra.img %} + + {% elseif post.extra.lat %} + + {% endif %} +
+ {% if post.channel.slug == 'twitter' or post.channel.slug == 'instagram' %} + {% if post.title | striptags | length < 100 %} +

{{ post.title | raw | nl2br }} + {% elseif post.title | striptags | length < 150 %} +

{{ post.title | raw | nl2br }}

+ {% else %} +

{{ post.title | raw | nl2br }}

+ {% endif %} + {% elseif post.channel.slug == 'foursquare' %} + {% if post.body %}

{{ post.body | raw | nl2br }}

{% endif %} +

{{ post.title }}

+

{{ post.extra.address }}

+ {% endif %} + +
+
+
{% endfor %} \ No newline at end of file