Auto-publish on Fri 8 Aug 18:27:52 BST 2025
This commit is contained in:
BIN
output/assets/gr.png
Normal file
BIN
output/assets/gr.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
21
output/assets/script.js
Normal file
21
output/assets/script.js
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
// COPY BUTTON:
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
document.querySelectorAll("pre.src").forEach(function (block) {
|
||||
const button = document.createElement("button");
|
||||
button.innerText = "Copy";
|
||||
button.className = "copy-btn";
|
||||
|
||||
// Append button inside <pre>
|
||||
block.appendChild(button);
|
||||
|
||||
button.addEventListener("click", function () {
|
||||
const text = block.innerText.replace(button.innerText, ""); // exclude button text
|
||||
navigator.clipboard.writeText(text.trim()).then(() => {
|
||||
button.innerText = "Copied!";
|
||||
setTimeout(() => (button.innerText = "Copy"), 1500);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
156
output/assets/style.css
Normal file
156
output/assets/style.css
Normal file
@@ -0,0 +1,156 @@
|
||||
:root {
|
||||
--bg: #ffffff;
|
||||
--fg: #000000;
|
||||
--link: #1a0dab;
|
||||
--heading: #004c99;
|
||||
--code-bg: #f0f0f0;
|
||||
}
|
||||
|
||||
|
||||
body {
|
||||
background-color: var(--bg);
|
||||
color: var(--fg);
|
||||
transition: background-color 0.3s, color 0.3s;
|
||||
}
|
||||
|
||||
/* Headings (override org.css if needed) */
|
||||
h1, h2, h3 {
|
||||
color: var(--heading);
|
||||
}
|
||||
|
||||
/* Links */
|
||||
a {
|
||||
color: var(--link);
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Copy button inside code blocks */
|
||||
.copy-btn {
|
||||
position: absolute;
|
||||
top: 0.4em;
|
||||
right: 0.4em;
|
||||
background-color: var(--code-bg);
|
||||
color: var(--heading);
|
||||
border: 1px solid var(--heading);
|
||||
border-radius: 4px;
|
||||
padding: 0.2em 0.6em;
|
||||
font-size: 0.8rem;
|
||||
cursor: pointer;
|
||||
z-index: 10;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
.copy-btn:hover {
|
||||
background-color: var(--heading);
|
||||
color: var(--code-bg);
|
||||
}
|
||||
|
||||
.banner-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap; /* allow items to wrap on small screens */
|
||||
background-color: var(--banner-bg, #fff);
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.banner-logo {
|
||||
height: 80px;
|
||||
width: auto;
|
||||
margin-right: 1.5rem;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* Keep nav horizontal on desktop */
|
||||
nav {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
/* Mobile styles */
|
||||
@media (max-width: 600px) {
|
||||
.banner-header {
|
||||
flex-direction: column; /* stack logo + nav */
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.banner-logo {
|
||||
margin: 0 0 0.5rem 0; /* space under logo */
|
||||
}
|
||||
|
||||
nav {
|
||||
flex-wrap: wrap; /* allow nav links to wrap */
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 1rem; /* slightly smaller text */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Footer styling */
|
||||
footer {
|
||||
color: var(--fg);
|
||||
padding: 1rem;
|
||||
margin-top: 2rem;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
font-style: italic;
|
||||
|
||||
}
|
||||
#updated {
|
||||
font-size: 0.8rem;
|
||||
color: var(--fg);
|
||||
margin-bottom: 1rem;
|
||||
font-style: italic;
|
||||
}
|
||||
pre.src::before {
|
||||
content: none !important;
|
||||
}
|
||||
/* Container: <pre> */
|
||||
pre.src {
|
||||
padding: 1.5em 1em 1em 1em; /* top padding leaves space for button */
|
||||
font-family: "Fira Mono", "Courier New", monospace;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.4;
|
||||
overflow-x: auto;
|
||||
white-space: pre-wrap; /* wrap long lines */
|
||||
|
||||
}
|
||||
|
||||
|
||||
.post-date {
|
||||
color: pink;
|
||||
font-size: 0.9em;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
|
||||
.post-tag {
|
||||
display: inline-block;
|
||||
background-color: #f0f0f0;
|
||||
color: #444;
|
||||
border-radius: 5px;
|
||||
padding: 2px 6px;
|
||||
margin-left: 6px;
|
||||
font-size: 0.8em;
|
||||
float: right;
|
||||
}
|
||||
|
||||
li::after {
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user