From 60195efadf84494f2697e4a5247255ec3ff98b7a Mon Sep 17 00:00:00 2001 From: wompmacho Date: Sun, 7 Jun 2026 00:34:37 +0000 Subject: [PATCH] add diffuse --- assets/css/custom.css | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index afea27c..ce0344a 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -51,13 +51,31 @@ img[src$='#floatright']{ float:right; margin: 0.7rem; } -/* Page-Specific Background for Projects */ -body.page-projects { +/* Page background with Diffusion Layer */ +body.has-bg::before { + content: ""; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; background-image: url('/images/backgrounds/default.gif'); background-size: cover; background-position: center; - background-repeat: no-repeat; background-attachment: fixed; + background-repeat: no-repeat; + z-index: -10; + /* Diffusion / Overlay layer */ + background-color: rgba(0, 0, 0, 0.6); + background-blend-mode: overlay; + filter: blur(5px); /* This adds the diffusion */ + transform: scale(1.05); /* Avoid white edges from blur */ +} + +/* Ensure background sits behind everything */ +body.has-bg { + position: relative; + z-index: 1; }