Skip to content

Commit

Permalink
Merge pull request #783 from dylanesque/ac-refactor
Browse files Browse the repository at this point in the history
Inline style Refactoring
  • Loading branch information
dylanesque committed Sep 24, 2018
2 parents ca5850e + 8215954 commit 57c8af6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/AboutContent.js
Expand Up @@ -10,9 +10,9 @@ const AboutContent = function ({ snippets }) {
return (
<div>

<Header
as='h1'
style={{ fontSize: '4em' }}>

<Header className="ac-header"
as='h1'>
{ snippets.i_aboutPageHeader }
</Header>

Expand Down
1 change: 0 additions & 1 deletion src/components/Header.js
Expand Up @@ -11,7 +11,6 @@ class Header extends React.Component {
className="header_segment"
inverted
textAlign='center'
style={{ padding: '1em 0em' }}
vertical
color='teal'>
<MainMenu />
Expand Down
3 changes: 1 addition & 2 deletions src/components/PageLayout.js
Expand Up @@ -7,8 +7,7 @@ import {
const PageLayout = (props) => {
return (
<div>
<Segment
style={{ padding: '8em 0em' }}
<Segment className="pl-segment"
vertical>
<Grid
container
Expand Down
12 changes: 12 additions & 0 deletions src/index.css
Expand Up @@ -10,6 +10,12 @@ body {
height: 100%;
}

/* AboutContent.js styles */

.ac-header {
font-size: 4em;
}

/* App.js styles */
#App {
min-height: 100%;
Expand All @@ -36,6 +42,12 @@ body {
padding: 1em 0em;
}

/* PageLayout.js styles */

.pl-segment {
padding: 8em 0em;
}

form .field-aligner {
display: inline-block;
text-align: left;
Expand Down

0 comments on commit 57c8af6

Please sign in to comment.