diff options
author | Andrew R. Jenkins <allnightgrocery@gmail.com> | 2015-04-25 19:53:31 +0300 |
---|---|---|
committer | Andrew R. Jenkins <allnightgrocery@gmail.com> | 2015-04-25 19:53:31 +0300 |
commit | 6d9dc6956bc6fd7f126343f706b73ed45c53d428 (patch) | |
tree | 8c2391c0fede20f9f811cb71405f72a9bf93844e |
Initial import.
-rw-r--r-- | LICENSE.md | 20 | ||||
-rw-r--r-- | README.md | 9 | ||||
-rw-r--r-- | archetypes/default.md | 2 | ||||
-rw-r--r-- | layouts/_default/li.html | 22 | ||||
-rw-r--r-- | layouts/_default/list.html | 23 | ||||
-rw-r--r-- | layouts/_default/post.html | 49 | ||||
-rw-r--r-- | layouts/_default/single.html | 21 | ||||
-rw-r--r-- | layouts/partials/disqus.html | 20 | ||||
-rw-r--r-- | layouts/partials/footer.html | 12 | ||||
-rw-r--r-- | layouts/partials/google_analytics.html | 8 | ||||
-rw-r--r-- | layouts/partials/head.html | 10 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 | ||||
-rw-r--r-- | layouts/partials/meta.html | 27 | ||||
-rw-r--r-- | layouts/partials/pagination.html | 15 | ||||
-rw-r--r-- | static/css/main.css | 1 | ||||
-rw-r--r-- | static/js/fittext.js | 19 | ||||
-rw-r--r-- | theme.toml | 17 |
17 files changed, 281 insertions, 0 deletions
diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..8d7a2ea --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) +Copyright © 2013 Oswaldo Acauan <hello@oswaldoacauan.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.
\ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..26bb2f8 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# Detox + +Detox is a beautiful theme, originally created to work with [Ghost](http://www.ghost.org). I wanted a copy of this theme for use with [Hugo](http://gohugo.io). + +[The original](http://www.eatablueberry.com/detox.html) can be downloaded from [Blueberry](http://www.eatablueberry.com). + +## License + +[MIT License](http://oswaldoacauan.mit-license.org/)
\ No newline at end of file diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..a845151 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/layouts/_default/li.html b/layouts/_default/li.html new file mode 100644 index 0000000..4e00f05 --- /dev/null +++ b/layouts/_default/li.html @@ -0,0 +1,22 @@ +<article class="{{ .Type }}"> + <header class="post-header"> + <h3 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3> + <p class="post-time"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHtml }}">{{ .Date.Format "January 2, 2006" }}</time></p> + </header> + + <section class="post-excerpt"> + <p>{{ .Summary }}</p> + </section> + + <footer class="post-footer"> + <span> + {{ if .Site.Params.disqusShortname }} + <a href="{{ .Permalink }}#comments"><i class="fa fa-comment"></i> Comments</a> + {{ end }} + {{ with.Params.tags }} + <i class="fa fa-tag"></i> + {{ delimit . ", " }} + {{ end }} + </span> + </footer> +</article>
\ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..bdeafe0 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +{{ `<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->` | safeHtml }} +{{ `<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"> <![endif]-->` | safeHtml }} +{{ `<!--[if IE 8]><html class="no-js lt-ie9"> <![endif]-->` | safeHtml }} +{{ `<!--[if gt IE 8]><!-->` | safeHtml }}<html class="no-js" prefix="og: http://ogp.me/ns#" xmlns:og="http://ogp.me/ns#">{{ `<!--<![endif]-->` | safeHtml }} + +{{ partial "head.html" . }} +<body> +{{ `<!--[if lt IE 7]><p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chrome/">install Google Chrome</a> to experience this site.</p><![endif]-->` | safeHtml }} + +{{ partial "header.html" . }} +<main class="content" role="main"> + <div class="container"> + {{ range .Paginator.Pages }} + {{ .Render "li" }} + {{ end }} + {{ partial "pagination.html" . }} + </div> +</main> +{{ partial "footer.html" . }} +{{ partial "google_analytics.html" . }} +</body> +</html>
\ No newline at end of file diff --git a/layouts/_default/post.html b/layouts/_default/post.html new file mode 100644 index 0000000..5ab2194 --- /dev/null +++ b/layouts/_default/post.html @@ -0,0 +1,49 @@ +<article class="{{ .Type }}"> + <header class="post-header"> + <h3 class="p-post-title">{{ .Title }}</h3> + </header> + + <section class="post-content"> + {{ .Content }} + </section> + + <hr> + + <footer class="post-footer"> + <section class="f-1"> + {{ with .Site.Params.author }} + <section class="author"> + <p>Words by {{ . }}</p> + </section> + {{ end }} + + <p class="f-post-time"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "January 2, 2006" }}</time></p> + </section> + + <section class="f-2"> + <section class="share"> + <span>Share: + <a class="icon-twitter" href="http://twitter.com/share?text={{ .Title }}&url={{ .Permalink }}" + onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"> + <i class="fa fa-twitter"></i> + </a> + <a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" + onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"> + <i class="fa fa-facebook"></i> + </a> + <a class="icon-google-plus" href="https://plus.google.com/share?url={{ .Permalink }}" + onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"> + <i class="fa fa-google-plus"></i> + </a> + </span> + </section> + + {{ with.Params.tags }} + <span class="f-post-tags"><i class="fa fa-tag"></i> + {{ delimit . ", " }} + </span> + {{ end }} + </section> + {{ partial "disqus.html" . }} + </footer> +</article>
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..0c1a1ac --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +{{ `<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->` | safeHtml }} +{{ `<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"> <![endif]-->` | safeHtml }} +{{ `<!--[if IE 8]><html class="no-js lt-ie9"> <![endif]-->` | safeHtml }} +{{ `<!--[if gt IE 8]><!-->` | safeHtml }}<html class="no-js" prefix="og: http://ogp.me/ns#" xmlns:og="http://ogp.me/ns#">{{ `<!--<![endif]-->` | safeHtml }} + +{{ partial "head.html" . }} +<body> +{{ `<!--[if lt IE 7]><p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chrome/">install Google Chrome</a> to experience this site.</p><![endif]-->` | safeHtml }} + +{{ partial "header.html" . }} +<main class="content" role="main"> + <div class="container"> + {{ .Render "post" }} + </div> +</main> +{{ partial "footer.html" . }} +{{ partial "google_analytics.html" . }} + +</body> +</html>
\ No newline at end of file diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html new file mode 100644 index 0000000..b1945b3 --- /dev/null +++ b/layouts/partials/disqus.html @@ -0,0 +1,20 @@ + {{ with $.Site.Params.disqusShortname }} + <section id="comments"> + <div id="disqus_thread" class="post-comments"></div> + <script type="text/javascript"> + if (window.location.hostname != "localhost") { + var disqus_shortname = '{{ . }}'; + (function() { + var dsq = document.createElement('script'); + dsq.type = 'text/javascript'; + dsq.async = true; + dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + })(); + } + </script> + <noscript> + Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a> + </noscript> + </section> + {{ end }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..03fb7f7 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,12 @@ + <footer id="site-footer"> + <div class="container"> + <a href="{{ .RSSLink }}" title="Get the RSS feed"><span class="tooltip"><i class="fa fa-rss"></i></span></a> + <section>© <a href="{{ .Site.BaseUrl }}">{{ .Site.Params.author }}</a> 2015 | All rights reserved</section> + <section>Theme by <a href="http://www.jrdnbwmn.com">Jordan Bowman</a>. Generated with <a href="http://gohugo.io/">Hugo</a>.</section> + </div> + </footer> + + <script type="text/javascript" src="{{ .Site.BaseUrl }}js/fittext.js"></script> + <script type="text/javascript"> + $(".heading").fitText(); + </script>
\ No newline at end of file diff --git a/layouts/partials/google_analytics.html b/layouts/partials/google_analytics.html new file mode 100644 index 0000000..73d1f2f --- /dev/null +++ b/layouts/partials/google_analytics.html @@ -0,0 +1,8 @@ +{{ with .Site.Params.google_analytics }} + <script> + var _gaq=[['_setAccount','{{ . }}'],['_trackPageview']]; + (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; + g.src='//www.google-analytics.com/ga.js'; + s.parentNode.insertBefore(g,s)}(document,'script')); + </script> +{{ end }}
\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..cfaed83 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,10 @@ + <head> + {{ partial "meta.html" . }} + <title>{{ .Title }} · {{ .Site.Title }} </title> + <link rel="canonical" href="{{ .Site.BaseUrl }}" /> + <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ .RSSLink }}"> + <link rel="stylesheet" type='text/css' href="{{ .Site.BaseUrl }}css/main.css"/> + <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300|Montserrat:700' rel='stylesheet' type='text/css'> + <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> + <script src="//code.jquery.com/jquery-1.10.2.min.js"></script> + </head>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..02f5de4 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,6 @@ + <header id="site-header"> + <div class="container"> + <a href="{{ .Site.BaseUrl }}" alt="{{ .Site.Title }}"><h1 class="blog-title heading">{{ .Site.Title }}</h1></a> + <p class="blog-description">{{ .Site.Params.description }}</p> + </div> + </header>
\ No newline at end of file diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html new file mode 100644 index 0000000..015ec36 --- /dev/null +++ b/layouts/partials/meta.html @@ -0,0 +1,27 @@ + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ else }}{{ with .Description }}{{ . }}{{ end }}{{ end }}"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" /> + <meta name="mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-status-bar-style" content="black"> + <meta name="author" content="{{ .Site.Params.author }}"> + <meta name="keywords" content="awesome, definitely"> + {{ with .Site.Params.twitter_name }} + <meta name="twitter:card" content="summary"> + <meta name="twitter:site" content="@https://twitter.com/{{ . }}"> + <meta name="twitter:creator" content="@https://twitter.com/{{ . }}"> + <meta name="twitter:domain" content="{{ $.Site.BaseUrl }}"> + {{ end }} + <meta property="og:site_name" content="{{ .Site.Title }}"> + <meta property="og:title" content="{{ .Site.Title }}"> + <meta property="og:url" content="{{ .Permalink }}"> + <meta property="og:description" content="{{ .Site.Params.description }}"> + {{ if .IsPage }} + <meta property="og:type" content="article" /> + <meta property="og:article:author" content="{{ .Site.Params.author }}" /> + <meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHtml }}" /> + {{ else }} + <meta property="og:type" content="website" /> + {{ end }} + {{ .Hugo.Generator }}
\ No newline at end of file diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html new file mode 100644 index 0000000..77d8ae0 --- /dev/null +++ b/layouts/partials/pagination.html @@ -0,0 +1,15 @@ +{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} +<nav role="pagination" class="pagination"> + {{ if .Paginator.HasPrev }} + <a href="{{.Paginator.Prev.Url}}" class="newer-posts"> + <i class="fa fa-angle-double-left"></i> Newer + </a> + {{ end }} + <span class="post-list-pagination-item post-list-pagination-item-current">Page {{.Paginator.PageNumber}} of {{.Paginator.TotalPages}}</span> +{{ if .Paginator.HasNext }} + <a href="{{.Paginator.Next.Url}}" class="older-posts"> + Older <i class="fa fa-angle-double-right"></i> + </a> +{{ end }} +</nav> +{{ end }}
\ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..9cdf823 --- /dev/null +++ b/static/css/main.css @@ -0,0 +1 @@ +/*! normalize.css v2.1.3 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden],template{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a{background:transparent}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:0.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace, serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}abbr,acronym,blockquote,code,dir,kbd,listing,plaintext,q,samp,tt,var,xmp{-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;-o-hyphens:none;hyphens:none}h1,h2,h3,h4,h5,h6{font-family:"Montserrat";font-weight:700;line-height:1;margin-top:0;text-rendering:optimizeLegibility}h1{font-size:60px;font-size:3.33333rem;margin-bottom:0.495em}@media (max-width: 550px){h1{font-size:50px}}h2{font-size:48px;font-size:2.6667rem;margin-bottom:0.61875em}@media (max-width: 550px){h2{font-size:43px}}h3{font-size:36px;font-size:2rem;margin-bottom:0.825em}@media (max-width: 550px){h3{font-size:28px}}h4{font-size:24px;font-size:1.3333333333333333rem;margin-bottom:1.2375em}@media (max-width: 550px){h4{font-size:22px}}h5{font-size:21px;font-size:1.16667rem;margin-bottom:1.4142857142857141em}@media (max-width: 550px){h5{font-size:19px}}h6{font-size:18px;font-size:1rem;margin-bottom:1.65em}@media (max-width: 550px){h6{font-size:15px}}p{margin:auto auto 1.5em}a{color:#333;text-decoration:none;line-height:inherit;outline:0;-webkit-transition:color .1s ease-out;-webkit-transition-property:color;-webkit-transition-duration:.1s;-webkit-transition-timing-function:ease-out;-webkit-transition-delay:initial;-moz-transition:color .1s ease-out;-o-transition:color .1s ease-out;-ms-transition:color .1s ease-out;transition:color .1s ease-out;transition-property:color;transition-duration:.1s;transition-timing-function:ease-out;transition-delay:initial}a:hover{color:#b3b3b3}p a,p a:visited{line-height:inherit}ul,ol{margin-top:0;margin-bottom:1.5em;list-style-position:inside}ul ul,ul ol,ol ul,ol ol{margin-bottom:0}dt{font-weight:bold}dd{margin-left:0}em,i{font-style:italic;line-height:inherit}strong,b{line-height:inherit}small,.small{font-size:75%;font-weight:normal;line-height:1}u,ins{text-decoration:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}blockquote{max-width:100%;border-left:5px solid #e6e6e6;margin:1.5em 0}blockquote,q{quotes:none;font-size:125%}blockquote>p{padding:15px}cite{font-style:normal}*,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}html{margin:0;padding:0;font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:100%;line-height:1.65;font-weight:normal;overflow-y:scroll;min-height:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}@media (max-width: 550px){html{font-size:15px}}body{background-color:#fff !important;padding:0;color:#333;min-height:100%;width:100%;*zoom:1;-webkit-font-smoothing:antialiased;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;-o-hyphens:auto;hyphens:auto;word-wrap:break-word}body:before,body:after{content:"";display:table}body:after{clear:both}@media (max-width: 550px){body{font-size:15px}}.container{width:90%;max-width:800px;margin:auto}.nav{list-style:none;margin-left:0;margin-bottom:0;padding-left:0;*zoom:1}.nav:before,.nav:after{content:"";display:table}.nav:after{clear:both}.nav>li,.nav>li>a{display:inline-block;*display:inline;zoom:1}img,embed,object,video{display:block;max-width:100%;height:auto}img{-ms-interpolation-mode:bicubic;vertical-align:middle;font-style:italic}a img{border:0}img[width],img[height]{max-width:none}figure>img{display:block}audio,canvas,img,video{vertical-align:middle}.btn,button,input[type="submit"],input[type="reset"],input[type="button"]{display:inline-block;vertical-align:middle;cursor:pointer;white-space:nowrap;margin:0;background-image:none;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:inherit;line-height:1.65;text-align:center;text-decoration:none;color:#fff;border:1px solid transparent;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;padding:15px 20px}.btn:hover,.btn:focus,button:hover,button:focus,input[type="submit"]:hover,input[type="submit"]:focus,input[type="reset"]:hover,input[type="reset"]:focus,input[type="button"]:hover,input[type="button"]:focus{background-color:#3d8c38;border:1px solid transparent;color:#fff;text-decoration:none;border-bottom:none}.btn:active,button:active,input[type="submit"]:active,input[type="reset"]:active,input[type="button"]:active{outline:none;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.15);box-shadow:inset 0 3px 5px rgba(0,0,0,0.15)}.btn::-moz-focus-inner{border:0;padding:0}.btn-primary{background-color:#4db146;border-bottom:#3d8c38}.btn-secondary{border:solid 1px #b3b3b3;color:#333}.btn-secondary:hover,.btn-secondary:focus{background-color:#e6e6e6;color:#333;border:solid 1px #b3b3b3}select,input,textarea{color:#333}fieldset{border:0;margin:0;padding:0}legend{display:block;width:100%;font-size:150%;line-height:inherit;white-space:normal}label{display:inline-block;margin-bottom:5px;font-weight:bold}textarea{height:auto;resize:vertical}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px}input[type="file"]{display:block;width:100%}select[multiple],select[size]{height:auto}select optgroup{font-size:inherit;font-style:inherit;font-family:inherit}input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{height:auto}output{display:block;vertical-align:middle}input,button,select,label{vertical-align:middle}input,button,select,textarea{line-height:inherit;-webkit-font-smoothing:antialiased}input:focus,textarea:focus{outline:0}input,textarea{display:block;width:100%;max-width:100%;border:1px solid #b3b3b3;border-radius:5px;padding:10px 0px;font-size:inherit;font-family:inherit;text-indent:15px;vertical-align:middle;background-image:none;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition-property:border-color, box-shadow;-webkit-transition-duration:0.15s, 0.15s;-webkit-transition-timing-function:ease-in-out, ease-in-out;-webkit-transition-delay:initial, initial;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition-property:border-color, box-shadow;transition-duration:0.15s, 0.15s;transition-timing-function:ease-in-out, ease-in-out;transition-delay:initial, initial}input textarea,textarea textarea{height:auto}input:focus,textarea:focus{border-color:#4db146;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}code,kbd,pre,samp{font-family:Monaco,Menlo,Consolas,"Courier New",monospace}code{padding:2px 4px;max-width:100%;font-size:90%;color:inherit;background-color:transparent;white-space:nowrap;border-radius:5px}pre{display:block;padding:10px;margin:2.5em 0;max-width:100%;font-size:75%;line-height:1.65;word-break:break-all;word-wrap:break-word;color:#333;background-color:#e6e6e6;border:1px solid #b3b3b3;border-radius:5px}pre code{padding:0;font-size:inherit;color:inherit;word-wrap:normal;white-space:-moz-pre-wrap;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:350px;overflow-y:scroll}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:50px 0;padding:0}::-moz-selection{background:#666;color:white;text-shadow:none}::selection{background:#666;color:white;text-shadow:none}.browsehappy{margin:0.2em 0;background:#ccc;color:#333;padding:0.2em 0}#site-header{text-align:center;min-height:15em;padding-top:7em;margin-bottom:9em}@media (max-width: 800px){#site-header{padding-top:4em !important;margin-bottom:4em !important}}.blog-title{text-transform:uppercase;letter-spacing:6px;font-size:75px}.blog-description{text-transform:uppercase;letter-spacing:4px;color:#b3b3b3;font-size:80%}#blog-logo img{margin:0 auto 3em auto}.post{margin-bottom:9em}@media (max-width: 800px){.post{margin-bottom:7em !important}}.post-header{text-align:center}.post-title{margin-bottom:30px}.post-time{text-transform:uppercase;letter-spacing:4px;margin-bottom:30px;font-size:80%}.post-footer{text-align:center;text-transform:uppercase;letter-spacing:4px;font-size:80%;margin-top:30px}.pagination{text-align:center;margin:4em 0 9em 0;color:#b3b3b3}@media (max-width: 800px){.pagination{margin:4em 0 6em 0 !important}}.post-content a,#site-footer a{color:#333;text-decoration:none;font-weight:bold}.post-content a:hover,#site-footer a:hover{color:#e6e6e6;border-bottom:1px solid}.m-logo{display:none !important;visibility:hidden}.p-post-title{margin-bottom:50px}.f-1{*zoom:1}.f-1:before,.f-1:after{content:"";display:table}.f-1:after{clear:both}.author{float:left}@media (max-width: 550px){.author{float:none !important}}@media (max-width: 550px){.author{float:none !important}.f-post-time{float:inherit !important}}.f-post-time{float:right}@media (max-width: 550px){.f-post-time{float:none !important}}.f-2{*zoom:1}.f-2:before,.f-2:after{content:"";display:table}.f-2:after{clear:both}.f-post-tags{float:right}@media (max-width: 550px){.f-post-tags{float:none !important}}.share{float:left}@media (max-width: 550px){.share{float:none !important;margin-bottom:1.5em}}#comments{margin-top:30px}@media (max-width: 550px){#comments{margin-top:1em}}.m-page a{color:#333 !important}#site-footer{text-align:center;height:10em} diff --git a/static/js/fittext.js b/static/js/fittext.js new file mode 100644 index 0000000..62823d0 --- /dev/null +++ b/static/js/fittext.js @@ -0,0 +1,19 @@ +// fittext.js plugin + (function($){ + $.fn.fitText = function(kompressor, options){ + var compressor = kompressor || 1, + settings = $.extend({ + 'minFontSize' : Number.NEGATIVE_INFINITY, + 'maxFontSize' : Number.POSITIVE_INFINITY + }, options); + + return this.each(function(){ + var $this = $(this); + var resizer = function () { + $this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize))); + }; + resizer(); + $(window).on('resize orientationchange', resizer); + }); + }; + })( jQuery );
\ No newline at end of file diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..81633f4 --- /dev/null +++ b/theme.toml @@ -0,0 +1,17 @@ +name = "Detox" +license = "MIT" +licenselink = "https://github.com/allnightgrocery/hugo-theme-blueberry-detox/blob/master/LICENSE" +description = "Detox is a beautiful theme, originally designed by Jordan Bowman (@jrdnbwmn)." +homepage = "https://github.com/allnightgrocery/hugo-theme-blueberry-detox" +tags = ["minimal", "ghost", "white"] +features = ["blog"] + +[author] + name = "Andrew R. Jenkins" + homepage = "http://andrewrjenkins.com" + +# If porting an existing theme +[original] + name = "Jordan Bowman" + homepage = "http://www.jrdnbwmn.com" + repo = "https://github.com/jrdnbwmn/detox" |