diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-07 07:37:41 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-07 07:37:41 +0800 |
commit | c1b85179590e824e9af93da5c1c67ef3a5eb1d06 (patch) | |
tree | 3c27589371292f3292f25103d08c684a94f5836f /ui/app | |
parent | 802c29c98642043cf679eb2658934e0420f8ecc7 (diff) | |
download | tangerine-wallet-browser-c1b85179590e824e9af93da5c1c67ef3a5eb1d06.tar tangerine-wallet-browser-c1b85179590e824e9af93da5c1c67ef3a5eb1d06.tar.gz tangerine-wallet-browser-c1b85179590e824e9af93da5c1c67ef3a5eb1d06.tar.bz2 tangerine-wallet-browser-c1b85179590e824e9af93da5c1c67ef3a5eb1d06.tar.lz tangerine-wallet-browser-c1b85179590e824e9af93da5c1c67ef3a5eb1d06.tar.xz tangerine-wallet-browser-c1b85179590e824e9af93da5c1c67ef3a5eb1d06.tar.zst tangerine-wallet-browser-c1b85179590e824e9af93da5c1c67ef3a5eb1d06.zip |
Normalize sidebar dimensions and adjust hero button responsiveness
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/tx-view.js | 4 | ||||
-rw-r--r-- | ui/app/components/wallet-view.js | 4 | ||||
-rw-r--r-- | ui/app/css/itcss/components/hero-balance.scss | 65 | ||||
-rw-r--r-- | ui/app/css/itcss/components/newui-sections.scss | 10 |
4 files changed, 57 insertions, 26 deletions
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js index 77ca87834..3652a43a6 100644 --- a/ui/app/components/tx-view.js +++ b/ui/app/components/tx-view.js @@ -45,9 +45,7 @@ TxView.prototype.render = function () { return h('div.tx-view.flex-column', { style: { - flexGrow: 2, - flexShrink: 0, - flexBasis: '230px', + flex: '62 0 62%', background: '#FFFFFF', } }, [ diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js index 2518a1213..e0bc34b49 100644 --- a/ui/app/components/wallet-view.js +++ b/ui/app/components/wallet-view.js @@ -36,9 +36,7 @@ WalletView.prototype.render = function () { return h('div.wallet-view.flex-column' + (responsiveDisplayClassname || ''), { style: { - flexGrow: 1, - flexShrink: 0, - flexBasis: '230px', // .333*345 + flex: '28 0 28%', background: '#FAFAFA', // TODO: add to reusable colors ...style, } diff --git a/ui/app/css/itcss/components/hero-balance.scss b/ui/app/css/itcss/components/hero-balance.scss index 8c4d886cb..f5de139b1 100644 --- a/ui/app/css/itcss/components/hero-balance.scss +++ b/ui/app/css/itcss/components/hero-balance.scss @@ -7,31 +7,50 @@ $break-large: 576px; flex-direction: column; justify-content: flex-start; align-items: center; - margin: 0.3em 0.9em 0.8em; + margin: 0.3em 0.9em 0.8em 0.9em; } @media screen and (min-width: $break-large) { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + margin: 1.5em 0.9em 0.8em 0.9em; } .hero-balance-display { + .fiat-amount { + color: #A0A0A0; + // TODO: colors + } @media screen and (max-width: $break-small) { text-align: center; + + .token-amount { + font-size: 1.8em; + margin-top: 1em; + } + + .fiat-amount { + font-size: 1.1em; + margin-top: 0.8em; + } } @media screen and (min-width: $break-large) { - } + flex-grow: 3; + margin-left: 1.2vw; - .token-amount { - font-size: 1.8em; - margin-top: 1em; - } + .token-amount { + font-size: 2.2vw; + } - .fiat-amount { - font-size: 1.1em; - margin-top: 0.8em; - color: #A0A0A0; - // TODO: colors + .fiat-amount { + font-size: 1.7vw; + margin-top: 0.3em; + } } + } .hero-balance-icon { @@ -41,12 +60,36 @@ $break-large: 576px; } .hero-balance-buttons { + button.btn-clear { + width: 81px; + height: 32px; + font-size: .7em; + background: white; + border: 1px solid; + + @media screen and (max-width: $break-small) { + width: 100%; + margin-top: 1.3em; + } + + @media screen and (min-width: $break-large) { + flex-grow: 2; + width: 5.8vw; + min-width: 75px; + height: 4.2vh; + min-height: 28px; + font-size: .7em; + } + + } + @media screen and (max-width: $break-small) { width: 100%; margin-top: 1.3em; } @media screen and (min-width: $break-large) { + flex-grow: 2; } } diff --git a/ui/app/css/itcss/components/newui-sections.scss b/ui/app/css/itcss/components/newui-sections.scss index b3ad30017..f087d2651 100644 --- a/ui/app/css/itcss/components/newui-sections.scss +++ b/ui/app/css/itcss/components/newui-sections.scss @@ -57,14 +57,6 @@ width: 85%; height: 90vh; } - - button.btn-clear { - width: 75px; - height: 32px; - font-size: .6em; - background: white; - border: 1px solid; - } } @media screen and (min-width: 769px) { @@ -100,7 +92,7 @@ } button.btn-clear { - width: 100px; + width: 93px; height: 50px; font-size: .7em; background: white; |