Hide image carousel on mobile if no image is set
This commit is contained in:
@@ -147,6 +147,7 @@ a:hover .recipe-tile .hover { display: block; background: #0006 }
|
||||
*/
|
||||
.recipe h2 { font-size: 0.8em; margin: 0 0 1em 0 }
|
||||
.recipe #img-carousel { padding: 0 50px; margin: 0 -30px }
|
||||
.recipe #img-carousel:empty { display: none; }
|
||||
.recipe #source { margin-left: -1em; margin-bottom: -1.5em }
|
||||
.recipe #metrics { float: right; margin: 0 0 15px 25px; max-width: 180px }
|
||||
.recipe #metrics > * { text-indent: -20px; margin-left: 20px; padding-top: 0.3em }
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<section id="img-carousel" class="v-scroll center">
|
||||
{%- for img in this | sorted_images %}
|
||||
<img class="lozad" data-src="{{ img|url }}" height="400">
|
||||
{%- endfor %}
|
||||
{%- endfor -%}
|
||||
</section>
|
||||
|
||||
{% if this.source -%}
|
||||
|
||||
Reference in New Issue
Block a user