-
- {{ project.name }}
-
+
+
+
+
+ {{ project.name }}
{% endfor %}
diff --git a/assets/css/3-sections/_work.sass b/assets/css/3-sections/_work.sass
index eddf3d1f..c2b65c20 100644
--- a/assets/css/3-sections/_work.sass
+++ b/assets/css/3-sections/_work.sass
@@ -34,32 +34,31 @@
.thumb-wrap, .work-wrap
width: 50%
float: left
-
+
.thumb-container
+ display: block
max-width: 960px
margin: 0px auto
-
+clearfix
- .thumb-unit
+ label
+ position: relative
display: block
- width: 25%
float: left
- position: relative
- padding-top: 16%
+ width: 25%
cursor: pointer
- background:
- position: center center
- repeat: no-repeat
- size: cover
- +perspective(300)
- @if $animation != "bounceOut"
+
+ .thumb-unit
+ display: block
overflow: hidden
+ img
+ display: block
+ max-width: 100%
+
@media screen and (max-width: 760px)
width: 50%
- padding-top: 26%
-
+
.thumb-overlay
+position(absolute)
+align-items(center)
@@ -71,7 +70,7 @@
strong
display: block
- padding: 0px 20px
+ padding: 0 9%
color: white
font:
weight: 300
@@ -85,7 +84,6 @@
.thumb-overlay
@extend %#{$animation}
-
.work-container
max-width: 600px
@@ -130,8 +128,4 @@
h4
margin-left: 60px
-
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/assets/js/functions.js b/assets/js/functions.js
index a4e4e1ee..7461fe32 100644
--- a/assets/js/functions.js
+++ b/assets/js/functions.js
@@ -31,7 +31,7 @@ function workBelt() {
$(".trigger").remove();
$(".return").remove();
- $('.thumb-unit').click(function() {
+ $('.thumb-container label').click(function() {
$('.work-belt').addClass("slided");
$('.work-container').show();
});
@@ -48,10 +48,10 @@ function workLoad() {
$.ajaxSetup({ cache: true });
- $('.thumb-unit').click(function() {
+ $('.thumb-container label').click(function() {
var $this = $(this),
newTitle = $this.find('strong').text(),
- newfolder = $this.data('folder'),
+ newfolder = $this.find('.thumb-unit').data('folder'),
spinner = '
Loading...
',
newHTML = 'work/'+ newfolder;