Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): Sharing OOBI instead of identifier (#391)
* fix: layout & oobi * fix: broken tests & cleanup * fix: margin bottom on Android
- Loading branch information
1 parent
735d3ac
commit 101699b
Showing
7 changed files
with
199 additions
and
282 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
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,68 +1,101 @@ | ||
.share-identifier { | ||
h2 { | ||
text-align: left; | ||
} | ||
|
||
ion-col { | ||
display: flex; | ||
flex-direction: column; | ||
.share-identifier-modal { | ||
&.md { | ||
.share-identifier-body { | ||
margin-bottom: 0; | ||
} | ||
} | ||
|
||
ion-button, | ||
ion-button.md { | ||
width: 2.8125rem; | ||
height: 2.8125rem; | ||
margin: 0; | ||
--background: transparent; | ||
--box-shadow: none; | ||
--color: var(--ion-color-secondary); | ||
--background-activated: var(--ion-color-light-grey); | ||
.responsive-modal-content { | ||
.page-header { | ||
ion-toolbar { | ||
--background: transparent; | ||
} | ||
} | ||
|
||
&::part(native) { | ||
padding: 0; | ||
p.share-identifier-subtitle { | ||
text-align: center; | ||
margin: 0 0 0.5rem; | ||
} | ||
} | ||
|
||
ion-icon { | ||
width: 1.475rem; | ||
height: 1.475rem; | ||
margin: 0; | ||
} | ||
.share-identifier-body-component { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
#react-qrcode-logo { | ||
padding: 1.5rem; | ||
margin: 1rem auto; | ||
background-color: white; | ||
box-shadow: 0px 2px 4px rgba(54, 60, 74, 0.2); | ||
border-radius: 16px; | ||
} | ||
ion-button, | ||
ion-button.md { | ||
width: 2.8125rem; | ||
height: 2.8125rem; | ||
margin: 0; | ||
--background: transparent; | ||
--box-shadow: none; | ||
--color: var(--ion-color-secondary); | ||
--background-activated: var(--ion-color-light-grey); | ||
|
||
.share-identifier-divider { | ||
display: flex; | ||
margin-bottom: 1rem; | ||
&::part(native) { | ||
padding: 0; | ||
} | ||
} | ||
|
||
.share-identifier-divider-line { | ||
border-bottom: 1px solid var(--ion-color-dark-grey); | ||
display: flex; | ||
flex-grow: 2; | ||
margin-bottom: 0.5rem; | ||
ion-icon { | ||
width: 1.475rem; | ||
height: 1.475rem; | ||
margin: 0; | ||
} | ||
.share-identifier-divider-text { | ||
margin-inline: 0.5rem; | ||
|
||
#react-qrcode-logo { | ||
width: 70vw !important; | ||
height: 70vw !important; | ||
padding: 1.5rem; | ||
margin: 1rem auto; | ||
background-color: white; | ||
box-shadow: 0px 2px 4px rgba(54, 60, 74, 0.2); | ||
border-radius: 16px; | ||
} | ||
} | ||
|
||
.share-identifier-option { | ||
display: flex; | ||
.share-identifier-divider { | ||
display: flex; | ||
margin-bottom: 1rem; | ||
|
||
.share-identifier-divider-line { | ||
border-bottom: 1px solid var(--ion-color-dark-grey); | ||
display: flex; | ||
flex-grow: 2; | ||
margin-bottom: 0.5rem; | ||
} | ||
.share-identifier-divider-text { | ||
margin-inline: 0.5rem; | ||
} | ||
} | ||
|
||
> * { | ||
.share-identifier-option { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
height: 2.875rem; | ||
|
||
> * { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
} | ||
|
||
&:not(:last-child) { | ||
margin-bottom: 0.25rem; | ||
} | ||
} | ||
|
||
&:not(:last-child) { | ||
margin-bottom: 0.5rem; | ||
@media screen and (min-width: 250px) and (max-width: 370px) { | ||
#react-qrcode-logo { | ||
padding: 1.2rem; | ||
} | ||
|
||
.share-identifier-body-component, | ||
.share-identifier-divider-text { | ||
font-size: 0.8rem; | ||
} | ||
|
||
.share-identifier-option { | ||
height: 2.3rem; | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.