Skip to content

Commit 91c07de

Browse files
committed
UI:improved mobile responsiveness
1 parent ad91d36 commit 91c07de

2 files changed

Lines changed: 98 additions & 4 deletions

File tree

‎web/assets/css/main.css‎

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,29 @@ footer {
326326
color: #ffffff !important;
327327
}
328328

329+
.footer-logo-section p {
330+
margin-top: 12px;
331+
color: var(--color-text-secondary);
332+
font-size: 14px;
333+
}
334+
335+
.footer-links {
336+
display: flex;
337+
gap: 24px;
338+
}
339+
340+
.footer-links a {
341+
color: var(--color-text-secondary);
342+
text-decoration: none;
343+
font-family: var(--font-heading);
344+
font-size: 14px;
345+
font-weight: 500;
346+
}
347+
348+
.footer-links a:hover {
349+
color: #ffffff;
350+
}
351+
329352
@media (max-width: 1024px) {
330353
.grid-3 {
331354
grid-template-columns: 1fr;
@@ -343,4 +366,75 @@ footer {
343366
h1 { font-size: 40px; }
344367
.hero { padding: 100px 0; }
345368
.definition-block { font-size: 24px; }
369+
370+
/* Footer Mobile */
371+
.footer-inner {
372+
flex-direction: column;
373+
gap: 40px;
374+
text-align: center;
375+
}
376+
377+
.footer-logo-section {
378+
display: flex;
379+
flex-direction: column;
380+
align-items: center;
381+
}
382+
383+
.footer-links {
384+
justify-content: center;
385+
}
386+
387+
/* Mobile Nav */
388+
.nav-toggle-label {
389+
display: flex;
390+
align-items: center;
391+
order: 3;
392+
}
393+
394+
.logo {
395+
order: 1;
396+
}
397+
398+
nav {
399+
position: absolute;
400+
top: 100%;
401+
left: 0;
402+
width: 100%;
403+
background: #ffffff;
404+
border-bottom: 1px solid var(--color-border);
405+
display: none;
406+
flex-direction: column;
407+
padding: 20px 32px;
408+
z-index: 1000;
409+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
410+
}
411+
412+
nav a {
413+
margin: 12px 0;
414+
margin-left: 0;
415+
font-size: 18px;
416+
}
417+
418+
.nav-github {
419+
margin-top: 8px;
420+
}
421+
422+
.nav-toggle:checked ~ nav {
423+
display: flex;
424+
}
425+
426+
/* Hamburger to X Animation */
427+
.nav-toggle:checked ~ .nav-toggle-label span {
428+
background: transparent;
429+
}
430+
431+
.nav-toggle:checked ~ .nav-toggle-label span::before {
432+
transform: rotate(45deg);
433+
bottom: 0;
434+
}
435+
436+
.nav-toggle:checked ~ .nav-toggle-label span::after {
437+
transform: rotate(-45deg);
438+
top: 0;
439+
}
346440
}

‎web/layouts/partials/footer.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
</a>
1111
<p>© 2026. Released under CC BY 4.0.</p>
1212
</div>
13-
<div style="display: flex; gap: 24px;">
14-
<a href="https://github.com/opensustain/open-traceability" style="color: var(--color-text-secondary); text-decoration: none;">GitHub</a>
15-
<a href="https://bsky.app" style="color: var(--color-text-secondary); text-decoration: none;">Bluesky</a>
16-
<a href="/privacy" style="color: var(--color-text-secondary); text-decoration: none;">Privacy</a>
13+
<div class="footer-links">
14+
<a href="https://github.com/protontypes/open-traceability">GitHub</a>
15+
<a href="https://bsky.app/profile/opensustaintech.bsky.social">Bluesky</a>
16+
<a href="">Privacy</a>
1717
</div>
1818
</div>
1919
</footer>

0 commit comments

Comments
 (0)