From: Charles Connell Date: Sun, 13 Apr 2014 15:42:39 +0000 (-0400) Subject: Mobile Safari doesn't like viewport relative units X-Git-Tag: release-20150131~144^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b07f18d956077ed4d0ae5517f53b95832a37b47e;p=oweals%2Fkarmaworld.git Mobile Safari doesn't like viewport relative units --- 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 %}