From 771799ba18bba1e8a0b24bc6449d40f18731edb6 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Tue, 20 Sep 2022 13:06:41 +0000 Subject: [PATCH] Password confirmation on account deletion --- Flyout/flyout.css | 8 +++- Sniffle/sniffle.css | 10 +++-- account.php | 63 ++++++++++++++++++++--------- app/account/account.php | 90 ++++++++++++++++++++++++++++++++++++----- ui/header.php | 1 - 5 files changed, 137 insertions(+), 35 deletions(-) diff --git a/Flyout/flyout.css b/Flyout/flyout.css index d1eb7f8..da03dbe 100644 --- a/Flyout/flyout.css +++ b/Flyout/flyout.css @@ -10,7 +10,7 @@ position: fixed; z-index: 999; background-color: var(--bg); - backdrop-filter: blur(8px); + backdrop-filter: blur(15px); opacity: 0; @@ -67,3 +67,9 @@ .flyout-actionbox * * * { width: auto; } +.flyout-actionbox > button { + margin-bottom: 0.5rem; +} +.flyout-actionbox > button > * { + width: auto; +} diff --git a/Sniffle/sniffle.css b/Sniffle/sniffle.css index 10b9686..576beae 100644 --- a/Sniffle/sniffle.css +++ b/Sniffle/sniffle.css @@ -15,7 +15,7 @@ .sniffle { margin: 0; padding: 0 1rem; - max-width: 621px; width: calc(100% - 1rem); + max-width: 569px; width: calc(100% - 1rem); top: 0.5rem; left: 50%; transform: translateX(-50%); @@ -31,7 +31,7 @@ and a text div .sniffle-content */ .sniffle-notification { - margin-bottom: 0.5rem; padding: 0.5rem; + margin-bottom: 0.5rem; padding: 0; max-width: calc(100% - 1rem); min-height: 2.5rem; @@ -97,7 +97,7 @@ And to prevent text from overflowing the notification */ .sniffle-content { - margin: 0 auto; + margin: 0 auto; padding: 0.5rem; width: calc(100% - 3.5rem); flex-direction: column; flex-wrap: wrap; @@ -109,12 +109,14 @@ Notification icon/image */ .sniffle-img { - margin-right: 1rem; + padding: 0 0.5rem; max-width: 2.5rem; width: auto; height: auto; object-fit: contain; + + background-color: #15151533; } /* Notification header diff --git a/account.php b/account.php index bcee8ad..41e0df3 100644 --- a/account.php +++ b/account.php @@ -26,40 +26,63 @@

Resetting your password regularly is a good way of keeping your account safe

Reset Password
-

Don't leave! I'm with the science team!

- Logout -

Be carefull!

+
+

Don't leave! I'm with the science team!

+ Logout + + + + + + + + - - + + + + -<?php echo $user_settings['website']['name']; ?>