Dough Git

clove/web

src/lib/styles/footer.css

back to src/lib/styles

/* src/lib/styles/footer.css
 * DASL-1.2 — (c) Clove Twilight
 */

/* Sits in the page flow; margin-top: auto pins it to the bottom of short pages */
footer {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 62rem;
	margin: auto auto 0;
	padding: 1.25rem 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.85rem;
}

.footer-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	align-items: center;
	margin: 0;
}

.footer-line > span {
	display: inline-flex;
	gap: 0.4em;
	align-items: center;
}

/* Dot between items, skipped on the first */
.footer-line > span + span::before {
	content: '·';
	margin-right: 0.75rem;
	color: var(--line);
}

.footer-brand img {
	border-radius: 50%;
}

/* Heart */

.beat {
	color: var(--accent);
	animation: beat 1.2s ease-in-out infinite;
}

.beat {
	width: 1em;
	height: 1em;
}

/* Two quick pulses, then a rest, like a heartbeat */
@keyframes beat {
	0%,
	40%,
	100% {
		transform: scale(1);
	}
	10%,
	30% {
		transform: scale(1.25);
	}
	20% {
		transform: scale(1.05);
	}
}

/* 'Not by AI' badge */

.no-ai {
	line-height: 0;
}

.no-ai img {
	display: block;
	transition: filter 0.2s ease;
}

.no-ai:hover img {
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent));
}

.no-ai:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Narrow screens: stack and centre */
@media (max-width: 40rem) {
	footer,
	.footer-line {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}

	.footer-line > span + span::before {
		content: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.beat {
		animation: none;
	}

	.no-ai img {
		transition: none;
	}
}

@media print {
	footer {
		display: none;
	}
}

/* Live visitor counter, drawn with digit images like an old hit counter */

.visitors {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
}

.visitor-digits {
	display: inline-flex;
	line-height: 0;
}

/* Half the images' 45x100, so on 2x screens every image pixel still gets its
   own screen pixel and stays sharp */
.visitor-digits img {
	width: auto;
	height: 50px;
}

.visitor-label {
	font-size: 0.75rem;
}