瀏覽代碼

added some CSS styles for the sidebar template

Frank Nägler 11 年之前
父節點
當前提交
4e376b12fc
共有 2 個文件被更改,包括 12 次插入4 次删除
  1. 1 2
      themes/default/content-sidebar.html
  2. 11 2
      themes/default/style.css

+ 1 - 2
themes/default/content-sidebar.html

@@ -30,11 +30,10 @@
 
 	<section id="content">
 		<div class="inner">
-            {{ content }}
-
             <div class="sidebar">
                 this is the sidebar...
             </div>
+            {{ content }}
         </div>
 	</section>
 	

+ 11 - 2
themes/default/style.css

@@ -201,8 +201,17 @@ blockquote {
 /* Structure Styles
 /*---------------------------------------------*/
 .inner {
-	width: 850px;
-	margin: 0 auto;
+    width: 850px;
+    margin: 0 auto;
+}
+
+.inner .sidebar {
+    width: 250px;
+    margin: 0 20px 20px 0;
+    padding: 20px;
+    min-height: 300px;
+    background: #dddddd;
+    float: left;
 }
 
 #header {