From 2c719a19d94bcd4b12c8c54a96120a70aab82ded Mon Sep 17 00:00:00 2001 From: Herwin Bozet Date: Wed, 20 Nov 2024 23:17:23 +0100 Subject: [PATCH] Added colored backgrounds Update backgrounds.php and backgrounds.scss --- htdocs/parts/backgrounds.php | 48 +++++++++++++++++++++++++++++++++++- scss/site/backgrounds.scss | 32 ++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 1 deletion(-) diff --git a/htdocs/parts/backgrounds.php b/htdocs/parts/backgrounds.php index 0401a5e..33d9a79 100644 --- a/htdocs/parts/backgrounds.php +++ b/htdocs/parts/backgrounds.php @@ -56,7 +56,7 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { -

Other backgrounds

+

Special backgrounds

Transparent

@@ -64,4 +64,50 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { .bkgd-transparent
+ +

Colored backgrounds

+
+
+

Blue

+
+ .bkgd-blue +
+
+

Light blue

+
+ .bkgd-blue-light +
+
+

Green

+
+ .bkgd-green +
+
+

Light green

+
+ .bkgd-green-light +
+
+
+
+

Red

+
+ .bkgd-red +
+
+

Light red

+
+ .bkgd-red-light +
+
+

Orange

+
+ .bkgd-orange +
+
+

Light orange

+
+ .bkgd-orange-light +
+
diff --git a/scss/site/backgrounds.scss b/scss/site/backgrounds.scss index abb2a57..28f0114 100644 --- a/scss/site/backgrounds.scss +++ b/scss/site/backgrounds.scss @@ -47,3 +47,35 @@ .bkgd-transparent { background: rgba(0, 0, 0, 0); } + +.bkgd-blue { + background-color: #{$color-background-button-primary}; +} + +.bkgd-blue-light { + background-color: #{$color-background-button-primary-hover}; +} + +.bkgd-green { + background-color: #{$color-background-button-success}; +} + +.bkgd-green-light { + background-color: #{$color-background-button-success-hover}; +} + +.bkgd-red { + background-color: #{$color-background-button-error}; +} + +.bkgd-red-light { + background-color: #{$color-background-button-error-hover}; +} + +.bkgd-orange { + background-color: #{$color-background-button-warning}; +} + +.bkgd-orange-light { + background-color: #{$color-background-button-warning-hover}; +}