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
# 50k+ Ruby tests autogenerated './tests/JSPHP-suite.json' is still part of results | |
grunt clean && rm -rf vendor/ node_modules/ package-lock.json composer.lock && find . \( -name '*.*' ! -iname '.*' \) -not -path './i18n/*' -not -path './.git/*' | xargs wc -l |
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
@media only screen | |
and (-webkit-min-device-pixel-ratio: 1.3), | |
only screen | |
and (min--moz-device-pixel-ratio: 1.3), | |
only screen | |
and (-o-min-device-pixel-ratio: 2.6/2), /* returns 1.3, see also Dev.Opera */ | |
only screen | |
and (min-device-pixel-ratio: 1.3), | |
only screen | |
and (min-resolution: 160dpi), /* alternatively 124.8dpi, see http://www.brettjankord.com/2012/11/28/cross-browser-retinahigh-resolution-media-queries/ */ |
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
/* ... Bookmark this page ... */ | |
var $pageFav = $('.page-favor'), // li.page-favor | |
$pageFavLink = $pageFav.find('a'); | |
if ( window.sidebar || 'AddFavorite' in window.external || window.opera ) { | |
$pageFav.show(); | |
} | |
/* Source: http://calisza.wordpress.com/2008/11/03/javascript-jquery-bookmark-script/ */ | |
// add a 'rel' attrib if Op 7+ && Fx >= 23 | |
if ( window.opera || window.sidebar ) { |
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
$languages = pll_the_languages( array( 'raw' => 1 ) ); | |
$current = array_filter( $languages, create_function( '$v', 'return (bool) $v["current_lang"];' ) ); | |
$current = reset( $current ); | |
printf( '<ul id="nav--lang__menu" class="nav--lang__menu"> | |
<li> | |
<a href="#" class="lang--on lang-item--%s">%s</a> | |
<ul class="lang__sel">', | |
$current['slug'], $current['name'] ); |
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
<IfModule mod_headers.c> | |
<FilesMatch "\.(png|jpg|jpeg|gif)$"> | |
Header append Cache-Control "public, no-transform" | |
</FilesMatch> | |
</IfModule> |
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
# HTTP(S) Stuff | |
# Redirect all users except IE 5-8 & Android < 4 to HTTPS | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteCond %{HTTP_USER_AGENT} !MSIE\ [5-8] | |
RewriteCond %{HTTP_USER_AGENT} !Android.*(Mobile)?\ [0-3] | |
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L] |
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
ul { | |
list-style: none; | |
position: relative; | |
margin: 0; | |
padding: 0; | |
} | |
li { | |
padding-left: 1.5em; | |
} |
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
/* Don't show shadows when selecting text */ | |
::-moz-selection { text-shadow: none; } | |
::selection { text-shadow: none; } |
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
body { | |
font: 100%/1.25 sans-serif; | |
color: #636363; | |
padding: 1em; | |
} | |
table { | |
width: 100%; | |
margin: 0; | |
border-top: 1px solid #e4e2e8; |
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
/* Add the desktop-hidden class to any HTML tag that contains mobile specific content */ | |
.desktop-hidden { | |
*display:none !important; /* IE6-7 */ | |
} | |
@media \0 screen { | |
.desktop-hidden { | |
display:none !important; /* IE8 only */ |
NewerOlder