consolidate background-image css

This commit is contained in:
johnwang16
2024-10-18 20:38:27 -04:00
parent 8b1e732fa3
commit 7dd77e06d4
6 changed files with 17 additions and 7 deletions

View File

@@ -212,6 +212,12 @@
{ {
line-height: 30px; line-height: 30px;
} }
body
{
background-image: url('img/background.png');
}
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
Customized Main Menu Customized Main Menu
----------------------------------------------------------------------------- */ ----------------------------------------------------------------------------- */

View File

@@ -17,6 +17,10 @@ html {
background-color: #353c42; background-color: #353c42;
} }
body {
background-image: url('img/boxed-bg-dark.png') !important;
}
body, .bg-yellow, .callout.callout-warning, .alert-warning, .label-warning, .modal-warning .modal-body { body, .bg-yellow, .callout.callout-warning, .alert-warning, .label-warning, .modal-warning .modal-body {
background-color: #353c42 !important; background-color: #353c42 !important;

View File

@@ -19,6 +19,10 @@
background-color: #353c42; background-color: #353c42;
} }
body {
background-image: url('img/boxed-bg-dark.png') !important;
}
body, .bg-yellow, .callout.callout-warning, .alert-warning, .label-warning, .modal-warning .modal-body { body, .bg-yellow, .callout.callout-warning, .alert-warning, .label-warning, .modal-warning .modal-body {
background-color: #353c42 !important; background-color: #353c42 !important;

View File

@@ -105,8 +105,7 @@ if (isset ($_SESSION["login"]) == FALSE || $_SESSION["login"] != 1)
<?php <?php
if ($ENABLED_DARKMODE === True) { if ($ENABLED_DARKMODE === True) {
echo '<link rel="stylesheet" href="css/dark-patch.css">'; echo '<link rel="stylesheet" href="css/dark-patch.css">';
$BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/boxed-bg-dark.png\');"'; }
} else { $BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/background.png\');"';}
?> ?>
<link rel="stylesheet" href="/css/offline-font.css"> <link rel="stylesheet" href="/css/offline-font.css">
</head> </head>

View File

@@ -1195,11 +1195,9 @@ $(document).ready(function() {
setCookie("UI_dark_mode", "True") setCookie("UI_dark_mode", "True")
$('head').append('<link rel="stylesheet" href="css/dark-patch.css">'); $('head').append('<link rel="stylesheet" href="css/dark-patch.css">');
// Set the background image for dark mode // Set the background image for dark mode
$('body').attr('style', 'background-image: url(\'img/boxed-bg-dark.png\');');
} else { } else {
setCookie("UI_dark_mode", "False") setCookie("UI_dark_mode", "False")
// Set the background image for light mode // Set the background image for light mode
$('body').attr('style', 'background-image: url(\'img/background.png\');');
} }
}); });

View File

@@ -75,8 +75,7 @@
<?php <?php
if ($ENABLED_DARKMODE === True) { if ($ENABLED_DARKMODE === True) {
echo '<link rel="stylesheet" href="css/dark-patch.css">'; echo '<link rel="stylesheet" href="css/dark-patch.css">';
$BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/boxed-bg-dark.png\');"'; }
} else { $BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/background.png\');"';}
?> ?>
@@ -114,7 +113,7 @@
<!-- ----------------------------------------------------------------------- --> <!-- ----------------------------------------------------------------------- -->
<!-- Layout Boxed Yellow --> <!-- Layout Boxed Yellow -->
<body class="hold-transition fixed <?php echo $pia_skin_selected;?> sidebar-mini" <?php echo $BACKGROUND_IMAGE_PATCH;?> onLoad="show_pia_servertime();" > <body class="hold-transition fixed <?php echo $pia_skin_selected;?> sidebar-mini" onLoad="show_pia_servertime();" >
<!-- Site wrapper --> <!-- Site wrapper -->
<div class="wrapper"> <div class="wrapper">