This commit is contained in:
sairaj mote 2020-10-04 16:22:07 +05:30
parent fdd6a274a2
commit 169446a9bd
5 changed files with 37 additions and 35 deletions

View File

@ -1999,12 +1999,7 @@ smPopup.innerHTML = `
padding: 1.5rem; padding: 1.5rem;
overflow-y: auto; overflow-y: auto;
} }
.heading{
font-weight: 400;
}
.heading:first-letter{
text-transform: uppercase;
}
.hide{ .hide{
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
@ -2043,15 +2038,6 @@ smPopup.innerHTML = `
border-radius: 1rem; border-radius: 1rem;
margin: 0.5rem 0; margin: 0.5rem 0;
} }
.heading{
padding: 1rem 1.5rem
}
.close{
height: 2rem;
width: 2rem;
padding: 0.55rem;
margin-right: 1rem;
}
} }
</style> </style>
<div part="background" class="popup-container hide" role="dialog"> <div part="background" class="popup-container hide" role="dialog">

View File

@ -35,6 +35,11 @@ body[data-theme=dark] {
body[data-theme=dark] .flo-balance-card { body[data-theme=dark] .flo-balance-card {
color: rgba(var(--text-color), 1); color: rgba(var(--text-color), 1);
} }
body[data-theme=dark] #my_qr_code {
background: #fff;
border-radius: 1rem;
padding: 1rem;
}
a { a {
font-weight: 600; font-weight: 600;
@ -397,10 +402,6 @@ textarea {
#prompt { #prompt {
flex-direction: column; flex-direction: column;
} }
#confirmation p,
#prompt p {
margin: 1rem;
}
#confirmation h4, #confirmation h4,
#prompt h4 { #prompt h4 {
font-weight: 500; font-weight: 500;
@ -463,10 +464,12 @@ sm-popup h5:not(.tag) {
#qr_code_popup::part(popup-body) { #qr_code_popup::part(popup-body) {
padding: 0; padding: 0;
} }
#qr_code_popup .popup-header {
padding-bottom: 1.5rem;
}
#qr_code_popup sm-tab-header { #qr_code_popup sm-tab-header {
width: max-content; margin: 0 auto;
align-self: center; transform: translateX(-1rem);
margin-bottom: 2rem;
} }
#qr_code_popup sm-panel { #qr_code_popup sm-panel {
display: flex; display: flex;
@ -482,6 +485,11 @@ sm-popup h5:not(.tag) {
margin-top: 1.5rem; margin-top: 1.5rem;
opacity: 0.8; opacity: 0.8;
text-align: center; text-align: center;
max-width: 30ch;
}
sm-input[type=number] {
font-size: 1.2rem;
} }
.popup-header { .popup-header {

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -32,6 +32,11 @@ body[data-theme="dark"]{
.flo-balance-card{ .flo-balance-card{
color: rgba(var(--text-color), 1); color: rgba(var(--text-color), 1);
} }
#my_qr_code{
background: #fff;
border-radius: 1rem;
padding: 1rem;
}
} }
a { a {
@ -407,10 +412,6 @@ textarea {
#confirmation, #confirmation,
#prompt { #prompt {
flex-direction: column; flex-direction: column;
p {
margin: 1rem;
}
h4 { h4 {
font-weight: 500; font-weight: 500;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
@ -479,10 +480,12 @@ sm-popup{
&::part(popup-body){ &::part(popup-body){
padding: 0; padding: 0;
} }
.popup-header{
padding-bottom: 1.5rem;
}
sm-tab-header{ sm-tab-header{
width: max-content; margin: 0 auto;
align-self: center; transform: translateX(-1rem);
margin-bottom: 2rem;
} }
sm-panel{ sm-panel{
display: flex; display: flex;
@ -498,8 +501,12 @@ sm-popup{
margin-top: 1.5rem; margin-top: 1.5rem;
opacity: 0.8; opacity: 0.8;
text-align: center; text-align: center;
max-width: 30ch;
} }
} }
sm-input[type="number"]{
font-size: 1.2rem;
}
.popup-header{ .popup-header{
padding: 1.5rem; padding: 1.5rem;

View File

@ -61,11 +61,11 @@
<line x1="64" y1="0" x2="0" y2="64" /> <line x1="64" y1="0" x2="0" y2="64" />
<line x1="64" y1="64" x2="0" y2="0" /> <line x1="64" y1="64" x2="0" y2="0" />
</svg> </svg>
<sm-tab-header variant="tab" class="round" target="qr_selector">
<sm-tab>Scan</sm-tab>
<sm-tab>My QR Code</sm-tab>
</sm-tab-header>
</header> </header>
<sm-tab-header variant="tab" class="round" target="qr_selector">
<sm-tab>Scan</sm-tab>
<sm-tab>My QR Code</sm-tab>
</sm-tab-header>
<sm-tab-panels id="qr_selector"> <sm-tab-panels id="qr_selector">
<sm-panel> <sm-panel>
<div id="reader"></div> <div id="reader"></div>
@ -428,7 +428,7 @@
</svg> </svg>
<svg id="delete_person" onclick="deletePerson()" class="icon" viewBox="0 0 64 64" title="Remove"> <svg id="delete_person" onclick="deletePerson()" class="icon" viewBox="0 0 64 64" title="Remove">
<title>remove</title> <title>remove</title>
<line x1="8" y1="2.5" x2="56" y2="2.5"/> <line x1="4" y1="2.5" x2="60" y2="2.5"/>
<line x1="33.92" y1="0.5" x2="30.08" y2="0.5"/> <line x1="33.92" y1="0.5" x2="30.08" y2="0.5"/>
<path d="M53.5,17.5V59.42a4.08,4.08,0,0,1-4.08,4.08H14.58a4.08,4.08,0,0,1-4.08-4.08V17.5"/> <path d="M53.5,17.5V59.42a4.08,4.08,0,0,1-4.08,4.08H14.58a4.08,4.08,0,0,1-4.08-4.08V17.5"/>
</svg> </svg>
@ -1665,6 +1665,7 @@
}, },
qrCodeMessage => { qrCodeMessage => {
scannedFloId = qrCodeMessage scannedFloId = qrCodeMessage
if(floCrypto.validateAddr(scannedFloId))
qrScannerInstance.stop().then(ignore => { qrScannerInstance.stop().then(ignore => {
// QR Code scanning is stopped. // QR Code scanning is stopped.
hidePopup() hidePopup()