124 lines
1.9 KiB
SCSS
124 lines
1.9 KiB
SCSS
@import 'common/sass/variables';
|
|
@import 'common/sass/mixins';
|
|
|
|
.Promos {
|
|
overflow: hidden;
|
|
|
|
&-promo-wrapper {
|
|
height: 6rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&-promo {
|
|
position: relative;
|
|
height: inherit;
|
|
display: block;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
transition: opacity 200ms;
|
|
@include clearfix;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: #fff;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
&-inner {
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
top: 50%;
|
|
left: 0;
|
|
width: 100%;
|
|
transform: translateY(-50%);
|
|
padding: 0 $space;
|
|
}
|
|
|
|
&-text {
|
|
flex: 5;
|
|
padding-right: $space-xs;
|
|
max-width: 220px;
|
|
|
|
p,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
margin: 0.15rem 0;
|
|
}
|
|
|
|
p {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
h5 {
|
|
font-size: 1.3rem;
|
|
}
|
|
}
|
|
|
|
&-images {
|
|
flex: 3;
|
|
max-width: 108px;
|
|
padding-left: $space-xs;
|
|
|
|
img {
|
|
display: block;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-nav {
|
|
text-align: center;
|
|
|
|
&-btn {
|
|
@include reset-button;
|
|
display: inline-block;
|
|
margin: 0 $space-xs;
|
|
background: $gray-dark;
|
|
width: 12px;
|
|
height: 12px;
|
|
border: 3px solid $gray-lightest;
|
|
border-radius: 100%;
|
|
outline: none;
|
|
opacity: 0.6;
|
|
|
|
&.is-active {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Per-promo customizations
|
|
&--shapeshift {
|
|
background-color: #263A52;
|
|
|
|
.Promos-promo-images {
|
|
max-width: 130px;
|
|
}
|
|
}
|
|
|
|
&--coinbase {
|
|
background-color: #2b71b1;
|
|
}
|
|
|
|
&--hardware {
|
|
background-color: #6e9a3e;
|
|
}
|
|
}
|
|
|
|
.carousel-exit {
|
|
opacity: 1;
|
|
transform: translate(0%, -100%);
|
|
transition: opacity 300ms;
|
|
pointer-events: none;
|
|
&.carousel-exit-active {
|
|
opacity: 0;
|
|
}
|
|
}
|