2015-12-30 04:33:04 +01:00
|
|
|
/* ------------------------------------------------------------------------ */
|
2015-12-30 03:35:20 +01:00
|
|
|
/* hugo-tufte.css */
|
|
|
|
/* Contains extensions to the original tufte.css styles to */
|
|
|
|
/* accomodate a blog-like site. */
|
2015-12-30 04:33:04 +01:00
|
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
|
2021-07-25 10:05:32 +02:00
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@351&display=swap');
|
|
|
|
|
2016-01-15 06:02:57 +01:00
|
|
|
/* When setting the primary font stack, apply it to the Pure grid units along */
|
|
|
|
/* with `html`, `button`, `input`, `select`, and `textarea`. Pure Grids use */
|
|
|
|
/* specific font stacks to ensure the greatest OS/browser compatibility. */
|
|
|
|
html, button, input, select, textarea, p, nav, section, article, header, footer, .pure-g [class *= "pure-u"] {
|
|
|
|
font-family: "et-book", -apple-system, "San Francisco", "Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Open Sans","Helvetica Neue", "Lucida Grand", sans-serif;
|
|
|
|
}
|
|
|
|
|
2021-08-03 22:18:19 +02:00
|
|
|
p {
|
|
|
|
text-align: justify;
|
|
|
|
}
|
2016-01-15 06:02:57 +01:00
|
|
|
|
|
|
|
code {
|
2021-07-25 10:05:32 +02:00
|
|
|
font-family: "Fira Code", Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
2016-01-15 06:02:57 +01:00
|
|
|
font-size: 1.125rem;
|
|
|
|
line-height: 1.6;
|
2015-12-31 07:13:11 +01:00
|
|
|
}
|
|
|
|
|
2021-08-03 22:18:19 +02:00
|
|
|
$ht-code-border-radius: .4em;
|
|
|
|
.highlight {
|
|
|
|
width: 55%;
|
|
|
|
overflow-x: scroll;
|
|
|
|
border-radius: $ht-code-border-radius;
|
|
|
|
|
|
|
|
&>div.chroma>table.lntable{
|
|
|
|
margin: $ht-code-border-radius 0 $ht-code-border-radius 0;
|
|
|
|
& td:first-of-type {
|
|
|
|
& span:not(& span>span) {
|
|
|
|
padding: 0 .75em 0 .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&>.chroma>code {
|
|
|
|
|
|
|
|
width: max-content;
|
|
|
|
margin-top: .5em;
|
|
|
|
margin-bottom: .5em;
|
|
|
|
margin-left: .5em;
|
|
|
|
&>span.hl{
|
|
|
|
margin-left: -.5em;
|
|
|
|
padding-left: .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chroma .hl {
|
|
|
|
// border-radius: $ht-code-border-radius / 2;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
border-radius: $ht-code-border-radius;
|
|
|
|
width: 10px;
|
|
|
|
height: 1rem;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
border-radius: $ht-code-border-radius;
|
|
|
|
}
|
2021-07-25 10:05:32 +02:00
|
|
|
}
|
|
|
|
|
2021-08-03 22:18:19 +02:00
|
|
|
.highlight .lntable {
|
|
|
|
overflow: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
.highlight pre {
|
|
|
|
margin: 0;
|
2021-07-25 10:05:32 +02:00
|
|
|
}
|
|
|
|
|
2021-08-03 22:18:19 +02:00
|
|
|
.highlight pre code {
|
2015-12-31 07:13:11 +01:00
|
|
|
display: block;
|
2021-07-25 10:05:32 +02:00
|
|
|
font-size: 1rem;
|
2015-12-30 04:33:04 +01:00
|
|
|
}
|
2015-12-30 03:35:20 +01:00
|
|
|
|
2021-08-03 22:18:19 +02:00
|
|
|
.sidenote, .marginnote {
|
|
|
|
margin-right: -55%;
|
|
|
|
width: 45%;
|
|
|
|
}
|
2015-12-31 07:13:11 +01:00
|
|
|
|
2015-12-30 03:35:20 +01:00
|
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
/* Brand details, such as a sidebar or top display. */
|
|
|
|
/* ------------------------------------------------------------------------ */
|
2016-01-15 06:02:57 +01:00
|
|
|
header.brand{
|
2015-12-30 03:35:20 +01:00
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Main brand title */
|
2016-01-15 06:02:57 +01:00
|
|
|
header.brand h1 {
|
2015-12-30 03:35:20 +01:00
|
|
|
margin: 0;
|
|
|
|
font-weight: 400;
|
|
|
|
color: rgba(65, 70, 75, 1);
|
|
|
|
}
|
|
|
|
|
2016-01-15 06:02:57 +01:00
|
|
|
header.brand h2 {
|
2015-12-30 03:35:20 +01:00
|
|
|
margin: 0;
|
2015-12-30 04:33:04 +01:00
|
|
|
padding-top: 0rem;
|
|
|
|
/*font-style: normal;*/
|
|
|
|
/*font-weight: 200;*/
|
2015-12-30 03:35:20 +01:00
|
|
|
color: rgba(100, 105, 110, 1);
|
|
|
|
}
|
|
|
|
|
2016-01-15 06:02:57 +01:00
|
|
|
header.brand hr {
|
|
|
|
text-align: left;
|
|
|
|
margin-left: 0;
|
|
|
|
width: 75%;
|
|
|
|
border-color: rgba(250, 250, 250, 0.25);
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
2016-01-15 06:02:57 +01:00
|
|
|
|
|
|
|
nav.menu ul {
|
2016-02-20 21:12:33 +01:00
|
|
|
list-style: none;
|
|
|
|
display: block;
|
|
|
|
/*text-align:center;*/
|
|
|
|
margin-top: 0.75rem;
|
|
|
|
padding: 0;
|
2016-01-15 06:02:57 +01:00
|
|
|
max-width: 45rem;
|
|
|
|
/* Width is the same as tufte.css body */
|
|
|
|
font-size: .9rem;
|
|
|
|
width: 87.5%;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav.menu li {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav.menu li a {
|
2015-12-30 03:35:20 +01:00
|
|
|
text-decoration: none;
|
|
|
|
background: transparent;
|
|
|
|
color: rgba(65, 70, 75, 1);
|
|
|
|
letter-spacing: 0.05em;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
2016-01-15 06:02:57 +01:00
|
|
|
|
|
|
|
nav.menu li a:hover,
|
|
|
|
nav.menu li a:active,
|
|
|
|
nav.menu li a:focus {
|
2015-12-30 03:35:20 +01:00
|
|
|
background: inherit;
|
2016-01-15 06:02:57 +01:00
|
|
|
color: darkgray;
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
/* Generic content, such as the index list pages */
|
|
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
|
|
|
|
/* Content Title styling. This is mostly to avoid underlying links. */
|
2016-01-15 06:02:57 +01:00
|
|
|
h1.content-title {
|
|
|
|
/*max-width: 50rem;*/
|
|
|
|
}
|
|
|
|
h1.content-title a:link,
|
|
|
|
h1.content-title a:visited {
|
2015-12-30 03:35:20 +01:00
|
|
|
background: transparent;
|
|
|
|
text-decoration: none;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
h1.content-title a:hover,
|
|
|
|
h1.content-title a:focus {
|
2016-01-15 06:02:57 +01:00
|
|
|
color: darkgray;
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Content meta-data such as author, publication date, etc. */
|
|
|
|
.content-meta {
|
|
|
|
display: block;
|
2015-12-31 07:13:11 +01:00
|
|
|
/*color: rgba(155, 155, 155, 1);*/
|
|
|
|
color: rgba(100, 105, 110, 1);
|
2016-01-15 06:02:57 +01:00
|
|
|
font-size: 1.1rem;
|
2015-12-30 03:35:20 +01:00
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-meta .author {
|
|
|
|
/*color: rgb(90, 20, 55)*/
|
|
|
|
color: rgba(65, 70, 75, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.post-avatar {
|
|
|
|
border-radius: 50px;
|
|
|
|
float: right;
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
/* Styling for listing pages. */
|
|
|
|
/* ------------------------------------------------------------------------ */
|
2021-08-03 22:18:19 +02:00
|
|
|
.list-page {
|
|
|
|
ul {
|
|
|
|
list-style-type: none;
|
|
|
|
margin: -0.25em;
|
|
|
|
width: 87.5%;
|
|
|
|
max-width: 45rem;
|
|
|
|
}
|
|
|
|
li {
|
2015-12-30 03:35:20 +01:00
|
|
|
margin: 0;
|
2016-01-15 06:02:57 +01:00
|
|
|
/*font-size: 95%;*/
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
2021-08-03 22:18:19 +02:00
|
|
|
}
|
|
|
|
.list-page
|
2015-12-30 03:35:20 +01:00
|
|
|
.list-date {
|
|
|
|
display: inline;
|
|
|
|
font-size: 0.75em;
|
|
|
|
/* padding-right: 2em; */
|
|
|
|
/* margin-right: 2em; */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Table of Contents */
|
2016-01-15 06:02:57 +01:00
|
|
|
.toc summary {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
margin-bottom: -1.5rem;
|
|
|
|
padding-left: 0;
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
|
|
|
|
2016-01-15 06:02:57 +01:00
|
|
|
.toc {
|
|
|
|
/*float: right;*/
|
|
|
|
/*padding: 0rem 1rem 1rem 1rem;*/
|
|
|
|
/*margin-top: 1rem;*/
|
|
|
|
/*border-left: 1px solid #eee;*/
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.toc ul {
|
2016-01-15 06:02:57 +01:00
|
|
|
list-style: none;
|
|
|
|
display: block;
|
|
|
|
/*margin-top: 0.75rem;*/
|
|
|
|
padding: 0;
|
|
|
|
width: 87.5%;
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.toc li {
|
2016-01-15 06:02:57 +01:00
|
|
|
line-height: 0.5rem;
|
|
|
|
margin: 1rem;
|
|
|
|
}
|
|
|
|
|
2021-08-03 22:18:19 +02:00
|
|
|
table:not(.lntable) {
|
2021-07-25 10:05:32 +02:00
|
|
|
margin-top: 1em;
|
2016-01-15 06:02:57 +01:00
|
|
|
font-size: 1.4rem;
|
2021-07-25 10:05:32 +02:00
|
|
|
width: auto; /* making booktabs style tables the unstyled default in case someone uses Markdown styling */
|
|
|
|
/* margin: 0 auto; */
|
|
|
|
/* border-spacing: 0px; */
|
|
|
|
border-top: 2px solid #111;
|
|
|
|
border-bottom: 2px solid #111;
|
|
|
|
}
|
|
|
|
|
2021-08-03 22:18:19 +02:00
|
|
|
table:not(.lntable) th, table:not(.lntable) td{
|
2021-07-25 10:05:32 +02:00
|
|
|
font-size: 1.25rem;
|
|
|
|
line-height: 1.71428571;
|
|
|
|
}
|
|
|
|
|
2021-08-03 22:18:19 +02:00
|
|
|
table:not(.lntable) td {
|
2021-07-25 10:05:32 +02:00
|
|
|
padding-right: 0.75em;
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
|
|
|
|
2021-08-03 22:18:19 +02:00
|
|
|
table.lntable
|
|
|
|
{
|
|
|
|
td.lntd {
|
|
|
|
padding: 0em;
|
|
|
|
}
|
|
|
|
border-spacing: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2015-12-30 03:35:20 +01:00
|
|
|
/* Footer, but with a different name to avoid conflicts with tufte.css */
|
2016-01-15 06:02:57 +01:00
|
|
|
footer.page-footer{
|
2015-12-30 03:35:20 +01:00
|
|
|
padding-top: 1em;
|
|
|
|
margin-top: 3em;
|
|
|
|
color: #aaa;
|
2016-01-15 06:02:57 +01:00
|
|
|
width: 95%;
|
|
|
|
max-width: 45rem;
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
2016-01-15 06:02:57 +01:00
|
|
|
footer.page-footer p {
|
|
|
|
font-size: 1.2rem;
|
2015-12-30 03:35:20 +01:00
|
|
|
margin: 0em;
|
|
|
|
/* light font looked odd on chrome */
|
|
|
|
/*font-weight: lighter;*/
|
|
|
|
}
|
2016-01-15 06:02:57 +01:00
|
|
|
footer.page-footer a {
|
2015-12-30 03:35:20 +01:00
|
|
|
color: rgba(65, 70, 75, 1);
|
|
|
|
text-decoration: none;
|
|
|
|
background: transparent;
|
|
|
|
}
|
2016-01-15 06:02:57 +01:00
|
|
|
footer.page-footer hr {
|
2015-12-30 03:35:20 +01:00
|
|
|
text-align: left;
|
|
|
|
margin-left: 0;
|
2016-01-15 06:02:57 +01:00
|
|
|
width: 100%;
|
|
|
|
border-color: rgba(250, 250, 250, 0.25);
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
|
|
|
|
2016-01-15 06:02:57 +01:00
|
|
|
footer.page-footer ul.page-footer-menu {
|
2015-12-30 03:35:20 +01:00
|
|
|
list-style: none;
|
|
|
|
display: block;
|
|
|
|
/*text-align:center;*/
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2021-08-06 21:46:35 +02:00
|
|
|
width: unset;
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
2016-01-15 06:02:57 +01:00
|
|
|
|
|
|
|
footer.page-footer ul.page-footer-menu li {
|
2015-12-30 03:35:20 +01:00
|
|
|
display: inline-block;
|
|
|
|
margin-right: 0.5rem;
|
2021-08-06 21:46:35 +02:00
|
|
|
// font-size: 55%;
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.copyright {
|
|
|
|
}
|
|
|
|
.copyright p {
|
|
|
|
font-size: 90%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
/* Post Archive. */
|
|
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
/* We utilize the html5 summary tags in order to create a post archive */
|
|
|
|
/* with built-in folding. */
|
|
|
|
details {
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
details summary {
|
|
|
|
vertical-align: top;
|
|
|
|
padding: .3em .5em;
|
|
|
|
outline: none;
|
2016-01-15 06:02:57 +01:00
|
|
|
/*color: rgba(65, 70, 75, 1);*/
|
|
|
|
}
|
|
|
|
|
|
|
|
details summary.year {
|
|
|
|
font-size: 1.5rem;
|
2015-12-30 03:35:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
details[open] summary {
|
|
|
|
}
|
|
|
|
|