File: D:/HostingSpaces/SBogers10/csb.komma.pro/resources/sass/5-Components/_components.projector.scss
.c-projector {
position: relative;
height: 100%;
}
.c-projector__figure {
@include mq($max: m) {
//min-height: 66.67vw; // default photo aspect ratio (3/2)
}
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 1fr;
height: 100%;
}
.c-projector__picture {
grid-column: 1;
grid-row: 1;
align-self: end;
height: 100%;
display: block; // Needed for IE
background-color: palette(neutral);
opacity: 0;
transition: opacity 0.5s;
&.is-active {
opacity: 1;
}
}
.c-projector__img {
// make sure it stretches the container
width: 100%;
height: 100%;
object-fit: cover; // Fallback for IE via JS polyfill
pointer-events: none;
@include mq($max: m) {
max-height: 78vh; // Make sure images are visible entirely on small devices in landscape)
}
}
.c-projector__control {
position: relative;
z-index: 2;
grid-column: 1;
grid-row: 1;
align-self: end;
margin-bottom: space(1);
margin-right: space(1);
display: flex;
justify-content: center;
align-items: center;
}
.c-projector__button {
display: flex;
justify-content: center;
align-items: center;
margin: 5px;
padding: 10px;
color: palette(action);
background: palette(neutral, 0);
border: 1px solid palette(neutral, 100);
border-radius: 100%;
cursor: pointer;
transition-property: background-color, border, box-shadow;
transition-duration: 0.25s;
outline: none;
&:hover {
color: palette(neutral, 0);
background-color: palette(action);
border-color: transparent;
cursor: pointer;
}
&:active {
background-color: scale-color(palette(action), $lightness: -30%);
color: palette(neutral, 0);
}
&:focus {
@include box-shadow(low);
}
&.previous {
transform: rotate(0.5turn);
}
}
.c-projector__arrow{
display: flex;
justify-content: center;
align-items: center;
height: 16px;
font-size: 0;
line-height: 0;
}