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

143 lines
2.0 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
}
}
2017-02-08 20:05:37 +13:00
.tiles {
padding-bottom: 60px;
.tile {
color: $dark_grey;
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;
color: $faint_grey;
}
}
&:before {
content: '';
display: block;
width: 100%;
padding-bottom: 100%;
background: $light_grey;
z-index: -2;
}
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
}