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
# Fail2Ban configuration file | |
# | |
# Author: Cyril Jaquier | |
# | |
# $Revision$ | |
# | |
[INCLUDES] | |
# Read common prefixes. If any customizations available -- read them from |
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
ul.primary { | |
border-bottom: 0; | |
white-space: normal; | |
line-height: 1.6em; | |
padding: 0; | |
margin: 0 | |
} | |
ul.primary li { | |
display: list-item; | |
float: left; |
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
server { | |
listen 80; | |
server_name mydomain.com; | |
rewrite ^/(.*) http://mydomain.com permanent; | |
} | |
server { | |
listen 80; | |
server_name www.mydomain.com; | |
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 ($) { | |
// Don't use Overlay module for the admin menu (toolbar) links | |
Drupal.admin.behaviors.overlay_exclude = function (context, settings, $adminMenu) { | |
$adminMenu.not('.overlay-exclude-processed') | |
.addClass('overlay-exclude-processed') | |
.find('a').addClass('overlay-exclude'); | |
} | |
})(jQuery); |
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 'breakpoint'; | |
$mobile: max-width 959px; | |
$desktop: min-width 960px; | |
@mixin break-mobile { | |
@include breakpoint($mobile) { | |
@content | |
} | |
} | |
@mixin break-desktop { | |
@include breakpoint($desktop) { |
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
/** | |
* Delete fields no longer used by this module. | |
*/ | |
function hook_update_N() { | |
$fields_to_delete = array( | |
'field_cost', | |
'field_construction_budget', | |
'field_construction_cost', | |
'field_total_budget', | |
); |
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
/* From: http://css-tricks.com/centering-in-the-unknown/ */ | |
/* This parent can be any width and height */ | |
.block { | |
text-align: center; | |
} | |
/* The ghost, nudged to maintain perfect centering */ | |
.block:before { | |
content: ''; |
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
/** | |
* Pantheon HTTPS and www redirects. | |
*/ | |
if (isset($_SERVER['PANTHEON_ENVIRONMENT']) && php_sapi_name() !== 'cli') { | |
$domain = $_SERVER['HTTP_HOST']; | |
$www_redirect = false; | |
if (isset($_ENV['PANTHEON_ENVIRONMENT']) && $_ENV['PANTHEON_ENVIRONMENT'] === 'live') { | |
if (count(explode('.', $domain)) < 3 && stripos($domain, 'www.') === false) { | |
$domain = 'www.' . $domain; | |
$www_redirect = true; |
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
<script type="text/javascript"> | |
var root = document.documentElement; | |
if (root.classList) { | |
root.classList.add('js'); | |
root.classList.remove('no-js'); | |
} | |
else { | |
root.className += ' js'; | |
var regex = new RegExp('(\\s|^)' + 'no-js' + '(\\s|$)'); | |
el.className = root.className.replace(regex, ' '); |
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
/** | |
* Simple utility function to add special classes, prefixed with 'style-test' into | |
* the document. | |
* | |
* Example: | |
* ?style-test=test1+test2 | |
* Adds classes: style-test-test1 style-test-test2 | |
* | |
*/ | |
(function(Document, window) { |
OlderNewer