mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
consolidate background-image css
This commit is contained in:
@@ -212,6 +212,12 @@
|
|||||||
{
|
{
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body
|
||||||
|
{
|
||||||
|
background-image: url('img/background.png');
|
||||||
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
Customized Main Menu
|
Customized Main Menu
|
||||||
----------------------------------------------------------------------------- */
|
----------------------------------------------------------------------------- */
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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\');');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user