and now just _preview

This commit is contained in:
Marcell Mars 2020-12-14 05:09:19 +01:00
parent c100872ed1
commit 0e3d367e8a
8 changed files with 421 additions and 137 deletions

View file

@ -1,9 +1,26 @@
html, body, dl, dt, dd, blockquote, figure, fieldset, legend, textarea, pre, iframe, hr {
html,
body,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr {
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
font-weight: normal;
}
@ -12,7 +29,10 @@ ul {
list-style: none;
}
button, input, select, textarea {
button,
input,
select,
textarea {
margin: 0;
}
@ -20,7 +40,8 @@ html {
box-sizing: border-box;
}
img, video {
img,
video {
height: auto;
max-width: 100%;
}
@ -29,169 +50,254 @@ iframe {
border: 0;
}
strong del {
/* font-weight: normal; */
display: inline;
text-decoration: none;
margin-left: 1rem;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
table {
border-collapse: collapse;
border-spacing: 0;
background-color: #fff9f9;
border-left: 1px red solid;
margin-left: 1rem;
}
td, th {
td,
th {
padding: 0;
vertical-align: top;
padding-right: 1rem;
padding-left: 1rem;
padding-bottom: 0.5rem;
}
td:not([align]), th:not([align]) {
td:not([align]),
th:not([align]) {
text-align: left;
}
/* vollkorn-sc-regular - latin-ext_latin */
@font-face {
font-family: 'Vollkorn SC';
font-family: "Vollkorn SC";
font-style: normal;
font-weight: 400;
src: url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.eot');
src: url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.eot");
/* IE9 Compat Modes */
src: local(''), url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.svg#VollkornSC') format('svg');
src: local(""),
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-regular.svg#VollkornSC")
format("svg");
/* Legacy iOS */
}
/* vollkorn-sc-600 - latin-ext_latin */
@font-face {
font-family: 'Vollkorn SC';
font-family: "Vollkorn SC";
font-style: normal;
font-weight: 600;
src: url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.eot');
src: url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.eot");
/* IE9 Compat Modes */
src: local(''), url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.svg#VollkornSC') format('svg');
src: local(""),
url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-600.svg#VollkornSC")
format("svg");
/* Legacy iOS */
}
/* vollkorn-sc-700 - latin-ext_latin */
@font-face {
font-family: 'Vollkorn SC';
font-family: "Vollkorn SC";
font-style: normal;
font-weight: 700;
src: url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.eot');
src: url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.eot");
/* IE9 Compat Modes */
src: local(''), url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.svg#VollkornSC') format('svg');
src: local(""),
url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-700.svg#VollkornSC")
format("svg");
/* Legacy iOS */
}
/* vollkorn-sc-900 - latin-ext_latin */
@font-face {
font-family: 'Vollkorn SC';
font-family: "Vollkorn SC";
font-style: normal;
font-weight: 900;
src: url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.eot');
src: url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.eot");
/* IE9 Compat Modes */
src: local(''), url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.svg#VollkornSC') format('svg');
src: local(""),
url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-sc-v4-latin-ext_latin-900.svg#VollkornSC")
format("svg");
/* Legacy iOS */
}
/* vollkorn-500italic - latin-ext_latin */
@font-face {
font-family: 'Vollkorn';
font-family: "Vollkorn";
font-style: italic;
font-weight: 500;
src: url('../fonts/vollkorn-v12-latin-ext_latin-500italic.eot');
src: url("../fonts/vollkorn-v12-latin-ext_latin-500italic.eot");
/* IE9 Compat Modes */
src: local(''), url('../fonts/vollkorn-v12-latin-ext_latin-500italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-v12-latin-ext_latin-500italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-v12-latin-ext_latin-500italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-v12-latin-ext_latin-500italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-v12-latin-ext_latin-500italic.svg#Vollkorn') format('svg');
src: local(""),
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-500italic.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-500italic.svg#Vollkorn")
format("svg");
/* Legacy iOS */
}
/* vollkorn-regular - latin-ext_latin */
@font-face {
font-family: 'Vollkorn';
font-family: "Vollkorn";
font-style: normal;
font-weight: 400;
src: url('../fonts/vollkorn-v12-latin-ext_latin-regular.eot');
src: url("../fonts/vollkorn-v12-latin-ext_latin-regular.eot");
/* IE9 Compat Modes */
src: local(''), url('../fonts/vollkorn-v12-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-v12-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-v12-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-v12-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-v12-latin-ext_latin-regular.svg#Vollkorn') format('svg');
src: local(""),
url("../fonts/vollkorn-v12-latin-ext_latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-regular.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-regular.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-regular.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-regular.svg#Vollkorn")
format("svg");
/* Legacy iOS */
}
/* vollkorn-500 - latin-ext_latin */
@font-face {
font-family: 'Vollkorn';
font-family: "Vollkorn";
font-style: normal;
font-weight: 500;
src: url('../fonts/vollkorn-v12-latin-ext_latin-500.eot');
src: url("../fonts/vollkorn-v12-latin-ext_latin-500.eot");
/* IE9 Compat Modes */
src: local(''), url('../fonts/vollkorn-v12-latin-ext_latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-v12-latin-ext_latin-500.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-v12-latin-ext_latin-500.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-v12-latin-ext_latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-v12-latin-ext_latin-500.svg#Vollkorn') format('svg');
src: local(""),
url("../fonts/vollkorn-v12-latin-ext_latin-500.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-500.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-500.woff") format("woff"),
/* Modern Browsers */ url("../fonts/vollkorn-v12-latin-ext_latin-500.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-500.svg#Vollkorn")
format("svg");
/* Legacy iOS */
}
/* vollkorn-italic - latin-ext_latin */
@font-face {
font-family: 'Vollkorn';
font-family: "Vollkorn";
font-style: italic;
font-weight: 400;
src: url('../fonts/vollkorn-v12-latin-ext_latin-italic.eot');
src: url("../fonts/vollkorn-v12-latin-ext_latin-italic.eot");
/* IE9 Compat Modes */
src: local(''), url('../fonts/vollkorn-v12-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-v12-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-v12-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-v12-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-v12-latin-ext_latin-italic.svg#Vollkorn') format('svg');
src: local(""),
url("../fonts/vollkorn-v12-latin-ext_latin-italic.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/vollkorn-v12-latin-ext_latin-italic.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-italic.woff") format("woff"),
/* Modern Browsers */
url("../fonts/vollkorn-v12-latin-ext_latin-italic.ttf") format("truetype"),
/* Safari, Android, iOS */
url("../fonts/vollkorn-v12-latin-ext_latin-italic.svg#Vollkorn")
format("svg");
/* Legacy iOS */
}
/* great-vibes-regular - latin-ext_latin */
@font-face {
font-family: 'Great Vibes';
font-family: "Great Vibes";
font-style: normal;
font-weight: 400;
src: url('../fonts/great-vibes-v7-latin-ext_latin-regular.eot');
src: url("../fonts/great-vibes-v7-latin-ext_latin-regular.eot");
/* IE9 Compat Modes */
src: local('Great Vibes'), local('GreatVibes-Regular'), url('../fonts/great-vibes-v7-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/great-vibes-v7-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/great-vibes-v7-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/great-vibes-v7-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/great-vibes-v7-latin-ext_latin-regular.svg#GreatVibes') format('svg');
src: local("Great Vibes"), local("GreatVibes-Regular"),
url("../fonts/great-vibes-v7-latin-ext_latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("../fonts/great-vibes-v7-latin-ext_latin-regular.woff2")
format("woff2"),
/* Super Modern Browsers */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.woff") format("woff"),
/* Modern Browsers */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.ttf")
format("truetype"),
/* Safari, Android, iOS */
url("../fonts/great-vibes-v7-latin-ext_latin-regular.svg#GreatVibes")
format("svg");
/* Legacy iOS */
}
html {
line-height: 1.4;
line-height: 1.5;
}
body {
font-family: 'Vollkorn', serif;
font-family: "Vollkorn", serif;
font-weight: 400;
max-width: 1024px;
font-size: 1.4rem;
@ -201,21 +307,32 @@ body {
color: black;
}
sup,
sub {
vertical-align: baseline;
position: relative;
top: -0.4em;
}
sub {
top: 0.4em;
}
.headiter {
display: flex;
justify-content: space-between;
border-bottom: 0.3rem solid red;
border-top: 0.1rem solid red;
padding-top: 1rem;
padding-bottom: .5rem;
padding-bottom: 0.5rem;
padding-left: 1rem;
padding-right: 1rem;
margin-bottom: 1rem
margin-bottom: 1rem;
}
a.edit-button {
color: #000;
text-decoration: none
text-decoration: none;
}
a.edit-button:hover {
@ -223,8 +340,8 @@ a.edit-button:hover {
-webkit-text-decoration-color: red;
text-decoration-color: red;
font-weight: 500;
font-size: .97em;
cursor: pointer
font-size: 0.97em;
cursor: pointer;
}
.header {
@ -283,11 +400,15 @@ a.edit-button:hover {
margin-top: -0.9rem;
}
input:focus, select:focus, textarea:focus, label:focus, button:focus {
input:focus,
select:focus,
textarea:focus,
label:focus,
button:focus {
outline: none;
}
.ddmenu input:checked~.hiddendiv {
.ddmenu input:checked ~ .hiddendiv {
display: block;
}
@ -300,7 +421,7 @@ input:focus, select:focus, textarea:focus, label:focus, button:focus {
border-radius: 50%;
border: 0.3em solid red;
display: inline-flex;
font-family: 'Great Vibes', cursive;
font-family: "Great Vibes", cursive;
font-size: 1.2rem;
font-weight: bold;
color: white;
@ -344,7 +465,7 @@ li {
list-style-type: " ";
}
li[role=doc-endnote] {
li[role="doc-endnote"] {
list-style-type: decimal;
}
@ -359,7 +480,7 @@ img {
.supt {
display: inline-flex;
flex-wrap: nowrap;
font-family: 'Great Vibes', cursive;
font-family: "Great Vibes", cursive;
font-size: 0.9em;
font-style: normal;
color: rgba(0, 0, 0, 0.8);
@ -371,7 +492,7 @@ img {
.sup {
display: inline-flex;
flex-wrap: nowrap;
font-family: 'Great Vibes', cursive;
font-family: "Great Vibes", cursive;
font-size: 0.9em;
font-style: normal;
color: red;
@ -392,28 +513,25 @@ img {
display: none;
}
.syllabustitle, .coretitle {
.syllabustitle,
.coretitle {
margin-top: 4rem;
font-style: italic;
font-size: 4rem;
margin-bottom: 4rem;
}
.mantletitle, .crusttitle {
.mantletitle,
.crusttitle {
margin-top: 4rem;
font-style: italic;
font-size: 2rem;
margin-bottom: 4rem;
}
.has, .afterhas {
font-style: italic;
font-size: 1.4rem;
}
.grid {
padding-left: 3rem;
margin-bottom: 4rem;
margin-bottom: 2rem;
display: grid;
grid-template-columns: 1fr 1fr;
}
@ -438,13 +556,13 @@ img {
}
#TableOfContents li a {
font-family: 'Vollkorn';
font-family: "Vollkorn";
font-size: 1.4rem;
font-weight: 500;
font-style: normal;
}
#TableOfContents>ol:first-child>span>li>a::after {
#TableOfContents > ol:first-child > span > li > a::after {
content: "¶";
color: rgba(0, 0, 0, 0.2);
font-size: 1.3em;
@ -452,14 +570,39 @@ img {
}
.rightcolumn {
grid-column: 2;
display: grid;
grid-template-columns: auto 1fr;
/* display: grid;
grid-column: 2;
grid-template-columns: auto 1fr;
grid-auto-rows: max-content; */
padding-left: 0.5rem;
}
.has {
display: inline-grid;
grid-column: 2;
grid-auto-rows: max-content;
font-size: 1.4rem;
font-style: italic;
margin-bottom: 0.8rem;
}
.hasauthors {
font-size: 1.6rem !important;
}
.hassup {
grid-column: 1;
font-family: "Great Vibes", cursive;
font-size: 0.9em;
font-style: normal;
color: red;
vertical-align: baseline;
position: relative;
/* top: -0.3em; */
}
.afterhas {
grid-column: 2;
}
.content {
@ -511,8 +654,40 @@ h6 {
font-size: 1rem;
}
blockquote {
.abstract {
font-style: italic;
border-left: 1px solid rgb(0, 0, 0);
margin-left: 5rem;
margin-right: 2rem;
margin-bottom: 1.2rem;
padding-left: 1rem;
padding-right: 2rem;
padding-top: 1.2rem;
padding-bottom: 1.2rem;
background-color: rgba(0, 0, 0, 0.05);
max-width: 70ch;
}
.authors {
display: inline-block;
font-size: 1.8rem;
margin-left: 5rem;
margin-right: 2rem;
padding-left: 1rem;
}
.keywords {
display: inline-block;
font-size: 1.2rem;
margin-left: 5rem;
margin-right: 2rem;
padding-left: 1rem;
padding-right: 2rem;
margin-bottom: 2.2rem;
max-width: 72ch;
}
blockquote {
border-left: 1px red solid;
margin-left: 1rem;
margin-right: 2rem;
@ -523,7 +698,7 @@ blockquote {
background-color: #fff9f9;
}
h2+p:first-letter {
h2 + p:first-letter {
font-family: "Great Vibes", cursive;
color: rgba(0, 0, 0, 0.8);
font-size: 1.5em;
@ -544,7 +719,7 @@ h2+p:first-letter {
}
.smallcaps {
font-family: 'Vollkorn SC', serif;
font-family: "Vollkorn SC", serif;
font-weight: 400;
}
@ -553,54 +728,59 @@ body {
}
h2 {
counter-reset: h3
counter-reset: h3;
}
h3 {
counter-reset: h4
counter-reset: h4;
}
h4 {
counter-reset: h5
counter-reset: h5;
}
h5 {
counter-reset: h6
counter-reset: h6;
}
h2:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h2;
content: counter(h2) ". "
content: counter(h2) ". ";
}
h3:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h3;
content: counter(h2) "." counter(h3) ". "
content: counter(h2) "." counter(h3) ". ";
}
h4:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4) ". "
content: counter(h2) "." counter(h3) "." counter(h4) ". ";
}
h5:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h5;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". ";
}
h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h6;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "."
counter(h6) ". ";
}
h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.nocount:before {
h2.nocount:before,
h3.nocount:before,
h4.nocount:before,
h5.nocount:before,
h6.nocount:before {
content: "";
counter-increment: none
counter-increment: none;
}
details {
@ -660,6 +840,38 @@ details {
padding-right: 1rem;
}
.sitemap {
padding-left: 3rem;
font-size: 1.2rem;
}
.sitemap a {
color: rgba(0, 0, 0, 0.4);
}
.sitemap .sup {
color: rgba(255, 0, 0, 0.7);
}
.highline a,
.sitemap a:hover {
color: rgba(0, 0, 0, 1);
}
.highline .sup,
.sitemap .sup:hover {
color: red;
}
.highline {
font-size: 1.6rem;
color: rgb(0, 0, 0);
border-left: 1px red solid;
padding-left: 1rem;
padding-top: 0.1rem;
padding-bottom: 0.1rem;
background-color: #fff9f9;
}
@media (max-width: 767px) {
html {
box-sizing: border-box;
@ -683,10 +895,12 @@ details {
.leftcolumn {
display: none;
}
.has, .afterhas {
.has,
.afterhas {
font-size: 1.1rem;
}
.mantle, .crust {
.mantle,
.crust {
margin-bottom: 0.2em;
}
.content {
@ -703,4 +917,4 @@ details {
.sessiongrid {
display: none;
}
}
}

View file

@ -1,3 +1,36 @@
<ul>
<li>{{ .Title }}</li>
</ul>
{{ define "singlebody" }}
{{ $currentNode := . }}
{{ $currentDir := "" }}
{{ with .File }}
{{ $currentDir = .Dir }}
{{ end }}
{{ $currentFile := (printf "/%s" .File) }}
<div class="coretitle"><span class="supt">Sitemap{{ substr $.Site.Title 0 1 }}</span>{{ substr $.Site.Title 1 }} ({{ $currentDir }})</div>
{{ $s := partialCached "scratch.html" . }}
{{ $noTriad := (slice) }}
{{ range $p := .Site.RegularPages }}
{{ $scratch := $s.Get (printf "/%s" $p.File) }}
{{ if eq $scratch.depth "core" }}
<div class="sitemap" ><div class="{{ with $p.File }}{{ if eq $currentDir .Dir }}highline{{ end }}{{ end }}"><a href="{{- $p.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $p.Title}} title="{{- $p.Title -}}"{{- end -}}><span class="sup">{{- substr $p.File.Dir 0 -1 -}}</span>{{- $p.Title -}}</a></div>
{{ range $coreKid := $scratch.has_children }}
<div class="sitemap"><a href="{{- $coreKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $coreKid.Title}} title="{{- $coreKid.Title -}}"{{- end -}}><div class="{{ with $coreKid.File }}{{ if eq $currentDir .Dir }}highline{{ end }}{{ end }}"><span class="sup">{{- substr $coreKid.File.Dir 0 -1 -}}</span>{{- $coreKid.Title -}}</a></div>
{{ $scratchCKid := $s.Get (printf "/%s" $coreKid.File) }}
{{ range $mantleKid := $scratchCKid.has_children }}
<div class="sitemap"><div class="{{ with $mantleKid.File }}{{ if eq $currentDir .Dir }} highline{{ end }}{{ end }}"><a href="{{- $mantleKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $mantleKid.Title}} title="{{- $mantleKid.Title -}}"{{- end -}}><span class="sup">{{ with $mantleKid.File }}{{substr .Dir 0 -1 -}}{{ end }}</span>{{- $mantleKid.Title -}}</a></div></div>
{{ end }}
</div>
{{ end }}
{{ else if not (in (slice "core" "mantle" "crust") $scratch.depth)}}
{{ $noTriad = $noTriad | append $p }}
{{ else }}
</div>
{{ end }}
{{ end }}
{{ range $noTriad }}
<div class="sitemap {{ with .File }}{{ if eq $currentDir .Dir }} highline{{ end }}{{ end }}"><a href="{{- .RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with .Title }} title="{{- . -}}"{{- end -}}><span class="sup">{{- substr .File.Dir 0 -1 -}}</span>{{- .Title -}}</a></div>
{{ end }}
{{ end }}

View file

@ -1,5 +1,10 @@
{{ $s := partialCached "scratch.html" . }}
{{ $currentDir := "" }}
{{ with .File }}
{{ $currentDir = .Dir }}
{{ end }}
{{ $currentFile := (printf "/%s" .File) }}
{{ $scratch := $s.Get $currentFile }}
@ -22,14 +27,14 @@
{{ end }}
{{ if eq hugo.Environment "preview" }}
{{- $giteaUrl := .Site.Params.sandpointsGiteaUrl -}}
<div class="headiter">
<a class="edit-button" target="_blank" href="{{ $giteaUrl }}/_edit/master/content/{{ .File }}">EDIT_THIS</a>
<a class="edit-button" target="_blank" href="{{ $giteaUrl }}/_new/master/content/{{ with $scratch.core }}{{ index . 0 }}{{ end }}/">ADD_{{ with $scratch.core }}{{ index . 0 | upper }}{{ end }}</a>
<a class="edit-button" target="_blank" href="{{ $giteaUrl }}/_new/master/content/{{ with $scratch.mantle }}{{ index . 0 }}{{ end }}/">ADD_{{ with $scratch.mantle }}{{ index . 0 | upper }}{{ end }}</a>
<a class="edit-button" target="_blank" href="{{ $giteaUrl }}/_new/master/content/{{ with $scratch.crust }}{{ index . 0 }}{{ end }}/">ADD_{{ with $scratch.crust }}{{ index . 0 | upper }}{{ end }}</a>
<a class="edit-button" target="_blank" href="{{ $giteaUrl }}/_edit/master/PUBLISH.trigger.md">PUBLISH</a>
<a class="edit-button" target="_blank" href="{{ $giteaUrl }}"> ? </a>
<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_edit/master/content/{{ .File }}">EDIT_THIS</a>
{{ with $scratch.core }}<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_new/master/content/{{ index . 0 }}/">ADD_{{ index . 0 | upper }}</a>{{ end }}
{{ with $scratch.mantle }}<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_new/master/content/{{ index . 0 }}/">ADD_{{ index . 0 | upper }}</a>{{ end }}
{{ with $scratch.crust }}<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_new/master/content/{{ index . 0 }}/">ADD_{{ index . 0 | upper }}</a>{{ end }}
{{ if not $scratch.core }}<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_new/master/content/{{ $currentDir }}">ADD_{{ substr $currentDir 0 -1 | upper }}</a>{{ end }}
<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_edit/master/PUBLISH.trigger.md">PUBLISH</a>
<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}"> ? </a>
</div>
{{ end }}

View file

@ -23,6 +23,17 @@
{{ end }}
{{ end }}
{{ with $authors := $p.Params.authors }}
{{ range $author := $authors }}
{{ $authorLink := printf "/author/%s" $author }}
{{ with ($_.Get $authorLink) }}
{{ $_.SetInMap $authorLink "backlinks" (uniq ((index ($_.Get $authorLink) "backlinks") | append $p)) }}
{{ else }}
{{ $_.SetInMap $authorLink "backlinks" (slice $p) }}
{{ end }}
{{ end }}
{{ end }}
{{ $gp := $.GetPage $pPath }}
{{ $gpPath := printf "/%s" $gp.File }}
{{ range $k, $v := $gp.Params }}

View file

@ -8,7 +8,7 @@
{{ $currentFile := (printf "/%s" .File) }}
{{ $scratch := $s.Get $currentFile }}
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}:&thinsp;{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
<div class="grid">
<div class="leftcolumn">
@ -17,46 +17,65 @@
{{ end }}
</div>
<div class="rightcolumn">
{{ if in .Page.Site.Params.mentionedIn (substr $currentDir 0 -1) }}
{{- range $k, $v := .Page.Params.authors -}}
{{- with $.GetPage (printf "/author/%s" $v) -}}
{{- with not $k -}}
<div class="has hasauthors">
<div class="hassup">author{{ with $.Page.Params.authors }}{{ if gt (len .) 1 }}s{{ end }}{{ end }}</div>
<div class="afterhas">
{{- end -}}
<div class="crust">
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
</div>
{{- end -}}
{{- end -}}
{{- with .Page.Params.authors -}}</div></div>{{- end -}}
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr $currentDir 0 -1) }}
<div class="has">
{{ with $scratch.backlinks }}
<span class="sup">mentioned in</span>
<div class="hassup">mentioned in</div>
{{ end }}
</div>
<div class="afterhas">
{{ range $scratch.backlinks }}
<div class="{{ $scratch.child_depth }}">
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
</div>
{{ end }}
</div></div>
{{ end }}
{{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }}
<div class="has">
{{ with $scratch.has }}
<span class="sup">has {{ $scratch.has }}</span>
<div class="hassup">has {{ $scratch.has }}</div>
{{ end }}
</div>
<div class="afterhas">
{{ range $scratch.has_children }}
<div class="{{ $scratch.child_depth }}">
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
</div>
{{ end }}
</div></div>
{{ end }}
{{ if eq $scratch.depth "crust" }}
<div class="has">
<span class="sup">in {{ index $scratch.in 1 }}</span>
</div>
<div class="hassup">in {{ index $scratch.in 1 }}</div>
<div class="afterhas">
{{ range $scratch.is_in }}
<div class="{{ substr $currentDir 0 -1 }}">
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
</div>
{{ end }}
</div></div>
{{ end }}
</div>
</div>
</div>
{{ with .Page.Params.abstract }}<div class="journal"></div><div class="abstract"><span class="supt">abstract</span>{{ . | markdownify }}</div>{{ end }}
{{- $vld := false -}}{{- range $k, $v := .Page.Params.keywords -}}{{- if eq $k 0 -}}{{- $vld = true -}}<div
class="keywords"><span class="sup">keywords</span>{{- $v -}}{{- else -}},&nbsp;{{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}</div>{{- end -}}
{{ with .Page.Params.abstract }}</div>{{ end }}

File diff suppressed because one or more lines are too long

View file

@ -8,8 +8,10 @@ description = "Sandpoints Theme"
homepage = "https://git.sandpoints.org/Drawwell/Sandpoints"
tags = ["syllabus"]
features = []
min_version = "0.41"
min_version = "0.79.0"
[author]
name = "marcell mars"
homepage = "https://ki.ber.kom.uni.st"
authors = [
{name = "Marcell Mars", homepage = "https://git.sandpoints.org"},
{name = "Sean Dockray", homepage = "https://git.sandpoints.org"},
{name = "Vincent W.J. van Gerven Oei", homepage = "http://www.vangervenoei.com"}
]

View file

@ -1 +1 @@
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201209022150-1c0c9e5e7fcd
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201214030348-c507484d5529