diff options
author | Corey Richardson <corey@octayn.net> | 2014-11-10 11:11:47 -0500 |
---|---|---|
committer | Corey Richardson <corey@octayn.net> | 2014-11-10 11:11:47 -0500 |
commit | ac9a4bebfbe6065c23fcdab04309b5442f9dca86 (patch) | |
tree | 32962a61478b0257a71c344a5cfaca372b388293 /themes | |
parent | 90db62393760a9166c928509ab8c86148ffafd09 (diff) |
Add theme, stuff
Diffstat (limited to 'themes')
31 files changed, 1566 insertions, 0 deletions
diff --git a/themes/pelican-elegant-1.3/.gitignore b/themes/pelican-elegant-1.3/.gitignore new file mode 100644 index 0000000..a3668d4 --- /dev/null +++ b/themes/pelican-elegant-1.3/.gitignore @@ -0,0 +1,22 @@ +# Generated by http://gitignore.io + +### OSX ### +.DS_Store +.AppleDouble +.LSOverride +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +### vim ### +.*.s[a-w][a-z] +*.un~ +Session.vim +.netrwhist +*~ diff --git a/themes/pelican-elegant-1.3/LICENSE.md b/themes/pelican-elegant-1.3/LICENSE.md new file mode 100644 index 0000000..5abc6ec --- /dev/null +++ b/themes/pelican-elegant-1.3/LICENSE.md @@ -0,0 +1,7 @@ +The license requires that you give credit to me, Talha Mansoor, as the author of the Elegant theme on every site that uses this theme. I have placed the attribution in the footer of every page. Do not remove it. If you need to remove or change the style of the attribution, please get in [touch with me](http://oncrashreboot.com/#about-me) first. + +Along with this attribution clause, Elegant theme is licensed under The MIT License. + +If you use my theme, I would love to hear from you. [Get in touch](http://oncrashreboot.com/#about-me) and let me know about it. I may link to your site too. + +Please visit License section of [Elegant - a theme for Pelican](http://oncrashreboot.com/pelican-elegant) at my blog for updated licensing details. diff --git a/themes/pelican-elegant-1.3/README.md b/themes/pelican-elegant-1.3/README.md new file mode 100644 index 0000000..cdce9bc --- /dev/null +++ b/themes/pelican-elegant-1.3/README.md @@ -0,0 +1,19 @@ +Please visit [Elegant - a theme for Pelican](http://oncrashreboot.com/pelican-elegant) at my blog for detailed features and documentation. + +Elegant offers several unique features including search, live filter, collapsible comments, Mailchimp, custom 404 page, etc. It is a minimal, and stylish theme that looks amazing across all screen resolutions and devices. + +Here is an example search result + +![Search result screenshot](https://raw.github.com/talha131/pelican-elegant/master/search-result-screenshot.png) + +Here is how the home page looks like + +![Home page screenshot](https://raw.github.com/talha131/pelican-elegant/master/home-page-screenshot.png) + +This is how a generated article looks like + +![Article screenshot](https://raw.github.com/talha131/pelican-elegant/master/article-screenshot.png) + +[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/c71132a529c1c5d7eb8dc5ea4825a851 "githalytics.com")](http://githalytics.com/talha131/pelican-elegant) + +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/talha131/pelican-elegant/trend.png)](https://bitdeli.com/free "Bitdeli Badge") diff --git a/themes/pelican-elegant-1.3/RELEASE_NOTES.md b/themes/pelican-elegant-1.3/RELEASE_NOTES.md new file mode 100644 index 0000000..57547ce --- /dev/null +++ b/themes/pelican-elegant-1.3/RELEASE_NOTES.md @@ -0,0 +1,38 @@ +Version 1.3 +=========== + +* Next and previous article navigation is placed below comments section so that article's content and comments appear together +* Article title and site name in `<title>` tag is separated by ` · ` which is cleaner and more subtle than ` - ` +* Subtitle of articles and pages is added in `<title>` tag along with main title +* Description meta tag on Home Page uses `SITE_DESCRIPTION` +* Bug fix: Expand comments section if URL points to a comment +* Bug fix: CSS style of links in an unordered list inside article content is different from article links + +Version 1.2 +=========== + +* RSS and Atom feed links +* CSS style for permanent links added. It is visible only user hovers over the heading +* Block quote is indented towards left +* Bug fix: Hyperlink dashed underline is not visible on Chrome +* Bug fix: Text in list goes beyond list marker when text is long and overflows to next line +* Bug fix: Disqus comment count is always 0 + +Version 1.1 +=========== + +* Add template for pages. Pages do not have tags, category and Disqus comments +* Keep style of a hyperlink in `modified` meta data consisted with the theme +* Add `keywords` meta tag that uses keywords, tags and category attribute of articles and pages +* Validate search form for empty strings +* If `RECENT_ARTICLES_COUNT` is undefined, set it to 10. So that Pelican does not throw critical error +* Bug fix: Path of search.html in search form action should always be absolute +* Bug fix: Copyright meta tag should be set to the author, instead of the license +* Bug fix: Close meta tags +* Bug fix: ID of search form in 404 page should be different from the ID of search form in main navigation +* Bug fix: Links in ordered list in an article do not conform to the link style in rest of the article + +Version 1.0 +=========== + +* Initial release diff --git a/themes/pelican-elegant-1.3/THANKS.md b/themes/pelican-elegant-1.3/THANKS.md new file mode 100644 index 0000000..87a3be7 --- /dev/null +++ b/themes/pelican-elegant-1.3/THANKS.md @@ -0,0 +1,54 @@ +Thanks to +========= + +[tshepang](https://github.com/tshepang) +--------------------------------------- + +### Oct 4, 2013 + +1. He [reported](https://github.com/talha131/pelican-elegant/issues/10) an issue with CSS style of links in an unordered lists. + +### Oct 1, 2013 + +1. He [reported](https://github.com/talha131/pelican-elegant/issues/6) that it is not possible to link to a Disqus comment. + +### Sep 29, 2013 + +1. He [reported](https://github.com/talha131/pelican-elegant/issues/5) hyperlink style compatibility issue on Chrome. +1. He [reported](https://github.com/talha131/pelican-elegant/issues/3) an issue with link style. +1. He [reported](https://github.com/talha131/pelican-elegant/issues/4) the bug that Disqus comment count is always zero. + +[yuex](https://github.com/yuex) +------------------------------- + +### Sep 15, 2013 + +1. He submitted a [patch](https://github.com/talha131/pelican-elegant/pull/2) to the project. + +[Melissa](https://github.com/meli-lewis) +---------------------------------------- +### Sep 3, 2013 + +1. She reported a [critical bug](https://github.com/talha131/pelican-elegant/issues/1). + +[John](http://twitter.com/BostonEnginerd) +----------------------------------------- + +### Sep 2, 2013 + +1. He suggested [an improvement](https://twitter.com/BostonEnginerd/status/374555593589002241) to the [Elegant project description](http://oncrashreboot.com/elegant-a-clean-theme-for-pelican-with-search-feature). + +[if1live](https://github.com/if1live) +------------------------------------- + +### Aug 31, 2013 + +1. His [pull request](https://github.com/getpelican/pelican-plugins/pull/68) reminded me that I have forgotten to add template for Pages +1. His [commit](https://github.com/if1live/pelican-elegant/commit/3da52903e94051fa771212149a10a271adc78264#commitcomment-3988674) in the fork brought bug in the path of search.html to my notice + +[Jérémie Astori](https://github.com/astorije) +--------------------------------------------- + +### Aug 30, 2013 + +1. He reported a [bug](https://botbot.me/freenode/pelican/msg/5577967/) in search form. diff --git a/themes/pelican-elegant-1.3/article-screenshot.png b/themes/pelican-elegant-1.3/article-screenshot.png Binary files differnew file mode 100644 index 0000000..76dd130 --- /dev/null +++ b/themes/pelican-elegant-1.3/article-screenshot.png diff --git a/themes/pelican-elegant-1.3/home-page-screenshot.png b/themes/pelican-elegant-1.3/home-page-screenshot.png Binary files differnew file mode 100644 index 0000000..4620f38 --- /dev/null +++ b/themes/pelican-elegant-1.3/home-page-screenshot.png diff --git a/themes/pelican-elegant-1.3/search-result-screenshot.png b/themes/pelican-elegant-1.3/search-result-screenshot.png Binary files differnew file mode 100644 index 0000000..6c99a15 --- /dev/null +++ b/themes/pelican-elegant-1.3/search-result-screenshot.png diff --git a/themes/pelican-elegant-1.3/static/css/solarizedlight.css b/themes/pelican-elegant-1.3/static/css/solarizedlight.css new file mode 100644 index 0000000..baf3744 --- /dev/null +++ b/themes/pelican-elegant-1.3/static/css/solarizedlight.css @@ -0,0 +1,69 @@ +.hll { background-color: #ffffcc } +.c { color: #93a1a1; font-style: italic } /* Comment */ +.err { color: #dc322f } /* Error */ +.g { color: #657b83 } /* Generic */ +.k { color: #859900 } /* Keyword */ +.l { color: #657b83 } /* Literal */ +.n { color: #586e75 } /* Name */ +.o { color: #657b83 } /* Operator */ +.x { color: #657b83 } /* Other */ +.p { color: #657b83 } /* Punctuation */ +.cm { color: #93a1a1; font-style: italic } /* Comment.Multiline */ +.cp { color: #93a1a1; font-style: italic } /* Comment.Preproc */ +.c1 { color: #93a1a1; font-style: italic } /* Comment.Single */ +.cs { color: #93a1a1; font-style: italic } /* Comment.Special */ +.gd { color: #657b83 } /* Generic.Deleted */ +.ge { color: #657b83 } /* Generic.Emph */ +.gr { color: #657b83 } /* Generic.Error */ +.gh { color: #657b83 } /* Generic.Heading */ +.gi { color: #657b83 } /* Generic.Inserted */ +.go { color: #657b83 } /* Generic.Output */ +.gp { color: #657b83 } /* Generic.Prompt */ +.gs { color: #657b83 } /* Generic.Strong */ +.gu { color: #657b83 } /* Generic.Subheading */ +.gt { color: #657b83 } /* Generic.Traceback */ +.kc { color: #859900 } /* Keyword.Constant */ +.kd { color: #859900 } /* Keyword.Declaration */ +.kn { color: #cb4b16 } /* Keyword.Namespace */ +.kp { color: #cb4b16 } /* Keyword.Pseudo */ +.kr { color: #859900 } /* Keyword.Reserved */ +.kt { color: #859900 } /* Keyword.Type */ +.ld { color: #657b83 } /* Literal.Date */ +.m { color: #2aa198 } /* Literal.Number */ +.s { color: #2aa198 } /* Literal.String */ +.na { color: #657b83 } /* Name.Attribute */ +.nb { color: #268bd2 } /* Name.Builtin */ +.nc { color: #268bd2 } /* Name.Class */ +.no { color: #b58900 } /* Name.Constant */ +.nd { color: #cb4b16 } /* Name.Decorator */ +.ni { color: #cb4b16 } /* Name.Entity */ +.ne { color: #cb4b16 } /* Name.Exception */ +.nf { color: #268bd2 } /* Name.Function */ +.nl { color: #657b83 } /* Name.Label */ +.nn { color: #b58900 } /* Name.Namespace */ +.nx { color: #657b83 } /* Name.Other */ +.py { color: #268bd2 } /* Name.Property */ +.nt { color: #859900 } /* Name.Tag */ +.nv { color: #cd4b16 } /* Name.Variable */ +.ow { color: #859900 } /* Operator.Word */ +.w { color: #fdf6e3 } /* Text.Whitespace */ +.mf { color: #2aa198 } /* Literal.Number.Float */ +.mh { color: #2aa198 } /* Literal.Number.Hex */ +.mi { color: #2aa198 } /* Literal.Number.Integer */ +.mo { color: #2aa198 } /* Literal.Number.Oct */ +.sb { color: #2aa198 } /* Literal.String.Backtick */ +.sc { color: #2aa198 } /* Literal.String.Char */ +.sd { color: #2aa198 } /* Literal.String.Doc */ +.s2 { color: #2aa198 } /* Literal.String.Double */ +.se { color: #cb4b16 } /* Literal.String.Escape */ +.sh { color: #2aa198 } /* Literal.String.Heredoc */ +.si { color: #cb4b16 } /* Literal.String.Interpol */ +.sx { color: #2aa198 } /* Literal.String.Other */ +.sr { color: #2aa198 } /* Literal.String.Regex */ +.s1 { color: #2aa198 } /* Literal.String.Single */ +.ss { color: #2aa198 } /* Literal.String.Symbol */ +.bp { color: #268bd2; font-weight: bold } /* Name.Builtin.Pseudo */ +.vc { color: #268bd2 } /* Name.Variable.Class */ +.vg { color: #268bd2 } /* Name.Variable.Global */ +.vi { color: #268bd2 } /* Name.Variable.Instance */ +.il { color: #2aa198 } /* Literal.Number.Integer.Long */ diff --git a/themes/pelican-elegant-1.3/static/css/style.css b/themes/pelican-elegant-1.3/static/css/style.css new file mode 100644 index 0000000..8b7492c --- /dev/null +++ b/themes/pelican-elegant-1.3/static/css/style.css @@ -0,0 +1,397 @@ +body,html{ + height:100%; +} + +h1, h2, h3, h4, h5, h5 { + font-family: Baskerville, Garamond, Georgia, "DejaVu Serif", "Times New Roman", Times, serif; + font-weight: normal; +} + +#content-sans-footer{ + min-height:100%; +} + +/* site title */ + +.site-name { + font-family: "Monaco","Inconsolata","Andale Mono","Lucida Console","Bitstream Vera Sans Mono","Courier New",Courier,monospace; +} + +/* footer */ + +div#footer { + margin:15px 0px; + border-top:1px solid rgba(0,0,0,0.2); + padding:2px 5px 0px 5px; + font-size:0.7em; + font-family:calibri,tahoma,arial,sans-serif; +} + +ul.footer-content{ + list-style:none; + padding:0px; + margin:0px; +} + +ul.footer-content li { + padding-left:5px; +} +ul.footer-content li.elegant-power { + float:right; +} + +ul.footer-content li.elegant-license { + float:left; +} + +ul.footer-content li.elegant-subtitle{ + float:left; +} + +/* comment */ + +#comment-message { + font-family: "PT Serif", Georgia, Times, "Times New Roman", serif; + font-size: 1em; + color:gray; +} + +a.disqus-comment-count { + font-family:'Trebuchet MS',Trebuchet,'Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif; + font-size: 0.9em; +} + +div#disqus_thread { +padding-left:10px; +padding-right:10px; +} + +/* Syntax Highlight */ +.highlight pre { + background-color:rgb(253,246,227); + border-radius:3px 3px 3px 3px; +} + +td.code .highlight pre { + border-radius:0px 3px 3px 0px; +} + +td.code { + width:100%; +} + +.linenodiv pre { + border-radius:3px 0px 0px 3px; + color:rgb(101,123,131); + background-color:rgb(238,232,213); +} + +/* Tags */ +.list-of-tags { + list-style:none; + margin:0; + padding:5px 0 ; + overflow:hidden; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; +} + +.list-of-tags li { + line-height:28px; + float:left; + margin:0px; +} + +.list-of-tags a { + padding: 3px 6px; + margin: 2px; + color: #222; + background:#EEE; + border-radius: 3px; + text-decoration:none; +} + +.list-of-tags a span { + vertical-align: super; + font-size: 0.8em; +} + +.tags-in-article li { + line-height:28px; + float:none; +} + +h2.tag-title { + font-family:'Trebuchet MS',Trebuchet,'Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif; +} + +ul.articles-in-tag li { + font-family:'Trebuchet MS',Trebuchet,'Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif; + font-size:1.1em; +} + +/* Article */ + +article p a, article ol a, article div.article-content ul:not(.articles_timeline) a { + color:black; + border-bottom:thin dashed darkgray; +} + +article p a:hover, article ol a:hover, article div.article-content ul:not(.articles_timeline) a:hover { + text-shadow:none; + text-decoration:none; + border-bottom:none; +} + +.article-content { + text-align:justify; + max-width:50em; + font-family: "PT Serif", Georgia, Times, "Times New Roman", serif; +} + +.article-content p{ + font-variant: normal; + text-transform: none; + font-size: 1.1em; + line-height: 1.6em; + margin:20px 0px 20px 0px; +} + +.article-content blockquote { + padding: 0px 0px 0px 20px; + margin: 20px 0px 20px 0px; + border-left: 5px solid rgb(100,100,100); + margin-left: 2em; +} + +.article-content blockquote p { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-variant: normal; + text-transform: none; + font-size: 1.2em; + line-height: 1.7em; +} + +.article-content ul { + list-style-type: circle; + font-size:1em; +} + +.article-content ol { + list-style-type: decimal; + font-size: 1em; +} + +.article-content li { + margin:1px 0px 1px 20px; + list-style-position: outside; +} + +.article-content dl { + list-style-type: decimal; + font-size: 1em; + list-style-position: outside; + margin:20px 0px 20px 20px; +} + +.article-content dd { + margin:1px 0px 1px 20px; + padding:3px 0px 3px 0px; +} + +.article-content dt { + font-size:1.3em; +} + +.page_header h1 { + color:darkred; + padding: 5px 5px 15px 5px; + margin: 20px 0px 20px 0px; + border-bottom: 1px solid rgb(143, 134, 134); + font-size: 3em; + font-weight:normal; +} + +.page_header h1 small { + color:rgb(143, 116, 116); +} + +.page_header h1 a { + color:darkred; +} + +.page_header h1 a:hover { + text-decoration:none; +} + +ul.articles_timeline { + list-style:none; + margin:0px; + padding-bottom:30px; +} + +ul.articles_timeline li.next_article { + float:right; + margin:0px; +} + +ul.articles_timeline li.previous_article { +float:left; +margin:0px; +} + +/* Categories */ +.list-of-categories span { + vertical-align: super; + font-size: 0.7em; +} + +a.list-of-categories { + text-decoration:none; +} + +ul.list-articles-category { + list-style:none outside none; + margin:0px 0px 0px 5px; +} + +ul.list-articles-category li span{ + margin-right:10px; + color:#AAAAAA; + font-family:"PT Sans","Helvetica Neue",Arial,sans-serif; + font-size: 0.9em; +} + +a.category-link { + color:rgb(51,51,51); +} + +a.category-link:hover { + text-decoration:none; +} + +a.list-of-categories { + font-size:1.1em; + font-family: 'Trebuchet MS',Trebuchet,'Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif; +} + +a.list-of-categories:hover { + color:white; + background-color:rgb(0, 136, 204); + border-radius:4px; +} + +/* Base CSS */ +h2 a { + color:rgb(51,51,51); +} + +h2 a:hover { + text-decoration:none; + color:rgb(51,51,51); +} + +a { + color:rgb(56, 117, 215); +} + +/* archives */ +ul.list-all-articles { + list-style:none; + margin:0px; +} + +ul.list-all-articles li { + border-bottom:1px dotted black; + padding:0.3em 0em; + font-size:1.1em; + font-family: 'Trebuchet MS',Trebuchet,'Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif; +} + +ul.list-all-articles li time { + float:right; + color:#AAAAAA; + font-family:"PT Sans","Helvetica Neue",Arial,sans-serif; + font-size: 0.9em; +} + +/* top menu */ +ul.top-menu li a { + font-weight: bold; +} + +/* MailChimp */ +#mc_embed_signup { + font-size:inherit; + font-family:inherit; + margin:10px 0px; +} + +#mc_embed_signup form { + padding:0px; +} + +#mc_embed_signup input.button { + width: 100% +} + +#mc_embed_signup input.email { + width:100%; +} + +#mc_embed_signup .button { + font-size: 1.1em; +} + +/* front page */ +#allposts { + color:rgb(153, 153, 153); + font-size:75%; + float:right; + font-weight:normal; +} + +.proj_desc { + color:#999999; + font-family:"PT Sans","Helvetica Neue",Arial,sans-serif; + font-size: 0.9em; +} + +.amp { + font-family:"Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua",serif; + font-style:italic; +} + +img { + border: 1px solid #EEEEEE; +} + +.table-of-content .toc { + font-size: 0.7em; +} +.last_updated a { + color: black; + border-bottom: thin dashed darkgray; +} +.last_updated a:hover { + text-shadow: none; + text-decoration: none; + border-bottom: medium none; + color: rgb(0, 85, 128); +} + +a.headerlink { + visibility:hidden; + padding-left:0.5em; + color:grey; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink { + visibility: visible; + text-decoration:none; +} diff --git a/themes/pelican-elegant-1.3/static/tipuesearch/img/expand.png b/themes/pelican-elegant-1.3/static/tipuesearch/img/expand.png Binary files differnew file mode 100755 index 0000000..21bb7b0 --- /dev/null +++ b/themes/pelican-elegant-1.3/static/tipuesearch/img/expand.png diff --git a/themes/pelican-elegant-1.3/static/tipuesearch/img/link.png b/themes/pelican-elegant-1.3/static/tipuesearch/img/link.png Binary files differnew file mode 100755 index 0000000..d4e51c5 --- /dev/null +++ b/themes/pelican-elegant-1.3/static/tipuesearch/img/link.png diff --git a/themes/pelican-elegant-1.3/static/tipuesearch/img/loader.gif b/themes/pelican-elegant-1.3/static/tipuesearch/img/loader.gif Binary files differnew file mode 100644 index 0000000..9c97738 --- /dev/null +++ b/themes/pelican-elegant-1.3/static/tipuesearch/img/loader.gif diff --git a/themes/pelican-elegant-1.3/static/tipuesearch/tipuesearch.css b/themes/pelican-elegant-1.3/static/tipuesearch/tipuesearch.css new file mode 100755 index 0000000..615d8a8 --- /dev/null +++ b/themes/pelican-elegant-1.3/static/tipuesearch/tipuesearch.css @@ -0,0 +1,136 @@ + +/* +Tipue Search 3.0.1 +Copyright (c) 2013 Tipue +Tipue Search is released under the MIT License +http://www.tipue.com/search +*/ + + +#tipue_search_content +{ + clear: left; + max-width: 650px; + padding: 25px 0 13px 0; + margin: 0; +} +#tipue_search_loading +{ + padding-top: 60px; + background: #fff url('img/loader.gif') no-repeat left; +} +#tipue_search_warning +{ + font: 12px/1.6 'open sans', sans-serif; + color: #333; + margin: 7px 0; +} +#tipue_search_warning a +{ + color: #3f72d8; + text-decoration: none; +} +#tipue_search_warning a:hover +{ + padding-bottom: 1px; + border-bottom: 1px solid #ccc; +} +#tipue_search_results_count, #tipue_search_warning_head +{ + color:darkred; + padding: 5px 5px 15px 5px; + margin: 20px 0px 20px 0px; + border-bottom: 1px solid rgb(143, 134, 134); + font-size: 3em; + font-family: Baskerville, Garamond, Georgia, "DejaVu Serif", "Times New Roman", Times, serif; + font-weight: normal; +} +.tipue_search_content_title +{ + font: 300 23px/1.6 'open sans', sans-serif; + margin-top: 20px; +} +.tipue_search_content_title a +{ + color: #3f72d8; + text-decoration: none; +} +.tipue_search_content_title a:hover +{ + padding-bottom: 1px; + border-bottom: 1px solid #ccc; +} +.tipue_search_content_text +{ + font-size: 1em; + line-height: 1.6em; + color: #333; + font-variant: normal; + text-transform: none; + padding: 13px 0; + font-family: Scala, Georgia,"DejaVu Serif","Times New Roman",Times,serif; +} + +.tipue_search_content_text b { + color:#EF1D1D; + font-family:Garamond; + font-size: 1.3em; +} +.tipue_search_content_loc +{ + font: 300 13px/1.7 'open sans', sans-serif; + overflow: auto; +} +.tipue_search_content_loc a +{ + color: #555; + text-decoration: none; +} +.tipue_search_content_loc a:hover +{ + padding-bottom: 1px; + border-bottom: 1px solid #ccc; +} +#tipue_search_foot +{ + margin: 51px 0 21px 0; +} +#tipue_search_foot_boxes +{ + padding: 0; + margin: 0; + font: 12px/1 'open sans', sans-serif; +} +#tipue_search_foot_boxes li +{ + list-style: none; + margin: 0; + padding: 0; + display: inline; +} +#tipue_search_foot_boxes li a +{ + padding: 7px 13px 8px 13px; + background-color: #f1f1f1; + border: 1px solid #dcdcdc; + border-radius: 1px; + color: #333; + margin-right: 7px; + text-decoration: none; + text-align: center; +} +#tipue_search_foot_boxes li.current +{ + padding: 7px 13px 8px 13px; + background: #fff; + border: 1px solid #dcdcdc; + border-radius: 1px; + color: #333; + margin-right: 7px; + text-align: center; +} +#tipue_search_foot_boxes li a:hover +{ + border: 1px solid #ccc; + background-color: #f3f3f3; +} diff --git a/themes/pelican-elegant-1.3/static/tipuesearch/tipuesearch.min.js b/themes/pelican-elegant-1.3/static/tipuesearch/tipuesearch.min.js new file mode 100644 index 0000000..6458659 --- /dev/null +++ b/themes/pelican-elegant-1.3/static/tipuesearch/tipuesearch.min.js @@ -0,0 +1,12 @@ +(function($){$.fn.tipuesearch=function(options){var set=$.extend({"show":7,"newWindow":false,"showURL":true,"minimumLength":3,"descriptiveWords":25,"highlightTerms":true,"highlightEveryTerm":false,"mode":"static","liveDescription":"*","liveContent":"*","contentLocation":"tipuesearch/tipuesearch_content.json"},options);return this.each(function(){var tipuesearch_in={pages:[]};$.ajaxSetup({async:false});if(set.mode=="live")for(var i=0;i<tipuesearch_pages.length;i++)$.get(tipuesearch_pages[i],"",function(html){var cont= +$(set.liveContent,html).text();cont=cont.replace(/\s+/g," ");var desc=$(set.liveDescription,html).text();desc=desc.replace(/\s+/g," ");var t_1=html.toLowerCase().indexOf("<title>");var t_2=html.toLowerCase().indexOf("</title>",t_1+7);if(t_1!=-1&&t_2!=-1)var tit=html.slice(t_1+7,t_2);else var tit="No title";tipuesearch_in.pages.push({"title":tit,"text":desc,"tags":cont,"loc":tipuesearch_pages[i]})});if(set.mode=="json")$.getJSON(set.contentLocation,function(json){tipuesearch_in=$.extend({},json)}); +if(set.mode=="static")tipuesearch_in=$.extend({},tipuesearch);var tipue_search_w="";if(set.newWindow)tipue_search_w=' target="_blank"';function getURLP(name){return decodeURIComponent(((new RegExp("[?|&]"+name+"="+"([^&;]+?)(&|#|;|$)")).exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}if(getURLP("q")){$("#tipue_search_input").val(getURLP("q"));getTipueSearch(0,true)}$("#tipue_search_button").click(function(){getTipueSearch(0,true)});$(this).keyup(function(event){if(event.keyCode=="13")getTipueSearch(0, +true)});function getTipueSearch(start,replace){$("#tipue_search_content").hide();var out="";var results="";var show_replace=false;var show_stop=false;var d=$("#tipue_search_input").val().toLowerCase();d=$.trim(d);var d_w=d.split(" ");d="";for(var i=0;i<d_w.length;i++){var a_w=true;for(var f=0;f<tipuesearch_stop_words.length;f++)if(d_w[i]==tipuesearch_stop_words[f]){a_w=false;show_stop=true}if(a_w)d=d+" "+d_w[i]}d=$.trim(d);d_w=d.split(" ");if(d.length>=set.minimumLength){if(replace){var d_r=d;for(var i= +0;i<d_w.length;i++)for(var f=0;f<tipuesearch_replace.words.length;f++)if(d_w[i]==tipuesearch_replace.words[f].word){d=d.replace(d_w[i],tipuesearch_replace.words[f].replace_with);show_replace=true}d_w=d.split(" ")}var d_t=d;for(var i=0;i<d_w.length;i++)for(var f=0;f<tipuesearch_stem.words.length;f++)if(d_w[i]==tipuesearch_stem.words[f].word)d_t=d_t+" "+tipuesearch_stem.words[f].stem;d_w=d_t.split(" ");var c=0;found=new Array;for(var i=0;i<tipuesearch_in.pages.length;i++){var score=1E9;var s_t=tipuesearch_in.pages[i].text; +for(var f=0;f<d_w.length;f++){var pat=new RegExp(d_w[f],"i");if(tipuesearch_in.pages[i].title.search(pat)!=-1)score-=2E5-i;if(tipuesearch_in.pages[i].text.search(pat)!=-1)score-=15E4-i;if(set.highlightTerms){if(set.highlightEveryTerm)var patr=new RegExp("("+d_w[f]+")","gi");else var patr=new RegExp("("+d_w[f]+")","i");s_t=s_t.replace(patr,"<b>$1</b>")}if(tipuesearch_in.pages[i].tags.search(pat)!=-1)score-=1E5-i}if(score<1E9)found[c++]=sco |