2019-01-04 18:14:53 +00:00
|
|
|
<%- include("normalize.css") %>
|
|
|
|
<%- include("syntax-highlighting.css") %>
|
|
|
|
|
|
|
|
// Fonts
|
2019-02-14 02:45:52 +00:00
|
|
|
$sansSerif: Avenir, Lucida Grande, Arial, sans-serif;
|
|
|
|
$serif: Charter, Georgia, serif;
|
2019-02-16 18:33:21 +00:00
|
|
|
$monospace: SF Mono, Courier New, monospace;
|
2019-01-04 18:14:53 +00:00
|
|
|
|
|
|
|
// General
|
|
|
|
body {
|
|
|
|
background-color: var(--content-background-color);
|
|
|
|
font-family: $sansSerif;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 1.5;
|
|
|
|
color: var(--ui-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
margin: 0 auto;
|
2019-01-05 15:52:44 +00:00
|
|
|
padding: 0 30px;
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.main {
|
|
|
|
max-width: 720px;
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
.page-heading {
|
|
|
|
max-width: 720px;
|
|
|
|
margin: 20px auto;
|
|
|
|
margin-bottom: 0;
|
|
|
|
color: var(--content-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.rss {
|
|
|
|
margin-top: 0;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: lighter;
|
|
|
|
color: var(--secondary-ui-text-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
article {
|
|
|
|
margin-bottom: 75px;
|
|
|
|
color: var(--content-text-color);
|
|
|
|
|
2019-06-29 19:12:24 +00:00
|
|
|
h1::before { content: "#"; }
|
|
|
|
h2::before { content: "##"; }
|
|
|
|
h3::before { content: "###"; }
|
|
|
|
h1::before, h2::before, h3::before {
|
|
|
|
font-family: $monospace;
|
|
|
|
color: var(--accent-color);
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
a::before { content: "["; }
|
|
|
|
a::after { content: "](" attr(href) ")"; word-wrap: break-word; }
|
|
|
|
a::before, a::after {
|
|
|
|
color: var(--secondary-ui-text-color);
|
|
|
|
font-family: $monospace;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
a { text-decoration: none; }
|
|
|
|
}
|
|
|
|
code::before, code::after {
|
|
|
|
content: "`";
|
|
|
|
font-family: $monospace;
|
|
|
|
color: var(--secondary-ui-text-color);
|
|
|
|
}
|
|
|
|
pre {
|
|
|
|
&::before, &::after {
|
|
|
|
content: "```";
|
|
|
|
display: block;
|
|
|
|
background: none;
|
|
|
|
color: var(--secondary-ui-text-color);
|
|
|
|
}
|
|
|
|
code::before, code::after {
|
|
|
|
content: "";
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
strong::before, strong::after {
|
|
|
|
content: "**";
|
|
|
|
font-family: $monospace;
|
|
|
|
color: var(--secondary-ui-text-color);
|
|
|
|
}
|
|
|
|
em::before, em::after {
|
|
|
|
content: "_";
|
|
|
|
font-family: $monospace;
|
|
|
|
color: var(--secondary-ui-text-color);
|
|
|
|
}
|
|
|
|
|
2019-01-04 18:14:53 +00:00
|
|
|
&::after {
|
|
|
|
content: "";
|
2019-01-05 15:52:44 +00:00
|
|
|
width: calc(100% - 2 * 30px); // account for .container padding, don't overflow
|
2019-01-04 18:14:53 +00:00
|
|
|
height: 1px;
|
2019-06-29 19:12:24 +00:00
|
|
|
background-color: var(--accent-color);
|
2019-01-04 18:14:53 +00:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-title {
|
|
|
|
margin-top: 20px;
|
|
|
|
margin-bottom: 0;
|
2019-06-29 19:21:04 +00:00
|
|
|
font-size: 1.8rem;
|
2019-01-04 18:14:53 +00:00
|
|
|
|
|
|
|
> a {
|
|
|
|
color: var(--content-text-color);
|
|
|
|
text-decoration: none;
|
|
|
|
transition: 0.3s ease all;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--accent-color);
|
|
|
|
}
|
2019-06-29 19:12:24 +00:00
|
|
|
&::before, &::after {
|
|
|
|
content: "";
|
|
|
|
}
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-meta {
|
|
|
|
margin-top: 0;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: lighter;
|
|
|
|
color: var(--secondary-ui-text-color);
|
2019-06-29 20:01:05 +00:00
|
|
|
|
|
|
|
a { text-decoration: underline; }
|
|
|
|
a::before, a::after { content: ""; }
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.article-content {
|
|
|
|
font-family: $serif;
|
2019-02-14 02:45:52 +00:00
|
|
|
font-size: 20px;
|
2019-01-04 18:14:53 +00:00
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
font-family: $sansSerif;
|
|
|
|
}
|
2019-06-29 19:21:04 +00:00
|
|
|
|
|
|
|
h1 { font-size: 1.8rem; }
|
|
|
|
h2 { font-size: 1.6rem; }
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-01 23:42:28 +00:00
|
|
|
#comments-container {
|
|
|
|
.comments-list {
|
|
|
|
margin-top: 0px;
|
|
|
|
padding-left: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.comment-user-avatar {
|
|
|
|
width: 50px;
|
|
|
|
float: left;
|
|
|
|
margin-right: 10px;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.comment-info {
|
|
|
|
margin-top: 0px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.comment-children {
|
|
|
|
margin-left: 50px;
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-04 18:14:53 +00:00
|
|
|
.search {
|
|
|
|
margin: 100px auto;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
position: relative;
|
|
|
|
color: var(--content-text-color);
|
|
|
|
line-height: 1.3;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
input#q {
|
|
|
|
display: block;
|
|
|
|
width: 75%;
|
|
|
|
margin: 10px auto;
|
|
|
|
padding: 4px;
|
|
|
|
background-color: var(--content-background-color);
|
|
|
|
border: 1px solid var(--accent-color);
|
|
|
|
font-size: 1rem;
|
|
|
|
color: var(--content-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=submit] {
|
|
|
|
display: block;
|
|
|
|
margin: 10px auto;
|
|
|
|
background-color: var(--ui-background-color);
|
|
|
|
border: 1px solid var(--accent-color);
|
|
|
|
color: var(--accent-color);
|
|
|
|
line-height: 2rem;
|
|
|
|
padding: 0 1rem;
|
|
|
|
text-decoration: none;
|
|
|
|
font-weight: bold;
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
|
|
-webkit-transition: 0.3s ease-out;
|
|
|
|
transition: 0.3s ease-out;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--accent-color);
|
|
|
|
color: var(--ui-background-color);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon > svg {
|
|
|
|
display: inline-block;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
vertical-align: middle;
|
|
|
|
color: grey;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: var(--accent-color);
|
2019-06-29 19:12:24 +00:00
|
|
|
text-decoration: underline;
|
2019-01-04 18:14:53 +00:00
|
|
|
|
|
|
|
&.fancy-link {
|
|
|
|
position: relative;
|
|
|
|
color: var(--ui-text-color);
|
|
|
|
text-decoration: none;
|
|
|
|
transition: 0.3s ease all;
|
|
|
|
|
2019-01-05 02:44:55 +00:00
|
|
|
> span {
|
2019-01-04 18:14:53 +00:00
|
|
|
position: absolute;
|
2019-01-05 16:16:15 +00:00
|
|
|
top: -0.15em;
|
2019-01-04 18:14:53 +00:00
|
|
|
transition: 0.3s ease all;
|
|
|
|
font-family: $monospace;
|
|
|
|
color: transparent;
|
|
|
|
|
2019-01-05 02:44:55 +00:00
|
|
|
&:first-child {
|
|
|
|
left: 0.5em;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
right: 0.5em;
|
|
|
|
}
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--accent-color);
|
|
|
|
|
2019-01-05 02:44:55 +00:00
|
|
|
> span {
|
2019-01-04 18:14:53 +00:00
|
|
|
color: var(--accent-color);
|
|
|
|
|
2019-01-05 02:44:55 +00:00
|
|
|
&:first-child {
|
|
|
|
left: -0.75em;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
right: -0.75em;
|
|
|
|
}
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
overflow: scroll;
|
|
|
|
|
|
|
|
-moz-tab-size: 4;
|
|
|
|
-o-tab-size: 4;
|
|
|
|
tab-size: 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre, code {
|
|
|
|
font-family: $monospace;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
2019-01-05 15:52:44 +00:00
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2019-01-04 18:14:53 +00:00
|
|
|
figure {
|
2019-01-05 15:52:44 +00:00
|
|
|
margin: 0;
|
|
|
|
|
2019-01-04 18:14:53 +00:00
|
|
|
figcaption {
|
|
|
|
font-family: $sansSerif;
|
|
|
|
font-size: 16px;
|
|
|
|
font-style: italic;
|
|
|
|
color: var(--secondary-ui-text-color);
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Header
|
|
|
|
.site-header {
|
2019-06-28 19:28:00 +00:00
|
|
|
padding-top: 20px;
|
|
|
|
padding-bottom: 20px;
|
2019-01-04 18:14:53 +00:00
|
|
|
background-color: var(--ui-background-color);
|
|
|
|
font-size: 16px;
|
|
|
|
|
2019-06-28 19:28:00 +00:00
|
|
|
> div {
|
2019-06-19 13:29:56 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: flex-end;
|
|
|
|
flex-wrap: wrap;
|
2019-06-28 19:28:00 +00:00
|
|
|
|
|
|
|
padding-bottom: 10px;
|
|
|
|
border-bottom: 3px solid var(--accent-color);
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.site-title {
|
|
|
|
margin: 0;
|
|
|
|
font-size: 2em;
|
|
|
|
font-variant: small-caps;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-description {
|
|
|
|
color: var(--secondary-ui-text-color);
|
|
|
|
font-variant: small-caps;
|
2019-06-19 13:29:56 +00:00
|
|
|
margin: 0;
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.site-nav ul {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2019-02-16 19:43:41 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2019-01-04 18:14:53 +00:00
|
|
|
|
|
|
|
li {
|
|
|
|
list-style: none;
|
|
|
|
display: inline;
|
|
|
|
font-variant: small-caps;
|
|
|
|
font-weight: bold;
|
2019-02-16 19:43:41 +00:00
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.dropdown-link {
|
2019-06-28 19:28:00 +00:00
|
|
|
color: var(--ui-text-color);
|
2019-02-16 19:43:41 +00:00
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
.arrow-down {
|
|
|
|
display: inline-block;
|
|
|
|
width: 0.5em;
|
|
|
|
height: 0.5em;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
margin-left: 2px;
|
|
|
|
border-bottom: 2px solid var(--ui-text-color);
|
|
|
|
border-right: 2px solid var(--ui-text-color);
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
min-width: 5rem;
|
|
|
|
position: absolute;
|
2019-06-29 01:59:01 +00:00
|
|
|
transition: 0.3s ease all;
|
2019-02-16 19:43:41 +00:00
|
|
|
right: -1em;
|
2019-06-29 01:59:01 +00:00
|
|
|
display: block;
|
2019-02-16 19:43:41 +00:00
|
|
|
padding: 1em;
|
2019-06-28 19:28:00 +00:00
|
|
|
background-color: var(--ui-background-color);
|
2019-06-29 01:59:01 +00:00
|
|
|
border: 1px solid var(--accent-color);
|
2019-02-16 19:43:41 +00:00
|
|
|
z-index: 10;
|
|
|
|
|
|
|
|
li {
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
margin-right: 0px;
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover > ul,
|
|
|
|
&:focus-within > ul,
|
|
|
|
ul:hover,
|
|
|
|
ul:focus {
|
|
|
|
visibility: visible;
|
|
|
|
opacity: 1;
|
|
|
|
display: block;
|
|
|
|
}
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Footer
|
|
|
|
.site-footer {
|
2019-06-28 19:28:00 +00:00
|
|
|
padding-top: 20px;
|
|
|
|
padding-bottom: 20px;
|
2019-01-04 18:14:53 +00:00
|
|
|
background-color: var(--ui-background-color);
|
|
|
|
font-size: 16px;
|
|
|
|
|
2019-06-28 19:28:00 +00:00
|
|
|
> div {
|
2019-06-19 13:29:56 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: flex-start;
|
|
|
|
flex-wrap: wrap;
|
2019-06-28 19:28:00 +00:00
|
|
|
|
|
|
|
padding-top: 10px;
|
|
|
|
border-top: 3px solid var(--accent-color);
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.site-title {
|
|
|
|
margin: 0;
|
|
|
|
font-variant: small-caps;
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
|
2019-06-28 19:51:26 +00:00
|
|
|
.ui-controls {
|
|
|
|
input {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
label {
|
|
|
|
color: var(--accent-color);
|
|
|
|
text-decoration: underline;
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
input:checked + label {
|
|
|
|
color: var(--ui-text-color);
|
|
|
|
text-decoration: none;
|
|
|
|
font-weight: bold;
|
|
|
|
&:hover {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-04 18:14:53 +00:00
|
|
|
.social-links ul {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
li {
|
|
|
|
list-style: none;
|
|
|
|
display: inline;
|
|
|
|
font-variant: small-caps;
|
|
|
|
font-weight: bold;
|
2019-02-16 19:45:40 +00:00
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Pagination
|
|
|
|
.pagination {
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.pagination-link {
|
|
|
|
color: var(--accent-color);
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
span:not(.arrow) {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.arrow-left {
|
|
|
|
display: inline-block;
|
|
|
|
width: 0.5em;
|
|
|
|
height: 0.5em;
|
|
|
|
margin-right: -5px;
|
|
|
|
border-left: 2px solid var(--accent-color);
|
|
|
|
border-bottom: 2px solid var(--accent-color);
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
.arrow-right {
|
|
|
|
display: inline-block;
|
|
|
|
width: 0.5em;
|
|
|
|
height: 0.5em;
|
|
|
|
margin-left: -5px;
|
|
|
|
border-right: 2px solid var(--accent-color);
|
|
|
|
border-bottom: 2px solid var(--accent-color);
|
|
|
|
transform: rotate(-45deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Media Queries
|
|
|
|
@media (min-width: 540px) {
|
|
|
|
.container {
|
|
|
|
max-width: 540px;
|
|
|
|
}
|
2019-06-19 13:29:56 +00:00
|
|
|
|
|
|
|
article::after {
|
|
|
|
max-width: 540px;
|
|
|
|
}
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
.container {
|
|
|
|
max-width: 720px;
|
|
|
|
}
|
|
|
|
|
2019-06-19 13:29:56 +00:00
|
|
|
article::after {
|
|
|
|
max-width: 720px;
|
2019-01-04 18:14:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|