http://stuffandnonsense.co.uk/projects/protection-racket
If you use this GDPR privacy policy template, consider saying thank you with a small donation. https://paypal.me/malarkey/20gbp
Last updated: []
| {% macro truncate(text, limit, append) %} | |
| {# settings #} | |
| {% set suffix = append|default('...') %} | |
| {% set punctuation = ['.',',','-',':',';'] %} | |
| {# logic #} | |
| {% set array = text|split(' ') %} | |
| {% set arrayTruncated = array|slice(0, limit) %} | |
| {% set string = arrayTruncated|join(' ') %} | |
| {% if limit and array|length > limit %} | |
| {% for mark in punctuation %} |
| .type.storage,.type.storage.declaration, .storage.class.modifier { | |
| font-family: 'Gloria Hallelujah'; | |
| font-size: 1.7em; | |
| } | |
| .type.storage.arrow.function { | |
| font-family: 'Fira Code' | |
| } | |
| .decorator.name, .decorator.punctuation:not(.block), .import.keyword { |
http://stuffandnonsense.co.uk/projects/protection-racket
If you use this GDPR privacy policy template, consider saying thank you with a small donation. https://paypal.me/malarkey/20gbp
Last updated: []
| {# | |
| // lazyLoaded Image/bgImages, optimized with Imager and Focuspoint | |
| --------------------------------------------------------------------------- | |
| https://github.com/aelvan/Imager-Craft | |
| https://github.com/smcyr/Craft-FocusPoint | |
| for the bgImage intrinsic ratio classname creation check: | |
| https://github.com/inuitcss/inuitcss/blob/develop/objects/_objects.ratio.scss (modified in this revision to use a utility class prefix, , e.g; .u_ratio. @nternetinspired) | |
| https://github.com/constancecchen/object-fit-polyfill |
I wrote a quick script for those that provision servers often enough.
To get this to work take the following steps
rootwget https://gist.githubusercontent.com/nfourtythree/90fb8ef5eeafdf478f522720314c60bd/raw/disable-strict-mode.shchmod +x disable-strict-mode.sh./disable-strict-mode.sh| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |