From b07f18d956077ed4d0ae5517f53b95832a37b47e Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Sun, 13 Apr 2014 11:42:39 -0400 Subject: [PATCH] Mobile Safari doesn't like viewport relative units --- karmaworld/assets/css/global.css | 6 ------ karmaworld/assets/css/home.css | 5 ++++- karmaworld/templates/base.html | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/karmaworld/assets/css/global.css b/karmaworld/assets/css/global.css index 8c52274..6c5faaa 100644 --- a/karmaworld/assets/css/global.css +++ b/karmaworld/assets/css/global.css @@ -54,12 +54,6 @@ p { padding: 0 5px 0 5px; } -#splash { - background-image: url('../img/banner_small.jpg'); - background-size: cover; - background-position: center center; -} - #global_footer { line-height: 1.5em; padding: 20px 0 20px 0; diff --git a/karmaworld/assets/css/home.css b/karmaworld/assets/css/home.css index 061239b..b9fca7d 100644 --- a/karmaworld/assets/css/home.css +++ b/karmaworld/assets/css/home.css @@ -1,8 +1,11 @@ #splash { - padding: 10vh 5vw 10vh 5vw; + padding: 8% 5% 8% 5%; color: #ffffff; text-align: center; font-size: 3em; + background-image: url('../img/banner_small.jpg'); + background-size: cover; + background-position: center center; } @media only screen and (max-width: 40.063em) { diff --git a/karmaworld/templates/base.html b/karmaworld/templates/base.html index 9c0c11c..eebb4a1 100644 --- a/karmaworld/templates/base.html +++ b/karmaworld/templates/base.html @@ -3,7 +3,7 @@ - + KarmaNotes -- {% block title %}{% endblock %}{% block head_title %}{% endblock %} -- 2.25.1