From 743e2d989bc913f49acd9b96e504e663fa28f59c Mon Sep 17 00:00:00 2001 From: Gerry Demaret Date: Tue, 3 Dec 2024 00:42:00 +0000 Subject: [PATCH] style: more distinct sponsor name CSS classes --- content/about/sponsors.html | 6 ++++-- content/assets/style/parts/010_design.css | 1 + content/assets/style/parts/099_sprite.css | 4 ++-- content/index.html | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/content/about/sponsors.html b/content/about/sponsors.html index dd4ce93ab..0aca58bae 100644 --- a/content/about/sponsors.html +++ b/content/about/sponsors.html @@ -25,7 +25,7 @@ <% unless cornerstone.empty? %> <% end %> @@ -33,7 +33,7 @@ <% unless other.empty? %> <% end %> @@ -49,6 +49,7 @@ %> <% unless index == 0 %>
<% end %> <% list = sponsors.select{|s| section[:section] == s.section }.select(§ion[:selector]) %> +<% unless list.size == 0 %>

<%= section[:title] %><% if section[:plural] and list.size > 1 %>s<% end %>

<% if section[:alpha] and list.size > 1 %> (in alphabetical order) @@ -65,4 +66,5 @@

<%= s. <% end %> <% end %> +<% end %> diff --git a/content/assets/style/parts/010_design.css b/content/assets/style/parts/010_design.css index db5509a83..f887ece40 100644 --- a/content/assets/style/parts/010_design.css +++ b/content/assets/style/parts/010_design.css @@ -279,6 +279,7 @@ a.btn-purple:hover { display:inline-block; vertical-align:middle; padding:10px 0 0; + border:0; } *+html .logo-list li{display:inline;} .logo-list li {padding-right: 25px;} diff --git a/content/assets/style/parts/099_sprite.css b/content/assets/style/parts/099_sprite.css index 3c37263b1..32fce75d4 100644 --- a/content/assets/style/parts/099_sprite.css +++ b/content/assets/style/parts/099_sprite.css @@ -14,9 +14,9 @@ end if has_logo css_class, logo = if s.cornerstone? - [ ".logo-#{s.id}", s.logo ] + [ ".logo-sponsor-name-#{s.id}", s.logo ] else - [ ".logo-list .logo-#{s.id} a", s.thumb ] + [ ".logo-list .logo-sponsor-name-#{s.id} a", s.thumb ] end # image = Magick::Image.from_blob(IO.read(logo[:filename])).first image = Magick::Image.from_blob(IO.read(logo[:filename])).first diff --git a/content/index.html b/content/index.html index 5a032a0b8..c8e5249ef 100644 --- a/content/index.html +++ b/content/index.html @@ -54,7 +54,7 @@

SPONSORS

<% unless cornerstone.empty? %> <% end %> @@ -62,7 +62,7 @@

SPONSORS

<% unless other.empty? %> <% end %>