aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2018-06-29 07:57:32 +0800
committerGitHub <noreply@github.com>2018-06-29 07:57:32 +0800
commit218f2e84db71f30858b61938346f913ef71141fd (patch)
tree8fc04ba3f1d6b9613ccde1de4755c5a545d6a70e
parent9f5ee94b6937c741684de5e70ac0f9fea5f50226 (diff)
parente8fa18779d72a74fa1c003415c73f715177a64d8 (diff)
downloadtangerine-wallet-browser-218f2e84db71f30858b61938346f913ef71141fd.tar
tangerine-wallet-browser-218f2e84db71f30858b61938346f913ef71141fd.tar.gz
tangerine-wallet-browser-218f2e84db71f30858b61938346f913ef71141fd.tar.bz2
tangerine-wallet-browser-218f2e84db71f30858b61938346f913ef71141fd.tar.lz
tangerine-wallet-browser-218f2e84db71f30858b61938346f913ef71141fd.tar.xz
tangerine-wallet-browser-218f2e84db71f30858b61938346f913ef71141fd.tar.zst
tangerine-wallet-browser-218f2e84db71f30858b61938346f913ef71141fd.zip
Merge pull request #4634 from MetaMask/i4503-touch-up-shpshft-button-style
Fix style of shapeshift screen in deposit modal.
-rw-r--r--ui/app/components/shapeshift-form.js2
-rw-r--r--ui/app/css/itcss/components/modal.scss31
2 files changed, 26 insertions, 7 deletions
diff --git a/ui/app/components/shapeshift-form.js b/ui/app/components/shapeshift-form.js
index 93d2023b5..2c4ba40bf 100644
--- a/ui/app/components/shapeshift-form.js
+++ b/ui/app/components/shapeshift-form.js
@@ -181,7 +181,7 @@ ShapeshiftForm.prototype.render = function () {
return h('div.shapeshift-form-wrapper', [
showQrCode
? this.renderQrCode()
- : h('div.shapeshift-form', [
+ : h('div.modal-shapeshift-form', [
h('div.shapeshift-form__selectors', [
h('div.shapeshift-form__selector', [
diff --git a/ui/app/css/itcss/components/modal.scss b/ui/app/css/itcss/components/modal.scss
index 74658f656..42ef7ae0a 100644
--- a/ui/app/css/itcss/components/modal.scss
+++ b/ui/app/css/itcss/components/modal.scss
@@ -642,10 +642,31 @@
display: flex;
flex-flow: column nowrap;
flex: 1;
+ align-items: center;
@media screen and (max-width: 575px) {
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 {
@@ -773,17 +794,15 @@
margin-top: 28px;
flex: 1 0 auto;
- .shapeshift-form {
- width: auto;
+ .shapeshift-form, .modal-shapeshift-form {
+ border-radius: 8px;
+ background-color: rgba(0, 0, 0, .05);
+ padding: 17px 15px;
&__caret {
width: auto;
flex: 1;
}
-
- @media screen and (max-width: 575px) {
- width: auto;
- }
}
}