summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-30 23:40:28 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-30 23:40:28 +0200
commit7bd2525fa936e117abd7503844c9dab73d87de1a (patch)
treece1d752107709e01943be99267af2465dfd70d7f
parent22539dff8d36279002bc9694a8433fef784869e1 (diff)
Promote article title from h2 to h1 and fix css accordingly
-rw-r--r--app/views/custom/page_templates/public/chapter_detail.html.erb2
-rw-r--r--app/views/custom/page_templates/public/no_date_and_author.html.erb2
-rw-r--r--app/views/custom/page_templates/public/no_date_and_author_with_map.html.erb2
-rw-r--r--app/views/custom/page_templates/public/standard_template.html.erb2
-rw-r--r--app/views/custom/page_templates/public/title_only.html.erb2
-rw-r--r--app/views/custom/page_templates/public/update.html.erb2
-rw-r--r--app/views/search/index.html.erb2
-rw-r--r--app/views/tags/show.html.erb2
-rw-r--r--public/stylesheets/ccc.css12
9 files changed, 19 insertions, 9 deletions
diff --git a/app/views/custom/page_templates/public/chapter_detail.html.erb b/app/views/custom/page_templates/public/chapter_detail.html.erb
index 18449b80..794be823 100644
--- a/app/views/custom/page_templates/public/chapter_detail.html.erb
+++ b/app/views/custom/page_templates/public/chapter_detail.html.erb
@@ -1,5 +1,5 @@
1<div class="article" lang="<%= @page.effective_lang %>"> 1<div class="article" lang="<%= @page.effective_lang %>">
2 <h2 class="headline"><%= @page.title %></h2> 2 <h1 class="headline"><%= @page.title %></h1>
3 <%= headline_image %> 3 <%= headline_image %>
4 <% if @page.node.external_url.present? %> 4 <% if @page.node.external_url.present? %>
5 <div class="chapter_url"><%= link_to @page.node.external_url, @page.node.external_url, target: '_blank', rel: 'noopener' %></div> 5 <div class="chapter_url"><%= link_to @page.node.external_url, @page.node.external_url, target: '_blank', rel: 'noopener' %></div>
diff --git a/app/views/custom/page_templates/public/no_date_and_author.html.erb b/app/views/custom/page_templates/public/no_date_and_author.html.erb
index ec7e8501..ddfc2fac 100644
--- a/app/views/custom/page_templates/public/no_date_and_author.html.erb
+++ b/app/views/custom/page_templates/public/no_date_and_author.html.erb
@@ -1,5 +1,5 @@
1<div class="article" lang="<%= @page.effective_lang %>"> 1<div class="article" lang="<%= @page.effective_lang %>">
2 <h2 class="headline"><%= @page.title %></h2> 2 <h1 class="headline"><%= @page.title %></h1>
3 <p><%= sanitize( @page.abstract ) %></p> 3 <p><%= sanitize( @page.abstract ) %></p>
4 <div id="headline_image"><%= headline_image %></div> 4 <div id="headline_image"><%= headline_image %></div>
5 <%= aggregate?(@page.body) %> 5 <%= aggregate?(@page.body) %>
diff --git a/app/views/custom/page_templates/public/no_date_and_author_with_map.html.erb b/app/views/custom/page_templates/public/no_date_and_author_with_map.html.erb
index 6e86edff..d10fbff7 100644
--- a/app/views/custom/page_templates/public/no_date_and_author_with_map.html.erb
+++ b/app/views/custom/page_templates/public/no_date_and_author_with_map.html.erb
@@ -1,5 +1,5 @@
1<div class="article"> 1<div class="article">
2 <h2 class="headline"><%= @page.title %></h2> 2 <h1 class="headline"><%= @page.title %></h1>
3 <p><%= sanitize( @page.abstract ) %></p> 3 <p><%= sanitize( @page.abstract ) %></p>
4 <object data="/system/uploads/327/original/map.svg" type="image/svg+xml"/> 4 <object data="/system/uploads/327/original/map.svg" type="image/svg+xml"/>
5 <%= aggregate?(@page.body) %> 5 <%= aggregate?(@page.body) %>
diff --git a/app/views/custom/page_templates/public/standard_template.html.erb b/app/views/custom/page_templates/public/standard_template.html.erb
index e1e2eb08..9c5bb5bf 100644
--- a/app/views/custom/page_templates/public/standard_template.html.erb
+++ b/app/views/custom/page_templates/public/standard_template.html.erb
@@ -1,5 +1,5 @@
1<div class="article" lang="<%= @page.effective_lang %>"> 1<div class="article" lang="<%= @page.effective_lang %>">
2 <h2 class="headline"><%= @page.title %></h2> 2 <h1 class="headline"><%= @page.title %></h1>
3 <div class="abstract"><p><%= sanitize( @page.abstract )%></p></div> 3 <div class="abstract"><p><%= sanitize( @page.abstract )%></p></div>
4 <div id="headline_image"><%= headline_image %></div> 4 <div id="headline_image"><%= headline_image %></div>
5 <div class="body"><%= aggregate?(@page.body) %></div> 5 <div class="body"><%= aggregate?(@page.body) %></div>
diff --git a/app/views/custom/page_templates/public/title_only.html.erb b/app/views/custom/page_templates/public/title_only.html.erb
index d706e9dc..eaf7b1a8 100644
--- a/app/views/custom/page_templates/public/title_only.html.erb
+++ b/app/views/custom/page_templates/public/title_only.html.erb
@@ -1,5 +1,5 @@
1<div class="article" lang="<%= @page.effective_lang %>"> 1<div class="article" lang="<%= @page.effective_lang %>">
2 <h2 class="headline"><%= @page.title %></h2> 2 <h1 class="headline"><%= @page.title %></h1>
3 <div id="headline_image"><%= headline_image %></div> 3 <div id="headline_image"><%= headline_image %></div>
4 <%= aggregate?(@page.body) %> 4 <%= aggregate?(@page.body) %>
5 <%= render partial: 'content/asset_credits' %> 5 <%= render partial: 'content/asset_credits' %>
diff --git a/app/views/custom/page_templates/public/update.html.erb b/app/views/custom/page_templates/public/update.html.erb
index f460f621..2174e358 100644
--- a/app/views/custom/page_templates/public/update.html.erb
+++ b/app/views/custom/page_templates/public/update.html.erb
@@ -1,5 +1,5 @@
1<div class="article" lang="<%= @page.effective_lang %>"> 1<div class="article" lang="<%= @page.effective_lang %>">
2 <h2 class="headline"><%= @page.title %></h2> 2 <h1 class="headline"><%= @page.title %></h1>
3 <div class="author_and_date"><%= date_and_time_for_page @page %>, <%= @page.user.try(:login) %></div> 3 <div class="author_and_date"><%= date_and_time_for_page @page %>, <%= @page.user.try(:login) %></div>
4 <div class="abstract"><p><%= sanitize( @page.abstract )%></p></div> 4 <div class="abstract"><p><%= sanitize( @page.abstract )%></p></div>
5 <div id="headline_image"><%= headline_image %></div> 5 <div id="headline_image"><%= headline_image %></div>
diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb
index bb8f63b7..5fd004ef 100644
--- a/app/views/search/index.html.erb
+++ b/app/views/search/index.html.erb
@@ -1,5 +1,5 @@
1<% if params[:search_term] %> 1<% if params[:search_term] %>
2 <h2><%= t(".results_for", :query => params[:search_term]) %></h2> 2 <h1><%= t(".results_for", :query => params[:search_term]) %></h1>
3<% end %> 3<% end %>
4 4
5<%= 5<%=
diff --git a/app/views/tags/show.html.erb b/app/views/tags/show.html.erb
index eddf9b88..b46475ff 100644
--- a/app/views/tags/show.html.erb
+++ b/app/views/tags/show.html.erb
@@ -1,4 +1,4 @@
1<h2><%= t(:show_tag_headline) %> »<%=h @tag %>«</h2> 1<h1><%= t(:show_tag_headline) %> »<%=h @tag %>«</h1>
2 2
3<p class="feed_link"> 3<p class="feed_link">
4 <%= link_to t(".subscribe", :tag => @tag), 4 <%= link_to t(".subscribe", :tag => @tag),
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css
index 5b10fa26..f018d2b2 100644
--- a/public/stylesheets/ccc.css
+++ b/public/stylesheets/ccc.css
@@ -229,7 +229,7 @@ h4 {
229 text-decoration: none; 229 text-decoration: none;
230} 230}
231 231
232h1, h2, h3 { 232h1, h2, h3, h4 {
233 word-wrap: anywhere; 233 word-wrap: anywhere;
234 hyphens:auto; 234 hyphens:auto;
235} 235}
@@ -696,6 +696,11 @@ div#tags li {
696 text-align: left; 696 text-align: left;
697} 697}
698 698
699div#center_column h1 {
700 font-size: 1.5em;
701 line-height: 1.2;
702}
703
699div#center_column h2 a { 704div#center_column h2 a {
700 color: CanvasText; 705 color: CanvasText;
701 text-decoration: none; 706 text-decoration: none;
@@ -705,10 +710,15 @@ div#center_column h2 a:hover {
705 color: color-mix(in srgb, CanvasText, #808080 50%); 710 color: color-mix(in srgb, CanvasText, #808080 50%);
706} 711}
707 712
713div#center_column h1.headline,
708div#center_column h2.headline { 714div#center_column h2.headline {
709 margin-top: 10px; 715 margin-top: 10px;
710} 716}
711 717
718div#center_column h1.headline {
719 font-size: 1.5em;
720}
721
712div#center_column .article_partial h2.headline { 722div#center_column .article_partial h2.headline {
713 border-top: 1px solid color-mix(in srgb, CanvasText, Canvas 70%); 723 border-top: 1px solid color-mix(in srgb, CanvasText, Canvas 70%);
714 padding-top: 30px; 724 padding-top: 30px;