From ead5e747b5df7a3ad736cc46f8302b603d4f1fee Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 1 Jan 2019 08:04:12 -0600 Subject: [PATCH] Fix import dropdown --- _locales/en/messages.json | 3 ++- manage.html | 23 ++++++----------------- manage/manage.css | 39 ++++++++++++--------------------------- 3 files changed, 20 insertions(+), 45 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 266ec1c9..32ce97df 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1173,7 +1173,8 @@ "description": "Label before the replace-with input field in the editor shown on Ctrl-H etc." }, "retrieveBckp": { - "message": "Import styles" + "message": "Local source", + "description": "Selected option to get a backup of styles from a local device/drive" }, "search": { "message": "Search", diff --git a/manage.html b/manage.html index 25971909..04982d01 100644 --- a/manage.html +++ b/manage.html @@ -165,21 +165,6 @@ - - @@ -255,11 +240,15 @@ - +
- + +
diff --git a/manage/manage.css b/manage/manage.css index 99f076ca..e08821a8 100644 --- a/manage/manage.css +++ b/manage/manage.css @@ -104,7 +104,7 @@ a:hover { top: 0; width: 100%; height: var(--header-height); - z-index: 100; + z-index: 101; padding: 2px 8px; margin: 0; display: flex; @@ -121,7 +121,8 @@ a:hover { } #main-header a:hover, -#main-actions a:hover svg { +#main-actions a:hover svg, +#manage-backups:hover svg { color: hsla(180, 50%, 50%, 1); fill: hsla(180, 50%, 50%, 1); } @@ -719,7 +720,6 @@ details.applies-to-extra[open] { display: none; } - /* drag-n-drop on import button */ .dropzone:after { background-color: rgba(0, 0, 0, 0.7); @@ -765,51 +765,36 @@ details.applies-to-extra[open] { } /* export/import buttons */ -#backup-buttons .dropbtn { - padding: 3px 7px; - cursor: pointer; - text-overflow: inherit; -} - -#backup-buttons .dropbtn span { - display: inline-block; - margin-right: 12px; -} - -#backup-buttons .dropdown { +#manage-backups { position: relative; - display: inline-block; } -#backup-buttons .dropdown-content { +#manage-backups .dropdown { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); - z-index: 1; + z-index: 101; } -#backup-buttons .dropdown-content a { +#manage-backups .dropdown a { color: black; padding: 8px; + font-size: 12px; text-decoration: none; display: block; } -#backup-buttons .dropdown-content a:hover { +#manage-backups .dropdown a:hover { /* background-color: #f2f2f2 */ background-color: #e9e9e9 } -#backup-buttons .dropdown:hover .dropdown-content { +#manage-backups:hover .dropdown { display: block; -} - -#backup-buttons .dropdown:hover .dropbtn { - background-color: hsl(0, 0%, 95%); - border-color: hsl(0, 0%, 52%); - /* background-color: #3e8e41; */ + right: -20px; + top: 99%; } /* sort font */