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 | |
/** | |
* Improves the WordPress caption shortcode with HTML5 figure & figcaption, microdata & wai-aria attributes | |
* | |
* Author: @joostkiens | |
* Licensed under the MIT license | |
* | |
* @param string $val Empty | |
* @param array $attr Shortcode attributes | |
* @param string $content Shortcode 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
/** | |
* Author: @joostkiens | |
* Licensed under the MIT license | |
*/ | |
@mixin hr-image($lr-image, $hr-image) { | |
background-image: url($lr-image); | |
@media print, | |
(-webkit-min-device-pixel-ratio: 1.25), | |
(-o-min-device-pixel-ratio: 5/4), | |
(min-resolution: 120dpi) { |
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
/** | |
* Author: @joostkiens | |
* Licensed under the MIT license | |
*/ | |
@mixin hr-image($image, $width, $height) { | |
@media print, | |
(-webkit-min-device-pixel-ratio: 1.25), | |
(-o-min-device-pixel-ratio: 5/4), | |
(min-resolution: 120dpi) { | |
background-image: url($image); |
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
<!-- | |
/** | |
* Author: @joostkiens | |
* Licensed under the MIT license | |
*/ | |
--> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> |
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
/** | |
* Author: @joostkiens | |
* Licensed under the MIT license | |
*/ | |
body { | |
background: | |
linear-gradient(-90deg, rgba(0,0,0,.05) 1px, transparent 1px), | |
linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px), | |
linear-gradient(-90deg, rgba(0, 0, 0, .04) 1px, transparent 1px), | |
linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px), |
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 class="curl"></div> | |
<h1>CSS Page Curl</h1> | |
<p>hover over page curl to resize</p> |
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
define(function () { | |
'use strict'; | |
function getSidecodeByLicensePlate (licensePlate) { | |
var sidecodes = []; | |
var i = 0; | |
licensePlate = licensePlate.replace(/-/g, '').toUpperCase(); | |
// See http://nl.wikipedia.org/wiki/Nederlands_kenteken#Alle_sidecodes |
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
# see http://editorconfig.org/ for usage | |
# and editor support | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 |
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
define(function () { | |
'use strict'; | |
function removeItem(itemKey) { | |
localStorage.removeItem(itemKey); | |
} | |
function getItem(itemKey) { | |
return JSON.parse(localStorage.getItem(itemKey)); |
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
/** | |
* Named media queries based on Bootstrap variables | |
* Usage: | |
* .module { | |
* @media @lg { … } | |
* @media @md, @sm { … } | |
* @media @md-or-less { … } | |
* } | |
* | |
* @lg-or-more (=> 1200) - - - |
OlderNewer