Skip to content

Instantly share code, notes, and snippets.

// create the new budget items (↖️ connect to new estimate) ✅
// create the new budget item specialism totals (↖️ connect to new budget items ) ✅
// create the new role hours (↖️ connect to new budget items AND new budget item specialism totals) ✅
// create the new estimate specialism totals (↖️ connect to new estimate) ✅
// Start time
// let startTime = Date.now();
let inputConfig = input.config();
@RussellBishop
RussellBishop / container-units-css.css
Last active September 15, 2023 11:31
Container Units CSS
:root {
// Grid proportions
--grid-width: 960;
--grid-column-width: 60;
--grid-columns: 12;
// Grid logic
--grid-gutters: calc(var(--grid-columns) - 1);
// Grid proportion logic
@RussellBishop
RussellBishop / airtable-count-unique-array-rollup
Last active November 1, 2021 20:10
airtable-count-unique-array-rollup
IF((values),
LEN(
IF(
FIND(",", ARRAYJOIN(ARRAYUNIQUE(values), ",")&"") = 1,
SUBSTITUTE(ARRAYJOIN(ARRAYUNIQUE(values), ",")&"", ",", "", 1),
IF(
FIND(",", ARRAYJOIN(ARRAYUNIQUE(values), ",")&"", LEN(ARRAYJOIN(ARRAYUNIQUE(values), ",")&"") - 1),
@RussellBishop
RussellBishop / container-units-css-fuctions.scss
Last active December 30, 2019 20:46
Container Units CSS - SCSS Functions
@function columns($i) {
@return calc(#{$i} * var(--column-unit));
}
@function gutters($i) {
@return calc(#{$i} * var(--gutter-unit));
}
@function column-spans($i) {
@return calc(#{$i} * var(--column-and-gutter-unit) - var(--gutter-unit));
/*
<div class="_container-lines"><div></div></div>
*/
._container-lines {
position: fixed;
top: 0;
bottom: 0;
left: 50%;
transform: translateX(-50%);