Sith/core/static/com/slideshow.scss

150 lines
2.4 KiB
SCSS
Raw Permalink Normal View History

body{
position: absolute;
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
}
2017-11-28 13:43:05 +00:00
#slideshow{
position: relative;
background-color: lightgrey;
height: 100%;
2017-11-28 13:43:05 +00:00
*{
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
&:hover{
2017-11-28 13:43:05 +00:00
&::before{
position: absolute;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
content: "Click to expand";
color: white;
background-color: rgba(black, 0.5);
}
}
2017-11-28 13:43:05 +00:00
&.fullscreen{
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: none;
2017-11-28 13:43:05 +00:00
&:before{
display:none;
}
2017-11-28 13:43:05 +00:00
#slides{
height: 100vh;
}
}
2017-11-28 13:43:05 +00:00
#slides{
position: relative;
height: 100%;
overflow: hidden;
2017-11-28 13:43:05 +00:00
.slide{
position: absolute;
width: 100%;
height: 100%;
display: inline-flex;
justify-content: center;
top: 0px;
background-color: grey;
transition: left 1s ease-out;
2017-11-28 13:43:05 +00:00
img{
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
}
2017-11-28 13:43:05 +00:00
.slide.left{
left: -100%;
}
2017-11-28 13:43:05 +00:00
.slide.center{
left: 0px;
}
2017-11-28 13:43:05 +00:00
.slide.right{
left: 100%;
transition: none;
}
}
2017-11-28 13:43:05 +00:00
#progress_bullets{
position: absolute;
bottom: 10px;
width: 100%;
height: 10px;
display: flex;
justify-content: center;
margin-bottom: 10px;
2017-11-28 13:43:05 +00:00
.bullet{
height: 10px;
width: 10px;
margin-left: 5px;
margin-right: 5px;
border-radius: 50%;
background-color: grey;
2017-11-28 13:43:05 +00:00
&.active{
background-color: #c99836;
}
}
}
2017-11-28 13:43:05 +00:00
#progress_bar{
position: absolute;
bottom: 0px;
height: 10px;
background-color: #304c83;
2017-11-28 13:43:05 +00:00
&.init{
width: 0px;
transition: none;
}
2017-11-28 13:43:05 +00:00
&.progress{
width: 100%;
2017-11-28 13:43:05 +00:00
transition: width 10s linear;
}
}
}