Skip to content

Commit

Permalink
style: more distinct sponsor name CSS classes
Browse files Browse the repository at this point in the history
  • Loading branch information
gerryd committed Dec 3, 2024
1 parent fceaca7 commit 743e2d9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions content/about/sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
<% unless cornerstone.empty? %>
<ul class="logo-list">
<% cornerstone.each do |c| %>
<li class="logo-sponsor-cornerstone logo-<%= c.id %>"><a href="<%= c.path %>"><%= c.name %></a></li>
<li class="logo-sponsor-cornerstone logo-sponsor-name-<%= c.id %>"><a href="<%= c.path %>"><%= c.name %></a></li>
<% end %>
</ul>
<% end %>

<% unless other.empty? %>
<ul class="logo-list">
<% other.each do |s| %>
<li class="logo-sponsor-other logo-<%= s.id %>"><a href="<%= s.path %>"><%= s.name %></a></li>
<li class="logo-sponsor-other logo-sponsor-name-<%= s.id %>"><a href="<%= s.path %>"><%= s.name %></a></li>
<% end %>
</ul>
<% end %>
Expand All @@ -49,6 +49,7 @@
%>
<% unless index == 0 %><hr /><% end %>
<% list = sponsors.select{|s| section[:section] == s.section }.select(&section[:selector]) %>
<% unless list.size == 0 %>
<h2 id="<%= section[:id] %>"><%= section[:title] %><% if section[:plural] and list.size > 1 %>s<% end %></h2>
<% if section[:alpha] and list.size > 1 %>
<span class="muted">(in alphabetical order)</span>
Expand All @@ -65,4 +66,5 @@ <h2 id="<%= s.id %>"><a href="<%= s.url %>" title="<%= s.name %> website"><%= s.
</div>
<% end %>
<% end %>
<% end %>

1 change: 1 addition & 0 deletions content/assets/style/parts/010_design.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;}
Expand Down
4 changes: 2 additions & 2 deletions content/assets/style/parts/099_sprite.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions content/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ <h2><a href="page:/about/sponsors/">SPONSORS</a></h2>
<% unless cornerstone.empty? %>
<ul class="logo-list">
<% cornerstone.each do |c| %>
<li class="logo-sponsor-cornerstone logo-<%= c.id %>"><a href="<%= c.path %>"><%= c.name %></a></li>
<li class="logo-sponsor-cornerstone logo-sponsor-name-<%= c.id %>"><a href="<%= c.path %>"><%= c.name %></a></li>
<% end %>
</ul>
<% end %>

<% unless other.empty? %>
<ul class="logo-list">
<% other.each do |s| %>
<li class="logo-sponsor-other logo-<%= s.id %>"><a href="<%= s.path %>"><%= s.name %></a></li>
<li class="logo-sponsor-other logo-sponsor-name-<%= s.id %>"><a href="<%= s.path %>"><%= s.name %></a></li>
<% end %>
</ul>
<% end %>
Expand Down

0 comments on commit 743e2d9

Please sign in to comment.