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

191 lines
3.3 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('../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;
}
2017-05-06 18:12:55 +02:00
&::after { display: none; }
}
2017-04-18 12:44:17 +02:00
.section-subtitle {
font-size: $font-size-h4;
@media ($screen-sm) {
font-size: $font-size-h3;
}
@media ($screen-md) {
font-size: $font-size-h2;
}
}
2017-05-06 18:12:55 +02:00
}
2017-05-06 18:12:55 +02:00
//
// intro animation
//
.hero .section-title,
2017-05-15 11:30:21 +02:00
.hero .section-description,
2017-05-06 18:12:55 +02:00
.hero__action {
.wf-active &,
.wf-inactive & {
@include animation-slide-in-from-bottom;
animation-fill-mode: backwards;
}
2017-05-06 18:12:55 +02:00
}
2017-05-15 11:36:31 +02:00
.hero .section-description {
.wf-active &,
.wf-inactive & {
animation-delay: .3s;
}
}
2017-05-06 18:12:55 +02:00
.hero__action {
.wf-active &,
.wf-inactive & {
animation-delay: .5s;
}
2017-05-06 18:12:55 +02:00
}
2017-05-06 18:12:55 +02:00
.page-front .menu--main,
.hero__community,
.hero__more {
@include transition;
opacity: 0;
transition-delay: .8s;
.wf-active &,
.wf-inactive & {
opacity: 1;
}
}
.hero__content {
margin-top: $spacer * 2;
margin-bottom: $spacer * 4;
@media ($screen-md) {
align-self: flex-start;
margin-top: $spacer * 4;
margin-bottom: 0;
}
}
.hero__community {
align-self: flex-end;
width: 100%;
// resemble menu background, but a bit darker background
background: rgba($brand-main-blue-dark, .6);
backdrop-filter: saturate(150%) blur(10px);
border-top: 1px solid rgba($brand-main-gray, .5);
border-bottom: 1px solid rgba($brand-main-gray, .5);
.btn {
font-weight: $font-weight-normal;
box-shadow: none;
background: none;
opacity: .95;
&:hover,
&:focus {
opacity: 1;
}
&:first-child {
display: block;
@media ($screen-sm) {
display: inline-block;
}
}
.icon {
transform: translateY(1px);
}
}
.stars,
.release {
display: inline-block;
opacity: 0;
transition: opacity .2s ease-out;
}
.stars {
font-size: .6rem;
background: rgba($brand-main-gray-lighter, .15);
padding: .1rem .3rem;
border-radius: 1rem;
display: inline-block;
transform: translateY(-1px);
min-width: 34px; // approx. width with 4 numbers
}
.release {
@include text-bold;
min-width: 44px;
}
}
.hero__more {
2017-05-06 18:12:55 +02:00
position: relative;
z-index: 2;
color: rgba(#fff, .6);
align-self: flex-end;
margin-bottom: $spacer;
width: 100%;
display: none;
@media ($screen-md) {
display: block;
}
&:hover,
2017-05-06 18:12:55 +02:00
&:focus { color: #fff; }
// the caret
.icon {
width: 12px;
height: 12px;
stroke: #fff;
display: block;
margin: auto;
}
}