Permalink
Browse files

Allow the background element in the #page-heading:before pseudo-eleme…

…nt to be preloaded. Fixes #1.
  • Loading branch information...
1 parent f5dd2f8 commit 49a74093f037b9aa9d6cc02a848d2a72161e8591 @natansh natansh committed Mar 13, 2013
Showing with 8 additions and 0 deletions.
  1. +3 −0 _layouts/content.html
  2. +5 −0 css/main.css
View
@@ -51,6 +51,9 @@
<div class="clearfix"></div>
<div id="content" role="main">
<div id="page-heading" class="bg-img">
+ <!-- This is a hack to allow the bg-img present in the :after pseudo-element to be used in the imageLoaded plugin. -->
+ <div id="page-heading-after" class="hidden bg-img"></div>
+
{{ page.title }}
</div>
<br />
View
@@ -262,6 +262,11 @@ blockquote {
height: 28px;
}
+#page-heading-after {
+ background: url('../img/coraltexturefade.png') no-repeat;
+}
+
+
#page-heading:after {
opacity: 0.93;
content: ' ';

0 comments on commit 49a7409

Please sign in to comment.