Files
Iris/src/scss/components/_images.scss

69 lines
993 B
SCSS
Executable File

.thumbnail {
width: 100%;
max-width: 300px;
overflow: hidden;
position: relative;
.image {
width: 100%;
padding-bottom: 100%;
position: relative;
background-repeat: no-repeat;
background-color: lighten(colour(dark_grey), 2%);
background-position: 50% 50%;
background-size: cover;
border-radius: 3px;
.light-theme & {
background-color: colour(faint_grey);
}
}
.zoom {
@include animate();
display: none;
position: absolute;
bottom: 5px;
right: 5px;
z-index: 1;
padding: 10px;
border-radius: 100%;
background: rgba(0,0,0,0.4);
font-size: 12px;
cursor: pointer;
color: #FFFFFF;
border: 0 !important;
&:hover {
background: colour(black);
}
}
&.small {
max-width: 50px;
}
&.circle {
.image {
border-radius: 50%;
}
.zoom {
bottom: 0;
right: 0;
}
}
&:hover {
.zoom {
display: block;
}
}
}
.playback-controls {
z-index: 3;
}