Wallet/src/sass/views/amount.scss

566 lines
12 KiB
SCSS
Raw Normal View History

2016-09-08 11:20:43 -04:00
#view-amount {
@extend .deflash-blue;
2016-10-21 03:48:41 -04:00
.recipient-label {
font-size: 14px;
padding-bottom: 0;
color: $v-mid-gray;
2016-10-21 03:48:41 -04:00
}
.item-no-bottom-border + .item {
border-top: 0;
}
.icon-bitpay-card {
background-image: url("../img/icon-bitpay.svg");
}
.icon-amazon {
background-image: url("../img/icon-amazon.svg");
}
2016-09-08 11:20:43 -04:00
@media(max-width: 480px) {
.bitcoin-address {
.icon {
left: 8px;
font-size: 24px;
}
.big-icon-svg {
left:5px;
& > .bg{
width:30px;
height:30px;
box-shadow: none;
}
}
2016-10-21 03:48:41 -04:00
font-size: 13px;
2016-09-08 11:20:43 -04:00
padding-left: 48px;
}
}
@media(max-width: 320px) {
.bitcoin-address {
& > span:last-child {
margin-left: -2px;
}
}
}
2016-09-14 10:04:16 -03:00
.send-gravatar {
left: 11px;
position: absolute;
top: 10px;
}
.amount span input {
display: inline;
width: 120px;
}
2016-12-02 09:48:56 -03:00
.amount-pane-recipient {
2016-09-08 11:20:43 -04:00
position: absolute;
2016-10-21 03:48:41 -04:00
top: 95px;
2016-09-08 11:20:43 -04:00
bottom: 0;
width: 100%;
background-color: #fff;
padding: 0 16px;
.amount-bar {
padding: 24px 0;
font-size: 18px;
2017-01-18 12:36:26 -03:00
@media(max-height: 480px) {
padding: 0px;
}
@media(max-width: 320px) {
padding: 0px;
}
2016-09-08 11:20:43 -04:00
.title {
float: left;
padding-top: 10px;
color: $v-dark-gray;
2016-10-21 03:48:41 -04:00
font-weight: bold;
2017-01-18 12:36:26 -03:00
@media(max-height: 480px) {
padding: 0px;
}
}
@media(max-height: 480px) {
padding-top: 3px;
2016-09-08 11:20:43 -04:00
}
}
.amount {
2016-11-24 11:42:25 -03:00
display: flex;
flex-direction: column;
justify-content: center;
flex-grow: 1;
position: absolute;
bottom: 254px;
top: 66px;
.light {
color: $v-light-gray;
2016-11-24 11:42:25 -03:00
}
2017-01-18 12:36:26 -03:00
@media(max-height: 480px) {
top: 45px;
}
@media(max-width: 320px) {
bottom: 276px;
top: 60px;
& > div {
display: inline-block;
}
& > div:first-child {
display: inherit;
}
}
2016-11-24 11:42:25 -03:00
}
}
2016-12-02 09:48:56 -03:00
.amount-pane-no-recipient {
2016-11-24 11:42:25 -03:00
position: absolute;
top: 0;
bottom: 0;
width: 100%;
background-color: #fff;
padding: 0 16px;
.amount-bar {
padding: 24px 0;
font-size: 18px;
.title {
padding-top: 10px;
color: $v-dark-gray;
2016-11-24 11:42:25 -03:00
font-weight: bold;
2016-12-02 09:48:56 -03:00
.limits {
2016-12-02 17:18:48 -03:00
margin-top: 10px;
color: $v-light-gray;
2016-12-02 17:18:48 -03:00
font-size: 12px;
2016-12-02 09:48:56 -03:00
}
2016-12-12 09:16:58 -03:00
.select {
margin: 10px 1px;
}
2016-11-24 11:42:25 -03:00
}
}
.amount {
2016-09-08 11:20:43 -04:00
display: flex;
flex-direction: column;
justify-content: center;
flex-grow: 1;
position: absolute;
bottom: 254px;
top: 66px;
2016-10-19 11:41:30 -03:00
.light {
color: $v-light-gray;
2016-10-19 11:41:30 -03:00
}
2016-09-08 11:20:43 -04:00
}
}
2016-10-21 03:48:41 -04:00
.amount {
padding-top: 10px;
padding-bottom: 10px;
.icon-toggle {
font-size: 1.2em;
width: auto;
margin: 0.8em auto;
border: 1px solid $v-subtle-gray;
color: $v-dark-gray;
border-radius: 3px;
padding: 0 10px;
cursor: pointer;
@media(max-height: 280px) {
margin: 0.1em auto;
}
}
2016-10-21 03:48:41 -04:00
&__editable {
&--minimize {
font-size: 22px;
}
&--standard {
font-size: 42px;
2017-01-18 12:36:26 -03:00
@media(max-height: 480px) {
font-size: 26px;
padding-top: 10px;
}
2016-10-21 03:48:41 -04:00
}
&--placeholder {
color: $v-light-gray;
2016-10-21 03:48:41 -04:00
}
}
&__number {
color: $v-dark-gray;
2016-10-21 03:48:41 -04:00
}
&__currency-toggle {
border: 1px solid $v-subtle-gray;
color: $v-dark-gray;
2016-10-21 03:48:41 -04:00
border-radius: 3px;
padding: 0 10px;
cursor: pointer;
font-size: .6em;
position: relative;
top: -3px;
line-height: 1;
@media(max-width: 320px) {
line-height: 30px;
height: 30px;
}
2016-10-21 03:48:41 -04:00
}
2017-12-28 13:55:35 +00:00
&__currency-toggle-mobile {
border: 1px solid $v-subtle-gray;
color: $v-dark-gray;
border-radius: 3px;
cursor: pointer;
position: relative;
line-height: 1;
@media(max-width: 320px) {
line-height: 30px;
height: 30px;
}
}
2016-10-21 03:48:41 -04:00
&__results {
&--minimize {
font-size: 12px;
}
&--standard {
font-size: 18px;
2017-01-18 12:36:26 -03:00
padding: 10px 0;
2016-10-21 03:48:41 -04:00
}
&--placeholder {
color: $v-light-gray;
2016-10-21 03:48:41 -04:00
}
}
&__result {
color: $v-light-gray;
2016-10-21 03:48:41 -04:00
font-size: .9em;
2017-08-29 10:52:26 -03:00
//margin-bottom: -.9em; TODO matias
2016-10-21 03:48:41 -04:00
line-height: 1;
2017-01-18 12:36:26 -03:00
@media(max-height: 480px) {
margin-bottom: 0;
}
2016-10-21 03:48:41 -04:00
}
&__result-equiv {
color: $v-mid-gray;
2016-10-21 03:48:41 -04:00
font-size: 1.2em;
2017-01-18 12:36:26 -03:00
@media(max-height: 480px) {
margin-top: 0;
font-size: 16px;
}
2016-10-21 03:48:41 -04:00
}
}
2016-09-08 11:20:43 -04:00
2018-05-08 00:28:44 +09:00
.scroll-content {
display: flex;
flex-direction: column;
2016-09-08 11:20:43 -04:00
2018-05-08 00:28:44 +09:00
.send-amount {
flex: 1 1 auto;
display: flex;
flex-direction: column;
justify-content: center;
2016-09-08 11:20:43 -04:00
2018-07-31 20:25:21 +12:00
.send-amount-header-footer {
flex: 1 1 auto;
min-height: 20px;
.warning {
font-weight: bold;
font-size: 12px;
padding: 0 6px 6px 6px;
text-align: center;
}
2018-08-02 15:42:35 +02:00
&__max {
float: right;
}
2018-07-31 20:25:21 +12:00
}
2018-05-08 00:28:44 +09:00
.send-amount-tool {
flex: 0 1 auto;
2016-09-08 11:20:43 -04:00
2018-05-08 00:28:44 +09:00
.send-amount-tool-input {
text-align: center;
position: relative;
padding: 10px 30px;
2016-09-08 11:20:43 -04:00
.text-selectable {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
2018-05-08 00:28:44 +09:00
.primary-amount {
2018-07-31 20:25:21 +12:00
color: #333;
font-weight: bold;
2018-05-08 00:28:44 +09:00
input, .unit, .primary-amount-display {
font-size: 1.8em;
@media (min-width: 375px) {
font-size: 2.1em;
}
@media (min-width: 414px) {
font-size: 2.4em;
}
}
&.long {
input, .unit, .primary-amount-display {
font-size: 1.6em;
@media (min-width: 375px) {
font-size: 1.8em;
}
@media (min-width: 414px) {
font-size: 2em;
}
}
}
&.very-long {
input, .unit, .primary-amount-display {
font-size: 1.2em; // OK for iPhone 5 / SE with BCH to 8dp
2018-05-08 00:28:44 +09:00
@media (min-width: 375px) {
font-size: 1.3em;
}
@media (min-width: 414px) {
font-size: 1.4em;
}
}
}
input {
border:0;
padding:0;
white-space:normal;
background:none;
line-height:1;
box-sizing:content-box;
display: inline-block;
vertical-align: middle;
margin: 0;
height: 1em;
margin-right: 5px;
font-family: 'ProximaNova';
@media (min-width: 375px) {
}
@media (min-width: 414px) {
}
}
.unit,
.primary-amount-display {
display: inline-block;
vertical-align: middle;
line-height: 1em;
}
.primary-amount-display {
margin-right: 5px;
word-break: break-all;
}
}
2018-07-31 20:25:21 +12:00
.alternative-amount {
color: #6F6F70;
}
2018-05-08 00:28:44 +09:00
.switch-currencies {
position: absolute;
right: 0;
top: 50%;
transform: translate(0, -50%);
padding: 15px;
2018-05-08 00:28:44 +09:00
img {
width: 18px;
}
}
}
2018-07-31 20:25:21 +12:00
}
}
2016-09-08 11:20:43 -04:00
2018-07-31 20:25:21 +12:00
.send-amount-extras {
display: flex;
flex: 0 0 auto;
/* So that if only one item is present, it appears on the right. */
flex-direction: row-reverse;
font-size: 12px;
align-items: center;
justify-content: space-between;
margin: 0 14px;
2018-05-08 00:28:44 +09:00
2018-07-31 20:25:21 +12:00
.available-funds {
color: #6F6F70;
text-align: left;
2018-07-31 20:25:21 +12:00
}
2018-05-08 00:28:44 +09:00
.change-currency {
text-align: right;
2018-07-31 20:25:21 +12:00
}
2018-05-08 00:28:44 +09:00
.warning {
color: $v-warning-color-2;
2018-07-31 20:25:21 +12:00
}
.extra {
flex: 1;
2018-07-31 20:25:21 +12:00
line-height: normal;
.button {
background: none;
border: none;
border-radius: 0;
color: #000;
font-family: 'ProximaNova';
font-size: 14px;
line-height: normal;
min-height: auto;
min-width: auto;
padding: 0;
}
2018-07-31 20:25:21 +12:00
.button .icon:before {
font-size: 14px;
line-height: normal;
}
.button {
span {
display: flex;
align-items: center;
justify-content: center;
}
2018-05-08 00:28:44 +09:00
}
2016-09-08 11:20:43 -04:00
}
}
2018-05-08 00:28:44 +09:00
.button {
&.no-margin {
margin: 0;
2016-09-08 11:20:43 -04:00
}
}
2018-05-08 00:28:44 +09:00
.notification-warning {
display: block;
padding: .75rem 1.25rem;
color: #856404;
background-color: #fff3cd;
border: 1px solid #ffeeba;
line-height: 1.4em;
margin-bottom: 20px;
}
.keypad-container {
position: relative;
2018-07-31 20:25:21 +12:00
font-size: 18px;
line-height: 2em;
2018-05-08 00:28:44 +09:00
//flex: 0 1 196px;
2018-07-31 20:25:21 +12:00
@media (min-height: 667px) {
font-size: 24px;
}
@media(max-height: 480px) {
font-size: 12px;
}
2018-05-08 00:28:44 +09:00
@media (min-height: 667px) {
//flex: 0 1 224px;
}
2018-07-31 20:25:21 +12:00
.sendmax {
background: $v-off-black;
.button {
color: white;
background: black;
border: 1px solid $v-off-black;
border-radius: 0;
font-size: 0.8em;
line-height: 2em;
width: 100%;
.available-funds-amount {
color: #C9C9C9;
}
&:active {
background-color: $v-dark-gray;
}
}
}
2018-05-08 00:28:44 +09:00
.keypad {
text-align: center;
font-weight: lighter;
position: absolute;
bottom: 0;
width: 100%;
2018-07-31 20:25:21 +12:00
color: $v-text-primary-color;
2018-05-08 00:28:44 +09:00
.row {
padding: 0 !important;
margin: 0 !important;
}
.row {
&:last-child {
.col {
padding-bottom: 10px;
}
}
}
.operator {
background-color: $v-subtle-gray;
font-weight: normal;
cursor: pointer;
&:active {
background-color: $v-light-gray;
}
}
.operator-send {
font-weight: bolder;
color: #fff;
background-color: $positive;
font-size: 36px;
cursor: pointer;
&:active {
background-color: #eaeaea;
}
}
.digit{
cursor: pointer;
2018-07-31 20:25:21 +12:00
background-color: #000;
border: 1px solid $v-off-black;
2018-05-08 00:28:44 +09:00
transition: all 0.1s ease;
2017-01-18 12:36:26 -03:00
2018-05-08 00:28:44 +09:00
&:active {
2018-07-31 20:25:21 +12:00
background-color: $v-dark-gray;
2018-05-08 00:28:44 +09:00
}
}
}
2017-01-18 12:36:26 -03:00
}
2018-07-31 20:25:21 +12:00
.button-primary {
background-color: $v-primary-color;
border-radius: 0;
font-weight: bold;
}
.button-primary[disabled] {
background-color: $v-button-primary-disabled-bg;
opacity: 1;
}
}
.warning {
color: $v-warning-color-2;
2016-09-08 11:20:43 -04:00
}
2018-07-31 20:25:21 +12:00
background: $v-background-under-card;
2018-05-31 15:36:17 +02:00
ion-content {
margin-bottom: constant(safe-area-inset-bottom); /* iOS 11.0 */
margin-bottom: env(safe-area-inset-bottom); /* iOS 11.2 */
}
2018-05-08 00:28:44 +09:00
}