From 8f95eee3374b3bba319a7636b96badbc54f582f6 Mon Sep 17 00:00:00 2001 From: apanizo Date: Tue, 8 May 2018 16:00:05 +0200 Subject: [PATCH] WA-238 Improve Withdrawn CSS look and feel --- src/components/Header/component/Layout.jsx | 2 +- src/components/Stepper/index.jsx | 14 +++- src/components/layout/Col/index.scss | 83 +++++++++++----------- src/routes/safe/component/Safe/index.jsx | 6 +- 4 files changed, 57 insertions(+), 48 deletions(-) diff --git a/src/components/Header/component/Layout.jsx b/src/components/Header/component/Layout.jsx index ff220579..7afbb088 100644 --- a/src/components/Header/component/Layout.jsx +++ b/src/components/Header/component/Layout.jsx @@ -20,7 +20,7 @@ const Header = ({ provider, reloadWallet }: Props) => ( Gnosis Safe - + { provider ? : } diff --git a/src/components/Stepper/index.jsx b/src/components/Stepper/index.jsx index 373ffec8..67a76a6b 100644 --- a/src/components/Stepper/index.jsx +++ b/src/components/Stepper/index.jsx @@ -1,5 +1,6 @@ // @flow import Stepper, { Step as FormStep, StepLabel } from 'material-ui/Stepper' +import { withStyles } from 'material-ui/styles'; import * as React from 'react' import type { FormApi } from 'react-final-form' import GnoForm from '~/components/forms/GnoForm' @@ -10,6 +11,7 @@ import Controls from './Controls' export { default as Step } from './Step' type Props = { + classes: Object, goTitle: string, goPath: string, steps: string[], @@ -78,7 +80,7 @@ class GnoStepper extends React.PureComponent { render() { const { - steps, children, finishedTransaction, goTitle, goPath, + steps, children, finishedTransaction, goTitle, goPath, classes, } = this.props const { page, values } = this.state const activePage = this.getActivePageFrom(children) @@ -86,7 +88,7 @@ class GnoStepper extends React.PureComponent { return ( - + {steps.map(label => ( {label} @@ -121,4 +123,10 @@ class GnoStepper extends React.PureComponent { } } -export default GnoStepper +const styles = { + root: { + flex: '1 1 auto', + }, +} + +export default withStyles(styles)(GnoStepper) diff --git a/src/components/layout/Col/index.scss b/src/components/layout/Col/index.scss index 30d06ace..e7d5ee13 100644 --- a/src/components/layout/Col/index.scss +++ b/src/components/layout/Col/index.scss @@ -1,6 +1,5 @@ .col { flex: 1 1 auto; - align-items: center; display: inherit; } @@ -39,107 +38,107 @@ @define-mixin col $size { .$(size)1 { - flex-basis: 8.333%; - max-width: 8.333%; + flex-basis: 8.333%; + max-width: 8.333%; } .$(size)2 { - flex-basis: 16.667%; - max-width: 16.667%; + flex-basis: 16.667%; + max-width: 16.667%; } .$(size)3 { - flex-basis: 25%; - max-width: 25%; + flex-basis: 25%; + max-width: 25%; } .$(size)4 { - flex-basis: 33.333%; - max-width: 33.333%; + flex-basis: 33.333%; + max-width: 33.333%; } .$(size)5 { - flex-basis: 41.667%; - max-width: 41.667%; + flex-basis: 41.667%; + max-width: 41.667%; } .$(size)6 { - flex-basis: 50%; - max-width: 50%; + flex-basis: 50%; + max-width: 50%; } .$(size)7 { - flex-basis: 58.333%; - max-width: 58.333%; + flex-basis: 58.333%; + max-width: 58.333%; } .$(size)8 { - flex-basis: 66.667%; - max-width: 66.667%; + flex-basis: 66.667%; + max-width: 66.667%; } .$(size)9 { - flex-basis: 75%; - max-width: 75%; + flex-basis: 75%; + max-width: 75%; } .$(size)10 { - flex-basis: 83.333%; - max-width: 83.333%; + flex-basis: 83.333%; + max-width: 83.333%; } .$(size)11 { - flex-basis: 91.667%; - max-width: 91.667%; + flex-basis: 91.667%; + max-width: 91.667%; } .$(size)12 { - flex-basis: 100%; - max-width: 100%; + flex-basis: 100%; + max-width: 100%; } .$(size)Offset1 { - margin-left: 8.333%; + margin-left: 8.333%; } .$(size)Offset2 { - margin-left: 16.667%; + margin-left: 16.667%; } .$(size)Offset3 { - margin-left: 25%; + margin-left: 25%; } .$(size)Offset4 { - margin-left: 33.333%; + margin-left: 33.333%; } .$(size)Offset5 { - margin-left: 41.667%; + margin-left: 41.667%; } .$(size)Offset6 { - margin-left: 50%; + margin-left: 50%; } .$(size)Offset7 { - margin-left: 58.333%; + margin-left: 58.333%; } .$(size)Offset8 { - margin-left: 66.667%; + margin-left: 66.667%; } .$(size)Offset9 { - margin-left: 75%; + margin-left: 75%; } .$(size)Offset10 { - margin-left: 83.333%; + margin-left: 83.333%; } .$(size)Offset11 { - margin-left: 91.667%; + margin-left: 91.667%; } } @@ -173,16 +172,16 @@ @define-mixin row $size { .start$(size) { - justify-content: flex-start; - text-align: start; + justify-content: flex-start; + text-align: start; } .center$(size) { - justify-content: center; - text-align: center; + justify-content: center; + text-align: center; } .end$(size) { - justify-content: flex-end; - text-align: end; + justify-content: flex-end; + text-align: end; } .top$(size) { align-items: flex-start; diff --git a/src/routes/safe/component/Safe/index.jsx b/src/routes/safe/component/Safe/index.jsx index 795ed1b1..563f069c 100644 --- a/src/routes/safe/component/Safe/index.jsx +++ b/src/routes/safe/component/Safe/index.jsx @@ -64,8 +64,10 @@ class GnoSafe extends React.PureComponent { {safe.name.toUpperCase()} - - { component || Safe Icon } + + + { component || Safe Icon } +