Browse Source

Improved footer.

KrisVos130 9 years ago
parent
commit
c65d240954
2 changed files with 21 additions and 12 deletions
  1. 19 11
      app/app.css
  2. 2 1
      app/templates/home.html

+ 19 - 11
app/app.css

@@ -148,6 +148,9 @@
   padding: 0;
   padding: 0;
   font-weight: 300;
   font-weight: 300;
 }
 }
+html, body {
+  height: 100%;
+}
 body {
 body {
   font-family: 'Source Sans Pro', sans-serif;
   font-family: 'Source Sans Pro', sans-serif;
   font-weight: 300;
   font-weight: 300;
@@ -195,14 +198,16 @@ ul {
   background: #50a3a2;
   background: #50a3a2;
   background: -webkit-linear-gradient(top left, #50a3a2 0%, #53e3a6 100%);
   background: -webkit-linear-gradient(top left, #50a3a2 0%, #53e3a6 100%);
   background: linear-gradient(to bottom right, #50a3a2 0%, #53e3a6 100%);
   background: linear-gradient(to bottom right, #50a3a2 0%, #53e3a6 100%);
-  position: absolute;
   /*top: 20%;*/
   /*top: 20%;*/
-  left: 0;
   width: 100%;
   width: 100%;
-  height: 100%; /*400px*/
-  /*margin-top: -200px;*/
   overflow-x: hidden;
   overflow-x: hidden;
   overflow-y: auto;
   overflow-y: auto;
+  /*padding-bottom: 60px;*/
+
+  min-height: 100%;
+  height: auto !important; /* This line and the next line are not necessary unless you need IE6 support */
+  height: 100%;
+  margin: 0 auto -155px; /* the bottom margin is the negative value of the footer's height */
 }
 }
 .landing {
 .landing {
   background: #50a3a2;
   background: #50a3a2;
@@ -453,13 +458,16 @@ form button:hover {
   color: #fff;
   color: #fff;
 }
 }
 footer {
 footer {
-   text-align: center;
-   position:absolute;
-   bottom:0;
-   width:100%;
-   height:60px;   /* Height of the footer */
-   padding: 0;
-   color: white;
+  text-align: center;
+  width: 100%;
+  height: 60px;
+  margin-top: 95px;
+  color: white;
+  background-color: rgba(255,255,255,0.4);
+  padding-top: 5px;
+}
+.push {
+  height: 60px; /* .push must be the same height as .footer */
 }
 }
 footer a{
 footer a{
   color: white;
   color: white;

+ 2 - 1
app/templates/home.html

@@ -13,6 +13,7 @@
             </div>
             </div>
         {{/if}}
         {{/if}}
         {{> dashboard}}
         {{> dashboard}}
-        {{> footer}}
+        <div class="push"></div>
     </div>
     </div>
+    {{> footer}}
 </template>
 </template>