summaryrefslogtreecommitdiff
path: root/includes/components/header.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/components/header.inc')
-rw-r--r--includes/components/header.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/includes/components/header.inc b/includes/components/header.inc
index 7c4cfc8..06b9bdb 100644
--- a/includes/components/header.inc
+++ b/includes/components/header.inc
@@ -218,3 +218,32 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
}
</style>
<?php endif; ?>
+
+<?php if (isset($_GET["mini"]) || str_contains($_SERVER["HTTP_USER_AGENT"], "+ColdHazeDesktop")) {
+ ?>
+ <style>
+ #navigation-pane, #title-bar, #footer, #titlebar-separator, #mobile-navigation, #global-search-container {
+ display: none !important;
+ }
+
+ body {
+ margin-left: 0 !important;
+ }
+ </style>
+<?php } if (str_contains($_SERVER["HTTP_USER_AGENT"], "+ColdHazeDesktop")) { ?>
+<style>
+ body {
+ background: #222 !important;
+ }
+
+ .container {
+ margin-left: 10px;
+ margin-right: 10px;
+ max-width: calc(100vw - 20px);
+ }
+
+ h2 {
+ display: none;
+ }
+</style>
+<?php } ?>