From b70d9cfa363f986c4290a9616142d5a445ede0d5 Mon Sep 17 00:00:00 2001 From: Maurice Dalderup Date: Sat, 26 May 2018 15:30:55 +0200 Subject: [PATCH 1/6] chore(components): fixed css background bug on certain occasions - removed outlines on click - added some css animation --- .../AccountInfoAmounts/AccountInfoAmounts.css | 22 +++++++++++++++++++ .../AccountInfoHeader/AccountInfoHeader.css | 8 +++++++ src/app/components/DropDown/DropDown.css | 4 ++++ src/app/components/MainNav/MainNav.css | 8 +++++++ src/app/components/MainNav/MainNav.js | 2 +- .../NetworkSwitcher/NetworkSwitcher.css | 12 ++++++++++ .../SettingsNavigation/SettingsNavigation.css | 4 ++++ 7 files changed, 59 insertions(+), 1 deletion(-) diff --git a/src/app/components/AccountInfo/AccountInfoAmounts/AccountInfoAmounts.css b/src/app/components/AccountInfo/AccountInfoAmounts/AccountInfoAmounts.css index 9d605e8..f4cee2a 100644 --- a/src/app/components/AccountInfo/AccountInfoAmounts/AccountInfoAmounts.css +++ b/src/app/components/AccountInfo/AccountInfoAmounts/AccountInfoAmounts.css @@ -29,6 +29,7 @@ color: #36b149; padding: 4px 10px; border-radius: 50px; + cursor: default; } @@ -38,4 +39,25 @@ color: #585858; position: absolute; cursor: pointer; + background-color: white; + + transition:all 0.2s ease; + opacity:1; +} + +.accountInfoRefreshButton:hover { + opacity: 0.7; + border: 1px; +} + +.accountInfoRefreshButton:active { + opacity: 0.7; + border: 1px; + -webkit-transform: scale(0.8); + -ms-transform: scale(0.8); + transform: scale(0.8); +} + +.accountInfoRefreshButton:focus { + outline: none; } diff --git a/src/app/components/AccountInfo/AccountInfoHeader/AccountInfoHeader.css b/src/app/components/AccountInfo/AccountInfoHeader/AccountInfoHeader.css index ca71cf8..4b9250b 100644 --- a/src/app/components/AccountInfo/AccountInfoHeader/AccountInfoHeader.css +++ b/src/app/components/AccountInfo/AccountInfoHeader/AccountInfoHeader.css @@ -46,6 +46,14 @@ font-size: 1.1rem; } +.accountDropDownButton:hover { + font-size: 1.2rem; +} + +.accountDropDownButton:focus { + font-size: 1.2rem; +} + .accountInfoDropDown { background-color: #f5f5f5; top: 24px; diff --git a/src/app/components/DropDown/DropDown.css b/src/app/components/DropDown/DropDown.css index f02bb3b..c57c132 100644 --- a/src/app/components/DropDown/DropDown.css +++ b/src/app/components/DropDown/DropDown.css @@ -20,3 +20,7 @@ .showDropDown { display: block; } + +.dropDownButton:focus { + outline: none; +} diff --git a/src/app/components/MainNav/MainNav.css b/src/app/components/MainNav/MainNav.css index 81ea23d..518e324 100644 --- a/src/app/components/MainNav/MainNav.css +++ b/src/app/components/MainNav/MainNav.css @@ -4,8 +4,16 @@ height: 100%; border: none; cursor: pointer; + transition:all 0.3s ease; } +.mainNavButton:active { + -webkit-transform: scale(0.8); + -ms-transform: scale(0.8); + transform: scale(0.8); +} + + .mainNavButton svg { color: #fff; font-size: 1.5rem; diff --git a/src/app/components/MainNav/MainNav.js b/src/app/components/MainNav/MainNav.js index 20bc8af..2f00645 100644 --- a/src/app/components/MainNav/MainNav.js +++ b/src/app/components/MainNav/MainNav.js @@ -37,7 +37,7 @@ class MainNav extends Component { const navigationMarkup = this.generateNavigationMarkup() return ( -