Skip to content

Commit e59d6d5

Browse files
jamezpclaude
andcommitted
Reorganize footer with centered layout for logo and badges
Consolidates footer structure to display Commonhaus logo, license/security badges, and legal text in a clean vertical stack. Removes duplicate HTML and conflicting CSS rules. Badges now have button-style borders with hover effects. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: James R. Perkins <jperkins@ibm.com>
1 parent 5608953 commit e59d6d5

1 file changed

Lines changed: 55 additions & 64 deletions

File tree

public/css/bootstrap-theme.css

Lines changed: 55 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -332,45 +332,18 @@ body#project {
332332
border-top: 1px solid var(--resteasy-border) !important;
333333
padding: 3rem 0 2rem 0 !important;
334334
margin-top: 4rem !important;
335-
text-align: left !important;
336335
}
337336

338337
.commonhaus-footer {
339-
margin-bottom: 1.5rem !important;
340338
display: flex !important;
341339
flex-direction: column !important;
342-
gap: 1.5rem !important;
343-
grid-column: initial !important;
344-
grid-row: initial !important;
345-
}
346-
347-
.commonhaus-footer .commonhaus-logo {
348-
grid-column: initial !important;
349-
grid-row: initial !important;
350-
justify-self: initial !important;
351-
align-self: initial !important;
352-
padding-top: 0 !important;
353-
order: initial !important;
354-
}
355-
356-
.commonhaus-logo img {
357-
max-width: 200px !important;
358-
height: auto !important;
359-
}
360-
361-
/* ============================================
362-
COMMONHAUS FOOTER SECTION
363-
============================================ */
364-
.commonhaus-footer {
365-
display: block !important;
366-
padding: 2rem 0 !important;
340+
align-items: center !important;
367341
text-align: center !important;
342+
gap: 1.25rem !important;
368343
}
369344

370345
.commonhaus-footer .commonhaus-logo {
371-
margin-bottom: 1.5rem !important;
372346
display: block !important;
373-
text-align: center !important;
374347
}
375348

376349
.commonhaus-footer .commonhaus-logo img {
@@ -391,62 +364,84 @@ body#project {
391364
display: block !important;
392365
}
393366

394-
.commonhaus-footer .commonhaus-legal {
395-
font-size: 0.75rem !important;
396-
max-width: 1100px !important;
397-
margin: 0 auto !important;
398-
text-align: center !important;
399-
line-height: 1.75 !important;
400-
color: #6c757d !important;
401-
}
402-
403-
[data-bs-theme="dark"] .commonhaus-footer .commonhaus-legal {
404-
color: #8b949e !important;
405-
}
406-
407-
.commonhaus-footer .commonhaus-legal {
408-
grid-column: initial !important;
409-
grid-row: initial !important;
410-
align-self: initial !important;
411-
justify-self: initial !important;
412-
max-width: none !important;
413-
order: initial !important;
414-
}
415-
416-
.footer-links {
367+
.commonhaus-footer .footer-links {
417368
display: flex !important;
418369
gap: 1.5rem !important;
419-
flex-wrap: wrap !important;
420370
align-items: center !important;
371+
justify-content: center !important;
372+
flex-wrap: wrap !important;
421373
}
422374

423-
.footer-links a {
375+
.commonhaus-footer .footer-links a {
424376
display: inline-flex !important;
425377
align-items: center !important;
426378
gap: 0.5rem !important;
427379
padding: 0.5rem 1rem !important;
428-
background: white !important;
429380
border: 1px solid var(--resteasy-border) !important;
430381
border-radius: 0.375rem !important;
431382
color: var(--resteasy-primary) !important;
432383
text-decoration: none !important;
433-
font-size: 0.9375rem !important;
384+
font-size: 0.875rem !important;
434385
font-weight: 500 !important;
435386
transition: all 0.15s ease !important;
387+
white-space: nowrap !important;
436388
}
437389

438-
.footer-links a:hover {
439-
background: var(--resteasy-bg-light) !important;
390+
.commonhaus-footer .footer-links a:hover {
391+
background-color: var(--resteasy-bg-light) !important;
440392
border-color: var(--resteasy-primary) !important;
441393
color: var(--resteasy-primary-dark) !important;
442394
transform: translateY(-1px) !important;
443-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
444395
}
445396

446-
.footer-links i {
397+
.commonhaus-footer .footer-links i {
447398
font-size: 1rem !important;
448399
}
449400

401+
.commonhaus-footer .commonhaus-legal {
402+
font-size: 0.75rem !important;
403+
max-width: 1100px !important;
404+
margin: 0 auto !important;
405+
text-align: center !important;
406+
line-height: 1.75 !important;
407+
color: #6c757d !important;
408+
}
409+
410+
.commonhaus-footer .commonhaus-legal a {
411+
color: var(--resteasy-primary) !important;
412+
text-decoration: none !important;
413+
}
414+
415+
.commonhaus-footer .commonhaus-legal a:hover {
416+
text-decoration: underline !important;
417+
}
418+
419+
/* Dark mode */
420+
[data-bs-theme="dark"] #site-info {
421+
background: #0d1117 !important;
422+
border-top-color: var(--resteasy-border) !important;
423+
}
424+
425+
[data-bs-theme="dark"] .commonhaus-footer .footer-links a {
426+
border-color: var(--resteasy-border) !important;
427+
color: var(--resteasy-accent) !important;
428+
background-color: transparent !important;
429+
}
430+
431+
[data-bs-theme="dark"] .commonhaus-footer .footer-links a:hover {
432+
background-color: rgba(74, 158, 187, 0.1) !important;
433+
border-color: var(--resteasy-accent) !important;
434+
color: var(--resteasy-accent-light) !important;
435+
}
436+
437+
[data-bs-theme="dark"] .commonhaus-footer .commonhaus-legal {
438+
color: #8b949e !important;
439+
}
440+
441+
[data-bs-theme="dark"] .commonhaus-footer .commonhaus-legal a {
442+
color: var(--resteasy-accent) !important;
443+
}
444+
450445
.commonhaus-legal {
451446
font-size: 0.875rem !important;
452447
color: #6c757d !important;
@@ -1804,14 +1799,10 @@ table tbody tr:last-child td,
18041799
}
18051800

18061801
[data-bs-theme="dark"] .footer-links a {
1807-
background: #161b22 !important;
1808-
border-color: var(--resteasy-border) !important;
18091802
color: var(--resteasy-accent) !important;
18101803
}
18111804

18121805
[data-bs-theme="dark"] .footer-links a:hover {
1813-
background: #1c2632 !important;
1814-
border-color: var(--resteasy-accent) !important;
18151806
color: var(--resteasy-accent-light) !important;
18161807
}
18171808

0 commit comments

Comments
 (0)