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
// Extends all action states :hover, :active, :focus. | |
@mixin superhover { | |
&:hover, | |
&:active, | |
&:focus { | |
@content; | |
} | |
} |
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
<!--[if lte IE 9]> | |
<div class="browserupgrade__overlay"> | |
<div class="browserupgrade"> | |
<p class="browserupgrade__sory">Sorry, your browser is too old</p> | |
<p class="browserupgrade__text">It seems that you are using <strong>outdated and insecure</strong> version of | |
Internet Explorer. This version of the browser does not support many advanced technologies, because of which | |
many pages are displayed incorrectly.<br>Please, <a href="http://www.whatbrowser.org/intl/en/" target="_blank"> | |
upgrade your browser</a>, <br> to get a better impression of the Network.</p> | |
<a href="http://www.whatbrowser.org/intl/en/" class="browserupgrade__btn" target="_blank">Upgrade browser</a> | |
</div> |
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
// | |
// Computes a top-shadow for a card effect. | |
// @param {Number} $depth - depth level | |
// @return {List} | |
// | |
@function top-shadow($depth) { | |
$primary-offset: nth(1.5 3 10 14 19, $depth) * 1px; | |
$blur: nth(1.5 3 10 14 19, $depth) * 4px; | |
$color: rgba(black, nth(.12 .16 .19 .25 .30, $depth)); |
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 | |
// WordPress stores the site URL in the database by default (which I have never | |
// understood), and it's a pain to have to type out the UPDATE SQL or search in | |
// phpMyAdmin to change it. This is a simple way to put the URL into | |
// wp-config.php instead. | |
// Note that you will still need to update any URLs that appear in the content, | |
// especially when you copy a database from a development site to production: | |
// https://gist.github.com/davejamesmiller/a8733a3fbb17e0ff0fb5 |
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
{ | |
// With this option enabled, all Emmet's CSS snippets | |
// will be available in standard auto-complete popup | |
"show_css_completions": true, | |
// If set to `true`, Emmet will automatically insert final tabstop | |
// at the end of expanded abbreviation | |
"insert_final_tabstop": false, | |
/////////////////////////////// |
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
<div id="page" class="site"> | |
<header id="masthead" class="site-header" role="banner"></header> | |
</div> |
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 | |
// Make dump of database via php | |
exec('mysqldump --user=__user_name__ --password=__user_pass__ --host=__host(localhost)__ __db_name__ > dump.sql'); | |
print_r('Dump saved'); |
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
$(function() { | |
$('a[href*="#"]:not([href="#"])').click(function () { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |
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
@mixin valid-quantity($quantity) { | |
@if type-of($quantity) != 'number' { | |
@error 'The "quantity" parameter must be a number!'; | |
} | |
@if not(unitless($quantity)) { | |
@error 'The "quantity" parameter must not have a unit!'; | |
} | |
@if $quantity < 0 { | |
@error 'The "quantity" parameter must be at least 0!'; | |
} |
OlderNewer