style: adding a very simple style
authorFredrik Unger <fred@tree.se>
Thu, 29 Aug 2013 12:58:30 +0000 (14:58 +0200)
committerFredrik Unger <fred@tree.se>
Thu, 29 Aug 2013 12:58:30 +0000 (14:58 +0200)
Adding a simple but elegant style for websites with only articles
and no need for flashy menues or language menues

style/simple/css/css.css [new file with mode: 0644]
style/simple/docbook.xsl [new file with mode: 0644]
style/simple/index.de.html.tmpl [new file with mode: 0644]
style/simple/index.en.html.tmpl [new file with mode: 0644]

diff --git a/style/simple/css/css.css b/style/simple/css/css.css
new file mode 100644 (file)
index 0000000..00df3e7
--- /dev/null
@@ -0,0 +1,73 @@
+body {
+margin-left: 100px;
+margin-right: 100px;
+}
+div.mediaobject {
+  float: left;
+  border: thin silver solid;
+  width: 500px;
+  margin: 0.5em;
+  padding: 0.5em;
+}
+div.caption p {
+  text-align: center;
+  font-style: italic;
+  font-size: smaller;
+  text-indent: 0;
+}
+div.mediaobject table {
+    margin-left: auto;
+    margin-right: auto;
+}
+div.toc {
+width:250px;
+font-size:80%;
+border:1px solid #d3d3d3;
+border-radius:5px;
+padding:0;
+margin:0;
+}
+
+div.toc p {
+margin-bottom: 4px;
+text-align:center;
+background:#e8eaeb;
+}
+
+div.toc dl {
+padding:1px 10px;
+}
+div.toc dl dl{
+margin:1px 1px;
+}
+
+h1,h2,h3 {
+    font-family:Georgia,serif;
+    color:#4E443C;
+    font-variant: small-caps; text-transform: none; font-weight: 100; margin-bottom: 0;
+}
+
+p {
+font-family: "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
+       font-size: 14px;
+       margin-top: .5em; color: #666;
+}
+
+nav ul {
+    list-style:none;
+    margin:0px 0 0px 0px;
+    padding:0;
+    text-indent:10px;
+    font-family: Georgia,serif
+    font-size: 14px;
+    font-weight: bold;
+}
+nav ul ul {
+    margin:0;
+    padding:0;
+    list-style:none;
+    text-indent:20px;
+    font-family: Georgia,serif
+    font-size: 12px;
+    font-weight: normal;
+}
diff --git a/style/simple/docbook.xsl b/style/simple/docbook.xsl
new file mode 100644 (file)
index 0000000..a16fa26
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<!-- Point this to your docbook.xsl. This is the Debian standard location. -->
+
+<xsl:import href="file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/html/docbook.xsl"/>
+
+<xsl:template match="*" mode="process.root">
+  <xsl:apply-templates select="."/>
+</xsl:template>
+
+</xsl:stylesheet>
diff --git a/style/simple/index.de.html.tmpl b/style/simple/index.de.html.tmpl
new file mode 100644 (file)
index 0000000..3631308
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+      lang="de">
+  <head>
+    <meta charset="utf-8" />
+    <title>$title</title>
+    <link rel="stylesheet" href="/css/css.css" type="text/css" />
+  </head>
+  <body>
+    <nav>
+    $menu
+    </nav>
+    <article>
+    $article
+    </article>
+  </body>
+</html>
diff --git a/style/simple/index.en.html.tmpl b/style/simple/index.en.html.tmpl
new file mode 100644 (file)
index 0000000..676458c
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+      lang="en">
+  <head>
+    <meta charset="utf-8" />
+    <title>$title</title>
+    <link rel="stylesheet" href="/css/css.css" type="text/css" />
+  </head>
+  <body>
+    <nav>
+    $menu
+    </nav>
+    <article>
+    $article
+    </article>
+  </body>
+</html>