Bläddra i källkod

Copies basic theme, which extends simple theme, into the project

This is copied from [official
documentation](http://docs.getpelican.com/en/3.0/themes.html#example).
Talha Mansoor 11 år sedan
förälder
incheckning
7a11dc25b8
2 ändrade filer med 45 tillägg och 0 borttagningar
  1. 39 0
      static/css/style.css
  2. 6 0
      templates/base.html

+ 39 - 0
static/css/style.css

@@ -0,0 +1,39 @@
+body {
+  font-family: monospace;
+  font-size: 100%;
+  background-color: white;
+  color: #111;
+  width: 80%;
+  min-width: 400px;
+  min-height: 200px;
+  padding: 1em;
+  margin: 5% 10%;
+  border: thin solid gray;
+  border-radius: 5px;
+  display: block;
+}
+
+a:link    { color: blue; text-decoration: none;      }
+a:hover   { color: blue; text-decoration: underline; }
+a:visited { color: blue;                             }
+
+h1 a { color: inherit !important }
+h2 a { color: inherit !important }
+h3 a { color: inherit !important }
+h4 a { color: inherit !important }
+h5 a { color: inherit !important }
+h6 a { color: inherit !important }
+
+#menu li {
+    display: inline;
+}
+
+#post-list {
+    margin-bottom: 1em;
+    margin-top: 1em;
+}
+
+pre {
+    margin: 2em 1em 2em 4em;
+}
+

+ 6 - 0
templates/base.html

@@ -0,0 +1,6 @@
+{% extends "!simple/base.html" %}
+
+{% block head %}
+{{ super() }}
+       <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css" />
+{% endblock %}