From 9a37872926d1938cd9027b69b434fa8d1d4a6672 Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Thu, 1 Feb 2024 22:36:38 +0100 Subject: [PATCH] added background colors as css elements --- sass/base/elements/_body.scss | 66 ++++++++++++++++++++++++++++++++--- 1 file changed, 62 insertions(+), 4 deletions(-) diff --git a/sass/base/elements/_body.scss b/sass/base/elements/_body.scss index 603ba98..cab6ed6 100644 --- a/sass/base/elements/_body.scss +++ b/sass/base/elements/_body.scss @@ -1,8 +1,66 @@ body { background: $color__background-body; // Fallback for when there is no custom background color defined. - background-image: url(./assets/img/background-colors-02.jpg); - background-size: cover; - background-position: center center; - background-repeat: no-repeat; + //background-image: url(./assets/img/background-colors-02.jpg); + //background-size: cover; + //background-position: center center; + //background-repeat: no-repeat; + position: relative; +} +.liquid { + overflow: hidden; + float: left; + position: fixed; + top: 0; + left: 0; + z-index: -1000; + width: 100vw; + height: 100vh; } +.bubble { + --size: 40vw; + --position: -10vw; + position:absolute; + width: var(--size); + height: var(--size); + border-radius: 50%; + filter: blur(10rem); + &.top { + top: var(--position); + } + &.bottom { + bottom: var(--position); + } + &.left { + left: var(--position); + } + &.right { + right: var(--position); + } + &.top.left{ + --bgangle: to bottom right; + } + &.top.right{ + --bgangle: to bottom left; + } + &.bottom.left{ + --bgangle: to top right; + } + &.bottom.right{ + --bgangle: to top left; + } + + &.red{ + --bgcolor: rgb(255,0,0); + } + &.yellow{ + --bgcolor: rgb(255,0,255); + } + &.blue{ + --bgcolor: rgb(0,0,255); + } + &.green{ + --bgcolor: rgb(0,255,0); + } + background: linear-gradient(var(--bgangle),var(--bgcolor), transparent); +}