CSS updates

This commit is contained in:
Eric Jinks 2018-06-01 15:35:14 +10:00
parent 75bea5e685
commit 9ad0b5d7e1
10 changed files with 56 additions and 47 deletions

View file

@ -1,15 +1,4 @@
.Footer { .Footer {
padding: 3rem 0; padding: 3rem 0;
background: var(--darkGrey); background: var(--lightGrey);
color: white;
}
.Footer--Lower {
background: var(--darkGrey);
padding: 1rem 0;
font-weight: 100;
}
.Footer--Lower a {
color: inherit;
} }

View file

@ -4,10 +4,8 @@ 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='container taCenter'>
<div className='container taCenter'> <span>© 2017 All rights reserved.</span>
<span>© 2017 All rights reserved.</span>
</div>
</div> </div>
</footer> </footer>
) )

View file

@ -7,8 +7,10 @@
.GithubCorner svg { .GithubCorner svg {
color: #fff; color: #fff;
border: 0; border: 0;
max-width: 12.5vmin; width: 12vmin;
max-height: 12.5vmin; height: 12vmin;
max-width: 6rem;
max-height: 6rem;
} }
.GithubCorner .octo-arm { .GithubCorner .octo-arm {

View file

@ -5,7 +5,6 @@
background-position: center; background-position: center;
height: 2.5rem; height: 2.5rem;
width: 2.5rem; width: 2.5rem;
margin-right: 1rem;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }

View file

@ -10,3 +10,7 @@
align-items: center; align-items: center;
height: 6rem; height: 6rem;
} }
.Nav .Logo {
margin-right: 3rem;
}

View file

@ -1,7 +1,19 @@
.PostCard { .PostCard {
text-decoration: none; text-decoration: none;
margin: 4rem 2rem; margin: 2rem;
background: white; background: white;
color: inherit;
border: 1px solid var(--lightGrey);
border-radius: var(--borderRadius);
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
transition: all 0.15s ease-in-out;
overflow: hidden;
}
.PostCard:hover,
.PostCard:focus {
transform: translateY(-1px);
box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
} }
.PostCard--Image { .PostCard--Image {
@ -10,16 +22,15 @@
height: 15rem; height: 15rem;
} }
.PostCard--Title {
margin: 0;
}
.PostCard--Content {
padding: 0 2.5rem 2.5rem;
}
.PostCard--Category { .PostCard--Category {
font-size: 1rem; font-size: 1rem;
text-align: right; text-align: right;
} }
.PostCard--Content {
margin: 0 auto;
width: 90%;
}
.PostCard--Title {
margin: 2rem 0;
}

View file

@ -1,5 +1,5 @@
.PostCategoriesNav { .PostCategoriesNav {
margin: 4rem 0; margin: 2rem 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;

View file

@ -1,3 +1,6 @@
.PostSection {
padding: 2rem 0;
}
.PostSection .PostCard { .PostSection .PostCard {
width: calc(33.33% - 4rem); width: calc(33.33% - 4rem);
} }
@ -7,6 +10,7 @@
align-items: flex-start; align-items: flex-start;
justify-content: center; justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;
align-items: stretch;
} }
@supports (display: grid) { @supports (display: grid) {

View file

@ -34,7 +34,7 @@ class PostSection extends React.Component {
.slice(0, limit || posts.length) .slice(0, limit || posts.length)
return ( return (
<div className='section thin PostSection'> <div className='PostSection'>
<div className='container'> <div className='container'>
{title && <h2 className='PostSection--Title'>{title}</h2>} {title && <h2 className='PostSection--Title'>{title}</h2>}
{!!visiblePosts.length && ( {!!visiblePosts.length && (
@ -46,12 +46,12 @@ class PostSection extends React.Component {
)} )}
{showLoadMore && {showLoadMore &&
visiblePosts.length < posts.length && ( visiblePosts.length < posts.length && (
<div className='taCenter'> <div className='taCenter'>
<button className='button' onClick={this.increaseLimit}> <button className='button' onClick={this.increaseLimit}>
{loadMoreTitle} {loadMoreTitle}
</button> </button>
</div> </div>
)} )}
</div> </div>
</div> </div>
) )

View file

@ -1,16 +1,6 @@
.Contact { .Contact {
} }
.Contact--Section1--Container {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.Contact--Section1--Container > * {
width: calc(50% - 2rem);
}
.Contact--Details { .Contact--Details {
margin-top: 3rem; margin-top: 3rem;
} }
@ -34,3 +24,15 @@
margin-right: 1.5rem; margin-right: 1.5rem;
color: var(--primary); color: var(--primary);
} }
@media (min-width: 750px) {
.Contact--Section1--Container {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.Contact--Section1--Container > * {
width: calc(50% - 2rem);
}
}