Skip to content

Instantly share code, notes, and snippets.

View malarkey's full-sized avatar

Andy Clarke malarkey

View GitHub Profile
@malarkey
malarkey / gist:f601f093983392629f4af981899a22a1
Created January 16, 2025 21:57
5 essential CSS rules to add to any Squarespace website
/*
5 essential CSS rules to add to any Squarespace website
-------------------------------------------------------
Author: Andy Clarke
Studio: https://stuffandnonsense.co.uk
Template store: https://stuffandnonsense.store
*/
html:focus-within {
scroll-behavior: smooth; }
@malarkey
malarkey / alt-styles.css
Last active October 28, 2023 19:42
A simpler approach to CSS styling using just one default style plus one alternative.
/* CSS Custom Properties */
:root {
--font-family-default: 'Merriweather', serif;
--font-family-alt: 'Merriweather Sans', sans-serif;
--font-color-default: #b1a18;
--font-color-alt: #f5f5f3;
--font-link-default: #a62339;
@malarkey
malarkey / custom-properties-boilerplate.css
Created March 14, 2019 20:02
CSS Custom Properties boilerplate
/* CSS Custom Properties */
:root {
--font-family: 'Georgia', serif;
--font-family-alt: 'Helvetica', Arial, sans-serif;
--font-weight: 400;
--font-weight-bold: 700;
--font-weight-black: 900;
/* 3:4 perfect fourth scale */