Просмотр исходного кода

gui: Improve layout of footer on narrow screens (fixes #2663)

Jakob Borg 10 лет назад
Родитель
Сommit
c952468e13
2 измененных файлов с 25 добавлено и 4 удалено
  1. 23 2
      gui/default/assets/css/overrides.css
  2. 2 2
      lib/auto/gui.files.go

+ 23 - 2
gui/default/assets/css/overrides.css

@@ -275,11 +275,32 @@ ul.three-columns li, ul.two-columns li {
 /** Footer nav on small devices **/
 
 @media (max-width: 1199px) {
+    /* Stay at the end of the page, with space reserved for the footer
+    usually taking up two rows. */
+
+    html {
+        position: relative;
+        min-height: 100%;
+    }
+
     body {
-        padding-bottom: 0;
+        padding-bottom: 60px;
     }
 
     .navbar-fixed-bottom {
-        position: static;
+        position: absolute;
     }
 }
+
+@media (max-width: 768px) {
+    /* Layout after the normal contents, as this is when the footer switches
+    to a vertical layout. */
+
+    body {
+        padding-bottom: 0px;
+    }
+
+    .navbar-fixed-bottom {
+        position: relative;
+    }
+}

Разница между файлами не показана из-за своего большого размера
+ 2 - 2
lib/auto/gui.files.go


Некоторые файлы не были показаны из-за большого количества измененных файлов