mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #5950 from homeopatchy/webview-30-small-devices
Fix styles for old webview (android 4.4.2) and small devices
This commit is contained in:
commit
3bd9b4e8ec
|
@ -32,6 +32,13 @@
|
||||||
padding-left: 48px;
|
padding-left: 48px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media(max-width: 320px) {
|
||||||
|
.bitcoin-address {
|
||||||
|
& > span:last-child {
|
||||||
|
margin-left: -2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.send-gravatar {
|
.send-gravatar {
|
||||||
left: 11px;
|
left: 11px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -51,6 +58,9 @@
|
||||||
@media(max-height: 480px) {
|
@media(max-height: 480px) {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
@media(max-width: 320px) {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
.title {
|
.title {
|
||||||
float: left;
|
float: left;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
|
@ -78,6 +88,16 @@
|
||||||
@media(max-height: 480px) {
|
@media(max-height: 480px) {
|
||||||
top: 45px;
|
top: 45px;
|
||||||
}
|
}
|
||||||
|
@media(max-width: 320px) {
|
||||||
|
bottom: 276px;
|
||||||
|
top: 60px;
|
||||||
|
& > div {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
& > div:first-child {
|
||||||
|
display: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.amount-pane-no-recipient {
|
.amount-pane-no-recipient {
|
||||||
|
@ -147,6 +167,10 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -3px;
|
top: -3px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
@media(max-width: 320px) {
|
||||||
|
line-height: 30px;
|
||||||
|
height: 30px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&__results {
|
&__results {
|
||||||
&--minimize {
|
&--minimize {
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
padding: 50px 10px 30px;
|
padding: 50px 10px 30px;
|
||||||
background-color: $v-subtle-gray;
|
background-color: $v-subtle-gray;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
-webkit-transform: translateY(100%);
|
||||||
transform: translateY(100%);
|
transform: translateY(100%);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
animation-name: slideUpFadeIn;
|
animation-name: slideUpFadeIn;
|
||||||
|
@ -76,10 +77,12 @@
|
||||||
|
|
||||||
@keyframes slideUpFadeIn {
|
@keyframes slideUpFadeIn {
|
||||||
from {
|
from {
|
||||||
|
-webkit-transform: translateY(100%);
|
||||||
transform: translateY(100%);
|
transform: translateY(100%);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
to {
|
to {
|
||||||
|
-webkit-transform: translateY(0);
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
&-amount {
|
&-amount {
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
@media(max-width: 320px) {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-note {
|
&-note {
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
transition: transform 2.5s ease;
|
transition: transform 2.5s ease;
|
||||||
&.shrink{
|
&.shrink{
|
||||||
|
-webkit-transform: scale(.8);
|
||||||
transform: scale(.8);
|
transform: scale(.8);
|
||||||
}
|
}
|
||||||
&-container {
|
&-container {
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
@media(max-height: 600px) and (-webkit-device-pixel-ratio: 2) {
|
@media(max-height: 600px) and (-webkit-device-pixel-ratio: 2) {
|
||||||
height: 64vh;
|
height: 64vh;
|
||||||
}
|
}
|
||||||
|
@media(max-width: 320px) {
|
||||||
|
height: 62vh;
|
||||||
|
}
|
||||||
&-info {
|
&-info {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -35,6 +38,9 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@media(max-width: 320px) {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
article {
|
article {
|
||||||
flex:1;
|
flex:1;
|
||||||
|
@ -42,11 +48,9 @@
|
||||||
}
|
}
|
||||||
#bit-address {
|
#bit-address {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
align-self: flex-end;
|
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
justify-content: center;
|
position: absolute;
|
||||||
align-content: center;
|
bottom: 0;
|
||||||
position: relative;
|
|
||||||
min-height: 40px;
|
min-height: 40px;
|
||||||
#next-address {
|
#next-address {
|
||||||
color:$v-light-gray;
|
color:$v-light-gray;
|
||||||
|
@ -100,6 +104,7 @@
|
||||||
top:50%;
|
top:50%;
|
||||||
&, &.next {
|
&, &.next {
|
||||||
left:100%;
|
left:100%;
|
||||||
|
-webkit-transform: translate(100%, -40%);
|
||||||
transform: translate(100%, -40%);
|
transform: translate(100%, -40%);
|
||||||
}
|
}
|
||||||
&.next, &.prev {
|
&.next, &.prev {
|
||||||
|
@ -110,10 +115,12 @@
|
||||||
left:50%;
|
left:50%;
|
||||||
}
|
}
|
||||||
&.current {
|
&.current {
|
||||||
|
-webkit-transform: translate(-50%, -40%);
|
||||||
transform: translate(-50%, -40%);
|
transform: translate(-50%, -40%);
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
&.prev {
|
&.prev {
|
||||||
|
-webkit-transform: translate(-150%, -40%);
|
||||||
transform: translate(-150%, -40%);
|
transform: translate(-150%, -40%);
|
||||||
}
|
}
|
||||||
.item {
|
.item {
|
||||||
|
@ -127,6 +134,12 @@
|
||||||
@media(min-width:450px) {
|
@media(min-width:450px) {
|
||||||
font-size:1rem;
|
font-size:1rem;
|
||||||
}
|
}
|
||||||
|
&.item-icon-left {
|
||||||
|
@media(max-width: 320px) {
|
||||||
|
padding-left: 48px;
|
||||||
|
text-overflow: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
color:$v-light-gray;
|
color:$v-light-gray;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -139,6 +152,10 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
@media(max-width: 320px) {
|
||||||
|
height: 260px;
|
||||||
|
margin-top: -50px;
|
||||||
|
}
|
||||||
div {
|
div {
|
||||||
transition: all .4s ease;
|
transition: all .4s ease;
|
||||||
&.current,
|
&.current,
|
||||||
|
@ -152,13 +169,16 @@
|
||||||
left:50%;
|
left:50%;
|
||||||
}
|
}
|
||||||
&.current {
|
&.current {
|
||||||
|
-webkit-transform: translate(-50%, -40%);
|
||||||
transform: translate(-50%, -40%);
|
transform: translate(-50%, -40%);
|
||||||
}
|
}
|
||||||
&.prev {
|
&.prev {
|
||||||
|
-webkit-transform: translate(-150%, -40%);
|
||||||
transform: translate(-150%, -40%);
|
transform: translate(-150%, -40%);
|
||||||
}
|
}
|
||||||
&.next {
|
&.next {
|
||||||
left:100%;
|
left:100%;
|
||||||
|
-webkit-transform: translate(100%, -40%);
|
||||||
transform: translate(100%, -40%);
|
transform: translate(100%, -40%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -170,6 +190,7 @@
|
||||||
button {
|
button {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
|
-webkit-transform: translateY(-50%);
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -211,9 +232,6 @@
|
||||||
transform: scale(.7);
|
transform: scale(.7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#bit-address {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -379,6 +397,7 @@
|
||||||
.bit-address {
|
.bit-address {
|
||||||
.item{
|
.item{
|
||||||
top: 40%;
|
top: 40%;
|
||||||
|
-webkit-transform: translateY(-40%);
|
||||||
transform: translateY(-40%);
|
transform: translateY(-40%);
|
||||||
font-size:1rem;
|
font-size:1rem;
|
||||||
}
|
}
|
||||||
|
@ -417,6 +436,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
.card {
|
.card {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
-webkit-transform: scale(1);
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
&:before {
|
&:before {
|
||||||
|
@ -445,6 +465,7 @@
|
||||||
margin: 1.5rem auto 0;
|
margin: 1.5rem auto 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
|
-webkit-transform:scale(.85);
|
||||||
transform:scale(.85);
|
transform:scale(.85);
|
||||||
transition:transform .2s ease;
|
transition:transform .2s ease;
|
||||||
.item {
|
.item {
|
||||||
|
|
|
@ -152,6 +152,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
|
-webkit-transform: translateY(-499px);
|
||||||
transform: translateY(-499px);
|
transform: translateY(-499px);
|
||||||
|
|
||||||
&.collapsible {
|
&.collapsible {
|
||||||
|
@ -161,6 +162,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
|
-webkit-transform: translateY(100px);
|
||||||
transform: translateY(100px);
|
transform: translateY(100px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -174,12 +176,16 @@
|
||||||
display: block;
|
display: block;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@media(max-width: 320px) {
|
||||||
|
padding-top: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
&.collapsible {
|
&.collapsible {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__balance {
|
&__balance {
|
||||||
|
-webkit-transform: scale3d(1, 1, 1) translateY(45px);
|
||||||
transform: scale3d(1, 1, 1) translateY(45px);
|
transform: scale3d(1, 1, 1) translateY(45px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue