Normalize sidebar dimensions and adjust hero button responsiveness

feature/default_network_editable
sdtsui 7 years ago
parent 802c29c986
commit c1b8517959
  1. 4
      ui/app/components/tx-view.js
  2. 4
      ui/app/components/wallet-view.js
  3. 57
      ui/app/css/itcss/components/hero-balance.scss
  4. 10
      ui/app/css/itcss/components/newui-sections.scss

@ -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',
}
}, [

@ -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,
}

@ -7,19 +7,24 @@ $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;
}
@media screen and (min-width: $break-large) {
}
.token-amount {
font-size: 1.8em;
@ -29,11 +34,25 @@ $break-large: 576px;
.fiat-amount {
font-size: 1.1em;
margin-top: 0.8em;
color: #A0A0A0;
// TODO: colors
}
}
@media screen and (min-width: $break-large) {
flex-grow: 3;
margin-left: 1.2vw;
.token-amount {
font-size: 2.2vw;
}
.fiat-amount {
font-size: 1.7vw;
margin-top: 0.3em;
}
}
}
.hero-balance-icon {
border-radius: 30px;
// TODO: colors
@ -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;
}
}

@ -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;

Loading…
Cancel
Save