From 697204fe7befb9581cab4b67cfc9f72a416e34e7 Mon Sep 17 00:00:00 2001 From: Bastard Operator Date: Sun, 28 Nov 2021 19:25:28 +0100 Subject: [PATCH] Added logout button on profile menu --- public/css/custom.css | 2 +- public/img/sv-logout.svg | 5 +++++ src/views/web/modal.php | 23 +++++++++++++++++++++-- 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 public/img/sv-logout.svg diff --git a/public/css/custom.css b/public/css/custom.css index 73e7e8b..6bbae33 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -42,7 +42,7 @@ a.btn-img .img { position: relative; top: -2px; } -@media (max-width: 370px) { +@media (max-width: 400px) { a.btn-img .img { margin: 0px !important; } a.btn-img .text { display: none !important; } } diff --git a/public/img/sv-logout.svg b/public/img/sv-logout.svg new file mode 100644 index 0000000..1b3c68d --- /dev/null +++ b/public/img/sv-logout.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/views/web/modal.php b/src/views/web/modal.php index 01871d5..9669f1c 100644 --- a/src/views/web/modal.php +++ b/src/views/web/modal.php @@ -12,9 +12,14 @@ margin: auto; background: #fff; border-radius: 2px; - padding: 1em; + padding: 2em; height: max-content; } +@media (max-width: 350px) { + #modals > div { + padding: 2em 1em !important; + } +}
+ +
+
+
+ + +
+

+
+ + +
+ +
@@ -67,7 +86,7 @@ const MODAL = { anchors[i].setAttribute('onclick', 'event.stopPropagation();'); } }, - hide: function(el) { + hide: function() { document.querySelector('#modals').style = 'display:none'; document.querySelector('#modals').className = ''; }