From 3a1e252a6865ba4888f14b16dfbb614289978919 Mon Sep 17 00:00:00 2001 From: jumping283 <77177771+jumping283@users.noreply.github.com> Date: Wed, 10 Aug 2022 12:26:21 -0700 Subject: [PATCH] Update style.css --- style.css | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/style.css b/style.css index 8b13789..5e36cb2 100644 --- a/style.css +++ b/style.css @@ -1 +1,43 @@ +body, html { + height: 100%; + margin: 0; + font-family: Arial, Helvetica, sans-serif; +} +* { + box-sizing: border-box; +} + +.bg-image { + /* The image used */ + background-image: url("/background.png"); + + /* Add the blur effect */ + filter: blur(8px); + -webkit-filter: blur(8px); + + /* Full height */ + height: 100%; + + /* Center and scale the image nicely */ + background-position: center; + background-repeat: no-repeat; + background-size: cover; +} + +/* Position text in the middle of the page/image */ +.bg-text { + background-color: rgb(0,0,0); /* Fallback color */ + background-color: rgba(0,0,0, 0.4); /* Black w/opacity/see-through */ + color: white; + font-weight: bold; + border: 3px solid #f1f1f1; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: 2; + width: 80%; + padding: 20px; + text-align: center; +}