Skip to content

Instantly share code, notes, and snippets.

View raphaelgoetter's full-sized avatar

Raphael Goetter raphaelgoetter

View GitHub Profile
@raphaelgoetter
raphaelgoetter / jsnav.js
Last active February 4, 2024 11:44
JS nav
(function () {
function toggleNav() {
// Define targets
const button = document.querySelector('.burger-button');
const target = document.querySelector('#navigation');
button.addEventListener('click', () => {
const currentState = target.getAttribute("data-state");
if (!currentState || currentState === "closed") {
@raphaelgoetter
raphaelgoetter / VSCode params
Last active February 4, 2024 11:43
Paramètres pour VSCode
{
"editor.fontFamily": " Hack, 'Fira Code', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.fontSize": 18,
"editor.lineHeight": 2,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"editor.renderWhitespace": "boundary",
"editor.minimap.enabled": false,
@raphaelgoetter
raphaelgoetter / pastel-css-colors.css
Last active April 18, 2021 19:43
Pastel CSS named colors
.pastel-colors {
background: powderblue;
background: pink;
background: darkseagreen;
background: ivory;
background: peachpuff;
background: rosybrown;
background: thistle;
background: lightsteelblue;
background: bisque;