diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index c3431ed..0000000 --- a/.gitmodules +++ /dev/null @@ -1,6 +0,0 @@ -[submodule "simiki/themes/simple"] - path = simiki/themes/simple - url = https://github.com/simiki-org/simple -[submodule "simiki/themes/simple2"] - path = simiki/themes/simple2 - url = https://github.com/simiki-org/simple2 diff --git a/README.md b/README.md index b5e74f5..98f8704 100644 --- a/README.md +++ b/README.md @@ -76,13 +76,6 @@ Sending pull requests on [Pull Requests Page](https://github.com/tankywoo/simiki * Bug fixes can be based on **`master`** branch and I will also merge into `dev` branch. * Feature can be based on **`dev`** branch. -The basic steps are: - - git clone - # clone themes from another repos, otherwise some unittest rely on theme will cause error - git submodule init - git submodule update - Following links are the contribution guidelines you may need: * [Fork A Repo](https://help.github.com/articles/fork-a-repo/) diff --git a/simiki/themes/simple b/simiki/themes/simple deleted file mode 160000 index f49bc31..0000000 --- a/simiki/themes/simple +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f49bc3103f0b7077aa89fa1487ac83135f6e4e90 diff --git a/simiki/themes/simple/base.html b/simiki/themes/simple/base.html new file mode 100644 index 0000000..3e6bd3e --- /dev/null +++ b/simiki/themes/simple/base.html @@ -0,0 +1,28 @@ + + + + + + + + {% block title %}{{ site.title }}{% endblock %} + + + + + + +
+ {% block container %} + {{ page.content }} + {% endblock %} +
+ + {% include "stat.html" %} + + diff --git a/simiki/themes/simple/index.html b/simiki/themes/simple/index.html new file mode 100644 index 0000000..d887214 --- /dev/null +++ b/simiki/themes/simple/index.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} + +{% macro list_page(pages, parent_url, parent_id) -%} + +{%- endmacro %} + +{% block title %}{{ site.title }}{% endblock %} + +{% block container %} +
{{ site.title }}
+ +
+ {% for category_name, pages in site.structure.items() %} + {# Top-level wiki pages not display in index #} + {% if site.default_ext not in category_name %} +

{{ category_name }}

+ {% set url = "./" ~ category_name %} + {{ list_page(pages, url, category_name) }} +
+ {% endif %} + {% endfor %} +
+{% endblock %} diff --git a/simiki/themes/simple/page.html b/simiki/themes/simple/page.html new file mode 100644 index 0000000..d0fa61f --- /dev/null +++ b/simiki/themes/simple/page.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} + +{% block title %}{{ page.title }} - {{ site.title }}{% endblock %} + +{% block container %} + +
+
{{ page.title }}
+
+ {{ page.content }} +
+{% endblock %} diff --git a/simiki/themes/simple/stat.html b/simiki/themes/simple/stat.html new file mode 100644 index 0000000..e69de29 diff --git a/simiki/themes/simple/static/css/style.css b/simiki/themes/simple/static/css/style.css new file mode 100644 index 0000000..13012f9 --- /dev/null +++ b/simiki/themes/simple/static/css/style.css @@ -0,0 +1,259 @@ +/* +Theme Name: Simple +Author: Tanky Woo +Author URI: http://www.wutianqi.com/ +Description: Default theme for simiki. +Version: 0.1 +License: The MIT License (MIT) +Tags: simple, single-columns, code, codehighlight, white, markdown +*/ + +/* Global Configuration */ +/* IE6 ignores this and uses default size of 16pt */ +html>body { font-size: 14px; } + +html { + font-size: 100%; + overflow-y: scroll; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; +} + +body { + font-family: "Helvetica Neue", "Segoe UI", Arial, Sans-Serif; + line-height: 1.5em; + background-color: whitesmoke; +} + +a { color: #0645ad; text-decoration: none; } +a:visited { color: #0b0080; } +a:hover { color: #06e; text-decoration: underline; } +a:active { color: #faa700; } + +p { margin: 0 0 1.5em 0; text-align: justify; } + +h1, h2, h3, h4, h5, h6 { + font-weight: normal; + color: #111; + line-height: 1em; +} + +h1 { font-size: 2.0em; } +h2 { font-size: 1.6em; border-bottom: 1px solid #ddd; padding-bottom: 5px; overflow:hidden } +h3 { font-size: 1.4em; } +h4 { font-size: 1.2em; } +h5 { font-size: 1.0em; } +h6 { font-size: 0.8em; } + +blockquote { + color: #666; + margin: 0; + padding-left: 3em; + border-left: 0.4em #eee solid; +} + +hr { + border: 1px solid silver; + margin: 1em 0; + padding: 0; +} + +b, strong { font-weight: bold; } + +ul, ol { + margin: 1.5em 0; + padding-left: 1.5em; + line-height: 1.5em; +} + +ul li { list-style-type: square; } + +ul li p { margin: 0; } + +img { + border: 0; + vertical-align: middle; + margin: 0 auto; + max-width: 100%; +} + +table { + border-collapse: collapse; + border-spacing: 0; + margin-bottom: 1em; + border: 1px solid #ccc; +} + +td { + vertical-align: top; + padding: 3px 6px; +} + +/* Optimization for pre and code tag */ +pre, code { + font-family: Consolas, "DejaVu Sans Mono", "Lucida Console", Monaco, Andale Mono, "MS Gothic", monospace; + font-size: 13px; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + overflow: auto; +} + +code { + color: #666; + background-color: #eee; + margin: 0 2px; + padding: 1px 3px; +} + +pre { + border: 1px solid #eee; + padding: 8px 12px; + white-space: pre; + white-space: -moz-pre-wrap; /* Firefox */ + white-space: -pre-wrap; /* ancient Opera */ + white-space: -o-pre-wrap; /* newer Opera */ + white-space: pre-wrap; /* Chrome; W3C standard */ + word-wrap: break-word; /* IE */ +} + +pre code { + border: 0px !important; + padding: 0; + color: #000; + background-color: #f8f8f8; +} + +/* Custom Configuration */ +#container { + background: white; + width: 50em; + line-height: 1.5em; + margin: 1.5em auto 3em auto; + padding: 1.5em 2em; + border: 1px solid #ccc; + box-shadow: 2px 2px 8px #aaa; + -webkit-box-shadow: 2px 2px 8px #aaa; + -moz-box-shadow: 2px 2px 8px #aaa; +} + +#wiki_title, #title { + text-align: center; + font-size: 2em; + line-height: 1.5em; + padding-bottom: 10px; + margin: 20px 0; +} + +#title { + border-bottom: 1px dashed #eee; +} + +#header { +} + +#footer { + margin: 10px auto; + color: grey; + font-size: 80%; + text-align: center; +} + +li.pagelist { + width: 100%; + margin-right: 1.5em; + list-style-type: none; + white-space: nowrap; + overflow: hidden; +} + +li.pagelist:before { + content: "\0BB \020"; +} + +#index ul { margin: 0; } + +/* Table of Contents */ +.toc { + margin: 0 0.5em; + padding: 0.5em 1em; + border: 1px solid silver; + background-color: #ecf5ff; + float: right; + display: block; + font-size: 90%; +} + +.toc > .toctitle { + display: block; + text-align: center; + font-weight: bold; + margin-bottom: 1em; +} + +.toc ul { + margin: 0; +} + +/* Hackers */ +/* Hacker for codehilite */ +table.codehilitetable { + border-collapse: separate; + border: 1px solid #eee; + margin: 14px 0; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +.codehilitetable pre { + margin: 0; + border: 0 none; + box-shadow: none; + -webkit-box-shadow: none; + -moz-box-shadow: none; +} + +.codehilitetable td { + border: 0 none; + padding: 0; + margin: 0; +} + +/* Clear the float problem */ +.clearfix:after { + visibility: hidden; + clear: both; + font-size: 0; + content: "."; + display: block; + height: 0; +} + + +table.hlcodetable { + border: 1px solid #eee; + border-collapse: separate !important; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +.hlcodetable td { + padding: 0; + border: none; +} + +.hlcodetable .linenodiv { + border-right: 1px solid #ccc; +} + +.hlcodetable .linenodiv pre { + margin: 0; + border: none; +} + +.hlcodetable .hlcode pre { + margin: 0; + border: none; +} diff --git a/simiki/themes/simple/static/css/tango.css b/simiki/themes/simple/static/css/tango.css new file mode 100644 index 0000000..9620fc3 --- /dev/null +++ b/simiki/themes/simple/static/css/tango.css @@ -0,0 +1,138 @@ +pre .hll { background-color: #ffffcc } +pre { background: #f8f8f8; } +pre .c { color: #8f5902; font-style: italic } /* Comment */ +pre .g { color: #000000 } /* Generic */ +pre .k { color: #204a87; font-weight: bold } /* Keyword */ +pre .l { color: #000000 } /* Literal */ +pre .n { color: #000000 } /* Name */ +pre .o { color: #ce5c00; font-weight: bold } /* Operator */ +pre .x { color: #000000 } /* Other */ +pre .p { color: #000000; font-weight: bold } /* Punctuation */ +pre .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */ +pre .cp { color: #8f5902; font-style: italic } /* Comment.Preproc */ +pre .c1 { color: #8f5902; font-style: italic } /* Comment.Single */ +pre .cs { color: #8f5902; font-style: italic } /* Comment.Special */ +pre .gd { color: #a40000 } /* Generic.Deleted */ +pre .ge { color: #000000; font-style: italic } /* Generic.Emph */ +pre .gr { color: #ef2929 } /* Generic.Error */ +pre .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +pre .gi { color: #00A000 } /* Generic.Inserted */ +pre .go { color: #000000; font-style: italic } /* Generic.Output */ +pre .gp { color: #8f5902 } /* Generic.Prompt */ +pre .gs { color: #000000; font-weight: bold } /* Generic.Strong */ +pre .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +pre .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */ +pre .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */ +pre .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */ +pre .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */ +pre .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */ +pre .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */ +pre .kt { color: #204a87; font-weight: bold } /* Keyword.Type */ +pre .ld { color: #000000 } /* Literal.Date */ +pre .m { color: #0000cf; font-weight: bold } /* Literal.Number */ +pre .s { color: #4e9a06 } /* Literal.String */ +pre .na { color: #c4a000 } /* Name.Attribute */ +pre .nb { color: #204a87 } /* Name.Builtin */ +pre .nc { color: #000000 } /* Name.Class */ +pre .no { color: #000000 } /* Name.Constant */ +pre .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */ +pre .ni { color: #ce5c00 } /* Name.Entity */ +pre .ne { color: #cc0000; font-weight: bold } /* Name.Exception */ +pre .nf { color: #000000 } /* Name.Function */ +pre .nl { color: #f57900 } /* Name.Label */ +pre .nn { color: #000000 } /* Name.Namespace */ +pre .nx { color: #000000 } /* Name.Other */ +pre .py { color: #000000 } /* Name.Property */ +pre .nt { color: #204a87; font-weight: bold } /* Name.Tag */ +pre .nv { color: #000000 } /* Name.Variable */ +pre .ow { color: #204a87; font-weight: bold } /* Operator.Word */ +pre .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */ +pre .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */ +pre .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */ +pre .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */ +pre .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */ +pre .sb { color: #4e9a06 } /* Literal.String.Backtick */ +pre .sc { color: #4e9a06 } /* Literal.String.Char */ +pre .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */ +pre .s2 { color: #4e9a06 } /* Literal.String.Double */ +pre .se { color: #4e9a06 } /* Literal.String.Escape */ +pre .sh { color: #4e9a06 } /* Literal.String.Heredoc */ +pre .si { color: #4e9a06 } /* Literal.String.Interpol */ +pre .sx { color: #4e9a06 } /* Literal.String.Other */ +pre .sr { color: #4e9a06 } /* Literal.String.Regex */ +pre .s1 { color: #4e9a06 } /* Literal.String.Single */ +pre .ss { color: #4e9a06 } /* Literal.String.Symbol */ +pre .bp { color: #3465a4 } /* Name.Builtin.Pseudo */ +pre .vc { color: #000000 } /* Name.Variable.Class */ +pre .vg { color: #000000 } /* Name.Variable.Global */ +pre .vi { color: #000000 } /* Name.Variable.Instance */ +pre .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */ +.hlcode pre .hll { background-color: #ffffcc } +.hlcode pre { background: #f8f8f8; } +.hlcode pre .c { color: #8f5902; font-style: italic } /* Comment */ +.hlcode pre .g { color: #000000 } /* Generic */ +.hlcode pre .k { color: #204a87; font-weight: bold } /* Keyword */ +.hlcode pre .l { color: #000000 } /* Literal */ +.hlcode pre .n { color: #000000 } /* Name */ +.hlcode pre .o { color: #ce5c00; font-weight: bold } /* Operator */ +.hlcode pre .x { color: #000000 } /* Other */ +.hlcode pre .p { color: #000000; font-weight: bold } /* Punctuation */ +.hlcode pre .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */ +.hlcode pre .cp { color: #8f5902; font-style: italic } /* Comment.Preproc */ +.hlcode pre .c1 { color: #8f5902; font-style: italic } /* Comment.Single */ +.hlcode pre .cs { color: #8f5902; font-style: italic } /* Comment.Special */ +.hlcode pre .gd { color: #a40000 } /* Generic.Deleted */ +.hlcode pre .ge { color: #000000; font-style: italic } /* Generic.Emph */ +.hlcode pre .gr { color: #ef2929 } /* Generic.Error */ +.hlcode pre .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.hlcode pre .gi { color: #00A000 } /* Generic.Inserted */ +.hlcode pre .go { color: #000000; font-style: italic } /* Generic.Output */ +.hlcode pre .gp { color: #8f5902 } /* Generic.Prompt */ +.hlcode pre .gs { color: #000000; font-weight: bold } /* Generic.Strong */ +.hlcode pre .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.hlcode pre .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */ +.hlcode pre .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */ +.hlcode pre .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */ +.hlcode pre .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */ +.hlcode pre .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */ +.hlcode pre .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */ +.hlcode pre .kt { color: #204a87; font-weight: bold } /* Keyword.Type */ +.hlcode pre .ld { color: #000000 } /* Literal.Date */ +.hlcode pre .m { color: #0000cf; font-weight: bold } /* Literal.Number */ +.hlcode pre .s { color: #4e9a06 } /* Literal.String */ +.hlcode pre .na { color: #c4a000 } /* Name.Attribute */ +.hlcode pre .nb { color: #204a87 } /* Name.Builtin */ +.hlcode pre .nc { color: #000000 } /* Name.Class */ +.hlcode pre .no { color: #000000 } /* Name.Constant */ +.hlcode pre .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */ +.hlcode pre .ni { color: #ce5c00 } /* Name.Entity */ +.hlcode pre .ne { color: #cc0000; font-weight: bold } /* Name.Exception */ +.hlcode pre .nf { color: #000000 } /* Name.Function */ +.hlcode pre .nl { color: #f57900 } /* Name.Label */ +.hlcode pre .nn { color: #000000 } /* Name.Namespace */ +.hlcode pre .nx { color: #000000 } /* Name.Other */ +.hlcode pre .py { color: #000000 } /* Name.Property */ +.hlcode pre .nt { color: #204a87; font-weight: bold } /* Name.Tag */ +.hlcode pre .nv { color: #000000 } /* Name.Variable */ +.hlcode pre .ow { color: #204a87; font-weight: bold } /* Operator.Word */ +.hlcode pre .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */ +.hlcode pre .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */ +.hlcode pre .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */ +.hlcode pre .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */ +.hlcode pre .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */ +.hlcode pre .sb { color: #4e9a06 } /* Literal.String.Backtick */ +.hlcode pre .sc { color: #4e9a06 } /* Literal.String.Char */ +.hlcode pre .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */ +.hlcode pre .s2 { color: #4e9a06 } /* Literal.String.Double */ +.hlcode pre .se { color: #4e9a06 } /* Literal.String.Escape */ +.hlcode pre .sh { color: #4e9a06 } /* Literal.String.Heredoc */ +.hlcode pre .si { color: #4e9a06 } /* Literal.String.Interpol */ +.hlcode pre .sx { color: #4e9a06 } /* Literal.String.Other */ +.hlcode pre .sr { color: #4e9a06 } /* Literal.String.Regex */ +.hlcode pre .s1 { color: #4e9a06 } /* Literal.String.Single */ +.hlcode pre .ss { color: #4e9a06 } /* Literal.String.Symbol */ +.hlcode pre .bp { color: #3465a4 } /* Name.Builtin.Pseudo */ +.hlcode pre .vc { color: #000000 } /* Name.Variable.Class */ +.hlcode pre .vg { color: #000000 } /* Name.Variable.Global */ +.hlcode pre .vi { color: #000000 } /* Name.Variable.Instance */ +.hlcode pre .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */ diff --git a/simiki/themes/simple2 b/simiki/themes/simple2 deleted file mode 160000 index caa60d9..0000000 --- a/simiki/themes/simple2 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit caa60d9f34a1e7f0f1a1c329a5f308bb5b76566a diff --git a/simiki/themes/simple2/base.html b/simiki/themes/simple2/base.html new file mode 100644 index 0000000..7f2717b --- /dev/null +++ b/simiki/themes/simple2/base.html @@ -0,0 +1,32 @@ + + + + + + + + + {% block title %}{{ site.title }}{% endblock %} + + + + + + +
+ {% block container %} + {{ page.content }} + {% endblock %} +
+ + + {% block script %} + {% endblock %} + + diff --git a/simiki/themes/simple2/index.html b/simiki/themes/simple2/index.html new file mode 100644 index 0000000..dff3113 --- /dev/null +++ b/simiki/themes/simple2/index.html @@ -0,0 +1,69 @@ +{%- extends "base.html" %} + +{%- block title %}{{ site.title }}{% endblock %} + +{%- block container %} +
{{ site.title }}
+ +
+ {%- if site.index %} {# custom index page #} + {{ page.content }} + {%- else %} {# auto generate index page #} + {%- for category in pages %} + {%- if site.default_ext not in category %} {# is category #} +
+

+ {%- if 'label' in category %}{{ category.label }} + {%- else %}{{ category.name|capitalize }}{% endif %} +

+
+
    + {%- for page in category.pages %} + {%- if site.default_ext in page.fname %} {# is page #} +
  • + {{ page.title }} + {%- if 'description' in page %} +    {{ page.description }} + {% endif %} + {%- elif 'pages' in page %} {# is collection #} +
  • + {% set coll = page %} {# for readability #} +
    +
    {{ coll.name }} : 
    +
    + {%- for coll_page in coll.pages %} + {{ coll_page.title }} + {%- if 'description' in coll_page %} +  {{ coll_page.description }} + {% endif %} + {%- if not loop.last %} / {% endif %} + {%- endfor %} +
    +
    + {%- endif %} +
  • + {%- endfor %} +
+
+
+ {%- endif %} +
+ {%- endfor %} + {%- endif %} +
+{%- endblock %} + +{%- block script %} + +{%- endblock %} diff --git a/simiki/themes/simple2/page.html b/simiki/themes/simple2/page.html new file mode 100644 index 0000000..5f79e38 --- /dev/null +++ b/simiki/themes/simple2/page.html @@ -0,0 +1,45 @@ +{%- extends "base.html" %} + +{%- block title %}{{ page.title }} - {{ site.title }}{% endblock %} + +{%- block container %} + +
+ +
{{ page.title }}
+ + {{ page.content }} + + {%- if page.relation %} +
+

Related

+
    + {% for r in page.relation %} +
  • {{ r.title }}
  • + {% endfor %} +
+
+ {%- endif %} + +{%- endblock %} diff --git a/simiki/themes/simple2/static/css/style.css b/simiki/themes/simple2/static/css/style.css new file mode 100644 index 0000000..9d4b005 --- /dev/null +++ b/simiki/themes/simple2/static/css/style.css @@ -0,0 +1,295 @@ +/* +Theme Name: Simple2 +Author: Tanky Woo +Author URI: http://www.wutianqi.com/ +Description: Default theme for simiki. +Version: 0.1 +License: The MIT License (MIT) +Tags: simple, single-columns, code, codehighlight, white, markdown +*/ + +/* Global Configuration */ +/* IE6 ignores this and uses default size of 16pt */ +html>body { font-size: 14px; } + +html { + font-size: 100%; + overflow-y: scroll; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; +} + +body { + font-family: "Helvetica Neue", "Segoe UI", Arial, Sans-Serif; + line-height: 1.5em; + background-color: whitesmoke; + color: #2f2f2f; +} + +a { color: #0645ad; text-decoration: none; } +a:visited { color: #0645ad; } +a:hover { color: #06e; } +a:active { color: #06e; } + +p { margin: 0 0 1.5em 0; text-align: justify; } + +h1, h2, h3, h4, h5, h6 { + font-weight: normal; + line-height: 1em; +} + +h1 { font-size: 2.0em; } +h2 { font-size: 1.6em; border-bottom: 1px solid #ddd; padding-bottom: 5px; overflow:hidden } +h3 { font-size: 1.4em; } +h4 { font-size: 1.2em; } +h5 { font-size: 1.0em; } +h6 { font-size: 0.8em; } + +blockquote { + color: #666; + margin: 0; + padding-left: 3em; + border-left: 0.4em #eee solid; +} + +hr { + border: 1px solid silver; + margin: 1em 0; + padding: 0; +} + +b, strong { font-weight: bold; } + +ul, ol { + margin: 1.5em 0; + padding-left: 1.5em; + line-height: 1.5em; +} + +ul li { list-style-type: square; } + +ul li p { margin: 0; } + +img { + border: 0; + vertical-align: middle; + margin: 0 auto; + max-width: 100%; +} + +table { + border-collapse: collapse; + border-spacing: 0; + margin-bottom: 1em; + border: 1px solid #ccc; +} + +td { + vertical-align: top; + padding: 3px 6px; +} + +/* Optimization for pre and code tag */ +pre, code { + font-family: Consolas, "DejaVu Sans Mono", "Lucida Console", Monaco, Andale Mono, "MS Gothic", monospace; + font-size: 13px; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + overflow: auto; +} + +code { + color: #666; + background-color: #eee; + margin: 0 2px; + padding: 1px 3px; +} + +pre { + border: 1px solid #eee; + padding: 8px 12px; + white-space: pre; + white-space: -moz-pre-wrap; /* Firefox */ + white-space: -pre-wrap; /* ancient Opera */ + white-space: -o-pre-wrap; /* newer Opera */ + white-space: pre-wrap; /* Chrome; W3C standard */ + word-wrap: break-word; /* IE */ +} + +pre code { + border: 0px !important; + padding: 0; + color: #000; + background-color: #f8f8f8; +} + +/* Custom Configuration */ +#container { + background: white; + width: 50em; + line-height: 1.5em; + margin: 1.5em auto 3em auto; + padding: 1.5em 2em; + border: 1px solid #ccc; + box-shadow: 2px 2px 8px #aaa; + -webkit-box-shadow: 2px 2px 8px #aaa; + -moz-box-shadow: 2px 2px 8px #aaa; +} + +#header .updated { + float: right; + font-size: 80%; + color: #555; +} + +.title, .page_title { + text-align: center; + font-size: 2em; + line-height: 1.5em; + padding-bottom: 10px; + margin: 20px 0; +} + +.page_title { + border-bottom: 1px dashed #eee; +} + +#footer p { + margin: 10px auto; + font-size: 80%; + text-align: center; + color: #555; + line-height: 1em; +} + +#footer a { color: #555; } +#footer a:hover { color: black; } + +.post-nav a { color: #555; } +.post-nav a:hover { color: black; } + +.category a { color: #555; } +.category a:hover { color: black; } + +.category_pages ul { + padding-left: 0; +} + +li.pagelist { + width: 100%; + margin-right: 1.5em; + list-style-type: none; + overflow: hidden; +} + +.item_arrow:before { + content: "\0BB \020"; +} + +.index ul { margin: 0; } + +/* Table of Contents */ +.toc { + margin: 0 0.5em; + padding: 0.5em 1em; + border: 1px solid silver; + background-color: #ecf5ff; + float: right; + display: block; + font-size: 90%; +} + +.toc > .toctitle { + display: block; + text-align: center; + font-weight: bold; + margin-bottom: 1em; +} + +.toc ul { + margin: 0; +} + +/* Hackers */ +/* Hacker for codehilite */ +table.highlighttable { + border: 1px solid #eee; + border-collapse: separate !important; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +.highlighttable td { + padding: 0; + border: none; +} + +.highlighttable td.code { + width: 100%; +} + +.highlighttable .linenodiv { + border-right: 1px solid #ccc; +} + +.highlighttable .linenodiv pre { + margin: 0; + border: none; +} + +.highlighttable .highlight pre { + margin: 0; + border: none; +} + +/* Clear the float problem */ +.clearfix:after { + visibility: hidden; + clear: both; + font-size: 0; + content: "."; + display: block; + height: 0; +} + + +table.hlcodetable { + border: 1px solid #eee; + border-collapse: separate !important; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +.hlcodetable td { + padding: 0; + border: none; +} + +.hlcodetable td.code { + width: 100%; +} + +.hlcodetable .linenodiv { + border-right: 1px solid #ccc; +} + +.hlcodetable .linenodiv pre { + margin: 0; + border: none; +} + +.hlcodetable .hlcode pre { + margin: 0; + border: none; +} + +.list_wrapper { + display: inline-block; +} + +.coll_name { + float: left; +} diff --git a/simiki/themes/simple2/static/css/tango.css b/simiki/themes/simple2/static/css/tango.css new file mode 100644 index 0000000..9620fc3 --- /dev/null +++ b/simiki/themes/simple2/static/css/tango.css @@ -0,0 +1,138 @@ +pre .hll { background-color: #ffffcc } +pre { background: #f8f8f8; } +pre .c { color: #8f5902; font-style: italic } /* Comment */ +pre .g { color: #000000 } /* Generic */ +pre .k { color: #204a87; font-weight: bold } /* Keyword */ +pre .l { color: #000000 } /* Literal */ +pre .n { color: #000000 } /* Name */ +pre .o { color: #ce5c00; font-weight: bold } /* Operator */ +pre .x { color: #000000 } /* Other */ +pre .p { color: #000000; font-weight: bold } /* Punctuation */ +pre .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */ +pre .cp { color: #8f5902; font-style: italic } /* Comment.Preproc */ +pre .c1 { color: #8f5902; font-style: italic } /* Comment.Single */ +pre .cs { color: #8f5902; font-style: italic } /* Comment.Special */ +pre .gd { color: #a40000 } /* Generic.Deleted */ +pre .ge { color: #000000; font-style: italic } /* Generic.Emph */ +pre .gr { color: #ef2929 } /* Generic.Error */ +pre .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +pre .gi { color: #00A000 } /* Generic.Inserted */ +pre .go { color: #000000; font-style: italic } /* Generic.Output */ +pre .gp { color: #8f5902 } /* Generic.Prompt */ +pre .gs { color: #000000; font-weight: bold } /* Generic.Strong */ +pre .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +pre .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */ +pre .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */ +pre .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */ +pre .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */ +pre .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */ +pre .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */ +pre .kt { color: #204a87; font-weight: bold } /* Keyword.Type */ +pre .ld { color: #000000 } /* Literal.Date */ +pre .m { color: #0000cf; font-weight: bold } /* Literal.Number */ +pre .s { color: #4e9a06 } /* Literal.String */ +pre .na { color: #c4a000 } /* Name.Attribute */ +pre .nb { color: #204a87 } /* Name.Builtin */ +pre .nc { color: #000000 } /* Name.Class */ +pre .no { color: #000000 } /* Name.Constant */ +pre .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */ +pre .ni { color: #ce5c00 } /* Name.Entity */ +pre .ne { color: #cc0000; font-weight: bold } /* Name.Exception */ +pre .nf { color: #000000 } /* Name.Function */ +pre .nl { color: #f57900 } /* Name.Label */ +pre .nn { color: #000000 } /* Name.Namespace */ +pre .nx { color: #000000 } /* Name.Other */ +pre .py { color: #000000 } /* Name.Property */ +pre .nt { color: #204a87; font-weight: bold } /* Name.Tag */ +pre .nv { color: #000000 } /* Name.Variable */ +pre .ow { color: #204a87; font-weight: bold } /* Operator.Word */ +pre .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */ +pre .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */ +pre .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */ +pre .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */ +pre .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */ +pre .sb { color: #4e9a06 } /* Literal.String.Backtick */ +pre .sc { color: #4e9a06 } /* Literal.String.Char */ +pre .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */ +pre .s2 { color: #4e9a06 } /* Literal.String.Double */ +pre .se { color: #4e9a06 } /* Literal.String.Escape */ +pre .sh { color: #4e9a06 } /* Literal.String.Heredoc */ +pre .si { color: #4e9a06 } /* Literal.String.Interpol */ +pre .sx { color: #4e9a06 } /* Literal.String.Other */ +pre .sr { color: #4e9a06 } /* Literal.String.Regex */ +pre .s1 { color: #4e9a06 } /* Literal.String.Single */ +pre .ss { color: #4e9a06 } /* Literal.String.Symbol */ +pre .bp { color: #3465a4 } /* Name.Builtin.Pseudo */ +pre .vc { color: #000000 } /* Name.Variable.Class */ +pre .vg { color: #000000 } /* Name.Variable.Global */ +pre .vi { color: #000000 } /* Name.Variable.Instance */ +pre .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */ +.hlcode pre .hll { background-color: #ffffcc } +.hlcode pre { background: #f8f8f8; } +.hlcode pre .c { color: #8f5902; font-style: italic } /* Comment */ +.hlcode pre .g { color: #000000 } /* Generic */ +.hlcode pre .k { color: #204a87; font-weight: bold } /* Keyword */ +.hlcode pre .l { color: #000000 } /* Literal */ +.hlcode pre .n { color: #000000 } /* Name */ +.hlcode pre .o { color: #ce5c00; font-weight: bold } /* Operator */ +.hlcode pre .x { color: #000000 } /* Other */ +.hlcode pre .p { color: #000000; font-weight: bold } /* Punctuation */ +.hlcode pre .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */ +.hlcode pre .cp { color: #8f5902; font-style: italic } /* Comment.Preproc */ +.hlcode pre .c1 { color: #8f5902; font-style: italic } /* Comment.Single */ +.hlcode pre .cs { color: #8f5902; font-style: italic } /* Comment.Special */ +.hlcode pre .gd { color: #a40000 } /* Generic.Deleted */ +.hlcode pre .ge { color: #000000; font-style: italic } /* Generic.Emph */ +.hlcode pre .gr { color: #ef2929 } /* Generic.Error */ +.hlcode pre .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.hlcode pre .gi { color: #00A000 } /* Generic.Inserted */ +.hlcode pre .go { color: #000000; font-style: italic } /* Generic.Output */ +.hlcode pre .gp { color: #8f5902 } /* Generic.Prompt */ +.hlcode pre .gs { color: #000000; font-weight: bold } /* Generic.Strong */ +.hlcode pre .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.hlcode pre .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */ +.hlcode pre .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */ +.hlcode pre .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */ +.hlcode pre .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */ +.hlcode pre .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */ +.hlcode pre .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */ +.hlcode pre .kt { color: #204a87; font-weight: bold } /* Keyword.Type */ +.hlcode pre .ld { color: #000000 } /* Literal.Date */ +.hlcode pre .m { color: #0000cf; font-weight: bold } /* Literal.Number */ +.hlcode pre .s { color: #4e9a06 } /* Literal.String */ +.hlcode pre .na { color: #c4a000 } /* Name.Attribute */ +.hlcode pre .nb { color: #204a87 } /* Name.Builtin */ +.hlcode pre .nc { color: #000000 } /* Name.Class */ +.hlcode pre .no { color: #000000 } /* Name.Constant */ +.hlcode pre .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */ +.hlcode pre .ni { color: #ce5c00 } /* Name.Entity */ +.hlcode pre .ne { color: #cc0000; font-weight: bold } /* Name.Exception */ +.hlcode pre .nf { color: #000000 } /* Name.Function */ +.hlcode pre .nl { color: #f57900 } /* Name.Label */ +.hlcode pre .nn { color: #000000 } /* Name.Namespace */ +.hlcode pre .nx { color: #000000 } /* Name.Other */ +.hlcode pre .py { color: #000000 } /* Name.Property */ +.hlcode pre .nt { color: #204a87; font-weight: bold } /* Name.Tag */ +.hlcode pre .nv { color: #000000 } /* Name.Variable */ +.hlcode pre .ow { color: #204a87; font-weight: bold } /* Operator.Word */ +.hlcode pre .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */ +.hlcode pre .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */ +.hlcode pre .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */ +.hlcode pre .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */ +.hlcode pre .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */ +.hlcode pre .sb { color: #4e9a06 } /* Literal.String.Backtick */ +.hlcode pre .sc { color: #4e9a06 } /* Literal.String.Char */ +.hlcode pre .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */ +.hlcode pre .s2 { color: #4e9a06 } /* Literal.String.Double */ +.hlcode pre .se { color: #4e9a06 } /* Literal.String.Escape */ +.hlcode pre .sh { color: #4e9a06 } /* Literal.String.Heredoc */ +.hlcode pre .si { color: #4e9a06 } /* Literal.String.Interpol */ +.hlcode pre .sx { color: #4e9a06 } /* Literal.String.Other */ +.hlcode pre .sr { color: #4e9a06 } /* Literal.String.Regex */ +.hlcode pre .s1 { color: #4e9a06 } /* Literal.String.Single */ +.hlcode pre .ss { color: #4e9a06 } /* Literal.String.Symbol */ +.hlcode pre .bp { color: #3465a4 } /* Name.Builtin.Pseudo */ +.hlcode pre .vc { color: #000000 } /* Name.Variable.Class */ +.hlcode pre .vg { color: #000000 } /* Name.Variable.Global */ +.hlcode pre .vi { color: #000000 } /* Name.Variable.Instance */ +.hlcode pre .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */