fixy fixy

This commit is contained in:
Michał Gdula 2022-09-15 17:35:06 +00:00
parent 8d291d0c7d
commit 67dedc60cc
4 changed files with 32 additions and 25 deletions

View file

@ -58,7 +58,7 @@
cursor: pointer; cursor: pointer;
} }
.sniffle-notification:not(:nth-of-type(1), :nth-of-type(2), :nth-of-type(3), :nth-of-type(4)) { .sniffle-notification:not(:nth-of-type(1), :nth-of-type(2), :nth-of-type(3), :nth-of-type(4), :nth-of-type(5)) {
display: none; display: none;
opacity: 0; opacity: 0;
} }
@ -71,24 +71,31 @@
.sniffle-notification:nth-of-type(2) { .sniffle-notification:nth-of-type(2) {
z-index: -1; z-index: -1;
transform: scale(0.95); transform: scale(0.95);
margin-top: -4.8rem; margin-top: -5rem;
opacity: 1; opacity: 1;
transition: transform 1.25s, opacity 0.5s; transition: transform 1.25s, opacity 0.5s;
} }
.sniffle-notification:nth-of-type(3) { .sniffle-notification:nth-of-type(3) {
z-index: -2; z-index: -2;
transform: scale(0.9); transform: scale(0.9);
margin-top: -4.8rem; margin-top: -5rem;
opacity: 1; opacity: 1;
transition: transform 1.5s, opacity 0.75s; transition: transform 1.5s, opacity 0.75s;
} }
.sniffle-notification:nth-of-type(4) { .sniffle-notification:nth-of-type(4) {
z-index: -3; z-index: -3;
transform: scale(0.85); transform: scale(0.85);
margin-top: -4.8rem; margin-top: -5rem;
opacity: 0; opacity: 1;
transition: transform 1.75s, opacity 1s; transition: transform 1.75s, opacity 1s;
} }
.sniffle-notification:nth-of-type(5) {
z-index: -4;
transform: scale(0.80);
margin-top: -5rem;
opacity: 0;
transition: transform 2s, opacity 1.25s;
}
/* /*
Notification content Root Notification content Root

View file

@ -64,7 +64,7 @@
<p><?php echo $log['action']; ?></p> <p><?php echo $log['action']; ?></p>
<?php <?php
$log_time = new DateTime($log['time']); $log_time = new DateTime($log['time']);
echo "<p>" . $log_time->format('d/m/Y H:i:s T') . "<br>" . $diff->time($log['time']) . "</p>"; echo "<p>" . $log_time->format('Y-m-d H:i:s T') . " | " . $diff->time($log['time']) . "</p>";
?> ?>
</div> </div>
<?php <?php
@ -91,7 +91,7 @@
<p><?php echo $ban['length']; ?> mins</p> <p><?php echo $ban['length']; ?> mins</p>
<?php <?php
$log_time = new DateTime($ban['time']); $log_time = new DateTime($ban['time']);
echo "<p>" . $log_time->format('d/m/Y H:i:s T') . "<br>" . $diff->time($ban['time']) . "</p>"; echo "<p>" . $log_time->format('Y-m-d H:i:s T') . "<br>" . $diff->time($ban['time']) . "</p>";
?> ?>
</div> </div>
<?php <?php

View file

@ -633,8 +633,8 @@ nav .btn {
.logs { .logs {
width: 100%; width: 100%;
max-height: 20rem; max-height: 21rem;
min-height: 5rem; min-height: auto;
padding: 0; padding: 0;
overflow-y: scroll; overflow-y: scroll;
display: flex; display: flex;
@ -662,19 +662,19 @@ nav .btn {
width: 5%; width: 5%;
} }
.log > *:nth-child(2) { .log > *:nth-child(2) {
width: 25%; width: 17%;
} }
.log > *:nth-child(3) { .log > *:nth-child(3) {
width: 50%; width: 38%;
} }
.log > *:nth-child(4) { .log > *:nth-child(4) {
width: 20%; width: 40%;
} }
.bans { .bans {
width: 100%; width: 100%;
max-height: 20rem; max-height: 21rem;
min-height: 5rem; min-height: auto;
padding: 0; padding: 0;
overflow-y: scroll; overflow-y: scroll;
display: flex; display: flex;
@ -702,16 +702,16 @@ nav .btn {
width: 5%; width: 5%;
} }
.ban > *:nth-child(2) { .ban > *:nth-child(2) {
width: 20%; width: 17%;
} }
.ban > *:nth-child(3) { .ban > *:nth-child(3) {
width: 45%; width: 38%;
} }
.ban > *:nth-child(4) { .ban > *:nth-child(4) {
width: 10%; width: 10%;
} }
.ban > *:nth-child(5) { .ban > *:nth-child(5) {
width: 20%; width: 30%;
} }
.perm { .perm {

View file

@ -349,7 +349,7 @@
.logs { .logs {
width: 100%; width: 100%;
max-height: 20rem; min-height: 5rem; max-height: 21rem; min-height: auto;
padding: 0; padding: 0;
@ -382,20 +382,20 @@
width: 5%; width: 5%;
} }
&:nth-child(2) { &:nth-child(2) {
width: 25%; width: 17%;
} }
&:nth-child(3) { &:nth-child(3) {
width: 50%; width: 38%;
} }
&:nth-child(4) { &:nth-child(4) {
width: 20%; width: 40%;
} }
} }
} }
.bans { .bans {
width: 100%; width: 100%;
max-height: 20rem; min-height: 5rem; max-height: 21rem; min-height: auto;
padding: 0; padding: 0;
@ -428,16 +428,16 @@
width: 5%; width: 5%;
} }
&:nth-child(2) { &:nth-child(2) {
width: 20%; width: 17%;
} }
&:nth-child(3) { &:nth-child(3) {
width: 45%; width: 38%;
} }
&:nth-child(4) { &:nth-child(4) {
width: 10%; width: 10%;
} }
&:nth-child(5) { &:nth-child(5) {
width: 20%; width: 30%;
} }
} }
} }