fix(css): cleanup footer license display by removing CRT overlay effects

This commit is contained in:
nopeitsnothing
2026-06-14 13:39:42 -04:00
parent 4579c5f14e
commit 9dee4c7691
14 changed files with 1067 additions and 375 deletions
+1 -1
View File
@@ -127,4 +127,4 @@ img {
nav, footer, button {
display: none !important;
}
}
}
+201 -55
View File
@@ -1,55 +1,201 @@
/* Title sheet: visible only when printing / generating PDF (not on screen). */
.pdf-title-page {
display: none;
}
@media print {
.pdf-title-page {
display: block;
box-sizing: border-box;
text-align: center;
padding: 5rem 2rem 4rem;
page-break-after: always;
}
.pdf-title-page__title {
font-size: 1.65rem;
font-weight: 700;
line-height: 1.25;
margin: 0 0 1.25rem;
}
.pdf-title-page__subtitle {
font-size: 1.05rem;
line-height: 1.4;
margin: 0 0 2rem;
}
.pdf-title-page__meta {
font-size: 0.95rem;
font-style: normal;
margin: 0;
}
}
/* Guide landing: small floating logo so opening copy flows beside it (HTML + PDF). */
.guide-intro-lead {
overflow: auto;
}
.guide-intro-lead > p:first-child {
margin-top: 0;
}
.guide-intro-lead > p:first-child img {
float: right;
max-width: 6.5rem;
height: auto;
margin: 0 0 0.5rem 1rem;
}
@media print {
.guide-intro-lead > p:first-child img {
max-width: 5rem;
}
}
/*
*/
:root {
/* Core Colors - Terminal/Hacker Theme */
--bg-primary: #0a0f0a; /* Very dark green-black */
--bg-secondary: #0d140d; /* Slightly lighter background */
--bg-card: #0f180f; /* Card backgrounds */
--text-primary: #e0e0e0; /* Main text (off-white) */
--text-secondary: #8a9a8a; /* Secondary text (dimmed green-gray) */
--text-muted: #5c6a5c; /* Muted metadata */
--accent-green: #0f0; /* Terminal green */
--accent-green-dim: rgba(0, 255, 0, 0.1);
--accent-green-light: rgba(0, 255, 0, 0.3);
--border-color: #1a2a1a; /* Subtle borders */
--border-highlight: #1f3a1f; /* Highlighted borders */
--code-font: 'JetBrains Mono', 'Fira Code', 'Liberation Mono', Consolas, monospace;
--body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Background with subtle grid pattern */
body {
background-color: var(--bg-primary);
color: var(--text-primary);
font-family: var(--body-font);
line-height: 1.7;
background-image:
linear-gradient(rgba(0, 255, 0, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 255, 0, 0.03) 1px, transparent 1px);
background-size: 40px 40px;
background-position: center center;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-family: var(--code-font);
color: var(--text-primary);
margin-top: 1.5em;
margin-bottom: 0.5em;
}
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.85rem; font-weight: 600; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5em; }
h3 { font-size: 1.4rem; font-weight: 500; }
p {
color: var(--text-secondary);
margin-bottom: 1.25em;
}
a {
color: var(--accent-green);
text-decoration: none;
transition: all 0.2s ease;
}
a:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
/* Code blocks - terminal style */
pre, code, kbd {
font-family: var(--code-font) !important;
}
pre {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 1.25em;
overflow-x: auto;
}
/* Cards with subtle borders */
.md-typeset__table, .md-typeset table:not([class]) {
border-collapse: collapse;
}
.md-typeset__table tr {
background-color: var(--bg-secondary);
transition: background-color 0.2s ease;
}
/* PGP download button - matching site theme */
.btn-download {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5em;
padding: 0.7em 1.25em;
border-radius: 4px;
text-decoration: none !important;
font-weight: 600;
color: var(--accent-green);
background: transparent;
border: 2px solid var(--accent-green);
font-family: var(--code-font) !important;
transition: all 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.btn-download:hover {
background-color: var(--accent-green-dim);
border-color: var(--accent-green);
transform: translateY(-2px);
box-shadow: 0 2px 6px rgba(0, 255, 0, 0.2);
}
.btn-download:active {
transform: translateY(0);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
/* Link styling */
.md-typeset a:not(.btn):not([class]) {
color: var(--accent-green);
text-decoration: underline;
text-underline-offset: 4px;
}
.md-typeset a:not(.btn):not([class]):hover {
background-color: var(--accent-green-dim);
text-decoration: none;
}
/* Alerts/Admonitions - terminal warnings */
.admonition-title,
div.admonition > div:first-of-type::before {
font-family: var(--code-font) !important;
}
/* Card-style containers (like the reference site's quick access section) */
.md-typeset details,
.md-typeset summary,
div[data-md-component="content"] {
/* Subtle card effect */
}
/* Table styling */
.md-typeset__table th,
.md-typeset__table td {
padding: 0.75em 0.5em;
border-bottom: 1px solid var(--border-color);
}
.md-typeset__table th {
background-color: var(--bg-secondary);
font-family: var(--code-font);
font-weight: 600;
color: var(--text-primary);
}
/* Footer customization */
.footer {
border-top: 1px solid var(--border-color);
padding-top: 1.5em;
}
/* Admonition styling */
.md-typeset details summary {
list-style: none;
}
.md-typeset details[open] > summary::after {
content: '+';
font-family: var(--code-font);
position: absolute;
right: 1em;
}
/* Smooth scrolling */
html {
scroll-behavior: smooth;
}
/* Smooth theme toggle transition */
[data-md-color-scheme="slate"] .md-header__title {
color: var(--accent-green);
}
/* Selection color */
::selection {
background-color: var(--accent-green-light);
color: #000;
}
/* Focus styles for accessibility */
a:focus, button:focus {
outline: 2px solid var(--accent-green);
outline-offset: 2px;
}
/* Smooth highlight effect on links */
.md-typeset a::selection {
background-color: var(--accent-green-light);
}
+157
View File
@@ -0,0 +1,157 @@
/*
* 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;
}
}
/* === 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;
}
}
+126
View File
@@ -0,0 +1,126 @@
/* ================================
NAVIGATION BRANDING - Terminal Prompt Style
Matches anonymousplanet.net header
================================ */
/* Top-left terminal prompt branding */
.md-header__topic {
font-family: 'JetBrains Mono', monospace;
font-size: 0.75rem;
letter-spacing: -0.02em;
opacity: 0.9;
}
/* Terminal prompt styling */
.md-typeset h1::before,
div[data-md-component="content"] > h1::before {
content: '>_ ';
color: var(--accent-green);
font-family: 'JetBrains Mono', monospace;
white-space: pre;
}
/* Clean navigation bar */
.md-header__button.md-icon {
padding: 0.5em;
}
/* Top navigation bar - terminal style */
nav[data-md-level="1"] .md-nav__link,
nav[data-md-level="2"] .md-nav__link {
font-family: var(--code-font);
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-secondary);
}
nav[data-md-level="1"] .md-nav__link:hover,
nav[data-md-level="2"] .md-nav__link--active {
color: var(--accent-green);
}
/* Clean up page margins */
.md-typeset {
max-width: none;
}
/* Subtle card-like containers for content sections */
.md-typeset > :not(table) > :not(hr) > :first-of-type {
margin-top: 2em;
}
/* Quick Access Section - mimicking reference site */
.quick-access,
div[data-md-include]:has(h3:contains("Quick Access")) {
border-top: 1px solid var(--border-color);
margin-top: 3em;
padding-top: 2em;
}
/* Card grid for download sections */
.md-typeset .md-typeset__grid,
div[data-md-type="grid"] {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5em;
}
/* Card-style download boxes */
.quick-access-card,
.md-typeset__section:not(:last-child) {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 1.25em;
}
.quick-access-card h3 {
font-family: var(--code-font);
margin-top: 0.5em;
margin-bottom: 0.5em;
color: var(--text-primary);
}
.quick-access-card > p {
color: var(--text-secondary);
font-size: 0.9rem;
margin-bottom: 1em;
}
/* Icons for download cards */
.quick-access-card .md-icon,
.quick-access-card svg {
width: 2.5em;
height: 2.5em;
color: var(--accent-green);
margin-bottom: 0.75em;
}
/* Link styling for download cards */
.quick-access-card a:hover {
text-decoration-color: var(--accent-green);
}
/* Footer branding */
.md-typeset .md-footer-meta {
background-color: var(--bg-secondary);
border-top: 1px solid var(--border-color);
}
/* Terminal-style code blocks with line numbers */
pre[role="presentation"] [data-line] {
padding-left: calc(var(--per-page) * 0.75em + 1.25em);
}
/* Smooth fade-in for page transitions */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}