Skip to content

Commit

Permalink
set a max width for jumbo article cards
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcdade committed Jan 22, 2018
1 parent 09f96e7 commit e0b56c5
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions site/themes/storyteller/templates/default.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{{ collection:articles taxonomy="true" }}
<a class="content block mb-5 mx-2 lg:mx-5" href="{{ url }}">
<div class="bg-grey-darker text-white h-screen-sans-nav relative rounded lg:rounded-lg shadow-lg overflow-hidden" style="background-color: {{ background_color }}">
<img src="{{ background_image }}" alt="" class="mix-{{ blend_mode }} pin absolute opacity-50 fit h-full w-full">
<div class="absolute h-full w-full z-10 flex items-center text-center">
<div class="flex-1 p-3">
<h6 class="font-subheading mb-2 text-lg opacity-50 tracking-wide">{{ date }}</h6>
<h1 class="leading-none mb-4">{{ title }}</h1>
<h2 class="font-subheading text-4xl">{{ subtitle }}</h2>
<div class="px-2 lg:px-5">
{{ collection:articles taxonomy="true" }}
<a class="content block mb-5 max-w-2xl mx-auto" href="{{ url }}">
<div class="bg-grey-darker text-white h-screen-sans-nav relative rounded lg:rounded-lg shadow-lg overflow-hidden" style="background-color: {{ background_color }}">
<img src="{{ background_image }}" alt="" class="mix-{{ blend_mode }} pin absolute opacity-50 fit h-full w-full">
<div class="absolute h-full w-full z-10 flex items-center text-center">
<div class="flex-1 p-3">
<h6 class="font-subheading mb-2 text-lg opacity-50 tracking-wide">{{ date }}</h6>
<h1 class="leading-none mb-4">{{ title }}</h1>
<h2 class="font-subheading text-4xl">{{ subtitle }}</h2>
</div>
</div>
<p class="absolute pin-b pin-l pin-r m-3 w-full text-center opacity-50 font-subheading">{{ topics | sentence_list }}</p>
</div>
<p class="absolute pin-b pin-l pin-r m-3 w-full text-center opacity-50 font-subheading">{{ topics | sentence_list }}</p>
</div>
</a>
{{ /collection:articles }}
</a>aergaegaergearger
{{ /collection:articles }}
</div>

0 comments on commit e0b56c5

Please sign in to comment.