From f82570cc51681ffabdfb7f811cc1adfe7a463f6a Mon Sep 17 00:00:00 2001 From: stitch Date: Thu, 29 Aug 2024 13:08:51 +0300 Subject: [PATCH] removed signing tab on mobile. added signing popup on mobile --- assets/css/files.css | 37 ++++++++++++++++++ assets/js/signMobileBox.js | 13 +++++++ dashboard-complete.html | 1 + dashboard-draft.html | 1 + dashboard-failed.html | 1 + dashboard-progress.html | 77 +++++++++++++++++++------------------- dashboard.html | 1 + index.html | 1 + 8 files changed, 93 insertions(+), 39 deletions(-) create mode 100644 assets/js/signMobileBox.js diff --git a/assets/css/files.css b/assets/css/files.css index 906d955..18c37e0 100644 --- a/assets/css/files.css +++ b/assets/css/files.css @@ -405,6 +405,15 @@ top: -25px; } +.btnMain.filesPageSecMidActionsTriggerBtnAlt { + background: white; + color: #434343; + padding: 5px 30px; + box-shadow: unset; + position: static; + top: -20px; +} + .filesPageSecMidActionsTop { display: flex; flex-direction: row; @@ -815,3 +824,31 @@ min-width: 160px; } +.MobileSignBox { + position: fixed; + bottom: 50px; + background: white; + left: 5px; + right: 5px; + display: flex; + flex-direction: column; + padding: 10px; + box-shadow: 0 0 4px 0 rgb(0,0,0,0.25); + border-radius: 5px; + grid-gap: 10px; +} + +@media (min-width: 768px) { + .MobileSignBox { + display: none; + } +} + +.MobileSignBoxControl { + display: flex; + flex-direction: row; + width: 100%; + justify-content: space-between; + align-items: center; +} + diff --git a/assets/js/signMobileBox.js b/assets/js/signMobileBox.js new file mode 100644 index 0000000..f969ecc --- /dev/null +++ b/assets/js/signMobileBox.js @@ -0,0 +1,13 @@ +document.getElementById('pageActionTriggerMobile').addEventListener('click', function() { + var targetDiv = document.getElementById('pageActionTriggerMobileTarget'); + var innerElement = this.querySelector('*'); // Selects the first child element of the clicked element + + // Toggle the display property of the target div + if (targetDiv.style.display === 'none' || targetDiv.style.display === '') { + targetDiv.style.display = 'flex'; + innerElement.style.transform = 'rotate(180deg)'; + } else { + targetDiv.style.display = 'none'; + innerElement.style.transform = 'rotate(0deg)'; + } +}); diff --git a/dashboard-complete.html b/dashboard-complete.html index e1dfa77..d61c499 100644 --- a/dashboard-complete.html +++ b/dashboard-complete.html @@ -390,6 +390,7 @@ + \ No newline at end of file diff --git a/dashboard-draft.html b/dashboard-draft.html index e586a37..8ffc5b8 100644 --- a/dashboard-draft.html +++ b/dashboard-draft.html @@ -577,6 +577,7 @@ + \ No newline at end of file diff --git a/dashboard-failed.html b/dashboard-failed.html index 98cdce6..149691a 100644 --- a/dashboard-failed.html +++ b/dashboard-failed.html @@ -390,6 +390,7 @@ + \ No newline at end of file diff --git a/dashboard-progress.html b/dashboard-progress.html index 9d2e9d9..92e9c39 100644 --- a/dashboard-progress.html +++ b/dashboard-progress.html @@ -96,9 +96,9 @@
+
+
+

Add your signature

+
+ +
@@ -303,39 +334,6 @@
-
-
-
-
-
-

Add your signature

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -460,6 +458,7 @@ + \ No newline at end of file diff --git a/dashboard.html b/dashboard.html index 3abecb1..835a788 100644 --- a/dashboard.html +++ b/dashboard.html @@ -573,6 +573,7 @@ + \ No newline at end of file diff --git a/index.html b/index.html index 2921630..859e389 100644 --- a/index.html +++ b/index.html @@ -253,6 +253,7 @@ + \ No newline at end of file