Prechádzať zdrojové kódy

Getting rid of sticky footer, adding wpbeginner ad

Dave Gandy 10 rokov pred
rodič
commit
135c3ef8ec

+ 6 - 1
src/_includes/footer.html

@@ -1,6 +1,11 @@
 <footer id="footer" class="footer hidden-print">
   <div class="container text-center">
-    <div id="bsap_1298241" class="bsarocks bsap_b1146e3f9fa32a794fc6d2c7be47ece8"></div>
+    <div id="bsap_1298241" class="bsarocks bsap_b1146e3f9fa32a794fc6d2c7be47ece8">
+      <a href="http://www.wpbeginner.com/?utm_source=fontawesome_footer&utm_medium=banner&utm_campaign=fontawesome" title="Beginner's Guide to WordPress" target="_blank" rel="nofollow"
+         onClick="_gaq.push(['_trackEvent', 'Outbound Link', 'wpbeginner.com']);">
+        <img src="{{ page.relative_path }}assets/img/logo-wpbeginner.png" width="220" height="65" alt="">
+      </a>
+    </div>
     <div>
       <i class="fa fa-flag"></i> Font Awesome {{ site.fontawesome.version }}
       <span class="hide-xs">&middot;</span><br class="hide-sm hide-md hide-lg">

BIN
src/assets/ico/favicon.ico


BIN
src/assets/img/logo-wpbeginner.png


+ 1 - 0
src/assets/less/site/bsap-ad.less

@@ -3,6 +3,7 @@ div.bsap {
   a {
     display: inline-block !important;
     border-bottom: inherit !important;
+    margin: 0 15px 20px !important;
   }
   a.adhere {
     background: inherit !important;

+ 22 - 19
src/assets/less/site/footer.less

@@ -1,9 +1,9 @@
 #footer {
-  //  #gradient > .vertical(@navbarInverseBackgroundHighlight, @navbarInverseBackground);
   background-color: lighten(@fa-green, 2%);
   border-top: 1px solid @jumbotron-border;
   color: mix(@jumbotron-color, @fa-green, 60%);
   text-shadow: 0 1px 0 rgba(0,0,0,0.15);
+  margin-top: 60px;
   a {
     color: mix(@jumbotron-color, @fa-green, 80%);
     border-bottom: dotted 1px mix(@jumbotron-color, @fa-green, 60%);
@@ -13,7 +13,10 @@
       border-bottom: solid 1px @jumbotron-color;
     }
   }
-  .container { padding-top: 40px; }
+  .container {
+    padding-top: 50px;
+    padding-bottom: 55px;
+  }
   .project { margin-top: 10px; }
 }
 
@@ -21,20 +24,20 @@
 // Sticky Footer Styles
 // --------------------
 
-html, body { height: 100%; }
-
-#wrap {
-  min-height: 100%;
-  height: auto !important;
-  height: 100%;
-}
-
-.sticky-footer();
-
-.sticky-footer(@footer-height: 251px, @footer-margin: 60px) {
-  #wrap {
-    margin: 0 auto -(@footer-height);
-    padding: 0 0 (@footer-height + @footer-margin);
-  }
-  #footer { height: @footer-height; }
-}
+//html, body { height: 100%; }
+//
+//#wrap {
+//  min-height: 100%;
+//  height: auto !important;
+//  height: 100%;
+//}
+//
+//.sticky-footer();
+//
+//.sticky-footer(@footer-height: 356px, @footer-margin: 60px) {
+//  #wrap {
+//    margin: 0 auto -(@footer-height);
+//    padding: 0 0 (@footer-height + @footer-margin);
+//  }
+//  #footer { height: @footer-height; }
+//}

+ 0 - 2
src/assets/less/site/responsive/screen-sm.less

@@ -43,7 +43,5 @@
     .action { width: 33%; }
   }
 
-  .sticky-footer(271px, 60px);
-
   .hide-sm { display: none; }
 }

+ 0 - 3
src/assets/less/site/responsive/screen-xs.less

@@ -71,8 +71,5 @@
     .tagline { margin-bottom: 10px; }
   }
 
-
-  .sticky-footer(331px, 60px);
-
   .hide-xs { display: none; }
 }