summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/custom/partials/_article.html.erb9
-rw-r--r--public/stylesheets/ccc.css27
2 files changed, 35 insertions, 1 deletions
diff --git a/app/views/custom/partials/_article.html.erb b/app/views/custom/partials/_article.html.erb
index b738ac78..8485698a 100644
--- a/app/views/custom/partials/_article.html.erb
+++ b/app/views/custom/partials/_article.html.erb
@@ -3,5 +3,12 @@
3 <div class="author_and_date"> 3 <div class="author_and_date">
4 <%= date_for_page page %>, <%= author_for_page page %> 4 <%= date_for_page page %>, <%= author_for_page page %>
5 </div> 5 </div>
6 <p class="excerpt"><%= page.abstract %> <%= link_to_path t(:more), page.node.unique_name %></p> 6 <div class="article_partial_layout">
7 <% if (headline = page.headline_asset) && headline.has_variant?(:thumb) %>
8 <div class="article_thumbnail">
9 <%= link_to_path image_tag(headline.upload.url(:thumb), :alt => ""), page.node.unique_name %>
10 </div>
11 <% end %>
12 <p class="excerpt"><%= page.abstract %> <%= link_to_path t(:more), page.node.unique_name %></p>
13 </div>
7</div> 14</div>
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css
index b421684a..50b20b22 100644
--- a/public/stylesheets/ccc.css
+++ b/public/stylesheets/ccc.css
@@ -715,6 +715,10 @@ div.teaser_ruler {
715 align-items: flex-start; 715 align-items: flex-start;
716} 716}
717 717
718.chapter_thumbnail {
719 flex-shrink: 0;
720}
721
718.chapter_thumbnail img { 722.chapter_thumbnail img {
719 width: 64px; 723 width: 64px;
720 height: 64px; 724 height: 64px;
@@ -727,6 +731,29 @@ div.teaser_ruler {
727 min-width: 0; 731 min-width: 0;
728} 732}
729 733
734.article_partial_layout {
735 display: flow-root;
736 gap: 12px;
737 align-items: flex-start;
738}
739
740.article_thumbnail {
741 float: right;
742 margin: 0.5rem 0 8px 12px;
743}
744
745.article_thumbnail img {
746 width: 116px;
747 height: 116px;
748 object-fit: cover;
749 border-radius: 4px;
750 display: block;
751}
752
753.article_partial_layout .excerpt {
754 margin-top: 0;
755}
756
730.inline-image--full { 757.inline-image--full {
731 width: 100%; 758 width: 100%;
732 margin: 1rem 0; 759 margin: 1rem 0;