-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set a max width for jumbo article cards
- Loading branch information
1 parent
09f96e7
commit e0b56c5
Showing
1 changed file
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |