dash-website/_sass/_home.scss
0xfff 2cde4f02dd (Update) Layout: Spacing Home (#10)
* (Update) Logo-collection: Adjust spacing / add maxheight / use BEM

* (Update) Home: Adjust spacing between h1 + slogan /  Adjust space between image at the bottom

* (Fix) Home: Replace secure icon with correctly retraced one

* [Chore] Layout: Whitespace / unused inline javascript

* (Update) Home: More Spacing

* (Fix) Currency: execute js onload

* (Update) Layout: Add class for latest news section
2016-09-09 16:19:43 -04:00

234 lines
3.6 KiB
SCSS

$homeSectionPaddingTop: 40px;
.page-home {
> section {
padding: $homeSectionPaddingTop 0;
overflow: hidden;
position: relative;
text-align: center;
&:nth-child(2n) {
background-color: $gray-light;
}
.row {
text-align: left;
}
h2 {
margin-top: 0px;
}
p {
max-width: 50em;
margin: 20px auto;
}
.features-collection {
text-align: center;
h2 {
margin-top: 20px;
}
p {
margin: 0 auto;
}
}
img {
max-width: 100%;
@media (min-width: 768px) {
max-width: calc(100% - 20px);
}
}
}
.col-sm-6 {
z-index: 2; // Lets me use z-index:1 for columns that underlap
}
.home-architecture-graphic,
.home-budgets-graphic,
.home-network-graphic,
.home-evolution-graphic {
min-height: 350px;
@media (min-width: 768px) {
> img {
position: absolute;
}
}
@media (max-width: 767px) {
text-align: center;
> img {
margin-top: 20px;
}
}
}
.home-architecture-graphic {
> img {
max-width: 100%;
box-shadow: -5px 0 10px $black;
border-radius: 8px 0 0 0;
}
}
.home-budgets-graphic {
@media (min-width: 768px) {
min-height: 385px;
> img {
bottom: 10px;
}
}
}
.home-network-graphic {
min-height: 250px;
max-width: none;
@media (min-width: 768px) {
z-index: 1;
> img {
right: -20px;
bottom: -50px;
max-width: 150%;
}
&:after {
content: '';
position: absolute;
right: -20px;
bottom: -50px;
width: 819px;
height: 339px;
max-width: 150%;
background: linear-gradient(to right, $gray-light, rgba($gray-light, 0.5) 33%, rgba($gray-light, 0) 75%);
}
}
}
.home-evolution-graphic {
@media (min-width: 768px) {
z-index: 1;
> img {
top: -$homeSectionPaddingTop;
bottom: -$homeSectionPaddingTop;
max-width: none;
max-height: calc(100% + 80px);
}
&:after {
content: '';
position: absolute;
top: -$homeSectionPaddingTop;
bottom: -$homeSectionPaddingTop;
width: 200%;
background: linear-gradient(to left, $white 50%, rgba($white, 0) 87.5%);
}
}
}
.home-get-started-cta {
background-color: $blue;
color: white;
padding-bottom: 0;
h1, h2, h3 {
color: white;
}
img {
margin-top: 30px;
vertical-align: text-top;
}
.btn-white-solid {
color: $blue;
}
}
.home-latest-news {
.btn-blue {
margin-top: 20px;
}
}
}
.logo-collection {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
margin-bottom: 20px;
&__logo {
flex: 1 1 auto;
margin: 20px 10px;
}
&__image {
max-height: 100%;
}
}
.news-post {
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%;
@supports (object-fit: cover) {
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
}
}
.news-body {
position: relative;
padding: 20px;
height: 220px;
overflow: hidden;
&: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;
}
}
}