Skip to content
Snippets Groups Projects
Commit 9a04308a authored by xaralis's avatar xaralis
Browse files

fix: article card shouldn't hide sharer box on mobile devices

parent 9e5609e4
No related branches found
No related tags found
No related merge requests found
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-6 gap-4" style="min-height: 500px;"> <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-6 gap-4" style="min-height: 500px;">
{{> molecules-banner(color: "bg-black") }} {{> molecules-banner(color: "bg-black") }}
{{> molecules-banner(color: "bg-violet-300") }} {{> molecules-banner(color: "bg-violet-500") }}
{{> molecules-banner(color: "bg-green-200") }} {{> molecules-banner(color: "bg-red-600") }}
{{> molecules-banner(color: "bg-blue-200") }} {{> molecules-banner(color: "bg-blue-300") }}
{{> molecules-banner(color: "bg-brands-facebook") }} {{> molecules-banner(color: "bg-brands-facebook") }}
{{> molecules-banner(color: "bg-brands-twitter") }} {{> molecules-banner(color: "bg-brands-twitter") }}
</div> </div>
...@@ -21,15 +21,22 @@ ...@@ -21,15 +21,22 @@
/* padding shall be kept in sync with general card */ /* padding shall be kept in sync with general card */
/* No pointer events to make full article cover clickable */ /* No pointer events to make full article cover clickable */
@apply absolute left-0 bottom-0 p-4 pointer-events-none; @apply absolute left-0 bottom-0 p-4 pointer-events-none;
} }
.article-card-sharing { .article-card-sharing {
/* Turn on pointer events to make sharer clickable */ @apply mb-4 ;
@apply mb-4 transition duration-200 opacity-0 pointer-events-auto;
@screen lg {
/* Turn on pointer events to make sharer clickable */
@apply transition duration-200 opacity-0 pointer-events-auto;
}
} }
.article-card:hover .article-card-sharing { .article-card:hover .article-card-sharing {
@apply opacity-100; @screen lg {
@apply opacity-100;
}
} }
.article-card-meta { .article-card-meta {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment