Skip to content

Instantly share code, notes, and snippets.

View Lego2012's full-sized avatar

Leo Merkel Lego2012

View GitHub Profile

Kevin Powell: A better image reset for your CSS

img {
   font-style: italic;

   background-repeat: no-repeat;
   background-size: cover;

 shape-margin: 1rem;
h1 {
   max-inline-size: var(--size-header-3);
   margin-inline: auto;
}
{
"extends": "astro/tsconfigs/base",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@components/*": ["src/components/*"],
"@data/*": ["src/data/*"],
"@images/*": ["src/images/*"],
"@layouts/*": ["src/layouts/*"],
/*
* Kevin Powell
* https://youtu.be/cCAtD_BAHNw
*/
*, *::before, *::after {
box-sizing: border-box;
}
* {
/* Antiflesh */
#FAFAFA
/* OFF White */
#FBFBFB
/* Alice Blue */
#F0F8FF
/* Ivory */

CD into the parent folder, then

find 2023 -type d | xargs -I{} mkdir -p 2024/{}
<!--Set active class on nav when the page is active -->
<script>
const nav = document.querySelector(".navbar");
const navLinks = nav.querySelectorAll("a");
const currentURL = window.location.href;
navLinks.forEach((link) => {
if (link.href === currentURL) {
link.classList.add("active");
}
});
@Lego2012
Lego2012 / navbar.astro
Created November 30, 2023 17:42 — forked from leabs/navbar.astro
Astro - Set active class on Navbar component.
<!--Set active class on nav when the page is active -->
<script>
const nav = document.querySelector(".navbar");
const navLinks = nav.querySelectorAll("a");
const currentURL = window.location.href;
navLinks.forEach((link) => {
if (link.href === currentURL) {
link.classList.add("active");
}
});

Which Filters

Die Dateien blacklist.filter, filter und filter-v4150 in $home/Library/Application Support/SynologyDrive/SynologyDrive.app/Contents/Resources/conf bekommen diesen Inhalt:

[Version]

major = 1

minor = 1