Skip to content

Commit 26be947

Browse files
Aisling FoleyAisling Foley
authored andcommitted
vertically center full screen videos and gifs, replace nucleus gif with a png
1 parent 79992d5 commit 26be947

File tree

7 files changed

+19
-3
lines changed

7 files changed

+19
-3
lines changed

_layouts/work.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ <h3 class="project-item-title">Pharmaceutical Intelligence Platform</h3>
3333
<div class="project-item-inner">
3434
<div class="project-item projects-item-inner grid">
3535
<div class="col-2-3 project-item-img alignme">
36-
<img class="intranet-desktop lazy" data-original="{{ site.baseurl }}/img/projects/intranet-laptop.gif" alt="The mother of all intranets">
37-
<img class="intranet-mobile lazy" data-original="{{ site.baseurl }}/img/projects/intranet-mobile.gif" alt="The mother of all intranets">
36+
<img class="lazy" data-original="{{ site.baseurl }}/img/projects/intranet.png" alt="The mother of all intranets">
3837
</div>
3938
<div class="col-1-3 project-item-text alignme">
4039
<h3 class="project-item-title">The mother of all intranets</h3>
@@ -96,7 +95,7 @@ <h3 class="project-item-title">Next Generation Delivery Experience</h3>
9695

9796
<div class="col-1-1">
9897
<h3 class="project-item-title">Enterprise Mobile Directory</h3>
99-
<p>A consumer-grade native application allowing users to search 60,000 people, add notes and bookmarks. The go-t o directory for an enterprise transitioning to mobile by default.</p>
98+
<p>A consumer-grade native application allowing users to search 60,000 people, add notes and bookmarks. The go-to directory for an enterprise transitioning to mobile by default.</p>
10099
</div>
101100

102101
</div>

_sass/pages/_work.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@
236236

237237
.work-photo-container {
238238
background-color: $aqua;
239+
-webkit-transform-style: preserve-3d;
240+
-moz-transform-style: preserve-3d;
241+
transform-style: preserve-3d;
239242

240243
&:before {
241244
//photo shadows background: transparent;
@@ -313,6 +316,20 @@
313316
video {
314317
width: 100% !important;
315318
height: auto !important;
319+
320+
@media screen and (min-width: 632px) {
321+
position: relative;
322+
top: 50%;
323+
transform: translateY(-50%);
324+
}
325+
}
326+
327+
#gif1,
328+
#gif2,
329+
#gif3 {
330+
position: relative;
331+
top: 50%;
332+
transform: translateY(-50%);
316333
}
317334

318335
// Gifs & Images

img/.DS_Store

0 Bytes
Binary file not shown.

img/projects/.DS_Store

-6 KB
Binary file not shown.

img/projects/intranet-laptop.gif

-872 KB
Binary file not shown.

img/projects/intranet-mobile.gif

-907 KB
Binary file not shown.

img/projects/intranet.png

349 KB
Loading

0 commit comments

Comments
 (0)