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
$sprites: sprite-map("sprites/*.png"); | |
$sprites-retina: sprite-map("sprites-retina/*.png"); | |
@mixin sprite-background($name) { | |
background-image: sprite-url($sprites); | |
background-position: sprite-position($sprites, $name); | |
background-repeat: no-repeat; | |
display: block; | |
height: image-height(sprite-file($sprites, $name)); | |
width: image-width(sprite-file($sprites, $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
// Generated URL | |
%filltext:name=sitename:default=sitenamehere:width=15%.%snippet:,wifiip%.xip.io | |
// Wifiip Script Called | |
#!/bin/sh | |
/bin/echo -n `ipconfig getifaddr en1` |
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
<h3>The Animated Icon on Hover</h3> | |
<p>My animating skills suck, but it works!</p> | |
<a href="#" class="category"> | |
<span class="icon"></span> | |
Category Link | |
</a> | |
<h3>The Image Sprite</h3> | |
<p>Each "frame" is 60px by 60px to fit nicely in the icon span.</p> | |
<div class="red"> |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Font Icon Added with jQuery</title> | |
<style> | |
[data-icon] i { | |
font: normal 1.65em 'ModernPictogramsNormal'; | |
padding-right: 5px; |
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
// Note: This file is dependent on Sass and Compass. | |
// Sass = http://sass-lang.com | |
// Compass = http://compass-style.org | |
@import "compass/css3" | |
// `Form Element Reset. | |
//---------------------------------------------------------------------------------------------------- | |
input[type="search"]::-webkit-search-decoration |
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
<abbr title="Customer Relationship Management">CRM</abbr> | |
<abbr title="Content Management System">CMS</abbr> | |
<abbr title="Structured Query Language">SQL</abbr> | |
<abbr title="International Organization for Standards">ISO</abbr> | |
<abbr title="PHP: Hypertext Preprocessor">PHP</abbr> | |
<abbr title="HyperText Markup Language">HTML</abbr> | |
<abbr title="eXtensible HyperText Markup Language">XHTML</abbr> | |
<abbr title="Cascading Style Sheets">CSS</abbr> | |
<abbr title="JavaScript">JS</abbr> | |
<abbr title="European Computer Manufacturers Association Script">ECMAScript</abbr> |
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 retina-image($filename, $image-width, $image-height, $extension: ".png") { | |
background-image: url($filename + $extension); | |
height: $image-height; | |
width: $image-width; | |
@media (min--moz-device-pixel-ratio: 1.3), | |
(-o-min-device-pixel-ratio: 2.6/2), | |
(-webkit-min-device-pixel-ratio: 1.3), | |
(min-device-pixel-ratio: 1.3), | |
(min-resolution: 1.3dppx) { |
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
// Normalize & Layout | |
article, aside, details, figcaption, figure, footer, | |
header, hgroup, nav, section, summary { display: block; } | |
audio, canvas, video { | |
display: inline-block; | |
*display: inline; | |
*zoom: 1; | |
} | |
audio:not([controls]) { display: none; } | |
[hidden] { display: 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
$(function(){ | |
$('.block-grid').each(function(index){ | |
var $this = $(this), | |
blocks = $.makeArray($this.find('.block')).sort(sortByHeight)[0]; | |
$this.find('.block').height($(blocks).height()); | |
}); | |
}); | |
function sortByHeight(a,b) { | |
return ($(b).height() - $(a).height()); | |
} |
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
var = countryCode = $('html').attr('lang'), | |
countryNum; | |
switch(countryCode) { | |
// Mexico | |
case 'es_MX': | |
countryNum = '52'; | |
break; |
OlderNewer