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

99 lines
1.4 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;
2016-10-25 21:36:33 +13:00
background-color: $light_grey;
2016-10-25 17:01:37 +13:00
background-position: 50% 50%;
background-size: cover;
}
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;
2017-01-24 18:45:04 +13:00
padding: 6px;
border-radius: 100%;
background: rgba(0,0,0,0.4);
font-size: 10px;
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 {
border-radius: 50%;
}
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;
2016-10-26 16:55:47 +13:00
background: $dark_grey;
2016-10-25 21:36:33 +13:00
canvas {
width: 100%;
height: 100%;
2016-10-26 16:55:47 +13:00
opacity: 0;
@include animate( 0.1s );
2016-10-26 16:55:47 +13:00
&.loaded {
opacity: 0.5;
}
2016-10-25 17:01:37 +13:00
}
}
.tile {
@include grid_item( 2 );
color: $dark_grey;
text-align: center;
position: relative;
z-index: 1;
float: left;
padding-top: 16%;
font-size: 16px;
&:before {
content: '';
display: block;
position: absolute;
top: 0;
width: 100%;
padding-bottom: 100%;
background: $light_grey;
z-index: -1;
}
.fa {
display: block;
font-size: 40px;
opacity: 0.2;
z-index: 0;
padding-bottom: 10px;
}
2016-10-25 17:01:37 +13:00
}