mirror of
https://github.com/Anon-Planet/thgtoa.git
synced 2026-06-20 20:48:00 +02:00
4e26ae486b
- Added CSS rules to force all .social and .social__link elements to use flexbox display instead of block, preventing them from wrapping onto new lines - Force social icons to remain on same line with nowrap white-space - Adjust gap between icons for better spacing (0.75em) - Responsive adjustments for mobile screens - Fixed icon sizes to match inline display requirements
204 lines
4.2 KiB
CSS
204 lines
4.2 KiB
CSS
/*
|
|
* FOOTER CLEANUP & LICENSE DISPLAY FIXES
|
|
* Removes CRT overlay effects from footer and improves license display
|
|
*/
|
|
|
|
/* === REMOVE CRT OVERLAY EFFECTS FROM FOOTER === */
|
|
|
|
/* Exclude footer from CRT scanline effect */
|
|
.md-footer::before,
|
|
#md-footer::before {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Exclude footer from CRT curvature effect */
|
|
.md-footer::after {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Exclude footer from phosphor decay effect */
|
|
.md-footer::after::before {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Exclude footer from vignette effect */
|
|
body > .md-footer::before {
|
|
display: none !important;
|
|
}
|
|
|
|
/* === FOOTER LAYOUT FIXES === */
|
|
|
|
/* Clean footer container - remove any unwanted spacing or overflow */
|
|
.md-footer,
|
|
#md-footer {
|
|
margin: 0;
|
|
padding: 1.5em 2em;
|
|
background: linear-gradient(180deg,
|
|
var(--bg-secondary) 0%,
|
|
var(--bg-primary) 100%
|
|
) !important;
|
|
border-top: 2px solid var(--accent-green) !important;
|
|
overflow: visible;
|
|
}
|
|
|
|
/* Footer meta container - clean layout for copyright/license */
|
|
.md-footer-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1em;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding-top: 0.5em;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Make sure footer meta has proper background (not transparent) */
|
|
.md-footer-meta__inner {
|
|
background: none !important;
|
|
}
|
|
|
|
/* Copyright text - centered and clean */
|
|
.md-footer-copyright {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary) !important;
|
|
line-height: 1.6;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* License link styling */
|
|
.md-footer-copyright a,
|
|
.md-footer-copyright a:hover {
|
|
color: var(--accent-green) !important;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.md-footer-copyright a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Footer meta background - ensure it doesn't have CRT effects */
|
|
.md-footer__meta,
|
|
.md-typeset .md-footer-meta {
|
|
background-color: var(--bg-secondary) !important;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Center content in footer properly */
|
|
footer > :nth-child(1),
|
|
.md-footer-meta {
|
|
text-align: center !important;
|
|
}
|
|
|
|
/* === ENSURE LICENSE TEXT IS READING CORRECTLY === */
|
|
|
|
/* Make license badge and text readable without CRT overlay */
|
|
#md-footer-copyright > a,
|
|
#md-footer-copyright__indent .md-footer-copyright__license a {
|
|
position: relative; /* Ensure effects don't bleed into footer */
|
|
}
|
|
|
|
/* Remove any potential z-index stacking issues */
|
|
.md-footer {
|
|
z-index: 10 !important; /* Above CRT overlays which are at z-index 9997-9999 */
|
|
}
|
|
|
|
/* === FOOTER SEPARATOR LINES (if needed) === */
|
|
|
|
.footer-separator {
|
|
border-color: var(--border-color) !important;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* === RESPONSIVE FOOTER FIXES === */
|
|
|
|
@media (max-width: 91.42857143em) {
|
|
.md-footer-meta {
|
|
gap: 0.75em;
|
|
padding-top: 1em;
|
|
}
|
|
|
|
.md-footer-copyright {
|
|
font-size: 0.8rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 60em) {
|
|
.md-footer,
|
|
#md-footer {
|
|
padding: 1em 1.5em;
|
|
}
|
|
|
|
.md-footer-copyright {
|
|
font-size: 0.8rem;
|
|
}
|
|
}
|
|
|
|
/* === SOCIAL LINKS INLINE DISPLAY FIX === */
|
|
|
|
/* Force all social links to display inline on same line */
|
|
.social,
|
|
.social__link {
|
|
display: inline-flex !important;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
margin-right: 0.75em !important;
|
|
}
|
|
|
|
.social svg {
|
|
width: 24px !important;
|
|
height: 24px !important;
|
|
}
|
|
|
|
/* Ensure no line breaks between social icons */
|
|
#social {
|
|
display: flex !important;
|
|
flex-wrap: nowrap !important;
|
|
gap: 0.75em !important;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
/* Wrap inline with main content instead of creating separate line */
|
|
.md-social,
|
|
[data-md-color-scheme="slate"] .md-typeset a[href*="social"] {
|
|
display: inline !important;
|
|
vertical-align: middle;
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
@media (max-width: 60em) {
|
|
.social {
|
|
margin-right: 0.5em !important;
|
|
}
|
|
|
|
.social svg {
|
|
width: 20px !important;
|
|
height: 20px !important;
|
|
}
|
|
}
|
|
|
|
/* === ACCESSIBILITY FIXES FOR FOOTER === */
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
/* Remove animations in footer area */
|
|
.md-footer h4,
|
|
.md-footer p {
|
|
animation: none !important;
|
|
}
|
|
}
|
|
|
|
@media (prefers-contrast: high) {
|
|
.md-footer {
|
|
border-top-color: var(--text-primary) !important;
|
|
}
|
|
|
|
.md-footer-copyright {
|
|
color: var(--text-primary) !important;
|
|
}
|
|
}
|