1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-02 00:05:37 +01:00
site/_src/_assets/styles/bigchain/_hero.scss
Matthias Kretschmann 2705fa90e3 updated branding (#99)
- new typeface: Europa, loaded from Typekit
- new colors, reduced gray tones
- new hero image
- new gradient overlay
- new buttons
- bigger default font sizes
- ditch caps for action items
2017-04-10 17:14:35 +02:00

102 lines
1.8 KiB
SCSS

//
// Hero
// ---
// bigchain.io
//
$menu-height-md: 66px;
.hero {
@extend .background--photo;
background-image: url('../img/hero-berlin.jpg');
text-align: center;
overflow: hidden;
position: relative;
// vertically center everything
display: flex;
align-items: center;
min-height: 480px;
flex-wrap: wrap;
@media ($screen-md) {
height: 100vh;
}
.section-title {
color: #fff;
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 {
.wf-active &,
.wf-inactive & {
@extend .animation-slide-in-from-bottom;
animation-duration: 1s;
animation-fill-mode: backwards;
}
}
.btn {
.wf-active &,
.wf-inactive & {
animation-delay: .5s;
}
}
.btn-link {
.wf-active &,
.wf-inactive & {
animation-delay: .8s;
}
}
}
.hero__content {
margin-bottom: $spacer * 4;
@media ($screen-md) {
align-self: flex-start;
margin-bottom: 0;
}
}