Bladeren bron

样式调整

yangchaojie 1 dag geleden
bovenliggende
commit
598276d246
1 gewijzigde bestanden met toevoegingen van 13 en 8 verwijderingen
  1. 13 8
      templates/blog.html

+ 13 - 8
templates/blog.html

@@ -228,13 +228,13 @@
             font-weight: 300;
         }
 
-                /* 让编辑器生成的表格始终填满可用宽度 */
+        /* 让编辑器生成的表格始终填满可用宽度 */
         #article table {
-          /* 覆盖 inline style */
-          width: 100% !important;
-          max-width: 100% !important;
-          margin: 1rem 0;             /* 上下留白,左右不需要居中 */
-          border-collapse: collapse;
+            /* 覆盖 inline style */
+            width: 100% !important;
+            max-width: 100% !important;
+            margin: 1rem 0; /* 上下留白,左右不需要居中 */
+            border-collapse: collapse;
         }
 
         /* 去掉默认 cell 间距 */
@@ -242,6 +242,10 @@
             border-spacing: 0;
         }
 
+        #article {
+            margin-top: 2rem;
+        }
+
         /* 头部和单元格:更小的内边距和字体 */
         #article table th,
         #article table td {
@@ -351,8 +355,9 @@
                         <a class="author">{{ article.user__first_name }}{{ article.user__last_name }}</a>
                         <div class="metadata">
                             <div class="date">发布于: {{ article.created_time|days_until }}</div> {% if is_login %}
-                <a style="font-style: italic; color: #0d6678" target="_blank"  href="/management/article/to_edit/{{ article.id }}">编辑</a>
-            {% endif %}
+                            <a style="font-style: italic; color: #0d6678" target="_blank"
+                               href="/management/article/to_edit/{{ article.id }}">编辑</a>
+                        {% endif %}
                         </div>
                         <div class="text">hava a nice day.</div>
                     </div>