Skip to content

Commit 3b3d3d6

Browse files
committed
Better resizing of hero image for assets
Fixes #64
1 parent 9aa39e0 commit 3b3d3d6

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

_layouts/asset.html

+2-9
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,8 @@
1313
{%- assign hero = "/images/asset-nohero.jpg" -%}
1414
{%- endif -%}
1515

16-
<div class="section hero center blackwhite" style='background-image: url("{{ hero_base }}{{ hero }}"); min-height: 240px; max-height: 260px'>
17-
<div class="container">
18-
<div class="row">
19-
<div>
20-
<br/>
21-
<br/>
22-
</div>
23-
</div>
24-
</div>
16+
<div class="section hero center blackwhite unpadded">
17+
<img src="{{ hero_base }}{{ hero }}" width="100%" loading="lazy"/>
2518
</div>
2619

2720
<div class="section dark">

_scss/defold.scss

+3
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@
364364
.section.narrow {
365365
padding: 1rem 0 1rem;
366366
}
367+
.section.unpadded {
368+
padding: 0rem 0 0rem;
369+
}
367370

368371
select {
369372
overflow:auto;

0 commit comments

Comments
 (0)