Commits

Ajitesh Gupta committed a43e5f3

Fixed faulty footer which used to rise to the top at low resolutions in basic theme

Comments (0)

Files changed (3)

MoinMoin/themes/basic/static/css/theme.css

   display: none;
 }
 .moin-content {
-  padding-bottom: 100px;
+  padding-bottom: 10%;
 }
 .moin-footer {
   bottom: 0;
   float: right;
   padding: 10px;
 }
+.container {
+  min-height: 100%;
+  position: relative;
+}
+@media (max-width: 992px) {
+  .container {
+    width: auto;
+  }
+  .moin-content {
+    padding-bottom: 250px;
+  }
+  .moin-footer-credits {
+    width: 100%;
+    padding-right: 30px;
+  }
+  .moin-footer-logo {
+    padding-left: 30px;
+  }
+}
 @media (min-width: 768px) {
   .container {
-    min-height: 100%;
-    position: relative;
     width: auto;
   }
 }
 @media (min-width: 992px) {
   .container {
-    min-height: 100%;
-    position: relative;
     width: auto;
   }
 }
 @media (min-width: 1200px) {
   .container {
-    min-height: 100%;
-    position: relative;
     width: auto;
   }
 }

MoinMoin/themes/basic/static/custom-less/theme.less

   display: none
 }
 .moin-content {
-  padding-bottom: 100px;
+  padding-bottom: 10%;
 }
 .moin-footer {
   bottom: 0;
     padding: 10px;
   }
 }
+.container {
+  min-height: 100%;
+  position: relative;
+}
 // set min-width to prevent search box from floating off window to right
+@media (max-width: 992px) {
+  .container {
+    width: auto;
+  }
+  .moin-content {
+    padding-bottom: 250px;
+  }
+  .moin-footer-credits {
+    width: 100%;
+    padding-right: 30px;
+  }
+  .moin-footer-logo {
+    padding-left: 30px;
+  }
+}
 @media (min-width: 768px) {
   .container {
-    min-height: 100%;
-    position: relative;
     width: auto;
   }
 }
 @media (min-width: 992px) {
   .container {
-    min-height: 100%;
-    position: relative;
     width: auto;
   }
 }
 @media (min-width: 1200px) {
   .container {
-    min-height: 100%;
-    position: relative;
     width: auto;
   }
 }

MoinMoin/themes/basic/templates/snippets.html

 
 {# Helper macro to create image links #}
 {% macro creditlogo(link, logo, alt, title) %}
-<a class="navbar-brand" href="{{ link }}" title="{{ title }}"><img src="{{ logo }}" alt="{{ alt }}" /></a>
+<a class="navbar-brand moin-footer-logo" href="{{ link }}" title="{{ title }}"><img src="{{ logo }}" alt="{{ alt }}" /></a>
 {% endmacro %}
 
 
 
 
 {# Text links in the footer #}
-{% macro credits(start='<ul class="nav navbar-nav pull-right"> <li>'|safe, end='</li> </ul>'|safe, sep='</li> <li>'|safe) %}
+{% macro credits(start='<ul class="nav navbar-nav pull-right moin-footer-credits"> <li>'|safe, end='</li> </ul>'|safe, sep='</li> <li>'|safe) %}
 {{ start }}
 {{ credit('http://moinmo.in/', 'MoinMoin Powered', 'This site uses the MoinMoin Wiki software.') }}
 {{ sep }}