Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
// default values for optimage tag if no values are set | |
'optimagetag' => [ | |
'width' => '1200', | |
'height' => null, | |
'quality' => '55' | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// different maps for different configurations... | |
$susy: ( | |
columns: 4, | |
); | |
$medium: ( | |
columns: 8, | |
); | |
$large: ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
function remember(...args){ | |
const [key, value] = args; | |
if(args.length === 1){ // recall | |
return new Promise(resolve => { | |
setTimeout(() => { | |
const val = localStorage.getItem(key); | |
These rules are adopted from the AngularJS commit conventions.