diff options
Diffstat (limited to 'nikola/data/themes/site')
| -rw-r--r-- | nikola/data/themes/site/README | 32 | ||||
| -rw-r--r-- | nikola/data/themes/site/assets/css/theme.css | 80 | ||||
| -rw-r--r-- | nikola/data/themes/site/engine | 1 | ||||
| -rw-r--r-- | nikola/data/themes/site/parent | 1 | ||||
| -rw-r--r-- | nikola/data/themes/site/templates/base.tmpl | 67 |
5 files changed, 0 insertions, 181 deletions
diff --git a/nikola/data/themes/site/README b/nikola/data/themes/site/README deleted file mode 100644 index c89543c..0000000 --- a/nikola/data/themes/site/README +++ /dev/null @@ -1,32 +0,0 @@ -A more "website-done-with-bootstrap" theme, so to speak. This theme should -be completely compatible with the default theme and need no configuration -changes, except for the search form, as explained below. - - -Has a fixed navigation bar at top that displays: - -* Site name -* navigation links (taken from sidebar_links in dodo.py) -* search form (taken from SEARCH_FORM in dodo.py) -* Link to page's source code (if available) -* Floating social bar on the left margin -* The below-title block is displayed flush right - -This theme is used in Nikola's website: http://nikola.ralsina.com.ar - -Important: To fit in the bootstrap navigation bar, the search form needs the -navbar-form and pull-left CSS classes applied. Here is an example with Nikola's -default duckduckgo search form: - - SEARCH_FORM = """ - <!-- Custom search --> - <form method="get" id="search" action="http://duckduckgo.com/" class="navbar-form pull-left"> - <input type="hidden" name="sites" value="%s"/> - <input type="hidden" name="k8" value="#444444"/> - <input type="hidden" name="k9" value="#D51920"/> - <input type="hidden" name="kt" value="h"/> - <input type="text" name="q" maxlength="255" placeholder="Search…" class="span2" style="margin-top: 4px;"/> - <input type="submit" value="DuckDuckGo Search" style="visibility: hidden;" /> - </form> - <!-- End of custom search --> - """ % SITE_URL diff --git a/nikola/data/themes/site/assets/css/theme.css b/nikola/data/themes/site/assets/css/theme.css deleted file mode 100644 index 24072ac..0000000 --- a/nikola/data/themes/site/assets/css/theme.css +++ /dev/null @@ -1,80 +0,0 @@ -body { - padding-top: 60px; -} -@media (max-width: 979px) { - body { - padding-top: 0px; - } -} -#container { - width: 960px; - margin: 50 auto; -} - -#contentcolumn { - max-width: 760px; -} -#q { - width: 150px; -} - -img { - max-width: 90%; -} - -.postbox { - border-bottom: 2px solid darkgrey; - margin-bottom: 12px; -} - -.footerbox {padding: 15px; text-align: center; margin-bottom: 15px;} - -td.label { - /* Issue #290 */ - background-color: inherit; -} - -.footnote-reference { - /* Issue 290 */ - vertical-align: super; - font-size: xx-small; -} - -.caption { - /* Issue 292 */ - text-align: center; -} - -div.figure > a > img { - /* Issue 292 */ - display: block; - margin-left: auto; - margin-right: auto; -} - -div.sidebar, div.admonition, div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning { - /* Issue 277 */ - border: 1px solid #aaa; - border-radius: 5px; -} - -blockquote p, blockquote { - font-size: 17.5px; - font-weight: 300; - line-height: 1.25; -} - -ul.bricks > li { - display: inline; - background-color: lightblue; - padding: 8px; - border-radius: 5px; - line-height: 3; - white-space:nowrap; - margin: 3px; -} - -h1, h2, h3, h4, h5, h6, h7 { - margin-top: -40px; - padding-top: 40px; -} diff --git a/nikola/data/themes/site/engine b/nikola/data/themes/site/engine deleted file mode 100644 index 2951cdd..0000000 --- a/nikola/data/themes/site/engine +++ /dev/null @@ -1 +0,0 @@ -mako diff --git a/nikola/data/themes/site/parent b/nikola/data/themes/site/parent deleted file mode 100644 index 4ad96d5..0000000 --- a/nikola/data/themes/site/parent +++ /dev/null @@ -1 +0,0 @@ -default diff --git a/nikola/data/themes/site/templates/base.tmpl b/nikola/data/themes/site/templates/base.tmpl deleted file mode 100644 index 4efd0ad..0000000 --- a/nikola/data/themes/site/templates/base.tmpl +++ /dev/null @@ -1,67 +0,0 @@ -## -*- coding: utf-8 -*- -<%namespace file="base_helper.tmpl" import="*"/> -${set_locale(lang)} -<!DOCTYPE html> -<html lang="${lang}"> -<head> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - ${html_head()} - <%block name="extra_head"> - </%block> - ${extra_head_data} -</head> -<body> -<!-- Menubar --> -<div class="navbar navbar-fixed-top"> - <div class="navbar-inner"> - <div class="container"> - - <!-- .btn-navbar is used as the toggle for collapsed navbar content --> - <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </a> - - <a class="brand" href="${abs_link('/')}"> - ${blog_title} - </a> - <!-- Everything you want hidden at 940px or less, place within here --> - <div class="nav-collapse collapse"> - <ul class="nav"> - ${html_sidebar_links()} - </ul> - %if search_form: - ${search_form} - %endif - <ul class="nav pull-right"> - <%block name="belowtitle"> - %if len(translations) > 1: - <li>${html_translations()}</li> - %endif - </%block> - <%block name="sourcelink"> </%block> - </ul> - </div> - </div> - </div> -</div> -<!-- End of Menubar --> -<div class="container-fluid" id="container-fluid"> - <!--Body content--> - <div class="row-fluid"> - <div class="span2"></div> - <div class="span8"> - <%block name="content"></%block> - </div> - </div> - <!--End of body content--> -</div> -<div class="footerbox"> - ${content_footer} -</div> -${html_social()} -${late_load_js()} -${analytics} - <script type="text/javascript">jQuery("a.image-reference").colorbox({rel:"gal",maxWidth:"80%",maxHeight:"80%",scalePhotos:true});</script> -</body> |
