From 3e8869ac47e6ab399d487a55bdd602147df65903 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Tue, 16 Nov 2021 11:05:38 +1100 Subject: [PATCH] Export button --- src/drivers/webextension/css/styles.css | 36 ++- src/drivers/webextension/html/popup.html | 268 ++++++++++++----------- src/drivers/webextension/js/popup.js | 192 ++++++++-------- 3 files changed, 264 insertions(+), 232 deletions(-) diff --git a/src/drivers/webextension/css/styles.css b/src/drivers/webextension/css/styles.css index f57f55e64..e547388a8 100644 --- a/src/drivers/webextension/css/styles.css +++ b/src/drivers/webextension/css/styles.css @@ -72,7 +72,7 @@ p { text-align: right; } -.button__link:hover:before { +.button__link:before { background: var(--color-primary); border-radius: 4px; content: ''; @@ -81,6 +81,10 @@ p { left: 0; right: 0; bottom: 0; + opacity: 0; +} + +.button__link:hover:before { opacity: .1; } @@ -223,16 +227,22 @@ small { overflow: hidden; } +.tab-item:nth-child(2) { + min-width: 500px; +} + .tab-item--hidden { display: none; } .credits { + background: var(--color-secondary); color: var(--color-text-lighten); display: block; + font-size: .8rem; text-align: right; flex: 1; - padding: 0 1.5rem; + padding: 1rem 1.5rem 0 1.5rem; margin-bottom: -3px; line-height: 1rem; } @@ -393,13 +403,22 @@ small { } .plus-download { - background: var(--color-secondary); - padding: 1rem 1.5rem 0 1.5rem; + flex: 1 0; text-align: right; + padding: 0 1.5rem; + white-space: nowrap; +} + +.plus-download .button__link:before { + opacity: .1; +} + +.plus-download .button__link:hover:before { + opacity: .2; } .plus-download--hidden { - display: none; + visibility: hidden; } .plus-error { @@ -849,7 +868,7 @@ body.dynamic-icon .category__heading:hover .category__pin { color: var(--color-text-dark); } -.dark .button__link:hover:before { +.dark .button__link:before { background: white; } @@ -953,6 +972,11 @@ body.dynamic-icon .category__heading:hover .category__pin { border-color: var(--color-primary); } +.dark .credits { + background: var(--color-primary-darken); +} + + .dark .footer { background: var(--color-primary-darken); border-top: 1px solid var(--color-primary); diff --git a/src/drivers/webextension/html/popup.html b/src/drivers/webextension/html/popup.html index 94c3830d4..de4297e88 100644 --- a/src/drivers/webextension/html/popup.html +++ b/src/drivers/webextension/html/popup.html @@ -49,187 +49,189 @@
 
 
-
-   +
+
+ + + + -   + + Export + + +
-
-
-
 
+
+
+
+
 
-
-
- - - - - - - +
+
+ + + -
0
-
+ + + -
-
-
+
0
-
-
+ +
+
+
+
+
+
+
+
+
+
-
-
+ +
+ + + + +
0
-
-
- - + + -
0
+ + +
- - - - - - - -
-
-
+
-
-
+
+
+ +
+ + +
-
- - +
- -
+
+
+ -
-
- + + + + - - - - + + + + +
- - - - +
-
-
+ -
-
-
- - - - +
+
+   - - Download CSV - - +  
-
-
-
+
+
+
-
-
- - - -
+
+ + + +
-
-
+
+
-
-
-
-   -
+
+
+
+   +
-

-   -

+

+   +

- -
-
-
- -   + +
+ +   - - () - - + + () + + - -
+ +
-
- - - - +
+ + + + -   - -
- -
+   + +
+ +
-
-
+
+
+