1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix style of shapeshift screen in deposit modal.

This commit is contained in:
Dan 2018-06-21 15:04:24 -02:30
parent 46b2f1df11
commit e8fa18779d
2 changed files with 26 additions and 7 deletions

View File

@ -181,7 +181,7 @@ ShapeshiftForm.prototype.render = function () {
return h('div.shapeshift-form-wrapper', [ return h('div.shapeshift-form-wrapper', [
showQrCode showQrCode
? this.renderQrCode() ? this.renderQrCode()
: h('div.shapeshift-form', [ : h('div.modal-shapeshift-form', [
h('div.shapeshift-form__selectors', [ h('div.shapeshift-form__selectors', [
h('div.shapeshift-form__selector', [ h('div.shapeshift-form__selector', [

View File

@ -642,10 +642,31 @@
display: flex; display: flex;
flex-flow: column nowrap; flex-flow: column nowrap;
flex: 1; flex: 1;
align-items: center;
@media screen and (max-width: 575px) { @media screen and (max-width: 575px) {
height: 0; height: 0;
} }
.shapeshift-form-wrapper {
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
flex: 1 0 auto;
.shapeshift-form, .modal-shapeshift-form {
border-radius: 8px;
background-color: rgba(0, 0, 0, .05);
padding: 17px 15px;
margin-bottom: 10px;
&__caret {
width: auto;
flex: 1;
}
}
}
} }
&__logo { &__logo {
@ -773,17 +794,15 @@
margin-top: 28px; margin-top: 28px;
flex: 1 0 auto; flex: 1 0 auto;
.shapeshift-form { .shapeshift-form, .modal-shapeshift-form {
width: auto; border-radius: 8px;
background-color: rgba(0, 0, 0, .05);
padding: 17px 15px;
&__caret { &__caret {
width: auto; width: auto;
flex: 1; flex: 1;
} }
@media screen and (max-width: 575px) {
width: auto;
}
} }
} }