-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): Standardise pages layout: Set Passcode (#254)
* fix: temporary disable core agent * fix: padding responsiveness on slides p * fix: refactor PageHeader * wip: adding comments to unused legacy style * wip: refactor PasscodeModule * wip: refactor PasscodeModule * wip: refactor buttons mapping * wip: keypad buttons responsiveness * wip: passcode circles & error message * wip: progress bar * fix: tests and remove comment * fix: unit tests * fix: rm safe area & adj media query & rm height * fix: restore PageLayout style
- Loading branch information
1 parent
6b85a94
commit 713586e
Showing
30 changed files
with
728 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
.error-message { | ||
font-style: normal; | ||
font-weight: 500; | ||
font-size: 16px; | ||
line-height: 22px; | ||
text-align: center; | ||
opacity: 0; | ||
transition: opacity 0.5s ease-in-out; | ||
transition: opacity 2s ease-in-out; | ||
|
||
&.visible { | ||
opacity: 1; | ||
} | ||
|
||
p { | ||
color: var(--ion-color-danger); | ||
} | ||
} | ||
|
||
.error-message-placeholder { | ||
height: 2.375rem; | ||
} | ||
|
||
.error-message.visible { | ||
opacity: 1; | ||
@media screen and (min-height: 300px) and (max-height: 600px) { | ||
.error-message-placeholder { | ||
height: 1.7rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
.page-footer { | ||
padding-top: 0.5rem; | ||
padding: 0.5rem 0; | ||
|
||
ion-button { | ||
margin: 0 auto 1rem; | ||
|
||
&:last-of-type { | ||
margin-bottom: 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
.page-header { | ||
ion-toolbar, | ||
ion-grid, | ||
ion-col { | ||
padding-inline: 0; | ||
--padding-start: 0; | ||
--padding-end: 0; | ||
} | ||
|
||
ion-toolbar { | ||
ion-icon { | ||
font-size: 1.85em !important; | ||
} | ||
|
||
.progress-bar-container { | ||
margin-left: 1.25rem; | ||
|
||
ion-progress-bar, | ||
ion-progress-bar::part(progress) { | ||
height: 0.5rem; | ||
border-radius: 0.5rem; | ||
} | ||
} | ||
|
||
.back-button, | ||
.close-button, | ||
.action-button { | ||
width: 2.81rem; | ||
height: 2.81rem; | ||
border-radius: 1.5rem; | ||
background: var(--ion-color-light-grey); | ||
} | ||
|
||
ion-button[disabled="true"] { | ||
color: var(--ion-color-dark-grey); | ||
} | ||
|
||
.close-button-label, | ||
.action-button-label { | ||
font-size: 1rem; | ||
font-weight: 700; | ||
|
||
&.md { | ||
font-size: 0.8rem; | ||
} | ||
} | ||
|
||
.close-button-label { | ||
--padding-start: 0px; | ||
} | ||
|
||
.action-button-label { | ||
--padding-end: 0px; | ||
&[disabled="false"] { | ||
color: var(--ion-color-blue); | ||
} | ||
} | ||
} | ||
|
||
ion-title { | ||
padding: 0; | ||
text-align: center; | ||
} | ||
|
||
@media screen and (min-height: 300px) and (max-height: 600px) { | ||
ion-toolbar { | ||
.back-button, | ||
.close-button, | ||
.action-button { | ||
width: 2rem; | ||
height: 2rem; | ||
|
||
&::part(native) { | ||
padding: 0.35rem; | ||
} | ||
} | ||
|
||
.progress-bar-container { | ||
margin-left: 0.75rem; | ||
|
||
ion-progress-bar, | ||
ion-progress-bar::part(progress) { | ||
height: 0.35rem; | ||
border-radius: 0.35rem; | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.