JustalK/PORTFOLIO

View on GitHub
src/assets/less/slides.less

Summary

Maintainability
Test Coverage
@import (reference) "libs/constants.less";
@import (reference) "libs/mixins.less";
 
#SLIDE {
height: 600px;
min-height: 600px;
position: relative;
.transition(all 0.5s ease);
 
& a {
overflow: hidden;
position: relative;
display: block;
background: @text-color-dark;
width: 100%;
height: 100%;
cursor: pointer;
text-decoration: none;
border: 1px solid #000;
background-size: cover;
background-position: center center;
 
& .background {
height: 100%;
width: 100%;
background-size: cover;
background-position: center center;
position: absolute;
pointer-events: none;
opacity: 0;
.transition(all 0.5s cubic-bezier(0.8, 0, 0.25, 1));
 
&.loaded {
opacity: 1;
}
}
 
& i {
.button-window(10px, 12px, #61c3ff);
 
&::before {
content: ' ';
.button-window(20px, 0, #005c94);
}
 
&::after {
content: ' ';
.button-window(40px, 0, #dc4242);
}
}
}
 
& h2 {
font-family: 'Lato-Bold', sans-serif;
position: absolute;
width: 100%;
top: 0;
.font-size(1.2);
 
color: @background-bloc-2;
background: @text-color-h2;
height: 40px;
pointer-events: none;
z-index: @LAYER-COUCHE-1;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.75);
border-bottom: 1px solid black;
overflow: hidden;
line-height: 40px;
text-align: center;
margin: 0;
text-transform: uppercase;
}
 
&.is_animated {
opacity: 0;
transform: translateY(100%);
}
}
 
@media screen and (max-width: @SCREEN_900) {
#SLIDE {
height: 800px;
 
& i {
display: none;
}
 
& h2 {
.font-size(1.2);
}
}
}
 
@media screen and (max-width: @MOBILE) {
#SLIDE {
height: 900px;
}
}