diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-13 14:10:58 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-13 14:11:01 +0800 |
commit | 81f62a7443d47461b5f9b20f442392562458c79a (patch) | |
tree | b4c283caec9e6409b69422c36f1010e8f2592b37 /ui/app/css | |
parent | 57179d2b05a4efae06c2375e01e9a01a5519543b (diff) | |
download | tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar.gz tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar.bz2 tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar.lz tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar.xz tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar.zst tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.zip |
Adding Account Dropdown V2
Diffstat (limited to 'ui/app/css')
-rw-r--r-- | ui/app/css/itcss/components/account-menu.scss | 44 | ||||
-rw-r--r-- | ui/app/css/itcss/components/header.scss | 4 | ||||
-rw-r--r-- | ui/app/css/itcss/components/index.scss | 4 | ||||
-rw-r--r-- | ui/app/css/itcss/components/menu.scss | 43 |
4 files changed, 95 insertions, 0 deletions
diff --git a/ui/app/css/itcss/components/account-menu.scss b/ui/app/css/itcss/components/account-menu.scss new file mode 100644 index 000000000..8b08c02fd --- /dev/null +++ b/ui/app/css/itcss/components/account-menu.scss @@ -0,0 +1,44 @@ +.account-menu { + position: fixed; + z-index: 100; + top: 58px; + width: 310px; + + @media screen and (max-width: 575px) { + right: calc((100vw - 100%) / 2); + } + + @media screen and (min-width: 576px) { + right: calc((100vw - 85vw) / 2); + } + + @media screen and (min-width: 769px) { + right: calc((100vw - 80vw) / 2); + } + + @media screen and (min-width: 1281px) { + right: calc((100vw - 65vw) / 2); + } + + &__header { + display: flex; + flex-flow: row nowrap; + justify-content: space-between; + align-items: center; + } + + &__logout-button { + border: 1px solid $dusty-gray; + background-color: transparent; + color: $white; + border-radius: 4px; + font-size: 12px; + line-height: 23px; + padding: 0 24px; + } + + img { + width: 16px; + height: 16px; + } +} diff --git a/ui/app/css/itcss/components/header.scss b/ui/app/css/itcss/components/header.scss index 4fa80f047..512cbd995 100644 --- a/ui/app/css/itcss/components/header.scss +++ b/ui/app/css/itcss/components/header.scss @@ -84,4 +84,8 @@ h2.page-subtitle { display: flex; flex-flow: row nowrap; align-items: center; + + .identicon { + cursor: pointer; + } } diff --git a/ui/app/css/itcss/components/index.scss b/ui/app/css/itcss/components/index.scss index f24a9caa8..dee0959b7 100644 --- a/ui/app/css/itcss/components/index.scss +++ b/ui/app/css/itcss/components/index.scss @@ -31,3 +31,7 @@ @import './add-token.scss'; @import './currency-display.scss'; + +@import './account-menu.scss'; + +@import './menu.scss'; diff --git a/ui/app/css/itcss/components/menu.scss b/ui/app/css/itcss/components/menu.scss new file mode 100644 index 000000000..d01c24a70 --- /dev/null +++ b/ui/app/css/itcss/components/menu.scss @@ -0,0 +1,43 @@ +.menu { + border-radius: 4px; + background: rgba($black, .8); + box-shadow: rgba($black, .15) 0 2px 2px 2px; + min-width: 150px; + color: $white; + + &__item { + padding: 18px; + display: flex; + flex-flow: row nowrap; + align-items: center; + + &--clickable { + cursor: pointer; + + &:hover { + background-color: rgba($white, .05); + } + + &:active { + background-color: rgba($white, .1); + } + } + + &__icon { + height: 16px; + width: 16px; + margin-right: 14px; + } + + &__text { + font-size: 16px; + line-height: 21px; + } + } + + &__divider { + background-color: $scorpion; + width: 100%; + height: 1px; + } +} |