}
$res .= $this->imageSlideshowScroll($slides, 439, array(), array('shortcuts' => false));
- $res .= '<div class="content">';
+ $res .= '<div class="content description">';
$res .= '<h1>' . $r->titre . '</h1>';
$res .= '<ul class="tags">';
$res .= '<li>' . $this->dateTime($realisation->date, Zend_Date::YEAR) . '</li>';
//$visuel = $this->view->imageProcess($r->visuel_detail, '', null, 440);
- $rea = $this->view->imageProcess($r->visuel, $r->titre, 236, 236);
+ $rea = '<div class="img-wrapper">';
+ $rea .= $this->view->imageProcess($r->visuel, $r->titre, 236, 236);
+ $rea .= '</div>';
// fb($r, 'r');
$rea.= '<div class="details-positioner">';
$rea.= '<div class="details-holder">';
var naturalHeight = $(a).find('img').attr('height');
var imageRatio = naturalWidth / naturalHeight;
$(a).find('img').css({width: ew, height: ew / imageRatio});
+ $(a).find('.img-wrapper').css({width: ew, height: ew / imageRatio});
// Reset isotope grid
$(container).isotope({
color: #1b1b1b;
}
h3 {
- font-size: 14px;
- line-height: 16px;
+ font-size: 16px;
+ line-height: 1.4;
height: 18px;
color: #545454;
margin: -3px 0 20px;
h1 {
text-align: left;
font-size: 56px;
- line-height: 81px;
+ line-height: 1;
+ margin-bottom: 10px;
}
h2 {
text-align: left;
font-size: 22px;
line-height: 25px;
white-space: pre-line; // Preserve line breaks from content
+ font-family: @roboto;
+ text-transform: none;
+ font-weight: 300;
@media screen and (max-width: 980px) {
white-space: normal;
.realisation {
margin: 50px 0 0 0;
h1 {
- font-size: 32px;
+ font-size: 40px;
+ font-weight: 300;
+ text-transform: none;
+ margin-top: 40px;
}
h2 {
margin: 0 0 15px 0;
}
+ p {
+ margin: 1.5em 0;
+ }
+
.but {
- margin: 20px 0;
+ margin: 0 0 80px 0;
float: right;
background-color: @yellow !important;
}
margin: 30px 0 30px 0;
}
+ .close-holder {
+ min-height: 26px;
+ margin-bottom: 20px;
+ }
+
.content {
position: relative;
display: inline-block;
position: absolute;
right: 34px;
- top: 50%;
- margin-top: -13px; // Half of line-height to position vertically in the centre
+ top: 0;
background-image: url(../images/close-portfolio.png);
background-repeat: no-repeat;
background-position: right center;
}
}
}
+
+ .description {
+ margin-bottom: 100px;
+ }
+}
+
+ul.tags {
+ margin: 10px 0 -10px 0;
+ list-style: none;
+ li {
+ font-size: 14px;
+ color: #6f6f6f;
+ padding: 3px 6px;
+ border-radius: 2px;
+ background-color: #ededed;
+ margin: 0 6px 6px 0;
+ display: inline-block;
+ &:before {
+ content: "" !important;
+ }
+ }
}
\ No newline at end of file
#realisations-list {
max-width: 980px;
margin: 0 auto;
- padding: 0 0 50px 0;
+ padding: 14px 0 50px 0;
display: none; // Hidden initially until Isotope activates
- a, a:hover {
+ a {
color: #000;
display: inline-block;
- margin: 0 0 30px 0;
+ margin: 0 0 60px 0;
+
+ .img-wrapper {
+ overflow: hidden; // Give blurred image hovers a sharp edge by hiding any blur bleed
+ position: relative;
+
+ &:before {
+ content: '';
+ display: block;
+ width: 100%;
+ height: 100%;
+ background-color: transparent;
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAMAAADUivDaAAABp1BMVEUAAAD2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH2rgH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PLgz9CRt/zdKxuTHYCv9Nh2b+gUTseJQORFtjkLuqsaaJJShdH9WppI+voBbfvyFK/bfeAic+fOymre7xKTi18enzHAVr61824E646+vi6rfuSET7tvp9uisMmR8A02/S/W9HBAAAAABJRU5ErkJggg==');
+ background-position: center;
+ background-repeat: no-repeat;
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: 1;
+ opacity: 0;
+ transition: all 0.2s ease-out;
+ background-size: 33px;
+ }
+ }
+
img {
display: block;
}
h2 {
- font-size: 23px;
+ font-size: 22px;
+ font-weight: 300;
+ text-transform: none;
color: #1b1b1b;
margin: 8px 0 0 0;
line-height: 1.3;
margin: 0 0 0 0;
}
&.last {
- margin-right: 0px;
+ margin-right: 0;
}
}
+ a:hover {
+
+ .img-wrapper {
+
+ &:before {
+ opacity: 1;
+ background-size: 66px;
+ }
+ }
+
+ img {
+ filter: blur(2.4px);
+ transform: scale(1.02); // Scale up a little bit to clean up the edges after blurring
+ transition: filter 0.25s ease-in;
+ }
+ }
+
.bloc .project-photo {
background-color: #ccc;
margin: 0;