From 0ef63807779b5707562bfaedcfad82182fd52510 Mon Sep 17 00:00:00 2001 From: James Prado Date: Tue, 21 Nov 2017 13:33:20 -0500 Subject: [PATCH] Wallet-Decrypt/Send Tooltips (#436) * Update Help component && Fix some css errors --- common/assets/images/icon-help-3.svg | 1 + common/assets/styles/etherwallet-custom.less | 50 +------------------ common/components/WalletDecrypt/Web3.tsx | 2 +- common/components/WalletDecrypt/index.tsx | 30 ++++++++--- common/components/ui/Help.scss | 30 +++++++++++ common/components/ui/Help.tsx | 34 +++---------- .../SendTransaction/components/NonceField.tsx | 9 ++-- common/sass/styles/overrides/forms.scss | 3 +- 8 files changed, 69 insertions(+), 90 deletions(-) create mode 100644 common/assets/images/icon-help-3.svg create mode 100644 common/components/ui/Help.scss diff --git a/common/assets/images/icon-help-3.svg b/common/assets/images/icon-help-3.svg new file mode 100644 index 00000000..7def12b7 --- /dev/null +++ b/common/assets/images/icon-help-3.svg @@ -0,0 +1 @@ + diff --git a/common/assets/styles/etherwallet-custom.less b/common/assets/styles/etherwallet-custom.less index 4ab73d56..0e10a4de 100755 --- a/common/assets/styles/etherwallet-custom.less +++ b/common/assets/styles/etherwallet-custom.less @@ -135,52 +135,6 @@ textarea { } } -.account-help-icon { - h3, - h4, - h5, - h6, - img { - display: inline-block; - } - img:hover + .account-help-text { - display: block; - } - img { - margin-left: -30px; - margin-right: 3px; - } -} - -.account-help-text { - background: white; - border-radius: @border-radius; - border: 1px solid #cdcdcd; - box-shadow: 0 0 @space-sm rgba(100, 100, 100, .2); - display: none; - font-size: @font-size-xs; - font-weight: 400; - padding: @space-xs; - position: absolute; - width: 18rem; - z-index: 999; - ul& { - padding-left: 1.6rem; - } - li { - font-size: @font-size-xs; - font-weight: 400; - } -} - -@media screen and (max-width: 767px) { - .account-help-icon li, - .account-help-icon img, - .account-help-icon p { - display: none; - } -} - // monospace things .mono, .form-control, @@ -283,7 +237,7 @@ input[type="password"] + .eye { .m-addresses td:first-child { max-width: 50px; - min-widht: 50px; + min-width: 50px; } .m-addresses td:last-child { @@ -444,4 +398,4 @@ label small { .ens-response { color: @gray; -} +} \ No newline at end of file diff --git a/common/components/WalletDecrypt/Web3.tsx b/common/components/WalletDecrypt/Web3.tsx index f2edeae6..50ed20e4 100644 --- a/common/components/WalletDecrypt/Web3.tsx +++ b/common/components/WalletDecrypt/Web3.tsx @@ -13,7 +13,7 @@ export default class Web3Decrypt extends Component {