Skip to content

Instantly share code, notes, and snippets.

@bymathias
Created July 7, 2020 10:15
Show Gist options
  • Select an option

  • Save bymathias/ea00b767b8a169bc89c8d3983d9676a6 to your computer and use it in GitHub Desktop.

Select an option

Save bymathias/ea00b767b8a169bc89c8d3983d9676a6 to your computer and use it in GitHub Desktop.
/* pages/_home.scss */
// -----------------------------------------------------------------------------
// Section: hero
// -----------------------------------------------------------------------------
.home {
.has-bg-img {
background-image: url('../img/scott-webb-GQD3Av_9A88-unsplash.jpg');
background-position: center 75%;
background-size: cover;
}
// .hero h1,
// .hero .tags {
// display: inline-block;
// vertical-align: middle;
// }
.tag-version,
.buttons {
display: flex;
align-items: center;
justify-content: center;
}
}
.section {
border-top: 1px solid #ddd;
margin-bottom: 4.5rem;
}
.section--services {
.section__block {
margin-top: $navbar-height;
}
}
// -----------------------------------------------------------------------------
// Section: About
// -----------------------------------------------------------------------------
.section--about {
padding-left: 0;
padding-right: 0;
}
.section--about .section__block {
margin: 0;
padding: 6rem 0;
}
// .block {
// position: relative;
// // .container {
// // margin: auto;
// // }
// }
.container-fluid {
width: 100%;
}
.img-side--left {
left: 0;
}
@media (max-width: 767px) {
.container-fluid {
margin-bottom: 3rem;
min-height: 300px;
}
.img-side {
width: 100%;
max-height: 300px;
position: relative !important;
z-index: 0;
}
}
.img-side {
padding: 0;
position: absolute !important;
top: 0;
height: 100%;
overflow: hidden;
}
.img-holder {
position: absolute;
top: 0;
width: 100%;
height: 100%;
background-image: url('../img/annie-spratt-fbAnIjhrOL4-unsplash.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment