summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/components/2023ui.inc143
-rw-r--r--includes/components/details.inc3
-rw-r--r--includes/components/emergency.inc2
-rw-r--r--includes/components/footer.inc2
-rw-r--r--includes/components/header.inc92
-rw-r--r--includes/components/pleasure.inc2
-rw-r--r--includes/components/sysbanner.inc3
-rw-r--r--includes/components/wakeup.inc2
-rw-r--r--includes/fragments/member.inc4
-rw-r--r--includes/util/homepage.inc2
10 files changed, 216 insertions, 39 deletions
diff --git a/includes/components/2023ui.inc b/includes/components/2023ui.inc
index cd37e36..b69f0f5 100644
--- a/includes/components/2023ui.inc
+++ b/includes/components/2023ui.inc
@@ -1,18 +1,106 @@
+<style>
+ .new-homepage-link {
+ background-color: rgba(0, 0, 0, .01) !important;
+ }
+
+ .new-homepage-link:hover {
+ background-color: rgba(0, 0, 0, .05) !important;
+ }
+
+ .new-homepage-link:active {
+ background-color: rgba(0, 0, 0, .1) !important;
+ }
+
+ .new-homepage-system-list {
+ background: linear-gradient(180deg, rgba(216,53,124,0.1) 0%, rgba(227,65,55,0.1) 7%, rgba(231,155,96,0.1) 14%, rgba(223,191,78,0.1) 21%, rgba(203,207,117,0.1) 28%, rgba(108,224,154,0.1) 35%, rgba(106,228,205,0.1) 42%, rgba(100,217,234,0.1) 49%, rgba(83,182,238,0.1) 56%, rgba(74,158,234,0.1) 63%, rgba(164,137,238,0.1) 70%, rgba(211,142,240,0.1) 77%, rgba(230,122,238,0.1) 84%, rgba(227,113,196,0.1) 91%);
+ }
+
+ #banner-lower, #timeline-container {
+ backdrop-filter: none !important;
+ background-color: var(--palette-2) !important;
+ }
+
+ #hpd-legacy {
+ display: none !important;
+ }
+
+ #system-page, #member-page {
+ background-color: var(--palette-2) !important;
+ backdrop-filter: none !important;
+ -webkit-backdrop-filter: none !important;
+ }
+
+ @media (max-width: 926px) {
+ .mobile-hide {
+ display: none !important;
+ }
+
+ .mobile-icon-container-right {
+ margin-right: 0 !important;
+ }
+
+ #menu-bar {
+ grid-template-columns: 1fr max-content 1fr !important;
+ left: 20px !important;
+ }
+
+ #side-bar-systems {
+ display: none !important;
+ }
+
+ #side-bar-options {
+ margin: 0 !important;
+ }
+
+ #side-bar {
+ bottom: 0 !important;
+ right: 0 !important;
+ width: 100% !important;
+ height: 64px;
+ top: unset !important;
+ z-index: 9 !important;
+ align-items: center;
+ }
+
+ #app {
+ left: 0 !important;
+ right: 0 !important;
+ bottom: 64px;
+ }
+
+ .ui2023-side-bar-item:not(.mobile-hide) {
+ display: inline-block !important;
+ }
+
+ .mobile-show {
+ display: inline-block !important;
+ }
+
+ #app {
+ z-index: -1;
+ }
+
+ body:not(.modal-open) #menu-bar {
+ z-index: 9999;
+ }
+ }
+</style>
+
<div id="menu-bar" style="position: fixed; top: 0; left: 101px; right: 20px; height: 52px; display: grid; grid-template-columns: 1fr 1fr 1fr;">
<div style="display: grid; grid-template-columns: max-content 1fr;">
<div style="height: 52px; display: flex; align-items: center;">
<a href="/" style="color: inherit; text-decoration: inherit;">
- <img src="/assets/logo/newlogo-ng.png" style="width: 32px;">
+ <img class="antialias" src="/assets/logo/newlogo-ng.png" style="width: 32px;">
<span style="margin-left: 5px; vertical-align: middle; position: relative; top: -1px; font-weight: bold;">Cold Haze</span>
<span data-bs-toggle="tooltip" data-bs-placement="bottom" title="This is the new Cold Haze experience and it is currently experimental" class="badge bg-warning" style="margin-left: 5px; vertical-align: middle; position: relative; top: -1px; font-weight: bold;">Beta</span>
</a>
</div>
<div style="display: flex; align-items: center;">
<?php global $isLowerLoggedIn; global $isLoggedIn; global $_PROFILE; if ($isLoggedIn || $isLowerLoggedIn): ?>
- <div style="margin-left: auto; margin-right: auto;">
- <a data-bs-toggle="tooltip" data-bs-placement="bottom" title="Alerts" class="ui2023-side-bar-item" href="/-/alerts" style="padding: 10px; height: 48px; width: 48px; display: inline-block; border-radius: 999px;">
+ <div class="mobile-icon-container mobile-icon-container-left" style="margin-left: auto; margin-right: auto;">
+ <a data-bs-toggle="tooltip" data-bs-placement="bottom" title="Alerts" class="ui2023-side-bar-item mobile-hide" href="/-/alerts" style="padding: 10px; height: 48px; width: 48px; display: inline-block; border-radius: 999px;">
<img src="<?= icon("alerts") ?>" style="max-width: 28px; max-height: 28px;">
- </a><a data-bs-toggle="tooltip" data-bs-placement="bottom" title="Member lists" class="ui2023-side-bar-item" href="/-/lists" style="padding: 10px; height: 48px; width: 48px; display: inline-block; border-radius: 999px;">
+ </a><a data-bs-toggle="tooltip" data-bs-placement="bottom" title="Member lists" class="ui2023-side-bar-item mobile-hide" href="/-/lists" style="padding: 10px; height: 48px; width: 48px; display: inline-block; border-radius: 999px;">
<img src="<?= icon("lists") ?>" style="max-width: 28px; max-height: 28px;">
</a>
</div>
@@ -27,12 +115,30 @@
<div style="display: grid; grid-template-columns: 1fr max-content;">
<div style="display: flex; align-items: center;">
<?php global $isLowerLoggedIn; global $isLoggedIn; global $_PROFILE; if ($isLoggedIn || $isLowerLoggedIn): ?>
- <div style="margin-left: auto; margin-right: auto;">
- <a data-bs-toggle="tooltip" data-bs-placement="bottom" title="Jobs" class="ui2023-side-bar-item" href="/-/jobs" style="padding: 10px; height: 48px; width: 48px; display: inline-block; border-radius: 999px;">
+ <div style="margin-left: auto; margin-right: auto;" class="mobile-icon-container mobile-icon-container-right">
+ <a data-bs-toggle="tooltip" data-bs-placement="bottom" title="Jobs" class="ui2023-side-bar-item mobile-hide" href="/-/jobs" style="padding: 10px; height: 48px; width: 48px; display: inline-block; border-radius: 999px;">
<img src="<?= icon("jobs") ?>" style="max-width: 28px; max-height: 28px;">
- </a><a data-bs-toggle="tooltip" data-bs-placement="bottom" title="Account" class="ui2023-side-bar-item" href="/-/account" style="padding: 10px; height: 48px; width: 48px; display: inline-block; border-radius: 999px;">
+ </a><a data-bs-toggle="tooltip" data-bs-placement="bottom" title="Account" class="ui2023-side-bar-item mobile-hide" href="/-/account" style="padding: 10px; height: 48px; width: 48px; display: inline-block; border-radius: 999px;">
<img src="<?= icon("sessions") ?>" style="max-width: 28px; max-height: 28px;">
- </a>
+ </a><div class="ui2023-side-bar-item mobile-show dropdown" style="padding: 10px; height: 48px; width: 48px; display: none; border-radius: 999px;">
+ <a data-bs-toggle="dropdown" href="#">
+ <img src="<?= icon("menu") ?>" style="max-width: 28px; max-height: 28px;">
+ </a>
+ <ul class="dropdown-menu">
+ <li><a class="dropdown-item" href="/-/alerts">
+ <img src="<?= icon("alerts") ?>" style="vertical-align: middle; width: 24px; height: 24px;"><span style="vertical-align: middle; margin-left: 5px;">Alerts</span>
+ </a></li>
+ <li><a class="dropdown-item" href="/-/lists">
+ <img src="<?= icon("lists") ?>" style="vertical-align: middle; width: 24px; height: 24px;"><span style="vertical-align: middle; margin-left: 5px;">Lists</span>
+ </a></li>
+ <li><a class="dropdown-item" href="/-/jobs">
+ <img src="<?= icon("jobs") ?>" style="vertical-align: middle; width: 24px; height: 24px;"><span style="vertical-align: middle; margin-left: 5px;">Jobs</span>
+ </a></li>
+ <li><a class="dropdown-item" href="/-/account">
+ <img src="<?= icon("sessions") ?>" style="vertical-align: middle; width: 24px; height: 24px;"><span style="vertical-align: middle; margin-left: 5px;">Account</span>
+ </a></li>
+ </ul>
+ </div>
</div>
<?php endif; ?>
</div>
@@ -40,16 +146,16 @@
<?php global $isLowerLoggedIn; global $isLoggedIn; global $_PROFILE; if ($isLoggedIn || $isLowerLoggedIn): ?>
<a href="https://account.equestria.dev/hub/users/<?= $_PROFILE["id"] ?>" target="_blank" style="color: inherit; text-decoration: inherit;">
<?php $fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . ($_PROFILE["login"] === "raindrops" ? "gdapd" : ($_PROFILE["login"] === "cloudburst" ? "ynmuc" : "other")) . "/fronters.json"), true); if (isset($fronters["members"][0])): ?>
- <span style="margin-right: 5px; vertical-align: middle; margin-top: -2px;"><?= $fronters["members"][0]["display_name"] ?? $fronters["members"][0]["name"] ?></span>
+ <span class="mobile-hide" style="margin-right: 5px; vertical-align: middle; margin-top: -2px;"><?= $fronters["members"][0]["display_name"] ?? $fronters["members"][0]["name"] ?></span>
<img src="<?= getAsset(($_PROFILE["login"] === "raindrops" ? "gdapd" : ($_PROFILE["login"] === "cloudburst" ? "ynmuc" : "other")), $fronters["members"][0]["id"]) ?>" style="width: 32px; height: 32px; border-radius: 999px; background-color: var(--palette-2);">
<?php else: ?>
- <span style="margin-right: 5px; vertical-align: middle; margin-top: -2px;"><?= $_PROFILE["name"] ?></span>
- <img src="https://account.equestria.dev/hub/api/rest/avatar/<?= $_PROFILE["id"] ?>?dpr=2&size=32" style="width: 32px; height: 32px; border-radius: 999px; background-color: var(--palette-2);">
+ <span class="mobile-hide" style="margin-right: 5px; vertical-align: middle; margin-top: -2px;"><?= $_PROFILE["name"] ?></span>
+ <img class="antialias" src="https://account.equestria.dev/hub/api/rest/avatar/<?= $_PROFILE["id"] ?>?dpr=2&size=32" style="width: 32px; height: 32px; border-radius: 999px; background-color: var(--palette-2);">
<?php endif; ?>
</a>
<?php else: ?>
<a href="/login" style="color: inherit; text-decoration: inherit;">
- <span style="margin-right: 5px; vertical-align: middle; margin-top: -2px;">Log in</span>
+ <span class="mobile-hide" style="margin-right: 5px; vertical-align: middle; margin-top: -2px;">Log in</span>
<img src="<?= icon("login", false) ?>" class="light-only" style="width: 24px; height: 24px; margin: 4px;">
<img src="<?= icon("login", true) ?>" class="dark-only" style="width: 24px; height: 24px; margin: 4px;">
</a>
@@ -74,27 +180,28 @@
<div id="side-bar" style="position: fixed; top: 62px; bottom: 20px; left: 0; width: 64px; display: flex; justify-content: center;">
<div>
- <div style="background-color: var(--palette-4); height: max-content; border-radius: 999px;">
+ <div id="side-bar-systems" style="background-color: var(--palette-4); height: max-content; border-radius: 999px;">
<a data-bs-toggle="tooltip" data-bs-placement="right" title="Raindrops System" class="ui2023-side-bar-system" href="/raindrops" style="padding: 8px; height: 48px; width: 48px; display: block; border-top-left-radius: 999px; border-top-right-radius: 999px;">
- <img src="<?= getAsset("gdapd") ?>" style="max-width: 32px; max-height: 32px;">
+ <img class="antialias" class="antialias" src="<?= getAsset("gdapd") ?>" style="max-width: 32px; max-height: 32px;">
</a>
<?php global $app; if ($isLoggedIn || $isLowerLoggedIn): ?>
<a data-bs-toggle="tooltip" data-bs-placement="right" title="<?= $app["other"]["name"] ?>" class="ui2023-side-bar-system" href="/<?= $app["other"]["slug"] ?>" style="padding: 8px; height: 48px; width: 48px; display: block;">
- <img src="<?= getAsset("other") ?>" style="max-width: 32px; max-height: 32px;">
+ <img class="antialias" class="antialias" src="<?= getAsset("other") ?>" style="max-width: 32px; max-height: 32px;">
</a>
<?php endif; ?>
<a data-bs-toggle="tooltip" data-bs-placement="right" title="Cloudburst System" class="ui2023-side-bar-system" href="/cloudburst" style="padding: 8px; height: 48px; width: 48px; display: block; border-bottom-left-radius: 999px; border-bottom-right-radius: 999px;">
- <img src="<?= getAsset("ynmuc") ?>" style="max-width: 32px; max-height: 32px;">
+ <img class="antialias" src="<?= getAsset("ynmuc") ?>" style="max-width: 32px; max-height: 32px;">
</a>
</div>
- <div style="margin-top: 20px;">
+ <div id="side-bar-options" style="margin-top: 20px;">
<a data-bs-toggle="tooltip" data-bs-placement="right" title="Relations" class="ui2023-side-bar-item" href="/-/relations" style="padding: 10px; height: 48px; width: 48px; display: block; border-radius: 999px;">
<img src="<?= icon("relations") ?>" style="max-width: 28px; max-height: 28px;">
</a>
<?php if ($isLowerLoggedIn || $isLoggedIn): ?>
- <div style="margin: 10px 0; width: 48px; height: 2px; background-color: var(--palette-2);"></div>
+ <div class="mobile-hide" style="margin: 10px 0; width: 48px; height: 2px; background-color: var(--palette-2);"></div>
+ <div class="mobile-show" style="display: none; margin: 0 10px; height: 48px; width: 2px; background-color: var(--palette-2); vertical-align: middle;"></div>
<a data-bs-toggle="tooltip" data-bs-placement="right" title="Schedules" class="ui2023-side-bar-item" href="/-/schedules" style="padding: 10px; height: 48px; width: 48px; display: block; border-radius: 999px;">
<img src="<?= icon("schedule") ?>" style="max-width: 28px; max-height: 28px;">
diff --git a/includes/components/details.inc b/includes/components/details.inc
index 271978e..39f8c21 100644
--- a/includes/components/details.inc
+++ b/includes/components/details.inc
@@ -119,9 +119,6 @@
<span title="Consent is absolutely required every time when having sex with this pony." data-bs-toggle="tooltip">Required</span>
<?php endif; ?>
</span>
- <?php if (!((isset($age) && $age >= 15 && $metadata["little"] !== 1) || (!isset($age) && $metadata["little"] !== 1))): ?>
- <img src="/assets/icons/warning.svg" style="width: 16px;" title="Although this pony is able to engage in sexual relationships, this pony is not allowed to have sex with ponies who are over 15 years old." data-bs-toggle="tooltip">
- <?php endif; ?>
</div>
<?php endif; ?>
<div>
diff --git a/includes/components/emergency.inc b/includes/components/emergency.inc
index 2de7134..0a1401c 100644
--- a/includes/components/emergency.inc
+++ b/includes/components/emergency.inc
@@ -10,6 +10,7 @@
<p style="text-align:center;margin-top:10px;">Sending next notification <b><span id="next-notification">never</span></b></p>
<style>
+ <?php global $use2023UI; if (!$use2023UI): ?>
.modal-header {
border-bottom: 1px solid #353738;
}
@@ -22,6 +23,7 @@
.btn-close {
filter: invert(1);
}
+ <?php endif; ?>
#btn-on.disabled, #btn-off.disabled {
opacity: .5;
diff --git a/includes/components/footer.inc b/includes/components/footer.inc
index 26114a5..a348ce4 100644
--- a/includes/components/footer.inc
+++ b/includes/components/footer.inc
@@ -24,7 +24,7 @@ global $use2023UI;
?>
© 2022-<?= date("Y") ?> <a href="https://equestria.dev" target="_blank" class="text-muted"><?= $lang["footer"]["copyright"] ?></a> · build <?= $version["build"] ?>.<?= $version["revision"] ?>, took <?= round($time * 1000, 2) ?> ms
- <?php global $use2023UI; if (($isLoggedIn || $isLowerLoggedIn) && !$use2023UI && isset($_COOKIE["enable2023UIcta"]) && $_COOKIE["enable2023UIcta"] === "yes") { ?>
+ <?php global $use2023UI; global $isLoggedIn; global $isLowerLoggedIn; global $_PROFILE; if (($isLoggedIn || $isLowerLoggedIn) && !$use2023UI && ((isset($_COOKIE["enable2023UIcta"]) && $_COOKIE["enable2023UIcta"] === "yes") || ($_PROFILE["login"] === "raindrops"))) { ?>
<br>
<a class="text-muted" href="#" data-bs-toggle="modal" data-bs-target="#new-ui-cta" onclick="newShape();">Enable Cold Haze's experimental new shape</a>
<?php } ?>
diff --git a/includes/components/header.inc b/includes/components/header.inc
index fdae55a..548716d 100644
--- a/includes/components/header.inc
+++ b/includes/components/header.inc
@@ -244,15 +244,21 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
$selectedPalette = $palettes["default"];
- global $memberID; if (isset($memberID)) {
- $member = getMemberWithoutSystem($memberID);
+ global $memberID; global $systemID; if (isset($memberID) || isset($systemID)) {
+ if (isset($memberID)) {
+ $member = getMemberWithoutSystem($memberID);
+ $color = $member["color"];
+ } else {
+ $systemDataForColor = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/general.json"), true);
+ $color = $systemDataForColor["color"] ?? "000000";
+ }
if (isset($_GET["debug"])) {
ob_clean();
echo("<pre>");
echo("Color difference debug\n======================\n\n");
- echo("Member color: #" . $member["color"] . "\n\n");
+ echo("Color: #" . $member["color"] . "\n\n");
}
$sr = hexdec(substr($member["color"], 0, 2));
@@ -388,6 +394,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
}
.dropdown-menu {
+ background-color: #<?= $palette[1] ?> !important;
--bs-dropdown-bg: #<?= $palette[1] ?> !important;
--bs-dropdown-link-color: #<?= $palette[6] ?> !important;
--bs-dropdown-link-disabled-color: #<?= $palette[6] ?>77 !important;
@@ -397,6 +404,24 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
--bs-dropdown-link-active-color: #<?= $palette[6] ?> !important;
}
+ .dropdown-item {
+ color: #<?= $palette[6] ?> !important;
+ }
+
+ .dropdown-item:hover {
+ color: #<?= $palette[6] ?> !important;
+ background-color: #<?= $palette[3] ?> !important;
+ }
+
+ .dropdown-item:active {
+ color: #<?= $palette[6] ?> !important;
+ background-color: #<?= $palette[6] ?> !important;
+ }
+
+ .dropdown-item.disabled {
+ color: #<?= $palette[6] ?>77 !important;
+ }
+
.coins {
color: #<?= $palette[6] ?> !important;
background-color: #<?= $palette[1] ?> !important;
@@ -425,10 +450,6 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
color: #<?= $palette[0] ?>77 !important;
}
- .dropdown-item:active span, .dropdown-item:active img {
- filter: invert(1);
- }
-
.list-group, .list-group-item, .list-group-item-action {
--bs-list-group-color: var(--bs-body-color) !important;
--bs-list-group-action-color: var(--bs-body-color) !important;
@@ -463,6 +484,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
--bs-alert-border-color: var(--bs-body-color);
}
+ .alert-danger .btn-close, .alert-success .btn-close, .alert-warning .btn-close {
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23<?= $palette[0] ?>'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat
+ }
+
.alert-danger, .alert-success, .alert-warning, .list-group-item-warning {
--bs-alert-color: var(--bs-body-bg) !important;
--bs-alert-bg: #<?= $palette[9] ?> !important;
@@ -545,14 +570,37 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
--bs-gradient: none;
}
- .form-control, .form-control:focus, .form-select, .form-select:focus {
+ .progress {
+ background-color: #<?= $palette[2] ?> !important;
+ }
+
+ .progress-bar.bg-success {
+ background-color: #<?= $palette[9] ?> !important;
+ }
+
+ .progress-bar.bg-danger {
+ background-color: #<?= $palette[7] ?> !important;
+ }
+
+ .card {
+ background-color: #<?= $palette[2] ?> !important;
+ border-color: #<?= $palette[5] ?> !important;
+ }
+
+ .form-control, .form-control:focus, .form-select, .form-select:focus, .form-check-input, .form-check-input:focus {
color: var(--bs-body-color);
- background-color: #<?= $palette[2] ?>;
- border-color: #<?= $palette[3] ?>;
+ background-color: #<?= $palette[2] ?> !important;
+ border-color: #<?= $palette[3] ?> !important;
+ }
+
+ .form-check-input:checked, .form-check-input:checked:focus {
+ background-color: #<?= $palette[9] ?> !important;
+ border-color: #<?= $palette[9] ?> !important;
}
- .form-control:focus, .form-select:focus {
+ .form-control:focus, .form-select:focus, .form-check-input:focus {
box-shadow: 0 0 0 0.25rem rgba(<?= rgb($palette[9]) ?>, .25);
+ transition: box-shadow 200ms;
}
.form-control::placeholder, .form-select::placeholder {
@@ -569,7 +617,24 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
}
.btn-close {
- background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23<?= $palette[6] ?>'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23<?= $palette[6] ?>'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
+ opacity: 1 !important;
+ }
+
+ .antialias, #new-homepage img, #hpd-other img, #hpd-raindrops img, #hpd-cloudburst img, .ck img, #system-info img, #member-card img {
+ image-rendering: auto !important;
+ }
+
+ #member-relations img {
+ image-rendering: pixelated !important;
+ }
+
+ .btn-close:hover {
+ opacity: .75 !important;
+ }
+
+ .btn-close:active {
+ opacity: .5 !important;
}
.ck-editor {
@@ -631,7 +696,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
if (
(($isLoggedIn || $isLowerLoggedIn) && !$use2023UI && isset($_COOKIE["enable2023UIcta"]) && $_COOKIE["enable2023UIcta"] === "yes") ||
- (isset($_COOKIE["force2023UIcta"]) && $_COOKIE["force2023UIcta"] === "yes" && !$use2023UI)
+ (isset($_COOKIE["force2023UIcta"]) && $_COOKIE["force2023UIcta"] === "yes" && !$use2023UI) ||
+ (($isLoggedIn || $isLowerLoggedIn) && isset($_PROFILE) && $_PROFILE["login"] === "raindrops" && !$use2023UI)
) { ?>
<div class="modal fade" id="new-ui-cta">
<div class="modal-dialog">
diff --git a/includes/components/pleasure.inc b/includes/components/pleasure.inc
index b9f9cd0..5749bd7 100644
--- a/includes/components/pleasure.inc
+++ b/includes/components/pleasure.inc
@@ -69,6 +69,7 @@
</script>
<style>
+ <?php global $use2023UI; if (!$use2023UI): ?>
.modal-header {
border-bottom: 1px solid #353738;
}
@@ -81,6 +82,7 @@
.btn-close {
filter: invert(1);
}
+ <?php endif; ?>
#btn-on.disabled, #btn-off.disabled {
opacity: .5;
diff --git a/includes/components/sysbanner.inc b/includes/components/sysbanner.inc
index 2dd1dd4..a97169a 100644
--- a/includes/components/sysbanner.inc
+++ b/includes/components/sysbanner.inc
@@ -66,12 +66,13 @@ $pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pa
setInterval(refreshTimeline, 10000);
refreshTimeline();
</script>
+ <?php global $use2023UI; ?>
<div style="display:grid;grid-template-columns: repeat(2, 1fr);">
<div style="display: flex; align-items: center; justify-content: center; text-align: center;">
Last switch&nbsp;<span data-bs-toggle="tooltip" title="<?= date("D j M Y, G:i:s (e)", strtotime(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/fronters.json"), true)["timestamp"])) ?>"><?= timeAgo(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/fronters.json"), true)["timestamp"]) ?></span>
</div>
<a title="<?= $pages["s:history"]["name"][$lang["_name"]] ?>" data-bs-toggle="tooltip" style="display:inline-block;padding:5px 10px;text-align: center" class="system-action tooltip-nohelp" href="/<?= $system ?>/-/history">
- <img src="/assets/icons/history.svg" style="vertical-align: middle;height: 24px;width: 24px;filter: invert(1)" alt="">
+ <img src="<?= $use2023UI ? icon("history") : "/assets/icons/history.svg" ?>" style="vertical-align: middle;height: 24px;width: 24px;" alt="">
<span style="vertical-align: middle;" class="list-separator-desktop"><?= $pages["s:history"]["name"][$lang["_name"]] ?></span>
</a>
<div></div>
diff --git a/includes/components/wakeup.inc b/includes/components/wakeup.inc
index cc54821..994bbdc 100644
--- a/includes/components/wakeup.inc
+++ b/includes/components/wakeup.inc
@@ -10,6 +10,7 @@
<p style="text-align:center;margin-top:10px;">Sending next notification <b><span id="next-notification">never</span></b></p>
<style>
+ <?php global $use2023UI; if (!$use2023UI): ?>
.modal-header {
border-bottom: 1px solid #353738;
}
@@ -22,6 +23,7 @@
.btn-close {
filter: invert(1);
}
+ <?php endif; ?>
#btn-on.disabled, #btn-off.disabled {
opacity: .5;
diff --git a/includes/fragments/member.inc b/includes/fragments/member.inc
index 7672529..e927fd4 100644
--- a/includes/fragments/member.inc
+++ b/includes/fragments/member.inc
@@ -163,10 +163,10 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/ponies/" . $memberID . ".pn
<b><input onkeyup="updateDesignName('<?= $id ?>');" maxlength="100" class="input-inherit" value="<?= $design["name"] ?>" id="design-<?= $id ?>-name"></b><br><input onkeyup="updateDesignNote('<?= $id ?>');" maxlength="100" class="input-inherit" value="<?= $design["note"] ?>" id="design-<?= $id ?>-note">
</div>
</div>
- <?php endif; endforeach; ?>
+ <?php endif; endforeach; global $use2023UI; ?>
<div onclick="uploadNewDesign();" style="cursor: pointer; display: flex; height: 256px; align-items: center; justify-content: center; width: 64px;">
- <img src="/assets/icons/add.svg" style="filter: invert(1); opacity: .5; width: 64px;">
+ <img src="<?= $use2023UI ? icon("add") : "/assets/icons/add.svg" ?>" style="filter: invert(1); opacity: .5; width: 64px;">
</div>
</div>
</div>
diff --git a/includes/util/homepage.inc b/includes/util/homepage.inc
index 1846cba..497fe2e 100644
--- a/includes/util/homepage.inc
+++ b/includes/util/homepage.inc
@@ -10,7 +10,7 @@ function newHomepage($id, $page, $title) {
?>
<div class="new-homepage-system" id="new-homepage-system-<?= $id ?>">
<?php if ($title): ?>
- <a href="/<?= $page ?>" style="height: 48px; display: flex; align-items: center; justify-content: center; border-top-left-radius: 10px; border-top-right-radius: 10px; text-align: center; text-decoration: none; color: white; background-color: #<?= $system["color"] ?? "000000" ?>55" class="new-homepage-system-title" id="new-homepage-system-<?= $id ?>-title">
+ <a href="/<?= $page ?>" style="height: 48px; display: flex; align-items: center; justify-content: center; border-top-left-radius: 10px; border-top-right-radius: 10px; text-align: center; text-decoration: none; color: white; background-color: #<?= $system["color"] ?? "000000" ?>55; box-shadow: 0 20px 20px 0 #<?= $system["color"] ?? "000000" ?>55;" class="new-homepage-system-title" id="new-homepage-system-<?= $id ?>-title">
<div>
<img src="<?= getAsset($id) ?>" style="border-radius: 5px;width: 48px; vertical-align: middle;"><b style="vertical-align: middle; margin-left: 5px;"><?= $system["name"] ?></b>
</div>