OC footer: height = bg logo (aspect-ratio 4:1), no padding/min-height; mobile lets content drive height with logo covering — fixes empty gap
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -161,7 +161,6 @@
|
||||
</main>
|
||||
|
||||
<footer class="band dark site-footer" data-bg="dark">
|
||||
<img class="footer-watermark" src="assets/brand/oc-mark-wh.svg" alt="" aria-hidden="true">
|
||||
<div class="footer-inner">
|
||||
<div class="wrap">
|
||||
<div class="footer-brand logo-mark" role="img" aria-label="Open Communications"></div>
|
||||
|
||||
@@ -164,10 +164,18 @@ a.tel { text-decoration: none; }
|
||||
.actions.center { margin: 2.2em 0 0.8em; }
|
||||
.promise { font-style: italic; color: var(--ink-soft); font-size: 0.95rem; }
|
||||
|
||||
/* Footer — full-bleed "open" watermark drives the height; content overlaid bottom-left */
|
||||
.site-footer { padding: 0; background: var(--navy); position: relative; overflow: hidden; min-height: 300px; }
|
||||
.footer-watermark { display: block; width: 100%; height: auto; opacity: 0.05; pointer-events: none; }
|
||||
.footer-inner { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 48px; }
|
||||
/* Footer — height = the bg "open" logo (aspect 4:1), tight, no padding; content overlaid flush bottom-left */
|
||||
.site-footer { padding: 0; background: var(--navy); position: relative; overflow: hidden; aspect-ratio: 1267.11 / 316.97; }
|
||||
.site-footer::before {
|
||||
content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
|
||||
background: url(assets/brand/oc-mark-wh.svg) no-repeat center; background-size: 100% 100%;
|
||||
}
|
||||
.footer-inner { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 32px; }
|
||||
@media (max-width: 760px) {
|
||||
.site-footer { aspect-ratio: auto; }
|
||||
.site-footer::before { background-size: cover; }
|
||||
.footer-inner { position: static; padding: 52px 0 36px; }
|
||||
}
|
||||
.footer-brand { width: 150px; height: 32px; background-color: var(--cream); margin-bottom: 24px; }
|
||||
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.13em; margin-bottom: 22px; }
|
||||
.footer-nav a { color: var(--cream-soft); text-decoration: none; }
|
||||
|
||||
Reference in New Issue
Block a user