Skip to content

Instantly share code, notes, and snippets.

View alexmwalker's full-sized avatar

Alex alexmwalker

View GitHub Profile
@alexmwalker
alexmwalker / input.scss
Created August 1, 2023 03:48
Generated by SassMeister.com.
/*! Import Foundry Fonts */
@import url('https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500');
/* ===================== */
:root {
--typescale: 1.1; /* The type scaling factor relative to the <p>. ( h4 > h3 > h2 > h1). This DEFAULT scale is set low for phones. Media Queries scale it up for larger screens */
--typescale-lg: 1.25; /* increase the typescale on larger (non-mobile) screens */
--baselineratio: calc(16/9); /* This is the 'line-height:basefont size' ratio ( i.e 16/9 = 1.777778)*/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexmwalker
alexmwalker / input.scss
Created March 17, 2023 00:24
Generated by SassMeister.com.
$categories: 'essentials', 'cost-of-living', 'bundles', 'high-impact';
@each $category in $categories {
.category-#{$category} {
font-size: 2;
height: 2;
width: 2;
}
@alexmwalker
alexmwalker / device-laptop.css
Last active March 6, 2023 22:35
Temporary Media Query Device labels for your page
/* Large devices (laptops, 64em and up)*/
.device {
background-position: 66.666% top;
}
.device:after {
content: "Laptop";
}
.laptop-only{
@alexmwalker
alexmwalker / stamore-base.css
Last active March 2, 2023 22:10
Stanmore base
/*! Import Foundry Fonts */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Roboto:ital,wght@0,100;0,300;0,400;1,100;1,300;1,400&display=swap");
/* ===================== */
:root {
--typescale: 1.11;
/* The type scaling factor relative to the <p>. ( h4 > h3 > h2 > h1). This DEFAULT scale is set low for phones. Media Queries scale it up for larger screens */
--typescale-lg: 1.2;
/* Increase the typescale on larger (non-mobile) screens */
--baselineratio: calc(
16 / 10
@alexmwalker
alexmwalker / template.svg
Created January 27, 2023 04:42
Hero image template guide
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexmwalker
alexmwalker / root.css
Created January 4, 2023 04:12
Most basic :root CSS vars
:root {
--typescale: 1.15;
--typescale-lg: 1.25;
--baselineratio: calc(22 / 16);
--basegrid: 22px;
--basegrid-tablet: 28px;
--basegrid-laptop: 32px;
--basegrid-wide: 36px;
--baseline: calc(var(--baselineratio) * 1rem);
--basefont: calc(var(--basegrid) / var(--baselineratio));
@alexmwalker
alexmwalker / index.html
Last active November 21, 2022 06:45
Simple JSON viewer
<h1>Loading latest data from Raisely</h1>
<table class="ladder">
<thead><tr><td> </td><td>Name: </td><td>Total</td></tr></thead>
<tbody id = "stage">
<!-- The Raisely JSON data gets injected in here -->
</tbody>
</table>
@alexmwalker
alexmwalker / localhost.css
Created October 26, 2022 23:50
A useful overlay Userstyle for adding to your localhost (sometimes the live admin and local are easy to mix up). On the live admin I uncomment the animation and make it fluoro green.
.page-template-default,
body #wrapper {
position: relative;
}
body #wrapper:before,
body #wrapper:after {
display: block;
position: fixed;
content: '';
@alexmwalker
alexmwalker / light-animated.svg
Last active October 13, 2022 01:08
Christmas light animation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.