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

87 lines
1.1 KiB
SCSS
Raw Normal View History

2016-10-25 17:01:37 +13:00
.thumbnail {
width: 100%;
max-width: 300px;
overflow: hidden;
2017-01-24 09:04:26 +13:00
position: relative;
2016-10-25 17:01:37 +13:00
.image {
width: 100%;
padding-bottom: 100%;
position: relative;
background-repeat: no-repeat;
background-color: lighten($dark_grey, 2%);
2016-10-25 17:01:37 +13:00
background-position: 50% 50%;
background-size: cover;
2017-06-18 05:47:36 +12:00
border-radius: 3px;
2016-10-25 17:01:37 +13:00
}
2017-01-24 09:04:26 +13:00
.zoom {
2017-01-24 18:45:04 +13:00
@include animate();
2017-01-24 13:12:12 +13:00
display: none;
2017-01-24 09:04:26 +13:00
position: absolute;
2017-01-24 18:45:04 +13:00
bottom: 5px;
right: 5px;
2017-01-24 09:04:26 +13:00
z-index: 1;
padding: 10px;
2017-01-24 18:45:04 +13:00
border-radius: 100%;
background: rgba(0,0,0,0.4);
font-size: 12px;
2017-01-24 09:04:26 +13:00
cursor: pointer;
color: #FFFFFF;
2017-01-24 18:45:04 +13:00
&:hover {
background: #000000;
}
2017-01-24 09:04:26 +13:00
}
2016-10-26 08:51:28 +13:00
&.small {
max-width: 50px;
}
2016-10-25 17:01:37 +13:00
&.circle {
.image {
border-radius: 50%;
}
.zoom {
bottom: 0;
right: 0;
}
2016-10-25 17:01:37 +13:00
}
2017-01-24 09:04:26 +13:00
&:hover {
.zoom {
display: block;
}
}
2016-10-25 17:01:37 +13:00
}
.parallax {
2016-10-25 21:36:33 +13:00
height: 50vh;
width: 100%;
2016-10-25 17:01:37 +13:00
overflow: hidden;
2017-07-24 09:09:13 +12:00
background: $dark_grey;
position: relative;
2016-10-25 21:36:33 +13:00
canvas {
width: 110%;
height: 110%;
2016-10-26 16:55:47 +13:00
opacity: 0;
position: absolute;
top: -5%;
left: -5%;
2016-10-26 16:55:47 +13:00
&.loaded {
2017-07-24 09:09:13 +12:00
opacity: 1;
2016-10-26 16:55:47 +13:00
}
2016-10-25 17:01:37 +13:00
}
&.blur {
canvas {
2017-05-29 16:29:49 +12:00
@include blur();
}
}
}