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

181 lines
2.7 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;
2017-07-23 10:15:02 +12:00
background-color: $grey;
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;
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 {
.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-23 10:15:02 +12:00
background: $darkest_grey;
position: relative;
2016-10-25 21:36:33 +13:00
2017-07-23 10:15:02 +12:00
&:before {
content: '';
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 9;
pointer-events: none;
background: -webkit-linear-gradient(rgba(38,39,40,0), rgba(38,39,40,1));
2017-07-24 06:03:09 +12:00
background: -moz-linear-gradient(rgba(38,39,40,0),rgba(38,39,40,1));
background: -o-linear-gradient(rgba(38,39,40,0),rgba(38,39,40,1));
background: linear-gradient(rgba(38,39,40,0),rgba(38,39,40,1));
2017-07-23 10:15:02 +12:00
}
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 06:03:09 +12:00
opacity: 0.8;
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();
}
}
}
2017-02-08 20:05:37 +13:00
.tiles {
padding-bottom: 60px;
.tile {
2017-07-24 06:03:09 +12:00
color: $white;
2017-02-08 20:05:37 +13:00
text-align: center;
position: relative;
z-index: 1;
float: left;
overflow: hidden;
.text {
display: block;
position: absolute;
top: 50%;
left: 10%;
right: 10%;
vertical-align: top;
margin-top: -12px;
font-size: 16px;
z-index: 2;
2017-02-08 20:05:37 +13:00
.fa {
display: block;
position: absolute;
top: 50%;
left: 10%;
right: 10%;
text-align: center;
margin-top: -27px;
font-size: 60px;
z-index: -1;
2017-07-24 06:03:09 +12:00
opacity: 0.1;
2017-02-08 20:05:37 +13:00
}
}
&:before {
content: '';
display: block;
width: 100%;
padding-bottom: 100%;
2017-07-24 06:03:09 +12:00
background: lighten($dark_grey,2%);
2017-02-08 20:05:37 +13:00
z-index: -2;
}
&.thumbnail-wrapper {
&:before {
display: none;
}
}
2017-02-08 21:13:20 +13:00
}
@include responsive( null, $bp_medium ){
.tile {
2017-02-08 20:05:37 +13:00
@include grid_item( 2 );
}
2017-02-08 21:13:20 +13:00
}
2017-02-08 20:05:37 +13:00
2017-02-08 21:13:20 +13:00
@include responsive( $bp_medium ){
padding-bottom: 20px;
.tile {
2017-02-08 20:05:37 +13:00
@include grid_item( 3 );
}
2017-02-08 21:13:20 +13:00
}
2017-02-08 20:05:37 +13:00
2017-02-08 21:13:20 +13:00
@include responsive( $bp_narrow ){
.tile {
2017-02-08 20:05:37 +13:00
.text {
font-size: 14px;
.fa {
font-size: 28px;
margin-top: -12px;
}
}
}
}
2016-10-25 17:01:37 +13:00
}