Skip to content

Instantly share code, notes, and snippets.

View benedfit's full-sized avatar

Ben Edwards benedfit

View GitHub Profile
@benedfit
benedfit / _critical.scss
Last active November 25, 2021 12:36
Critical CSS using Sass and Jekyll
$critical-css-only:true !default;
@mixin critical($critical-only:true){
@if (($critical-css-only and $critical-only) or (not $critical-css-only and not $critical-only)){
@content;
}
}
@benedfit
benedfit / Footer.cshtml
Last active October 13, 2015 17:38
Dynamically loading Partial View based on media query in Umbraco and access page properties