Kaynağa Gözat

Style tweaks

master
Dylan Baker 3 yıl önce
ebeveyn
işleme
077d7b5274
2 değiştirilmiş dosya ile 9 ekleme ve 13 silme
  1. 1
    1
      templates/index.html
  2. 8
    12
      templates/layout.html

+ 1
- 1
templates/index.html Dosyayı Görüntüle

21
 <div class="posts">
21
 <div class="posts">
22
   {% for post in posts %}
22
   {% for post in posts %}
23
   <div class="posts__post post">
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
     <div class="post__body">
25
     <div class="post__body">
26
       {{ post.body | safe }}
26
       {{ post.body | safe }}
27
     </div>
27
     </div>

+ 8
- 12
templates/layout.html Dosyayı Görüntüle

13
 
13
 
14
       body {
14
       body {
15
         background: #aab5a9;
15
         background: #aab5a9;
16
-        color: #383e37;
16
+        color: #000;
17
         font-family: Verdana, Geneva, Tahoma, sans-serif;
17
         font-family: Verdana, Geneva, Tahoma, sans-serif;
18
         font-size: 12px;
18
         font-size: 12px;
19
       }
19
       }
20
 
20
 
21
       a {
21
       a {
22
-        color: #383e37;
22
+        color: #000;
23
       }
23
       }
24
 
24
 
25
       a:hover {
25
       a:hover {
60
       }
60
       }
61
 
61
 
62
       .post {
62
       .post {
63
-        margin: 4em 0;
63
+        margin: 3em 0;
64
       }
64
       }
65
 
65
 
66
       .post__heading {
66
       .post__heading {
67
         background: white;
67
         background: white;
68
         border: 1px solid #383e37;
68
         border: 1px solid #383e37;
69
-        margin: 1em 0;
70
-        padding: 0.25em;
71
-      }
72
-
73
-      .post__heading {
74
         font-size: 12px;
69
         font-size: 12px;
75
         font-style: italic;
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
       .error {
80
       .error {

Loading…
İptal
Kaydet