Use 4 level indentation everywhere

This commit is contained in:
2024-11-23 17:31:14 +01:00
parent dd9e97016c
commit c859780f74
26 changed files with 1921 additions and 1903 deletions
+8 -1
View File
@@ -76,7 +76,14 @@ enableEmoji = true
# and add them into your own `layouts/partials/sharing-buttons.html` # and add them into your own `layouts/partials/sharing-buttons.html`
# Preconfigured: facebook, twitter, tumblr, email, pinterest, linkedin, reddit, xing, whatsapp, hackernews, telegram # Preconfigured: facebook, twitter, tumblr, email, pinterest, linkedin, reddit, xing, whatsapp, hackernews, telegram
enableSharingButtons = true enableSharingButtons = true
sharingButtons = ["twitter", "email", "linkedin", "reddit", "whatsapp", "telegram"] sharingButtons = [
"twitter",
"email",
"linkedin",
"reddit",
"whatsapp",
"telegram",
]
# Integrate Javascript files or stylesheets by adding the url to the external assets or by # Integrate Javascript files or stylesheets by adding the url to the external assets or by
# linking local files with their path relative to the static folder, e.g. "css/styles.css" # linking local files with their path relative to the static folder, e.g. "css/styles.css"
+20 -18
View File
@@ -1,38 +1,40 @@
// Path navigation on top left
window.addEventListener("load", () => { window.addEventListener("load", () => {
const terminal = document.getElementById('nav-terminal') const terminal = document.getElementById("nav-terminal");
const keyDown = (e) => { const keyDown = (e) => {
if (e.keyCode === 13) { if (e.keyCode === 13) {
if (document.activeElement !== document.body) return if (document.activeElement !== document.body) return;
if (terminal.textContent.length === 0) return if (terminal.textContent.length === 0) return;
if (terminal.textContent.includes("~")) terminal.textContent = "" if (terminal.textContent.includes("~")) terminal.textContent = "";
window.location.href = window.location.origin + "/" + terminal.textContent window.location.href =
return window.location.origin + "/" + terminal.textContent;
return;
} }
if (e.keyCode === 8) { if (e.keyCode === 8) {
terminal.textContent = terminal.textContent.slice(0, -1) terminal.textContent = terminal.textContent.slice(0, -1);
return return;
} }
if (e.keyCode === 192) { if (e.keyCode === 192) {
if (terminal.textContent.length !== 0) return if (terminal.textContent.length !== 0) return;
terminal.textContent += "~" terminal.textContent += "~";
return return;
} }
if (e.keyCode === 191) { if (e.keyCode === 191) {
terminal.textContent += "/" terminal.textContent += "/";
return return;
} }
if (e.keyCode < 65 || e.keyCode > 90) return if (e.keyCode < 65 || e.keyCode > 90) return;
terminal.textContent += e.key.toLowerCase() terminal.textContent += e.key.toLowerCase();
} };
document.addEventListener('keydown', keyDown) document.addEventListener("keydown", keyDown);
}) });
+5 -3
View File
@@ -48,10 +48,12 @@ a.button {
} }
&.primary { &.primary {
box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08); box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11),
0 1px 3px rgba(0, 0, 0, 0.08);
&:hover { &:hover {
box-shadow: 0 2px 6px rgba(50, 50, 93, .21), 0 1px 3px rgba(0, 0, 0, .08); box-shadow: 0 2px 6px rgba(50, 50, 93, 0.21),
0 1px 3px rgba(0, 0, 0, 0.08);
} }
} }
@@ -61,7 +63,7 @@ a.button {
} }
&.small { &.small {
font-size: .8rem; font-size: 0.8rem;
} }
&.wide { &.wide {
-1
View File
@@ -20,7 +20,6 @@
} }
input[type="checkbox"]:checked { input[type="checkbox"]:checked {
~ .highlight, ~ .highlight,
~ .code-toolbar .highlight { ~ .code-toolbar .highlight {
max-height: 0; max-height: 0;
+6 -6
View File
@@ -1,5 +1,5 @@
@font-face { @font-face {
font-family: 'Inter UI'; font-family: "Inter UI";
font-style: normal; font-style: normal;
font-display: fallback; font-display: fallback;
font-weight: 400; font-weight: 400;
@@ -8,7 +8,7 @@
} }
@font-face { @font-face {
font-family: 'Inter UI'; font-family: "Inter UI";
font-style: italic; font-style: italic;
font-display: fallback; font-display: fallback;
font-weight: 400; font-weight: 400;
@@ -17,7 +17,7 @@
} }
@font-face { @font-face {
font-family: 'Inter UI'; font-family: "Inter UI";
font-style: normal; font-style: normal;
font-display: auto; font-display: auto;
font-weight: 600; font-weight: 600;
@@ -26,7 +26,7 @@
} }
@font-face { @font-face {
font-family: 'Inter UI'; font-family: "Inter UI";
font-style: italic; font-style: italic;
font-display: fallback; font-display: fallback;
font-weight: 600; font-weight: 600;
@@ -35,7 +35,7 @@
} }
@font-face { @font-face {
font-family: 'Inter UI'; font-family: "Inter UI";
font-style: normal; font-style: normal;
font-display: fallback; font-display: fallback;
font-weight: 800; font-weight: 800;
@@ -44,7 +44,7 @@
} }
@font-face { @font-face {
font-family: 'Inter UI'; font-family: "Inter UI";
font-style: italic; font-style: italic;
font-display: fallback; font-display: fallback;
font-weight: 800; font-weight: 800;
+2 -2
View File
@@ -38,7 +38,8 @@ body {
color: $light-color; color: $light-color;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl"; font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01",
"locl";
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
@@ -505,7 +506,6 @@ table {
&::after { &::after {
right: 100%; right: 100%;
width: 1.5em; width: 1.5em;
} }
} }
} }
@@ -3,8 +3,6 @@
margin-top: 20px; margin-top: 20px;
grid-gap: 20px 90px; grid-gap: 20px 90px;
grid-template-columns: repeat(2, minmax(250px, 1fr)); grid-template-columns: repeat(2, minmax(250px, 1fr));
// grid-auto-rows: 20px; // Set by JavaScript
// margin-bottom: calc(4 * 20px); // Set by JavaScript
> * { > * {
margin: 0; margin: 0;
+1 -1
View File
@@ -1,3 +1,3 @@
@mixin dimmed { @mixin dimmed {
opacity: .6; opacity: 0.6;
} }
+11 -1
View File
@@ -1,6 +1,16 @@
name = "maik-blog" name = "maik-blog"
description = "A simple theme for my blog." description = "A simple theme for my blog."
tags = ["blog", "clean", "dark", "light", "monochromatic", "personal", "responsive"] tags = [
"blog",
"clean",
"dark",
"light",
"monochromatic",
"personal",
"responsive",
"technical",
"highlighting",
]
features = ["blog", "shortcode", "syntax highlighting"] features = ["blog", "shortcode", "syntax highlighting"]
min_version = 0.30 min_version = 0.30