feat: Styling home page

This commit is contained in:
Joshua Seigler 2016-09-05 06:28:22 -04:00
parent b6ea201bb7
commit a1e4167abf
21 changed files with 312 additions and 579 deletions

View file

@ -1,93 +1,103 @@
#info {
.col {
width: 33%;
box-sizing: border-box;
margin-top: 50px;
margin-bottom: 70px;
#page-home {
> section {
padding: 40px 0;
overflow: hidden;
position: relative;
text-align: center;
border-right: 2px solid $gray;
h2 {
font-size: 26px;
margin-bottom: 10px;
span {
font-family: inherit;
font-size: inherit;
margin-bottom: inherit;
color: inherit;
&:nth-child(2n) {
background-color: $gray-light;
}
.row {
text-align: left;
}
.features-collection {
text-align: center;
}
.logo-collection {
margin: 20px 0;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
> .logo {
flex: 1 1 auto;
}
}
span {
color: #999999;
text-transform: uppercase;
font-weight: bold;
font-size: 14px;
}
}
.last {
border-right: none !important;
}
}
#key-features {
background-color: $gray;
padding: 50px 0 30px 0;
.col {
width: 50%;
box-sizing: border-box;
}
.feature {
margin-bottom: 50px;
margin-right: 20px;
.icon {
float: left;
width: 55px;
height: auto;
margin: 0 40px 50px 0;
p {
max-width: 60em;
margin: 20px auto;
}
}
.screenshot {
text-align: right;
img {
width: 100%;
max-width: 600px;
height: auto;
max-width: 100%;
}
}
}
#news {
padding: 50px 0 0 0;
.news-post {
width: 25%;
padding: 30px;
float: left;
box-sizing: border-box;
div.news-image {
line-height:310px;
height:180px;
img {
background-color: $white;
box-shadow: 0 1px 4px rgba($black, 0.25);
margin: 20px 0;
.news-image {
position: relative;
overflow: hidden;
padding-bottom: 60%;
background-color: #999;
> img {
position: absolute;
top: 0;
left: 0;
width: 100%;
max-width: 310px;
max-height:205px;
height: auto;
@supports (object-fit: cover) {
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
}
}
.news-title {
height: 60px;
.news-body {
position: relative;
padding: 20px;
height: 220px;
overflow: hidden;
}
h3 {
margin-bottom: 10px;
}
.date {
font-style: italic;
font-size: 14px;
}
a {
color: $blue;
text-decoration: none;
&:hover {
text-decoration: underline;
&:after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 90px;
background: linear-gradient(to top, white 50%, rgba(white, 0));
pointer-events: none;
}
h3 {
font-size: 18px;
color: $blue;
line-height: 1.2;
}
.date {
color: lighten($black, 50%);
font-size: 14px;
}
p {
margin: 0;
position: absolute;
left: 20px;
right: 20px;
overflow: hidden;
}
a.read-more {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 20px;
z-index: 1;
}
}
}