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
/** | |
* Make Netlify deploy preview links on GitHub stand out. | |
*/ | |
@-moz-document domain("github.com") { | |
/* Turn Netlify links into buttons using GitHub design tokens. */ | |
.comment-body a[href$="netlify.app"] { | |
position: relative; | |
display: block; | |
margin-block: 1em; | |
padding: 1em; |
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
# Import DB using Drush | |
$ drush sql-cli < db.sql | |
$ drush cc all |
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
$conf['cache'] = 0; // Page cache | |
$conf['page_cache_maximum_age'] = 0; // External cache TTL | |
$conf['preprocess_css'] = FALSE; // Optimize css | |
$conf['preprocess_js'] = FALSE; // Optimize javascript | |
$conf['views_skip_cache'] = TRUE; // Views caching |
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
# Redirect to www | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\. | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] | |
# Add correct content-type for fonts | |
AddType application/vnd.ms-fontobject .eot | |
AddType application/x-font-ttf .ttf | |
AddType application/x-font-opentype .otf | |
AddType application/x-font-woff .woff |
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
/** | |
* @file insert Non-Breaking SPace for CKEditor | |
* Copyright (C) 2014 Alfonso Martínez de Lizarrondo | |
* Create a command and enable the Ctrl+Space shortcut to insert a non-breaking space in CKEditor | |
* | |
*/ | |
CKEDITOR.plugins.add( 'nbsp', | |
{ | |
init : function( editor ) |
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
# Redirect Apple touch icons. | |
RedirectMatch 301 ^/apple-touch-icon(.*)?\.png /images/icon/touch-icon.png |
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
// Fix old LESS syntax in Bootstrap 2. | |
#grid { | |
.core { | |
.span (@columns) { | |
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)); | |
} | |
} | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<security> | |
<authorization> | |
<remove users="*" roles="" verbs="" /> | |
<add accessType="Allow" roles="Administrators" /> | |
</authorization> | |
</security> | |
</system.webServer> |
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
'use strict'; | |
module.exports = { | |
dev: { | |
bsFiles: { | |
src : [ | |
'<%= paths.dist %>/css/*.css', | |
'<%= paths.dist %>/js/*.js', | |
'<%= paths.dist %>/images/**/*.svg', |
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
/* | |
* Replaces SVG images in img elements with PNG alternative | |
* | |
* The PNG file must have the same URL as the SVG file, up to the extension. | |
*/ | |
$(function () { | |
'use strict'; | |
function supportsSvg() { |
NewerOlder