Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 60e8ab6

Browse files
Amina/ style fix on popup (#7028)
* style fix * style fix * styl efix * lint fix * mobile-style fix * master * master Co-authored-by: Kevin <70131533+kevinw-binary@users.noreply.github.com>
1 parent 0a49fb3 commit 60e8ab6

File tree

3 files changed

+50
-11
lines changed

3 files changed

+50
-11
lines changed

src/sass/app/websocket_pages.scss

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,18 +291,57 @@
291291
max-width: 25em;
292292
padding: 32px;
293293

294-
#btn_cancel {
295-
span {
296-
width: calc(100% - 50px);
297-
}
294+
#frm_confirm {
295+
justify-content: center;
298296
}
299-
#btn_ok {
300-
width: calc(100% - 25px);
297+
.hint {
298+
padding: 0px 10px 25px 0px;
299+
white-space: nowrap;
300+
@media screen and (max-width: 500px) {
301+
padding: 0px 10px 20px 0px;
302+
white-space: nowrap;
303+
}
304+
@media screen and (max-width: 345px) {
305+
padding: 0px 10px 20px 0px;
306+
white-space: nowrap;
307+
font-size: x-small;
308+
}
301309
}
302310
&#dialog_content {
303311
padding: 22px 12px;
304312
}
305313
}
314+
&#top_up_virtual_pop_up, &#top_up_error {
315+
#continue_text {
316+
width: calc(100% - 50px);
317+
@media screen and (max-width: 435px) {
318+
width: calc(100% - 1rem);
319+
font-size: small;
320+
padding: 10px;
321+
}
322+
@media screen and (max-width: 300px) {
323+
width: calc(100% - 0.625rem);
324+
font-size: x-small;
325+
padding: 10px;
326+
}
327+
}
328+
#btn_ok {
329+
width: calc(100% - 10px);
330+
height: 56px;
331+
@media screen and (max-width: 435px) {
332+
font-size: small;
333+
width: calc(100% - 0.375rem);
334+
padding: 10px;
335+
height: 46px;
336+
}
337+
@media screen and (max-width: 300px) {
338+
font-size: x-small;
339+
width: 100%;
340+
height: 40px;
341+
margin-left: 10px;
342+
}
343+
}
344+
}
306345
}
307346
&#top_up_error {
308347
> div {
@@ -322,8 +361,8 @@
322361
width: 100%;
323362
text-align: center;
324363

325-
.button span {
326-
width: calc(50% - 55px);
364+
#cancel_btn_text, #ok_btn_text {
365+
width: 4.5rem;
327366
}
328367
}
329368
}

src/templates/app/dialog.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const Dialog = () => (
99
<p id='dialog_message' className='gr-padding-10 no-margin' />
1010
<div className='gr-row gr-row-align-right gr-padding-10'>
1111
<form id='frm_confirm'>
12-
<a className='button button-secondary' id='btn_cancel' href='javascript:;'><span>{it.L('Cancel')}</span></a>
13-
<a className='button' id='btn_ok' href='javascript:;'><span>{it.L('OK')}</span></a>
12+
<a className='button button-secondary' id='btn_cancel' href='javascript:;'><span id='cancel_btn_text'>{it.L('Cancel')}</span></a>
13+
<a className='button' id='btn_ok' href='javascript:;'><span id='ok_btn_text'>{it.L('OK')}</span></a>
1414
</form>
1515
</div>
1616
<p id='dialog_footnote' className='invisible hint' />

src/templates/app/user/top_up_virtual/pop_up.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const TopUpVirtualPopup = () => (
1414
</div>
1515
<div className='gr-row'>
1616
<div className='gr-6'>
17-
<a className='button button-secondary' id='btn_cancel' href='javascript:;'><span>{it.L('Continue trading')}</span></a>
17+
<a className='button button-secondary' id='btn_cancel' href='javascript:;'><span id='continue_text'>{it.L('Continue trading')}</span></a>
1818
</div>
1919
<div className='gr-6 gr-no-gutter-left'>
2020
<button className='button' type='submit' id='btn_ok'>{it.L('Top up')}</button>

0 commit comments

Comments
 (0)