From 28c0102ecce28a4356b22445242ec1fa44d21a33 Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Mon, 14 Oct 2019 17:56:47 +0300 Subject: [PATCH] fix:minor style changes (#37208) * fix: minor style changes --- client/src/components/Donation/Donation.css | 16 ++--- .../Donation/components/DonateOther.js | 43 +++++++++--- .../Header/components/universalNav.css | 5 +- client/src/components/layouts/global.css | 66 +++++++++---------- .../components/search/searchBar/searchbar.css | 1 + client/src/pages/donate.js | 6 +- 6 files changed, 76 insertions(+), 61 deletions(-) diff --git a/client/src/components/Donation/Donation.css b/client/src/components/Donation/Donation.css index c26a87ec5c..6389c28a3d 100644 --- a/client/src/components/Donation/Donation.css +++ b/client/src/components/Donation/Donation.css @@ -30,17 +30,6 @@ } } -.donation-modal .btn-link { - border: none; - text-decoration: underline; - background: transparent; -} -.donation-modal .btn-link:hover { - background: var(--tertiary-background); - text-decoration: none; - color: inherit; -} - .donation-elements { display: flex; flex-direction: column; @@ -103,8 +92,13 @@ .wallet { overflow-wrap: break-word; + white-space: normal; } .alert p { color: inherit; } + +.donate-other .btn-cta { + margin: 7px 0px; +} diff --git a/client/src/components/Donation/components/DonateOther.js b/client/src/components/Donation/components/DonateOther.js index c174db7c3e..fd120992dc 100644 --- a/client/src/components/Donation/components/DonateOther.js +++ b/client/src/components/Donation/components/DonateOther.js @@ -88,7 +88,7 @@ class DonateOther extends Component { return ( - +

@@ -110,9 +110,21 @@ class DonateOther extends Component { one of the links below and following the instructions on PayPal. You can easily stop your donations at any time in the future.

- {paypalMonthlyDonations.map(item => { - return this.renderForm(item); - })} + + + {paypalMonthlyDonations.map(item => { + return this.renderForm(item); + })} + +

Make a one-time donation using PayPal

@@ -120,7 +132,20 @@ class DonateOther extends Component { amount of money by clicking one of the links below and following the instructions on PayPal:

- {this.renderForm(paypalOneTimeDonation)} + + + {this.renderForm(paypalOneTimeDonation)} + + +

Get your employer to match your donation

@@ -155,28 +180,28 @@ class DonateOther extends Component { donations.

Make a one-time Bitcoin donation

-

+

Our Bitcoin wallet is{' '} 12skYi7aMCjDUdrVdoB3JjZ77ug8gxJfbL

Make a one-time Ethereum donation

-

+

Our Ethereum wallet is{' '} 0x0ADbEf2471416BD8732cf0f3944294eE393CcAF5

Make a one-time Litecoin donation

-

+

Our Litecoin wallet is{' '} LKu8UG8Z1nbTxnq9Do96PsC3FwbNtycf3X

Make a one-time Bitcoin Cash donation

-

+

Our Bitcoin Cash wallet is{' '} 1EBxPEJWrGZWxe2UayyAsnd5VsRg5H9xfu diff --git a/client/src/components/Header/components/universalNav.css b/client/src/components/Header/components/universalNav.css index a873f6717a..d9cd7913da 100644 --- a/client/src/components/Header/components/universalNav.css +++ b/client/src/components/Header/components/universalNav.css @@ -48,6 +48,9 @@ text-decoration: none; background-color: var(--theme-color); } +#universal-nav-logo:focus { + background-color: inherit; +} #universal-nav-logo svg { display: block; @@ -76,7 +79,7 @@ .nav-list li a { display: block; margin: 0; - padding: 8px 15px; + padding: 6px 15px; color: var(--gray-00); opacity: 1; white-space: nowrap; diff --git a/client/src/components/layouts/global.css b/client/src/components/layouts/global.css index 978c55ec16..76c6ce2ade 100644 --- a/client/src/components/layouts/global.css +++ b/client/src/components/layouts/global.css @@ -99,11 +99,6 @@ p { color: var(--secondary-color); } -a:not(.fcc_suggestion_item):hover { - color: var(--tertiary-color); - background-color: var(--tertiary-background); -} - a { color: inherit; text-decoration: underline; @@ -112,6 +107,8 @@ a { a:hover, a:focus { text-decoration: none; + color: var(--tertiary-color); + background-color: var(--tertiary-background); } /* modal */ @@ -138,17 +135,8 @@ a:focus { border-color: var(--secondary-color); } -/* button */ button, -input[type='submit'] { - background-color: var(--quaternary-background); - color: var(--secondary-color); - border-width: 2px; - border-style: outset; - border-color: buttonface; - border-image: initial; -} - +input[type='submit'], .btn { background-color: var(--quaternary-background); border-width: 3px; @@ -156,9 +144,10 @@ input[type='submit'] { color: var(--secondary-color); border-radius: 0px; text-decoration: none; - /* outline: none; */ } +button:hover, +input[type='submit']:hover, .btn:hover, .btn-primary:hover { border-color: var(--secondary-color); @@ -233,6 +222,17 @@ fieldset[disabled] .btn-primary.focus { background-image: none; box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3); } +.btn-link { + color: inherit; + border: none; + text-decoration: underline; + background: transparent; +} +.btn-link:hover { + background: var(--tertiary-background); + text-decoration: none; + color: inherit; +} strong { color: var(--secondary-color); @@ -370,6 +370,19 @@ pre { color: var(--highlight-color); } +.has-error .help-block, +.has-error .control-label, +.has-error .radio, +.has-error .checkbox, +.has-error .radio-inline, +.has-error .checkbox-inline, +.has-error.radio label, +.has-error.checkbox label, +.has-error.radio-inline label, +.has-error.checkbox-inline label { + color: var(--danger-color); +} + .panel-primary { border-color: var(--primary-color); } @@ -394,26 +407,7 @@ blockquote .small { border-radius: 0px; } -/* gatsby 404 page */ -.default-layout > div > :nth-child(3) > button, -input[type='submit'] { - background-color: var(--quaternary-background); -} - -.default-layout > div > :nth-child(3) > button:hover, -input[type='submit']:hover { - background-color: var(--secundary-background); -} - -.default-layout > div > :nth-child(3) > button:active, -input[type='submit']:active { - background: var(--primary-color); - color: var(--secondary-background); - outline: 0; - outline-color: none; - outline-color: var(--secundary-background); - border: none; -} +/* gatsby 404 */ #search { background-color: var(--quaternary-background); color: var(--primary-color); diff --git a/client/src/components/search/searchBar/searchbar.css b/client/src/components/search/searchBar/searchbar.css index ecd0a431ac..d62a79a0e7 100644 --- a/client/src/components/search/searchBar/searchbar.css +++ b/client/src/components/search/searchBar/searchbar.css @@ -72,6 +72,7 @@ .fcc_suggestion_item:hover { cursor: pointer; + background-color: var(--blue-dark); } .fcc_sr_only { diff --git a/client/src/pages/donate.js b/client/src/pages/donate.js index c510aadfe1..5c89810648 100644 --- a/client/src/pages/donate.js +++ b/client/src/pages/donate.js @@ -112,10 +112,8 @@ export class DonatePage extends Component {

-