Wallet/src/sass/views/tab-receive.scss

423 lines
9.4 KiB
SCSS
Raw Normal View History

#tab-receive {
2016-09-07 13:49:08 -04:00
ion-header-bar{
button{
i{
color:#fff;
font-size: 1.1rem;
}
}
}
.border-top{
border-top:1px solid rgb(228,228,228);
}
2016-10-13 12:17:19 -04:00
.scroll{height:100%;}
#address {
background: #fff;
2016-11-15 15:15:40 -05:00
height: 66vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
flex-flow: column;
@media(max-height: 600px){
2016-11-15 15:15:40 -05:00
height: 68vh;
}
@media(max-height: 600px) and (-webkit-device-pixel-ratio: 2){
2016-11-15 15:15:40 -05:00
height: 64vh;
}
2016-11-11 13:49:51 -05:00
&-info{
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
}
article{
flex:1;
width: 100%;
}
#bit-address{
2016-11-11 13:49:51 -05:00
width: 100%;
align-self: flex-end;
margin-top: auto;
justify-content: center;
align-content: center;
position: relative;
min-height: 40px;
#next-address{
color:$light-gray;
}
2016-10-13 14:28:41 -04:00
}
2016-09-26 11:26:10 -03:00
.incomplete {
padding: 50px;
2016-10-13 11:45:45 -03:00
height: 352px;
2016-09-26 11:26:10 -03:00
.title {
padding: 20px;
font-size: 25px;
color: #444;
}
.subtitle {
padding: 20px;
color: #444;
}
.button {
}
}
.item {
border: none;
2016-09-07 13:49:08 -04:00
font-size: .8rem;
2016-11-15 15:15:40 -05:00
z-index: 0;
i {
font-size: 1.3rem;
}
}
.bit-address {
font-size: .8rem;
2016-11-11 13:49:51 -05:00
// left:10%;
position: absolute;
transition: all .15s ease;
2016-11-11 13:49:51 -05:00
width:100%;
height: 100%;
z-index: 0;
position: absolute;
top:50%;
&, &.next{
left:100%;
transform: translate(100%, -40%);
}
&.next, &.prev{
z-index:2;
}
&.current, &.prev{
left:50%;
}
&.current{
transform: translate(-50%, -40%);
z-index: 3;
}
&.prev{
transform: translate(-150%, -40%);
}
.item {
padding-top: 5px;
padding-bottom: 5px;
2016-09-20 14:36:54 -04:00
display: inline-block;
font-size: .8rem;
2016-11-15 15:15:40 -05:00
color:$mid-gray;
}
}
2016-09-26 13:05:15 -03:00
.qr {
2016-11-15 15:15:40 -05:00
padding: 15vh 0 4vh;
2016-11-11 13:49:51 -05:00
align-self: center;
margin-top: auto;
height: 220px;
position: relative;
justify-content: center;
flex: 1;
2016-11-15 15:15:40 -05:00
z-index: 1;
2016-11-11 13:49:51 -05:00
div{
transition: all .4s ease;
&.current, &.prev, &.next{
position: absolute;
top:50%;
}
&.current, &.prev{
left:50%;
}
&.current{
transform: translate(-50%, -40%);
}
&.prev{
transform: translate(-150%, -40%);
}
&.next{
left:100%;
transform: translate(100%, -40%);
}
}
@media(max-height: 700px){
2016-11-15 15:15:40 -05:00
padding: 10vh 0 4vh;
}
div{
display: flex;
justify-content: center;
align-items: center;
2016-11-11 13:49:51 -05:00
position: relative;
min-height: 220px;
}
}
#qr-options{
justify-content: center;
2016-11-11 13:49:51 -05:00
align-self: flex-end;
.item{
i{left:25px;}
}
2016-09-26 13:05:15 -03:00
}
.backup {
background-color: orange;
color: #fff;
position: absolute;
top: 0;
2016-11-11 13:49:51 -05:00
left:0;
z-index: 2;
2016-09-26 13:05:15 -03:00
i {
padding: 10px;
}
}
2016-10-13 14:28:41 -04:00
@media (max-height: 600px){
&{
.qr{
padding:6vh 0 0;
2016-10-13 14:28:41 -04:00
div{
-webkit-transform: scale(.7);
2016-10-13 14:28:41 -04:00
transform: scale(.7);
}
}
#bit-address{position: realtive;}
2016-10-13 14:28:41 -04:00
}
}
}
#wallets {
2016-09-07 13:49:08 -04:00
position: relative;
&:before {
content: "";
display: inline-block;
width: 0;
height: 0;
border-style: solid;
border-width: 0 20px 20px 20px;
2016-10-13 14:28:41 -04:00
border-color: transparent transparent rgb(242,242,242) transparent;
2016-09-07 09:56:52 -04:00
top: -9px;
position: absolute;
2016-10-13 14:28:41 -04:00
left: 50%;
-webkit-transform: translateX(-50%);
2016-10-13 14:28:41 -04:00
transform: translateX(-50%);
2016-11-11 13:49:51 -05:00
z-index: 4;
}
}
2016-09-07 13:49:08 -04:00
#first-time-tip {
background: rgba(30, 49, 134, 1);
background: -moz-linear-gradient(top, rgba(30, 49, 134, 1) 0%, rgba(30, 49, 134, 0) 88%, rgba(30, 49, 134, 0) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(30, 49, 134, 1)), color-stop(88%, rgba(30, 49, 134, 0)), color-stop(100%, rgba(30, 49, 134, 0)));
background: -webkit-linear-gradient(top, rgba(30, 49, 134, 1) 0%, rgba(30, 49, 134, 0) 88%, rgba(30, 49, 134, 0) 100%);
background: -o-linear-gradient(top, rgba(30, 49, 134, 1) 0%, rgba(30, 49, 134, 0) 88%, rgba(30, 49, 134, 0) 100%);
background: -ms-linear-gradient(top, rgba(30, 49, 134, 1) 0%, rgba(30, 49, 134, 0) 88%, rgba(30, 49, 134, 0) 100%);
background: linear-gradient(to bottom, rgba(30, 49, 134, 1) 0%, rgba(30, 49, 134, 0) 88%, rgba(30, 49, 134, 0) 100%);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
animation-name: fadeIn;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: .4s;
animation-delay: 2s;
animation-fill-mode: forwards;
z-index: 10;
text-align: center;
color: #fff;
padding-top: 3rem;
.close {
top: .5rem;
right: 1rem;
position: absolute;
font-size: 1.5rem;
opacity: .5;
}
h3 {
color: #fff;
margin-bottom:1rem;
}
}
.receive-tab-bitcoin-icon {
border-right: 1px solid rgb(228, 228, 228);
padding-right: 10px;
}
2016-11-11 13:49:51 -05:00
#wallets{
#sidebar-wallet{display: none;}
}
.wallets{
position: relative;
2016-11-15 15:15:40 -05:00
height: calc(27vh - 62px);
z-index: 5;
.slides {
.swiper-container{
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
2016-11-11 13:49:51 -05:00
max-width: 450px;
.swiper-wrapper{
2016-11-15 15:15:40 -05:00
height: auto;
top: 10%;
position:relative;
@media(max-height: 600px){padding-top:.2rem}
2016-11-15 15:15:40 -05:00
@media(min-height: 900px){top:30%;}
}
2016-11-11 13:49:51 -05:00
.swiper-slide{
text-align: center;
.card{
margin-top:2vh;
display: inline-block;
width:80%;
2016-11-15 15:15:40 -05:00
@media(min-height: 1000px) and (max-width: 699px){
2016-11-15 15:20:59 -05:00
.item{
padding: 2vh 3vw 2vh 3vw;
}
2016-11-15 15:15:40 -05:00
}
2016-11-11 13:49:51 -05:00
}
@media(max-width: 500px){
&-next{left:-25%;}
&-prev{left:25%;}
}
2016-11-11 13:49:51 -05:00
}
@media (max-height: 600px){
&{
-webkit-transform: translate(-50%, -58%);
transform: translate(-50%, -58%);
}
}
}
}
}
2016-11-11 13:49:51 -05:00
@media(min-width: 700px) and (min-height: 700px){
.wallets{display: none;}
#address{
float:left;
2016-11-15 15:15:40 -05:00
height:100%;
width:calc(100% - 410px);
@media(max-width: 1000px){
width:65%;
}
2016-11-11 13:49:51 -05:00
&-info{
height: 100%;
}
.qr{
height: 70%;
div{
opacity: 0;
transition: none;
&.current{
opacity: 1;
}
}
}
.bit-address{
opacity: 0;
transition: none;
&.current{
opacity: 1;
}
}
.backup, #bit-address{left:0;}
#bit-address{
height: 10%;
2016-11-15 15:15:40 -05:00
padding: 1vh;
.bit-address{
.item{
top: 40%;
transform: translateY(-40%);
}
}
2016-11-11 13:49:51 -05:00
}
}
#wallets{
float:left;
width:35%;
height: 100%;
display: flex;
flex-direction: column;
overflow: visible;
2016-11-15 15:15:40 -05:00
max-width: 410px;
@media(max-height: 600px){
padding-top:.55rem;
}
2016-11-15 15:15:40 -05:00
@media(max-width: 1000px){
max-width: none;
}
2016-11-11 13:49:51 -05:00
#sidebar-wallet{display: block;}
.list{height: 100%;overflow: visible;}
#wallet-list{
position: absolute;
width: 110%;
overflow-y: auto;
2016-11-11 13:49:51 -05:00
height: 100%;
left: -6%;
}
.wallet{
&.current{
2016-11-15 15:15:40 -05:00
position: relative;
.card{
opacity: 1;
transform: scale(1);
}
2016-11-11 13:49:51 -05:00
&:before {
right: 93%;
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-right-color: #f2f2f2;
border-width: 20px;
margin-top: -20px;
}
}
}
.card {
max-width: 350px;
box-shadow: 0 1px 36px rgba(0, 0, 0, 0.07);
2016-11-11 13:49:51 -05:00
padding:0;
border-radius: 6px;
padding:2px;
width: 80%;
position: relative;
margin: 1.5rem auto 0;
2016-11-15 15:15:40 -05:00
position: relative;
opacity: .5;
transform:scale(.85);
transition:transform .2s ease;
2016-11-11 13:49:51 -05:00
.item{
padding: 6% 10% 6% 8%;
span{
clear:both;
width: 100%;
display: inline-block;
&.wallet-name{
2016-11-15 15:15:40 -05:00
font-size:16px;
width: 70%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
font-weight: 600;
2016-11-11 13:49:51 -05:00
}
&.wallet-number{
visibility: hidden;
}
&.visible{
visibility: visible !important;
}
}
.big-icon-svg{
& > .bg{padding:.3rem;width: 40px;height:40px;}
}
}
}
}
}
2016-09-07 13:49:08 -04:00
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}