259 lines
5.7 KiB
SCSS
Vendored
259 lines
5.7 KiB
SCSS
Vendored
.jumbotron {
|
|
font-family: $fontbarlow-bold;
|
|
position: relative;
|
|
z-index: 1;
|
|
overflow: hidden;
|
|
|
|
img {
|
|
transition: transform 0.3s ease-in-out;
|
|
|
|
&.zoomed {
|
|
transform: scale(1.05);
|
|
}
|
|
}
|
|
.item__title {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: max-content;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: $color-light;
|
|
&:before,
|
|
&:after {
|
|
content: "";
|
|
position: absolute;
|
|
height: 60%;
|
|
background-color: $color-light;
|
|
box-shadow: 0 2px 8px rgba($color-dark, 0.6);
|
|
}
|
|
&:before {
|
|
left: 0;
|
|
}
|
|
&:after {
|
|
right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
#carrousel1 {
|
|
.carrousel {
|
|
// padding-bottom: 1.5em;
|
|
overflow: hidden;
|
|
outline-color: transparent;
|
|
|
|
.carrousel__container {
|
|
transition: transform 0.3s;
|
|
transform: translateZ(0);
|
|
&:after {
|
|
content: "";
|
|
clear: both;
|
|
display: table;
|
|
}
|
|
}
|
|
|
|
.carrousel__item {
|
|
float: left;
|
|
}
|
|
|
|
.item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
|
|
img {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
> a {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
&:hover .item__link {
|
|
background-color: $color-main;
|
|
}
|
|
}
|
|
|
|
.item__image {
|
|
width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
// .item__body {
|
|
// position: absolute;
|
|
// text-shadow: 0 2px 8px rgba($color-dark, 0.6);
|
|
// }
|
|
|
|
// .item__title {
|
|
// position: relative;
|
|
// display: flex;
|
|
// align-items: center;
|
|
// justify-content: center;
|
|
// color: $color-light;
|
|
// &:before,
|
|
// &:after {
|
|
// content: "";
|
|
// position: absolute;
|
|
// height: 60%;
|
|
// background-color: $color-light;
|
|
// box-shadow: 0 2px 8px rgba($color-dark, 0.6);
|
|
// }
|
|
// &:before {
|
|
// left: 0;
|
|
// }
|
|
// &:after {
|
|
// right: 0;
|
|
// }
|
|
// }
|
|
|
|
.item__link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
padding: 1em;
|
|
color: $color-light;
|
|
background-color: $color-main;
|
|
font-size: calc(#{$globalfont} * 0.65);
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
transition: background-color 0.3s;
|
|
p {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.carrousel,
|
|
.items {
|
|
position: relative;
|
|
}
|
|
|
|
.carrousel__next,
|
|
.carrousel__prev {
|
|
position: absolute;
|
|
width: 2.3em;
|
|
height: 2.3em;
|
|
background: url(~@/images/caroussel_arrow-right.png) 50% no-repeat;
|
|
background-size: contain;
|
|
border-radius: 50%;
|
|
top: 50%;
|
|
margin-top: -1.2em;
|
|
right: 1.2em;
|
|
cursor: pointer;
|
|
transition: transform 0.3s, opacity 0.3s;
|
|
}
|
|
|
|
.carrousel__prev {
|
|
background-image: url(~@/images/caroussel_arrow-left.png);
|
|
right: auto;
|
|
left: 1.2em;
|
|
}
|
|
|
|
.carrousel__next--hidden,
|
|
.carrousel__prev--hidden {
|
|
opacity: 0;
|
|
}
|
|
|
|
.carrousel__next:hover,
|
|
.carrousel__prev:hover {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.carrousel__pagination {
|
|
display: block;
|
|
position: absolute;
|
|
bottom: 100px;
|
|
left: 0;
|
|
right: 0;
|
|
text-align: center;
|
|
display: none;
|
|
}
|
|
|
|
.carrousel__pagination__button {
|
|
// background-color: rgba($color-light, .5);
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
margin: 0 20px;
|
|
border: solid 2px $color-blue;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.carrousel__pagination__button--active,
|
|
.carrousel__pagination__button:hover {
|
|
background-color: $color-blue;
|
|
// transform: scale(1.4);
|
|
}
|
|
|
|
@media screen and (min-width: 800px) {
|
|
#carrousel1 {
|
|
// .carrousel {
|
|
// .item__title {
|
|
// width: 770px;
|
|
// font-size: 60px;
|
|
// &:before,
|
|
// &:after {
|
|
// content: "";
|
|
// width: 7px;
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
.carrousel__pagination {
|
|
display: block;
|
|
}
|
|
}
|
|
.jumbotron {
|
|
.item__title {
|
|
width: 770px;
|
|
font-size: 60px;
|
|
&:before,
|
|
&:after {
|
|
content: "";
|
|
width: 7px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 799px) {
|
|
// #carrousel1 {
|
|
// .carrousel {
|
|
// .item__title {
|
|
// padding-left: 1em;
|
|
// padding-right: 1em;
|
|
// font-size: 26px;
|
|
// &:before,
|
|
// &:after {
|
|
// content: "";
|
|
// width: 4px;
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
.jumbotron {
|
|
.item__title {
|
|
padding-left: 1em;
|
|
padding-right: 1em;
|
|
font-size: 26px;
|
|
&:before,
|
|
&:after {
|
|
content: "";
|
|
width: 4px;
|
|
}
|
|
}
|
|
}
|
|
}
|