From 11a9315f0d67b84025af82683e40f33b66f8109a Mon Sep 17 00:00:00 2001 From: andryyy Date: Fri, 17 Apr 2020 16:56:28 +0200 Subject: [PATCH] [Web] Minor style fixes, Pushover UI fixes --- data/web/css/site/edit.css | 11 ++++ data/web/css/site/user.css | 11 ++++ data/web/edit.php | 40 ++++++------- data/web/js/site/edit.js | 1 + data/web/js/site/user.js | 1 + data/web/lang/lang.de.json | 2 + data/web/lang/lang.en.json | 2 + data/web/mailbox.php | 20 +++---- data/web/user.php | 114 +++++++++++++++++++------------------ 9 files changed, 117 insertions(+), 85 deletions(-) diff --git a/data/web/css/site/edit.css b/data/web/css/site/edit.css index fb61b0c9..ac3a430c 100644 --- a/data/web/css/site/edit.css +++ b/data/web/css/site/edit.css @@ -30,3 +30,14 @@ table.footable>tbody>tr.footable-empty>td { .inputMissingAttr { border-color: #FF4136; } +.rotate { + -moz-transition: all 0.3s linear; + -webkit-transition: all 0.3s linear; + transition: all 0.3s linear; +} +.rotate.animation { + -ms-transform:rotateX(180deg); + -moz-transform:rotateX(180deg); + -webkit-transform:rotateX(180deg); + transform:rotateX(180deg); +} \ No newline at end of file diff --git a/data/web/css/site/user.css b/data/web/css/site/user.css index e0dffe05..b4641202 100644 --- a/data/web/css/site/user.css +++ b/data/web/css/site/user.css @@ -47,3 +47,14 @@ table tbody tr { table tbody tr td input[type="checkbox"] { cursor: pointer; } +.rotate { + -moz-transition: all 0.3s linear; + -webkit-transition: all 0.3s linear; + transition: all 0.3s linear; +} +.rotate.animation { + -ms-transform:rotateX(180deg); + -moz-transform:rotateX(180deg); + -webkit-transform:rotateX(180deg); + transform:rotateX(180deg); +} \ No newline at end of file diff --git a/data/web/edit.php b/data/web/edit.php index 668b69f4..aa588760 100644 --- a/data/web/edit.php +++ b/data/web/edit.php @@ -744,6 +744,7 @@ if (isset($_SESSION['mailcow_cc_role'])) {

: {SUBJECT}, {SENDER}

+

@@ -770,37 +771,38 @@ if (isset($_SESSION['mailcow_cc_role'])) {
-
+
-
-
- - -
-
-
-
- -
-
-
-
- -
-
+
+ + + +
+
+
+
+ + +
+ +
+
+ +
+
+
+
-
-

diff --git a/data/web/js/site/edit.js b/data/web/js/site/edit.js index 97c48585..579a44a8 100644 --- a/data/web/js/site/edit.js +++ b/data/web/js/site/edit.js @@ -1,4 +1,5 @@ $(document).ready(function() { + $(".arrow-toggle").on('click', function(e) { e.preventDefault(); $(this).find('.arrow').toggleClass("animation"); }); $(".goto_checkbox").click(function( event ) { $("form[data-id='editalias'] .goto_checkbox").not(this).prop('checked', false); if ($("form[data-id='editalias'] .goto_checkbox:checked").length > 0) { diff --git a/data/web/js/site/user.js b/data/web/js/site/user.js index f320983b..a04bd44c 100644 --- a/data/web/js/site/user.js +++ b/data/web/js/site/user.js @@ -13,6 +13,7 @@ $(document).ready(function() { } }); }); + $(".arrow-toggle").on('click', function(e) { e.preventDefault(); $(this).find('.arrow').toggleClass("animation"); }); }); jQuery(function($){ // http://stackoverflow.com/questions/24816/escaping-html-strings-with-jquery diff --git a/data/web/lang/lang.de.json b/data/web/lang/lang.de.json index 74d8423a..18ab68d4 100644 --- a/data/web/lang/lang.de.json +++ b/data/web/lang/lang.de.json @@ -232,6 +232,7 @@ "user": { "pushover_info": "Push-Benachrichtungen werden angewendet auf alle nicht-Spam Nachrichten zugestellt an %s, einschließlich Alias-Adressen (shared, non-shared, tagged).", "verify": "Verifizieren", + "advanced_settings": "Erweiterte Einstellungen", "pushover_verify": "Verbindung verifizieren", "title": "Title", "pushover_title": "Notification Titel", @@ -353,6 +354,7 @@ "admin": { "pushover_info": "Push-Benachrichtungen werden angewendet auf alle nicht-Spam Nachrichten zugestellt an %s, einschließlich Alias-Adressen (shared, non-shared, tagged).", "verify": "Verifizieren", + "advanced_settings": "Erweiterte Einstellungen", "pushover_verify": "Verbindung verifizieren", "title": "Title", "pushover_title": "Notification Titel", diff --git a/data/web/lang/lang.en.json b/data/web/lang/lang.en.json index 15fa0263..397fb17f 100644 --- a/data/web/lang/lang.en.json +++ b/data/web/lang/lang.en.json @@ -232,6 +232,7 @@ "user": { "pushover_info": "Push notification settings will apply to all clean (non-spam) mail delivered to %s including aliases (shared, non-shared, tagged).", "verify": "Verify", + "advanced_settings": "Advanced settings", "pushover_verify": "Verify credentials", "title": "Title", "pushover_title": "Notification title", @@ -353,6 +354,7 @@ "admin": { "pushover_info": "Push notification settings will apply to all clean (non-spam) mail delivered to %s including aliases (shared, non-shared, tagged).", "verify": "Verify", + "advanced_settings": "Advanced settings", "pushover_verify": "Verify credentials", "title": "Title", "pushover_title": "Notification title", diff --git a/data/web/mailbox.php b/data/web/mailbox.php index 5e5e9211..2831dfac 100644 --- a/data/web/mailbox.php +++ b/data/web/mailbox.php @@ -32,7 +32,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
-
+
-

: {SUBJECT}, {SENDER}

-
-
-
-
- - +

: {SUBJECT}, {SENDER}

+

+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ +
+
+
+ + + +
+
+
+
+ + +
+ +
+
+ +
+
+
+
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
-
-