From 5954ef4abcdca9375ce8c31cd9a1f1df16e1b886 Mon Sep 17 00:00:00 2001 From: mathieu Date: Mon, 8 Jun 2015 15:42:47 -0400 Subject: [PATCH] Home page. Small fixes for small screens #32 --- application/views/home.php | 5 +++++ assets/css/main.css | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/application/views/home.php b/application/views/home.php index 18399825..2252adb8 100644 --- a/application/views/home.php +++ b/application/views/home.php @@ -95,6 +95,11 @@ $("#demo-third-step").hide(); $("#demo-fourth-step").hide(); + var windowHeight = $(window).height(); + var headerHeight = $('header').height(); + $(".slogan-home").css("margin-top", -windowHeight+headerHeight+70); + + $('video,audio').mediaelementplayer({features: []}); $(".continue").click(function(){ diff --git a/assets/css/main.css b/assets/css/main.css index 7df77506..659ca8a2 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -785,10 +785,6 @@ button[name=syncDone], .mejs-container .mejs-controls { visibility:hidden !important; } -.slogan-home { - margin-top: -630px -} - .slogan-home h1{ color: #FFFFFF; font-size: 40px;