From 6e00cf8d5beb43bf056c571aa7e6ffc331cd816f Mon Sep 17 00:00:00 2001 From: groovecoder Date: Wed, 11 Jan 2017 23:52:09 -0600 Subject: [PATCH] wip: ui updates to container-info and edit panel --- webextension/css/popup.css | 29 ++++++++++--- webextension/img/container-newtab.svg | 20 +++++++++ webextension/js/popup.js | 1 + webextension/popup.html | 61 +++++++++++++++------------ 4 files changed, 80 insertions(+), 31 deletions(-) create mode 100644 webextension/img/container-newtab.svg diff --git a/webextension/css/popup.css b/webextension/css/popup.css index 30aab9a..6bbec16 100644 --- a/webextension/css/popup.css +++ b/webextension/css/popup.css @@ -1,5 +1,4 @@ body { - background: #FAFAFA; min-inline-size: 200px; max-inline-size: 400px; inline-size: 264px; @@ -90,12 +89,15 @@ table { background-size: contain; filter: url('/img/filters.svg#fill'); fill: var(--identity-icon-color); - inline-size: 32px; - block-size: 32px; + inline-size: 20px; + block-size: 20px; + padding-left: 20px; + padding-right: 10px; } -.userContext-icon:hover { - background-image: url('/img/container-add.svg'); +.container-panel-row:hover .userContext-icon { + background-image: url('/img/container-newtab.svg'); + filter: url('/img/filters.svg#fill'); fill: 'gray'; } @@ -196,6 +198,23 @@ table { --identity-icon: url("/img/usercontext.svg#circle"); } +.container-info-panel-header { + block-size: 33px; + display: flex; + align-items: center; + border-bottom: 1px solid #ebebeb; + margin-bottom: 10px; +} + +.container-info-panel-hide { + margin-bottom: 8px; +} + +.container-info-panel-movetabs { + border-bottom: 1px solid #ebebeb; + margin-bottom: 10px; +} + .container-info-has-tabs { cursor: pointer; } diff --git a/webextension/img/container-newtab.svg b/webextension/img/container-newtab.svg new file mode 100644 index 0000000..4739c5c --- /dev/null +++ b/webextension/img/container-newtab.svg @@ -0,0 +1,20 @@ + + + + +icon-newtab +Created with Sketch. + + + + + + + + + + diff --git a/webextension/js/popup.js b/webextension/js/popup.js index 6ec8979..aa1e561 100644 --- a/webextension/js/popup.js +++ b/webextension/js/popup.js @@ -94,6 +94,7 @@ browser.runtime.sendMessage({method: "queryIdentities"}).then(identities => { identities.forEach(identity => { let tr = document.createElement("tr"); fragment.appendChild(tr); + tr.className = "container-panel-row"; tr.setAttribute("data-identity-cookie-store-id", identity.userContextId); tr.innerHTML = ` diff --git a/webextension/popup.html b/webextension/popup.html index 30fa6ea..471c7c2 100644 --- a/webextension/popup.html +++ b/webextension/popup.html @@ -33,7 +33,7 @@ Sort Containers - +
+
+
+
«
+
+
+
+ +
+
+

+
+
+
+ Hide Container iconHide this container
+
+
+ Move tabs to a new window +
+ +