This file contains hidden or 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
RewriteCond %{THE_REQUEST} ^.*/index\.php | |
RewriteRule ^index.php(.*)$ /$1 [R=301,L] |
This file contains hidden or 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 | |
function themekit_preprocess_paragraph(&$variables) { | |
$paragraph = $variables['paragraph']; | |
$bundle = $variables['paragraph']->bundle(); | |
switch ($bundle) { | |
case 'simple_small_cta': | |
$variables['image_inline_style'] = themekit_get_entity_image_inline_style($paragraph, 'field_image', 'small_cta'); | |
break; | |
case 'simple_large_cta': |
This file contains hidden or 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
// | |
// _config.scss | |
// | |
$tabs-config: ( | |
wrap: ( | |
background: #fafafa, | |
border: #efefef | |
), | |
link: ( | |
color: #251923, |
This file contains hidden or 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
// z-index organization | |
// | |
// References: | |
// - https://css-tricks.com/handling-z-index/ | |
// - http://www.sitepoint.com/using-sass-maps/ | |
// _config.scss | |
$z-layers: ( | |
bottomless-pit: -9999, |
This file contains hidden or 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
$(function() { | |
$(window).resize(function() { | |
// Do stuff... | |
}).trigger('resize'); | |
}); | |
This file contains hidden or 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
_sql-slurp () { | |
printf "This will overwrite the $2 database with the $1 database.\n" | |
printf "\n\t\t*** $1 -> $2 ***\n\n" | |
sleep 3s | |
read -p "Are you sure [Y/n]? " -n 1 -r | |
if [[ $REPLY =~ ^[Yy]$ ]]; then | |
drush $2 sql-drop -y | |
printf "\n" | |
drush $1 sql-dump | pv -br | drush $2 sql-cli -A | |
fi |
This file contains hidden or 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
$hover: '&:hover, &:active, &:focus'; | |
$headings: 'h1, h2, h3, h4, h5, h6'; | |
$headers: $headings; | |
// | |
// Usage | |
// | |
#{$headings} { | |
color: #222; |