Browse Source

Style tweaks

master
Dylan Baker 3 years ago
parent
commit
077d7b5274
2 changed files with 9 additions and 13 deletions
  1. 1
    1
      templates/index.html
  2. 8
    12
      templates/layout.html

+ 1
- 1
templates/index.html View File

@@ -21,7 +21,7 @@
21 21
 <div class="posts">
22 22
   {% for post in posts %}
23 23
   <div class="posts__post post">
24
-    <h3 class="post__heading">{{ post.title }} // {{ post.date }}</h3>
24
+    <h3 class="post__heading">{{ post.title }} :: {{ post.date }}</h3>
25 25
     <div class="post__body">
26 26
       {{ post.body | safe }}
27 27
     </div>

+ 8
- 12
templates/layout.html View File

@@ -13,13 +13,13 @@
13 13
 
14 14
       body {
15 15
         background: #aab5a9;
16
-        color: #383e37;
16
+        color: #000;
17 17
         font-family: Verdana, Geneva, Tahoma, sans-serif;
18 18
         font-size: 12px;
19 19
       }
20 20
 
21 21
       a {
22
-        color: #383e37;
22
+        color: #000;
23 23
       }
24 24
 
25 25
       a:hover {
@@ -60,25 +60,21 @@
60 60
       }
61 61
 
62 62
       .post {
63
-        margin: 4em 0;
63
+        margin: 3em 0;
64 64
       }
65 65
 
66 66
       .post__heading {
67 67
         background: white;
68 68
         border: 1px solid #383e37;
69
-        margin: 1em 0;
70
-        padding: 0.25em;
71
-      }
72
-
73
-      .post__heading {
74 69
         font-size: 12px;
75 70
         font-style: italic;
71
+        padding: 0.5em;
72
+        text-align: right;
76 73
       }
77 74
 
78
-      .post__heading::before {
79
-        content: ':: ';
80
-        font-style: normal;
81
-        font-weight: normal;
75
+      .post__body {
76
+        border-top: none;
77
+        padding: 0.5em;
82 78
       }
83 79
 
84 80
       .error {

Loading…
Cancel
Save