aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/css
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-11 15:31:06 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-11 15:31:06 +0800
commit0fab1b54820aec01d3b4e7c2c351da57769647ee (patch)
treed698bf30938119044877bbf74d7f2893cb25cec7 /ui/app/css
parent8a39941d9a4c5b6fd4a3715394fec10c400c0f34 (diff)
downloadtangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar.gz
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar.bz2
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar.lz
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar.xz
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar.zst
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.zip
Implement responsive wallet balances
Diffstat (limited to 'ui/app/css')
-rw-r--r--ui/app/css/itcss/components/index.scss4
-rw-r--r--ui/app/css/itcss/components/newui-sections.scss17
-rw-r--r--ui/app/css/itcss/components/wallet-balance.scss63
-rw-r--r--ui/app/css/itcss/settings/variables.scss1
4 files changed, 84 insertions, 1 deletions
diff --git a/ui/app/css/itcss/components/index.scss b/ui/app/css/itcss/components/index.scss
index de248de79..1b0a41714 100644
--- a/ui/app/css/itcss/components/index.scss
+++ b/ui/app/css/itcss/components/index.scss
@@ -4,6 +4,10 @@
@import './network.scss';
@import './modal.scss';
@import './newui-sections.scss';
+
+// Balances
@import './hero-balance.scss';
+@import './wallet-balance.scss';
+
@import './transaction-list.scss';
@import './sections.scss';
diff --git a/ui/app/css/itcss/components/newui-sections.scss b/ui/app/css/itcss/components/newui-sections.scss
index a9167dfb8..01c69f818 100644
--- a/ui/app/css/itcss/components/newui-sections.scss
+++ b/ui/app/css/itcss/components/newui-sections.scss
@@ -28,7 +28,22 @@ $wallet-view-bg: $wild-sand;
.wallet-view {
flex: 33.5 0 33.5%;
- background: $wallet-view-bg,
+ background: $wallet-view-bg;
+ overflow-y: scroll;
+}
+
+.wallet-view-title-wrapper {
+ height: 25px;
+}
+
+.wallet-view-title {
+ margin-left: 15px;
+ font-size: 16px;
+
+ // No title on mobile
+ @media screen and (max-width: 575px) {
+ display: none;
+ }
}
.account-options-menu {
diff --git a/ui/app/css/itcss/components/wallet-balance.scss b/ui/app/css/itcss/components/wallet-balance.scss
new file mode 100644
index 000000000..03cc38a03
--- /dev/null
+++ b/ui/app/css/itcss/components/wallet-balance.scss
@@ -0,0 +1,63 @@
+$wallet-balance-bg: $gallery;
+$wallet-balance-breakpoint: 890px;
+$wallet-balance-breakpoint-range:
+ "screen and (min-width: #{$break-large}) and (max-width: #{$wallet-balance-breakpoint})";
+
+.wallet-balance {
+ background: inherit;
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+
+ .balance-container {
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ margin: 20px 24px;
+ flex-direction: row;
+ flex-grow: 3;
+
+ @media #{$wallet-balance-breakpoint-range} {
+ margin: 10% 4%;
+ }
+ }
+
+ .balance-display {
+ margin-left: 15px;
+ justify-content: flex-start;
+ align-items: flex-start;
+
+ .token-amount {
+ font-size: 135%;
+ }
+
+ .fiat-amount {
+ margin-top: 0.25%;
+ font-size: 105%;
+ }
+
+ @media #{$wallet-balance-breakpoint-range} {
+ margin-left: 4%;
+
+ .token-amount {
+ font-size: 105%;
+ }
+
+ .fiat-amount {
+ font-size: 95%;
+ }
+ }
+ }
+
+ .balance-icon {
+ border-radius: 25px;
+ width: 45px;
+ height: 45px;
+ border: 1px solid $alto;
+ }
+}
+
+.wallet-balance-wrapper-active {
+ background: $wallet-balance-bg;
+} \ No newline at end of file
diff --git a/ui/app/css/itcss/settings/variables.scss b/ui/app/css/itcss/settings/variables.scss
index 9bd10cb4e..f47b7c889 100644
--- a/ui/app/css/itcss/settings/variables.scss
+++ b/ui/app/css/itcss/settings/variables.scss
@@ -18,6 +18,7 @@ $wild-sand: #F6F6F6;
$white: #FFFFFF;
$dusty-gray: #9B9B9B;
$alto: #DEDEDE;
+$alabaster: #FAFAFA;
/*
Z-Indicies