Skip to content

Instantly share code, notes, and snippets.

@RussellBishop
RussellBishop / airtable-count-unique-array-rollup
Last active Nov 1, 2021
airtable-count-unique-array-rollup
View 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),
View container-units-expose-container-lines.scss
/*
<div class="_container-lines"><div></div></div>
*/
._container-lines {
position: fixed;
top: 0;
bottom: 0;
left: 50%;
transform: translateX(-50%);
@RussellBishop
RussellBishop / container-units-css-fuctions.scss
Last active Dec 30, 2019
Container Units CSS - SCSS Functions
View container-units-css-fuctions.scss
@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));
View container-units-css.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