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
// https://github.com/nex3/sass/issues/642 | |
@function map-get ($map, $key) { | |
@each $element in $map { | |
@if index($element, $key) == 1 { | |
@return nth($element, 2); | |
} | |
} | |
@warn '\"#{ $key }\" is not found in the list.'; | |
@return ''; |
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
block vars | |
- var bodyClass = '' | |
- var bodyId = '' | |
!!! | |
// if lt IE 7 | |
| <html class="no-js lt-ie9 lt-ie8 lt-ie7"> | |
// if IE 7 | |
| <html class="no-js lt-ie9 lt-ie8"> | |
// if IE 8 |
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 ($) { | |
$.fn.fullscreenImage = function () { | |
this.each(function () { | |
var $image = $(this), | |
imageAspectRatio = $image.width() / $image.height(), | |
$screen = $image.offsetParent(); | |
$(window).on('resize', resizeImage).trigger('resize'); | |
function resizeImage () { | |
var screenWidth = $screen.width(), |
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
$(document).on('mouseenter', function (event) { /* ... */ }); | |
$(document).on('mouseenter focus', function (event) { /* ... */ }); | |
$(document).on('mouseenter', '.foo', function (event) { /* ... */ }); | |
$(document).on('mouseenter', '.foo, .bar', function (event) { /* ... */ }); | |
$(document).on({ | |
mouseenter: function (event) { /* ... */ }, |
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
# Sass | |
.sass-cache/ | |
# Sublime Text | |
*.sublime-project | |
*.sublime-workspace | |
# Mac | |
.DS_Store |
- CSS Animations (W3C Working Draft)
- Using CSS animations - CSS | MDN
- CSS アニメーションの基礎 | Unformed Building
- CSS Transitions (W3C Working Draft)
- Using CSS transitions - CSS | MDN
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
// Returns a list of vendor prefixes for the CSS feature | |
// @function x-vendor-prefixes | |
// @param {String} $key CSS property, value or at-rule | |
// @return {List} list of vendor prefixes | |
// @updated 2013-02-19 | |
@function x-vendor-prefixes ($key) { | |
$features: | |
// Animations | |
// http://www.w3.org/TR/css3-animations/ |
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
// http://terkel.jp/archives/2013/02/nir-for-retina-images/ | |
// NIR for Retina image | |
@mixin retina-nir ( | |
$x: 0, | |
$y: 0, | |
$width: null, | |
$height: null, | |
$path: "/img/sprites", | |
$mod: "@2x", |