From 403d9c52b506e31fa31b385b61fd167f81b5ff88 Mon Sep 17 00:00:00 2001 From: sdtsui Date: Sun, 6 Aug 2017 18:06:23 -0700 Subject: [PATCH] Add fine css tweaks to hero balance - laptop --- ui/app/components/tx-view.js | 2 +- ui/app/css/itcss/components/hero-balance.scss | 30 +++++++------------ 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js index 193abe8dc..164684821 100644 --- a/ui/app/components/tx-view.js +++ b/ui/app/components/tx-view.js @@ -104,7 +104,7 @@ TxView.prototype.render = function () { // laptop: 5vw? // phone: 50vw? - h('div.hero-balance-display', {}, [ + h('div.flex-column.hero-balance-display', {}, [ h('div.token-amount', { style: {} }, '1001.124 ETH'), diff --git a/ui/app/css/itcss/components/hero-balance.scss b/ui/app/css/itcss/components/hero-balance.scss index b0766bead..61d7f7c92 100644 --- a/ui/app/css/itcss/components/hero-balance.scss +++ b/ui/app/css/itcss/components/hero-balance.scss @@ -16,14 +16,11 @@ $break-large: 576px; flex-direction: row; justify-content: flex-start; align-items: center; - margin: 1.5em 0.9em 0.8em 0.9em; + margin: 2.8em 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; @@ -35,18 +32,22 @@ $break-large: 576px; .fiat-amount { font-size: 115%; margin-top: 8.5%; + color: #A0A0A0; } } @media screen and (min-width: $break-large) { flex-grow: 3; margin-left: 3%; + justify-content: flex-start; + align-items: flex-start; .token-amount { - font-size: 125%; + font-size: 135%; } .fiat-amount { + margin-top: 0.25%; font-size: 105%; } @@ -55,22 +56,11 @@ $break-large: 576px; } .hero-balance-icon { - border-radius: 30px; - width: 60px; - height: 60px; + border-radius: 25px; + width: 45px; + height: 45px; // TODO: colors border: 1px solid #DEDEDE; - - @media screen and (min-width: $break-large) { - border-radius: 10vw; - width: 5vw; - height: 5vw; - min-width: 45px; - min-height: 45px; - max-width: 65px; - max-height: 65px; - } - } .hero-balance-buttons {