From 8c911fcc2ce984696b72a2c6513bcee2b10c40f3 Mon Sep 17 00:00:00 2001 From: Lisa P Date: Mon, 26 Oct 2015 12:34:57 +0100 Subject: [PATCH] add eye icon and tooltip to profile token toggle --- app/styles/app/layouts/profile.sass | 21 +++++++++++++++++++++ app/styles/app/modules/tooltips.sass | 8 ++++++++ app/templates/profile/accounts.hbs | 18 +++++++++++++++--- 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/app/styles/app/layouts/profile.sass b/app/styles/app/layouts/profile.sass index e3a183e5..ca0634a6 100644 --- a/app/styles/app/layouts/profile.sass +++ b/app/styles/app/layouts/profile.sass @@ -239,6 +239,27 @@ p.profile-user-last right: 1em @extend .icon--dismiss-red +.profile-token-toggle + .icon-eye + vertical-align: middle + path + fill: #B6B7B9 + polygon + stroke: #B6B7B9 + fill: #fff + &:hover + path + fill: #666666 + polygon + stroke: #666666 + fill: #fff + &.is-visible + .icon-eye + polygon + fill: #B6B7B9 + &:hover + polygon + fill: #666666 #unadministerable-hooks p diff --git a/app/styles/app/modules/tooltips.sass b/app/styles/app/modules/tooltips.sass index 7a8625dc..cc6b17f2 100644 --- a/app/styles/app/modules/tooltips.sass +++ b/app/styles/app/modules/tooltips.sass @@ -84,3 +84,11 @@ height: 3.2em &:before left: 2em + +.tooltip--profile + @extend %tooltip + .tooltip-bubble + left: -120% + &:before + left: 35% + diff --git a/app/templates/profile/accounts.hbs b/app/templates/profile/accounts.hbs index 71226e63..f2805372 100644 --- a/app/templates/profile/accounts.hbs +++ b/app/templates/profile/accounts.hbs @@ -12,10 +12,22 @@

Token: {{#if isVisible}} - {{auth.currentUser.token}} - {{else}} - + {{auth.currentUser.token}} {{/if}} + + + {{#if isVisible}}hide token{{else}}show token{{/if}} + + + + + + + + +