Skip to content

Commit

Permalink
Fix mobile newspaper overlay, start footer positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalnjs committed Dec 21, 2023
1 parent 9086574 commit 0d1e3b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/partials/footer.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if (cms.siteDetails[0].advertisement != null) { %><div class="advertisement noMobile"><a href="<%= cms.siteDetails[0]['advertisement-link'] %>" title="Advertisement"><img src="<%- vars.asset_prefix %><%= cms.siteDetails[0].advertisement.path %>" alt="Advertisement" /></a></div><% } %>
<% if (cms.siteDetails[0]['advertisement-mobile'] != null) { %><div class="advertisement mobileOnly" style="display: none;"><a href="<%= cms.siteDetails[0]['advertisement-link'] %>" title="Advertisement"><img src="<%- vars.asset_prefix %><%= cms.siteDetails[0]['advertisement-mobile'].path %>" alt="Advertisement" /></a></div><% } %>
<footer style="background-image: url('<%- vars.asset_prefix %><%= cms.siteDetails[0].background.path %>')">
<footer style="background-image: url('<%- vars.asset_prefix %><%= cms.siteDetails[0].background.path %>'); background-position-y: <%= cms.siteDetails[0].background.fp.y * cms.siteDetails[0].background.height %>px;"><%= cms.siteDetails[0].background.fp.y * cms.siteDetails[0].background.height %>/<%= cms.siteDetails[0].background.height %>
<div class="inner">
<div class="top">
<img src="<%- vars.asset_prefix %><%= cms.siteDetails[0].logo.path %>" alt="<%= cms.siteDetails[0].title %>" />
Expand Down
7 changes: 6 additions & 1 deletion frontend/public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
height: 100%;
}

.hero .side {
display: none;
}

.hero .side {
width: 100%;
}
Expand Down Expand Up @@ -149,7 +153,7 @@
}

.hero {
height: 100vh !important;
height: 50vh !important;
width: 85% !important;
}

Expand All @@ -165,6 +169,7 @@

.articles .grid .article img {
width: 100% !important;
height: unset !important;
}

.articles .grid .article:nth-child(odd) {
Expand Down

0 comments on commit 0d1e3b9

Please sign in to comment.