Skip to content
Permalink
Browse files

Initial commit

  • Loading branch information...
EmielH committed Jul 28, 2018
0 parents commit a937ee7487a4ddc6a981149638c34a085e86450e
21 LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 Emiel Hollander
Copyright (c) 2018 Chester How (original theme)

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.
@@ -0,0 +1,8 @@
# Tale

This is a port of the [Tale theme for Jekyll](https://github.com/chesterhow/tale) to Hugo. Tale is a minimal Jekyll theme curated for storytellers. Checkout the demo [here](https://chesterhow.github.io/tale/). I did not design this theme; I only ported it from Jekyll to Hugo.

![Tale screenshot](images/screenshot.png)

## License
See [LICENSE](https://github.com/chesterhow/tale/blob/master/LICENSE)
@@ -0,0 +1,2 @@
+++
+++
@@ -0,0 +1,8 @@
@import 'tale/variables';
@import 'tale/base';
@import 'tale/code';
@import 'tale/post';
@import 'tale/syntax';
@import 'tale/layout';
@import 'tale/pagination';
@import 'tale/catalogue';
@@ -0,0 +1,66 @@
* {
@include box-sizing;
line-height: 1.5;
}

html,
body {
color: $default-color;
margin: 0;
padding: 0;
}

html {
font-family: $serif-primary;
font-size: 14px;
overflow-y: scroll;

@media (min-width: 600px) {
font-size: 16px;
}
}

body {
-webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
color: $default-shade;
font-family: $sans-serif;
line-height: normal;
}

a {
color: $blue;
text-decoration: none;
}

blockquote {
border-left: .25rem solid $grey-2;
color: $grey-1;
margin: .8rem 0;
padding: .5rem 1rem;

p:last-child {
margin-bottom: 0;
}

@media (min-width: 600px) {
padding: 0 5rem 0 1.25rem;
}
}

img {
display: block;
margin: 0 0 1rem;
max-width: 100%;
}

td {
vertical-align: top;
}
@@ -0,0 +1,39 @@
.catalogue {
&-item {
border-bottom: 1px solid $grey-2;
color: $default-color;
display: inline-block;
padding: 2rem 0;

&:hover .catalogue-line,
&:focus .catalogue-line {
width: 5rem;
}

&:last-child {
border: 0;
}
}

&-time {
color: $default-tint;
font-family: $serif-secondary;
letter-spacing: .5px;
}

&-title {
color: $default-shade;
display: block;
font-family: $sans-serif;
font-size: 2rem;
font-weight: 700;
margin: .5rem 0;
}

&-line {
@include transition(all .3s ease-out);
border-top: .2rem solid $default-shade;
display: block;
width: 2rem;
}
}
@@ -0,0 +1,46 @@
pre,
code {
font-family: $monospaced;
}

code {
background-color: $grey-3;
border-radius: 3px;
color: $code-color;
font-size: 85%;
padding: .25em .5em;
}

pre {
margin: 0 0 1rem;
}

pre code {
background-color: transparent;
color: inherit;
font-size: 100%;
padding: 0;
}

.highlight {
background-color: $grey-3;
border-radius: 3px;
line-height: 1.4;
margin: 0 0 1rem;
padding: 1rem;

pre {
margin-bottom: 0;
overflow-x: auto;
}

.lineno {
color: $default-tint;
display: inline-block; // Ensures the null space also isn't selectable
padding: 0 .75rem 0 .25rem;
// Make sure numbers aren't selectable
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
}
@@ -0,0 +1,92 @@
.container {
margin: 0 auto;
max-width: 800px;
width: 80%;
}

main,
footer,
.nav-container {
display: block;
margin: 0 auto;
max-width: 800px;
width: 80%;
}

.nav {
box-shadow: 0 2px 2px -2px $shadow-color;
overflow: auto;

&-container {
margin: 1rem auto;
position: relative;
text-align: center;
}

&-title {
@include transition(all .2s ease-out);
color: $default-color;
display: inline-block;
margin: 0;
padding-right: .2rem;

&:hover,
&:focus {
opacity: .6;
}
}

ul {
list-style-type: none;
margin: 1rem 0 0;
padding: 0;
text-align: center;
}

li {
@include transition(all .2s ease-out);
color: $default-color;
display: inline-block;
opacity: .6;
padding: 0 2rem 0 0;

&:last-child {
padding-right: 0;
}

&:hover,
&:focus {
opacity: 1;
}
}

a {
color: $default-color;
font-family: $sans-serif;
}
}

@media (min-width: 600px) {
.nav {
&-container {
text-align: left;
}

ul {
bottom: 0;
position: absolute;
right: 0;
}
}
}

footer {
font-family: $serif-secondary;
padding: 2rem 0;
text-align: center;

span {
color: $default-color;
font-size: .8rem;
}
}
@@ -0,0 +1,44 @@
.pagination {
border-top: .5px solid $grey-2;
font-family: $serif-secondary;
padding-top: 2rem;
position: relative;
text-align: center;

span {
color: $default-shade;
font-size: 1.1rem;
}

.top {
@include transition(all .3s ease-out);
color: $default-color;
font-family: $sans-serif;
font-size: 1.1rem;
opacity: .6;

&:hover {
opacity: 1;
}
}

.arrow {
@include transition(all .3s ease-out);
color: $default-color;
position: absolute;

&:hover,
&:focus {
opacity: .6;
text-decoration: none;
}
}

.left {
left: 0;
}

.right {
right: 0;
}
}
@@ -0,0 +1,63 @@
.post {
padding: 3rem 0;

&-info {
color: $default-tint;
font-family: $serif-secondary;
letter-spacing: 0.5px;
text-align: center;

span {
font-style: italic;
}
}

&-title {
color: $default-shade;
font-family: $sans-serif;
font-size: 4rem;
margin: 1rem 0;
text-align: center;
}

&-line {
border-top: 0.4rem solid $default-shade;
display: block;
margin: 0 auto 3rem;
width: 4rem;
}

p {
margin: 0 0 1rem;
text-align: justify;
}

a:hover {
text-decoration: underline;
}

img {
margin: 0 auto 0.5rem;
}

img + em {
color: $default-tint;
display: block;
font-family: $sans-serif;
font-size: 0.9rem;
font-style: normal;
text-align: center;
}

// CSS for making emoji inline
img.emoji {
display: inline-block;
left: 0;
transform: none;
width: 1rem;
height: 1rem;
vertical-align: text-top;
padding: 0;
margin: 0;
}
}

0 comments on commit a937ee7

Please sign in to comment.
You can’t perform that action at this time.