From ca3b00f0bb4dcd3625cbade78f197ed85611dcdb Mon Sep 17 00:00:00 2001 From: Stefan Schlott Date: Tue, 27 Aug 2013 11:47:41 +0200 Subject: [PATCH] Make event header a list, align icons --- content/styles/_customstyles.scss | 17 +++++- layouts/event_header.erb | 99 ++++++++++++++++--------------- 2 files changed, 67 insertions(+), 49 deletions(-) diff --git a/content/styles/_customstyles.scss b/content/styles/_customstyles.scss index 9dcb19c9..b345c330 100644 --- a/content/styles/_customstyles.scss +++ b/content/styles/_customstyles.scss @@ -113,7 +113,7 @@ ul.horizontal { } } -div.commaseparated { +div.commaseparated, li.commaseparated { clear: both; ul { display: inline; @@ -131,6 +131,21 @@ div.commaseparated { } } +ul.iconlist { + margin: 0; + > li { + display: block; + padding-left: 20px; + font-family: $baseFontFamily; + } + > li:before { + width: 17px; + display: inline-block; + margin-left: -20px; + font-family: FontAwesome; + } +} + div.planetpost { h2 { font-size: $baseFontSize * 1.25; diff --git a/layouts/event_header.erb b/layouts/event_header.erb index eb2ef467..882a6cf2 100644 --- a/layouts/event_header.erb +++ b/layouts/event_header.erb @@ -1,4 +1,4 @@ -
+
<% if heading %> <% if link %>

@@ -6,53 +6,56 @@

<%= item[:title] %>

<% end %> <% end %> - - T19:30"><%= @item[:startdate].strftime("%d.%m.%Y") %>, 19:30 Uhr - <% if !@item[:public] %>(nicht öffentlich)<% end %> -
- <% if !heading %> <%= item[:title] %>
<% end %> - <% if @item[:speakers] %> -
- -
    - <% @item[:speakers].each do |speaker| %> -
  • - <%= speaker[:name] %><% if speaker[:affiliation]%> (<%= speaker[:affiliation] %>)<% end %> -
  • - <% end %> -
-
- <% end %> - <% if @item[:superevent] %> -
- - <% if @item[:superevent][:url] %> - - <% else %> - <%= @item[:superevent][:title] %> - <% end %> -
- <% end %> - <% if @item[:location] %> -
- -
    -
  • <% if item[:location][:url] %><% else %><%= item[:location][:name] %><% end %> - <% if item[:location][:details] %>
  • <%= item[:location][:details] %><% end %> - - <% if item[:location][:strasse] %>
  • <%= item[:location][:strasse] %><% end %> - <% if item[:location][:ort] %>
  • <%= item[:location][:plz] %> <%= item[:location][:ort] %><% end %> - - <% if item[:location][:lon] %> -
  • - - N<%= item[:location][:lat] %> - E<%= item[:location][:lon] %> +
      +
    • + T19:30"><%= @item[:startdate].strftime("%d.%m.%Y") %>, 19:30 Uhr + <% if !@item[:public] %>(nicht öffentlich)<% end %> +
    • + <% if !heading %> +
    • + <%= item[:title] %> +
    • + <% end %> + <% if @item[:speakers] %> +
    • +
        + <% @item[:speakers].each do |speaker| %> +
      • + <%= speaker[:name] %><% if speaker[:affiliation]%> (<%= speaker[:affiliation] %>)<% end %> +
      • + <% end %> +
      +
    • + <% end %> + <% if @item[:superevent] %> +
    • + <% if @item[:superevent][:url] %> + + <% else %> + <%= @item[:superevent][:title] %> + <% end %> +
    • + <% end %> + <% if @item[:location] %> +
    • +
        +
      • <% if item[:location][:url] %><% else %><%= item[:location][:name] %><% end %> + <% if item[:location][:details] %>
      • <%= item[:location][:details] %><% end %> + + <% if item[:location][:strasse] %>
      • <%= item[:location][:strasse] %><% end %> + <% if item[:location][:ort] %>
      • <%= item[:location][:plz] %> <%= item[:location][:ort] %><% end %> - (Karte) - <% end %> -
      -
- <% end %> + <% if item[:location][:lon] %> +
  • + + N<%= item[:location][:lat] %> + E<%= item[:location][:lon] %> + + (Karte) + <% end %> + +
  • + <% end %> +