little tweaks
This commit is contained in:
parent
fa7bdde3e9
commit
324d064e64
3 changed files with 3 additions and 5 deletions
|
@ -20,7 +20,6 @@ order: 20
|
|||
article: event,
|
||||
small_text: event[:time].strftime('%A %d %B %Y %H:%M'),
|
||||
location: event[:location],
|
||||
htmlclass: event[:banner].nil? ? "" : "highlighted",
|
||||
color: event[:color] %>
|
||||
</div>
|
||||
<!-- Render old event_preview when using subevent, for now not used
|
||||
|
@ -51,7 +50,6 @@ order: 20
|
|||
article: event,
|
||||
small_text: event[:time].strftime('%A %d %B %Y %H:%M'),
|
||||
location: event[:location],
|
||||
htmlclass: event[:banner].nil? ? "" : "highlighted",
|
||||
color: event[:color] %>
|
||||
</div>
|
||||
<!-- Render old event_preview when using subevent, for now not used
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<% if item[:banner] %>
|
||||
<section class="hero is-medium is-primary is-bold" style="background-image:url('<%= item[:banner] %>');background-position:center;">
|
||||
<% elsif item[:color] %>
|
||||
<section class="hero is-medium is-primary is-bold" style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.75)); background-color:<%= item[:color] %>;">
|
||||
<section class="hero is-medium is-primary is-bold" style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color:<%= item[:color] %>;">
|
||||
<% else %>
|
||||
<section class="hero is-medium is-primary is-bold">
|
||||
<% end %>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<% if @article[:banner] %>
|
||||
<a href="<%= @article.path %>" class="tile is-child box backgroundimg <%= @htmlclass %>"
|
||||
<a href="<%= @article.path %>" class="tile is-child box backgroundimg highlighted"
|
||||
style="background-image:url('<%= @article[:banner] %>');">
|
||||
<% elsif @article[:color] %>
|
||||
<a href="<%= @article.path %>" class="tile is-child box backgroundimg highlighted"
|
||||
style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.75)); background-color:<%= @article[:color] %>;">
|
||||
style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color:<%= @article[:color] %>;">
|
||||
<% else %>
|
||||
<a href="<%= @article.path %>" class="tile is-child box backgroundimg">
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue