1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-02 16:25:39 +01:00
site/_src/_assets/styles/bigchain/_hero.scss

89 lines
1.5 KiB
SCSS
Raw Normal View History

//
// Hero
// ---
// bigchain.io
//
$menu-height-md: 66px;
.hero {
2016-01-29 18:45:09 +01:00
@extend .background--photo;
background-image: url('/assets/img/hero-berlin.jpg');
text-align: center;
overflow: hidden;
position: relative;
2016-02-10 02:16:04 +01:00
// vertically center everything
display: flex;
align-items: center;
min-height: 480px;
2016-02-10 02:16:04 +01:00
flex-wrap: wrap;
@media ($screen-md) {
height: 100vh;
}
.section-title {
color: #fff;
2016-02-14 14:43:12 +01:00
font-size: $font-size-h3;
@media ($screen-sm) {
font-size: $font-size-h2;
}
@media ($screen-md) {
font-size: $font-size-h1;
}
&:after { display: none }
}
.btn-link {
color: #fff;
opacity: .8;
position: absolute;
bottom: $spacer;
left: 0;
right: 0;
width: 100%;
display: none;
@media ($screen-md) {
display: block;
}
&:hover,
&:focus { opacity: 1; }
// the caret
.icon {
width: 12px;
height: 12px;
stroke: #fff;
display: block;
margin: auto;
}
}
// intro animation
.section-title,
.btn {
@extend .animation-slide-in-from-bottom;
animation-duration: 1s;
animation-fill-mode: backwards;
}
.btn {
animation-delay: .5s;
}
}
.hero__content {
margin-bottom: $spacer * 4;
@media ($screen-md) {
align-self: flex-start;
margin-bottom: 0;
}
}