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 {
padding: 3rem 0;
background: var(--darkGrey);
color: white;
}
.Footer--Lower {
background: var(--darkGrey);
padding: 1rem 0;
font-weight: 100;
}
.Footer--Lower a {
color: inherit;
background: var(--lightGrey);
}

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,19 @@
.PostCard {
text-decoration: none;
margin: 4rem 2rem;
margin: 2rem;
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 {
@ -10,16 +22,15 @@
height: 15rem;
}
.PostCard--Title {
margin: 0;
}
.PostCard--Content {
padding: 0 2.5rem 2.5rem;
}
.PostCard--Category {
font-size: 1rem;
text-align: right;
}
.PostCard--Content {
margin: 0 auto;
width: 90%;
}
.PostCard--Title {
margin: 2rem 0;
}

View file

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

View file

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

View file

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

View file

@ -1,16 +1,6 @@
.Contact {
}
.Contact--Section1--Container {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.Contact--Section1--Container > * {
width: calc(50% - 2rem);
}
.Contact--Details {
margin-top: 3rem;
}
@ -34,3 +24,15 @@
margin-right: 1.5rem;
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);
}
}