Explorar o código

Default theme: Use flexbox to grow content div

Daniel Rudolf %!s(int64=9) %!d(string=hai) anos
pai
achega
86614a3ab4
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  1. 14 0
      themes/default/style.css

+ 14 - 0
themes/default/style.css

@@ -211,6 +211,17 @@ blockquote {
 
 
 /* Structure Styles
 /* Structure Styles
 /*---------------------------------------------*/
 /*---------------------------------------------*/
+body {
+    display: flex;
+    flex-direction: column;
+    min-height: 100vh;
+    height: 100%;
+}
+body > * {
+    flex: none;
+    width: 100%;
+}
+
 .inner {
 .inner {
     width: 850px;
     width: 850px;
     margin: 0 auto;
     margin: 0 auto;
@@ -262,6 +273,9 @@ blockquote {
     display: inline-block;
     display: inline-block;
     float: left;
     float: left;
 }
 }
+#content {
+    flex: 1 0 auto;
+}
 #footer {
 #footer {
     background: #707070;
     background: #707070;
     padding: 60px 0;
     padding: 60px 0;