Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #10154 from luixxiul/fix-payments-margin
Browse files Browse the repository at this point in the history
Align paymentsMessage and paymentsSidebar with flex instead of float
  • Loading branch information
cezaraugusto authored Aug 1, 2017
2 parents 0ca210a + b243e80 commit 117d8e3
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions app/renderer/components/preferences/payment/disabledContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const CoinBase2 = require('../../../../extensions/brave/img/coinbase_2x.png')

class DisabledContent extends ImmutableComponent {
render () {
return <section data-test-id='disabledContent'>
<div className={css(styles.paymentsMessage, styles.walletBarMargin)} data-test-id='paymentsMessage'>
return <section className={css(styles.disabledContent)} data-test-id='disabledContent'>
<div className={css(styles.paymentsMessage)} data-test-id='paymentsMessage'>
<h3 className={css(styles.h3)} data-l10n-id='paymentsWelcomeTitle' />
<div className={css(styles.text)} data-l10n-id='paymentsWelcomeText1' />
<div className={css(styles.boldText, styles.text)} data-l10n-id='paymentsWelcomeText2' />
Expand All @@ -48,15 +48,21 @@ class DisabledContent extends ImmutableComponent {
}

const styles = StyleSheet.create({
disabledContent: {
display: 'flex',
alignItems: 'flex-start',
justifyContent: 'center',
marginTop: globalStyles.spacing.panelMargin
},

paymentsMessage: {
backgroundColor: globalStyles.color.lightGray,
borderRadius: globalStyles.radius.borderRadiusUIbox,
padding: '40px',
fontSize: paymentStyles.font.regular,
lineHeight: '1.8em',
color: globalStyles.color.mediumGray,
width: '500px',
float: 'left'
width: '500px'
},

text: {
Expand All @@ -68,10 +74,6 @@ const styles = StyleSheet.create({
margin: '50px 0 20px 12px'
},

walletBarMargin: {
marginTop: globalStyles.spacing.panelMargin
},

h3: {
fontSize: '18px',
paddingBottom: '0.5em'
Expand All @@ -89,7 +91,6 @@ const styles = StyleSheet.create({
paymentsSidebar: {
opacity: 0.8,
width: '200px',
float: 'left',
marginLeft: '23px'
},

Expand Down

0 comments on commit 117d8e3

Please sign in to comment.