fix:minor style changes (#37208)

* fix: minor style changes
This commit is contained in:
Ahmad Abdolsaheb
2019-10-14 17:56:47 +03:00
committed by Kristofer Koishigawa
parent e6d55fd086
commit 28c0102ecc
6 changed files with 76 additions and 61 deletions

View File

@ -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 { .donation-elements {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -103,8 +92,13 @@
.wallet { .wallet {
overflow-wrap: break-word; overflow-wrap: break-word;
white-space: normal;
} }
.alert p { .alert p {
color: inherit; color: inherit;
} }
.donate-other .btn-cta {
margin: 7px 0px;
}

View File

@ -88,7 +88,7 @@ class DonateOther extends Component {
return ( return (
<Fragment> <Fragment>
<Spacer /> <Spacer />
<Grid> <Grid className='donate-other'>
<Row> <Row>
<Col lg={8} lgOffset={2} sm={10} smOffset={1} xs={12}> <Col lg={8} lgOffset={2} sm={10} smOffset={1} xs={12}>
<h2 className='text-center'> <h2 className='text-center'>
@ -110,9 +110,21 @@ class DonateOther extends Component {
one of the links below and following the instructions on PayPal. one of the links below and following the instructions on PayPal.
You can easily stop your donations at any time in the future. You can easily stop your donations at any time in the future.
</p> </p>
<Row>
<Col
lg={6}
lgOffset={3}
md={6}
mdOffset={3}
sm={8}
smOffset={2}
xs={12}
>
{paypalMonthlyDonations.map(item => { {paypalMonthlyDonations.map(item => {
return this.renderForm(item); return this.renderForm(item);
})} })}
</Col>
</Row>
<hr /> <hr />
<h3>Make a one-time donation using PayPal</h3> <h3>Make a one-time donation using PayPal</h3>
<p> <p>
@ -120,7 +132,20 @@ class DonateOther extends Component {
amount of money by clicking one of the links below and following amount of money by clicking one of the links below and following
the instructions on PayPal: the instructions on PayPal:
</p> </p>
<Row>
<Col
lg={6}
lgOffset={3}
md={6}
mdOffset={3}
sm={8}
smOffset={2}
xs={12}
>
{this.renderForm(paypalOneTimeDonation)} {this.renderForm(paypalOneTimeDonation)}
</Col>
</Row>
<hr /> <hr />
<h3>Get your employer to match your donation</h3> <h3>Get your employer to match your donation</h3>
<p> <p>
@ -155,28 +180,28 @@ class DonateOther extends Component {
donations. donations.
</p> </p>
<h4>Make a one-time Bitcoin donation</h4> <h4>Make a one-time Bitcoin donation</h4>
<p className='negative-15'> <p>
Our Bitcoin wallet is{' '} Our Bitcoin wallet is{' '}
<code className='wallet'> <code className='wallet'>
12skYi7aMCjDUdrVdoB3JjZ77ug8gxJfbL 12skYi7aMCjDUdrVdoB3JjZ77ug8gxJfbL
</code> </code>
</p> </p>
<h4>Make a one-time Ethereum donation</h4> <h4>Make a one-time Ethereum donation</h4>
<p className='negative-15'> <p>
Our Ethereum wallet is{' '} Our Ethereum wallet is{' '}
<code className='wallet'> <code className='wallet'>
0x0ADbEf2471416BD8732cf0f3944294eE393CcAF5 0x0ADbEf2471416BD8732cf0f3944294eE393CcAF5
</code> </code>
</p> </p>
<h4>Make a one-time Litecoin donation</h4> <h4>Make a one-time Litecoin donation</h4>
<p className='negative-15'> <p>
Our Litecoin wallet is{' '} Our Litecoin wallet is{' '}
<code className='wallet'> <code className='wallet'>
LKu8UG8Z1nbTxnq9Do96PsC3FwbNtycf3X LKu8UG8Z1nbTxnq9Do96PsC3FwbNtycf3X
</code> </code>
</p> </p>
<h4>Make a one-time Bitcoin Cash donation</h4> <h4>Make a one-time Bitcoin Cash donation</h4>
<p className='negative-15'> <p>
Our Bitcoin Cash wallet is{' '} Our Bitcoin Cash wallet is{' '}
<code className='wallet'> <code className='wallet'>
1EBxPEJWrGZWxe2UayyAsnd5VsRg5H9xfu 1EBxPEJWrGZWxe2UayyAsnd5VsRg5H9xfu

View File

@ -48,6 +48,9 @@
text-decoration: none; text-decoration: none;
background-color: var(--theme-color); background-color: var(--theme-color);
} }
#universal-nav-logo:focus {
background-color: inherit;
}
#universal-nav-logo svg { #universal-nav-logo svg {
display: block; display: block;
@ -76,7 +79,7 @@
.nav-list li a { .nav-list li a {
display: block; display: block;
margin: 0; margin: 0;
padding: 8px 15px; padding: 6px 15px;
color: var(--gray-00); color: var(--gray-00);
opacity: 1; opacity: 1;
white-space: nowrap; white-space: nowrap;

View File

@ -99,11 +99,6 @@ p {
color: var(--secondary-color); color: var(--secondary-color);
} }
a:not(.fcc_suggestion_item):hover {
color: var(--tertiary-color);
background-color: var(--tertiary-background);
}
a { a {
color: inherit; color: inherit;
text-decoration: underline; text-decoration: underline;
@ -112,6 +107,8 @@ a {
a:hover, a:hover,
a:focus { a:focus {
text-decoration: none; text-decoration: none;
color: var(--tertiary-color);
background-color: var(--tertiary-background);
} }
/* modal */ /* modal */
@ -138,17 +135,8 @@ a:focus {
border-color: var(--secondary-color); border-color: var(--secondary-color);
} }
/* button */
button, button,
input[type='submit'] { input[type='submit'],
background-color: var(--quaternary-background);
color: var(--secondary-color);
border-width: 2px;
border-style: outset;
border-color: buttonface;
border-image: initial;
}
.btn { .btn {
background-color: var(--quaternary-background); background-color: var(--quaternary-background);
border-width: 3px; border-width: 3px;
@ -156,9 +144,10 @@ input[type='submit'] {
color: var(--secondary-color); color: var(--secondary-color);
border-radius: 0px; border-radius: 0px;
text-decoration: none; text-decoration: none;
/* outline: none; */
} }
button:hover,
input[type='submit']:hover,
.btn:hover, .btn:hover,
.btn-primary:hover { .btn-primary:hover {
border-color: var(--secondary-color); border-color: var(--secondary-color);
@ -233,6 +222,17 @@ fieldset[disabled] .btn-primary.focus {
background-image: none; background-image: none;
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3); 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 { strong {
color: var(--secondary-color); color: var(--secondary-color);
@ -370,6 +370,19 @@ pre {
color: var(--highlight-color); 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 { .panel-primary {
border-color: var(--primary-color); border-color: var(--primary-color);
} }
@ -394,26 +407,7 @@ blockquote .small {
border-radius: 0px; border-radius: 0px;
} }
/* gatsby 404 page */ /* gatsby 404 */
.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;
}
#search { #search {
background-color: var(--quaternary-background); background-color: var(--quaternary-background);
color: var(--primary-color); color: var(--primary-color);

View File

@ -72,6 +72,7 @@
.fcc_suggestion_item:hover { .fcc_suggestion_item:hover {
cursor: pointer; cursor: pointer;
background-color: var(--blue-dark);
} }
.fcc_sr_only { .fcc_sr_only {

View File

@ -112,10 +112,8 @@ export class DonatePage extends Component {
<div className='text-center'> <div className='text-center'>
<PoweredByStripe /> <PoweredByStripe />
<Spacer /> <Spacer />
<Button onClick={this.toggleOtherOptions}> <Button bsStyle='link' onClick={this.toggleOtherOptions}>
{`${ {`${showOtherOptions ? 'Hide' : 'Show'} other ways to donate`}
showOtherOptions ? 'Hide' : 'Show'
} other ways to donate.`}
</Button> </Button>
</div> </div>
<Spacer /> <Spacer />