Skip to content

Instantly share code, notes, and snippets.

View SallyMcGrath's full-sized avatar

Sally McGrath SallyMcGrath

View GitHub Profile
{{/* This uses graphQL instead of REST
It returns a map of "blocks" so issues can be passed into the blocks loop instead of needing its own system
If we decide we like this better, we should probably systematise this and store
the graphql queries in their own dir
https://docs.github.com/en/graphql/reference/objects#issue
This exact matches on labels unlike the current system which partial matches inside Hugo
We did that because PD kept making partially matching labels, but maybe we should be stricter
TODO But it means someone has to go round and clean up
*/}}
{{ $variables := dict
@SallyMcGrath
SallyMcGrath / describing-hierarchy
Created December 30, 2021 02:15
setting up relationships and hierarchies
:root {
--theme-type-display: "Roboto Mono", Monaco, system-ui, serif;
--theme-type-copy: var(--theme-type-display);
--theme-type-size: 1rem;
--theme-type-scale: 0.75;
}
// headings
//set up your hierarchy with an iterable SASS list - it's a bit like an array in JavaScript
//https://sass-lang.com/documentation/modules/list
@SallyMcGrath
SallyMcGrath / output.css
Last active April 2, 2021 09:34
Generated by SassMeister.com.
.card.red {
background: red;
}
.card.red.mix--blue {
background: #0d00f2;
}
.card.blue {
background: blue;
}
.card.blue.mix--red {