浏览代码

Default theme: Use flexbox to grow content div

Daniel Rudolf 9 年之前
父节点
当前提交
86614a3ab4
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      themes/default/style.css

+ 14 - 0
themes/default/style.css

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