Commits

jokull  committed 84a1873

Style sheet changes.

  • Participants
  • Parent commits 3297ea3

Comments (0)

Files changed (3)

File relaxlog/static/styles.css

+body { font-family: monospace; }
+
+#container { margin: 6em auto; width: 530px; }
+#footer { border-top: 1px solid #E0E0E0; padding-top: 1.4em; margin-top: 3em; }
+
+a { color: #0000FF; }
+a:visited { color: #3B00D0; }
+
+h1 { font-weight: bold; line-height: 40px; border-bottom: 1px solid #E0E0E0; margin-bottom: 20px; }
+h2 { text-transform: uppercase; line-height: 40px; }
+h3 { line-height: 40px; }
+h4 { font-style: italic; line-height: 40px; }
+p { margin-bottom: 20px; line-height: 20px; }
+
+pre, code, tt { font-size: 14px; line-height: 20px; }
+em { font-style: italic; }
+strong { font-weight: bold; }
+sup { font-size: 12px; line-height: 12px; vertical-align: top; }
+
+ul, ol, dl { margin: 0 0 20px 32px; }
+ol li { list-style: decimal outside; }
+ul li { list-style: circle outside; }
+
+.body img {
+    display: block;
+    margin: 20px auto;
+}
+
+blockquote { margin: 0 0 20px 32px; color: #333; border-left: 4px #ccc solid; padding-left: 6px; }

File relaxlog/templates/base.html

 <head>
     <title>{% block title %}Jökull Sólberg{% endblock %}</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+    <link rel="stylesheet" href="http://yui.yahooapis.com/2.5.2/build/reset/reset-min.css" type="text/css">
     <link rel="stylesheet" href="{{ MEDIA_URL }}static/styles.css" type="text/css">
     <link rel="stylesheet" href="{{ MEDIA_URL }}static/friendly.css" type="text/css">
-    <link rel="stylesheet" href="http://yui.yahooapis.com/2.5.2/build/reset/reset-min.css" type="text/css">
     <link rel="alternate" title="Nýjustu færslur" href="/straumar/faerslur/" type="application/atom+xml">
     <link rel="alternate" title="Nýjustu hlekkir" href="/straumar/hlekkir/" type="application/atom+xml">
 </head>
 <body>
-    {% block content %}{% endblock %}
-    <p id="copyright">
-        Höfundarréttur &copy; <a href="/">Jökull Sólberg Auðunsson</a>. 
-        Meira <a href="/jokull/">um höfundinn</a> eða <a href="/um-solberg-is/">þessa síðu</a>.
-    </p>
+    <div id="container">
+        <div class="body">
+{% block content %}{% endblock %}
+        </div>
+        <p id="footer">
+            Höfundarréttur &copy; <a href="/">Jökull Sólberg Auðunsson</a>. 
+            Meira <a href="/jokull/">um höfundinn</a> eða <a href="/um-solberg-is/">þessa síðu</a>.
+        </p>
+    </div>
 </body>
 </html>

File relaxlog/urls.py

     (r'^meira-um/(?P<slug>[-\w]+)/$', 'views.flatpage'),
     (r'^blogg/', include('weblog.urls')),
 )
+
+from django.conf import settings
+
+if settings.DEBUG:
+    urlpatterns += patterns('',
+        url(r'%s(?P<path>.*)$' % settings.MEDIA_URL[1:], 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, })
+    )