util classes to lowercase (.Container -> .container)

This commit is contained in:
Eric Jinks 2018-02-05 11:24:21 +10:00
parent 1089485714
commit 49f0094c67
8 changed files with 32 additions and 32 deletions

View file

@ -5,7 +5,7 @@ import './Footer.css'
export default ({ globalSettings, socialSettings, navLinks }) => ( export default ({ globalSettings, socialSettings, navLinks }) => (
<footer className='Footer'> <footer className='Footer'>
<div className='Footer--Lower'> <div className='Footer--Lower'>
<div className='Container taCenter'> <div className='container taCenter'>
<span>© 2017 All rights reserved.</span> <span>© 2017 All rights reserved.</span>
</div> </div>
</div> </div>

View file

@ -7,8 +7,8 @@ import './Nav.css'
export default ({ handlePopupOpen }) => ( export default ({ handlePopupOpen }) => (
<nav className='Nav'> <nav className='Nav'>
<div className='Container'> <div className='container'>
<div className='Flex alignCenter justifyStart'> <div className='flex alignCenter justifyStart'>
<Link to='/'> <Link to='/'>
<Logo /> <Logo />
</Link> </Link>

View file

@ -5,9 +5,9 @@ import BackgroundImage from './BackgroundImage'
import './PageHeader.css' import './PageHeader.css'
const PageHeader = ({ title, subtitle, backgroundImage }) => ( const PageHeader = ({ title, subtitle, backgroundImage }) => (
<div className='Section PageHeader relative'> <div className='section PageHeader relative'>
{backgroundImage && <BackgroundImage src={backgroundImage} opacity={0.5} />} {backgroundImage && <BackgroundImage src={backgroundImage} opacity={0.5} />}
<div className='Container relative'> <div className='container relative'>
<h1 className='PageHeader--Title'>{title}</h1> <h1 className='PageHeader--Title'>{title}</h1>
{subtitle ? <h2 className='PageHeader--Subtitle'>{subtitle}</h2> : ''} {subtitle ? <h2 className='PageHeader--Subtitle'>{subtitle}</h2> : ''}
</div> </div>

View file

@ -130,65 +130,65 @@ pre code:after {
/* Layout */ /* Layout */
.Section { .section {
width: 100%; width: 100%;
padding: 5rem 0; padding: 5rem 0;
} }
.Section.thick { .section.thick {
padding: 10rem 0; padding: 10rem 0;
} }
.Section.thin { .section.thin {
padding: 2.5rem 0; padding: 2.5rem 0;
} }
.Section.noPadding { .section.noPadding {
padding: 0; padding: 0;
} }
.Container { .container {
max-width: 1111px; max-width: 1111px;
width: 90%; width: 90%;
margin: 0 auto; margin: 0 auto;
} }
.Container.skinny { .container.skinny {
max-width: 888px; max-width: 888px;
} }
.Container.skinnier { .container.skinnier {
max-width: 555px; max-width: 555px;
} }
/* Flex */ /* Flex */
.Flex { .flex {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
} }
.Flex.column { .flex.column {
flex-direction: column; flex-direction: column;
} }
.Flex.justifyCenter { .flex.justifyCenter {
justify-content: center; justify-content: center;
} }
.Flex.justifyEnd { .flex.justifyEnd {
justify-content: flex-end; justify-content: flex-end;
} }
.Flex.justifyBetween { .flex.justifyBetween {
justify-content: space-between; justify-content: space-between;
} }
.Flex.justifyAround { .flex.justifyAround {
justify-content: space-around; justify-content: space-around;
} }
.Flex.alignStart { .flex.alignStart {
align-items: flex-start; align-items: flex-start;
} }
.Flex.alignEnd { .flex.alignEnd {
align-items: flex-end; align-items: flex-end;
} }
.Flex.alignStretch { .flex.alignStretch {
align-items: stretch; align-items: stretch;
} }
.Flex.fill { .flex.fill {
height: 100%; height: 100%;
width: 100%; width: 100%;
} }

View file

@ -16,13 +16,13 @@ export default ({ page }) => (
subtitle={page.subtitle} subtitle={page.subtitle}
backgroundImage={page.featuredImage} backgroundImage={page.featuredImage}
/> />
<div className='Section thin'> <div className='section thin'>
<div className='Container'> <div className='container'>
<Content source={page.section1} /> <Content source={page.section1} />
</div> </div>
</div> </div>
<div className='Section thin'> <div className='section thin'>
<div className='Container'> <div className='container'>
<Content source={page.section2} /> <Content source={page.section2} />
<p>The image below is a {'<LazyImage />'}</p> <p>The image below is a {'<LazyImage />'}</p>
<LazyImage src={page.featuredImage} alt='LazyImage' /> <LazyImage src={page.featuredImage} alt='LazyImage' />

View file

@ -11,8 +11,8 @@ import './Contact.css'
export default ({ page, siteTitle }) => ( export default ({ page, siteTitle }) => (
<div className='Contact'> <div className='Contact'>
<PageHeader title={page.title} subtitle='<Contact />' /> <PageHeader title={page.title} subtitle='<Contact />' />
<div className='Section thin'> <div className='section thin'>
<div className='Container'> <div className='container'>
<Content source={page.content} /> <Content source={page.content} />
<h3>{'<EnquiryFormSimple />'}</h3> <h3>{'<EnquiryFormSimple />'}</h3>
<EnquiryFormSimple name='Simple Form' /> <EnquiryFormSimple name='Simple Form' />

View file

@ -10,8 +10,8 @@ export default ({ page }) => {
return ( return (
<main className='Home'> <main className='Home'>
<PageHeader title={title} subtitle={subtitle} /> <PageHeader title={title} subtitle={subtitle} />
<div className='Section thin'> <div className='section thin'>
<div className='Container'> <div className='container'>
<Content source={page.content} /> <Content source={page.content} />
</div> </div>
</div> </div>

View file

@ -6,8 +6,8 @@ import './NoMatch.css'
const NoMatch = ({ siteUrl }) => ( const NoMatch = ({ siteUrl }) => (
<div className='NoMatch'> <div className='NoMatch'>
<section className='Section thick'> <section className='section thick'>
<div className='Container taCenter'> <div className='container taCenter'>
<h1>404 - Page Not Found</h1> <h1>404 - Page Not Found</h1>
<p> <p>
We can't find the page you are looking for!<br />Head back to{' '} We can't find the page you are looking for!<br />Head back to{' '}