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
{ | |
"sort_order": [ | |
"-webkit-flex-align", | |
"-moz-flex-align", | |
"-ms-flex-align", | |
"-o-flex-align", | |
"flex-align", | |
"overflow", | |
"-ms-overflow-x", | |
"-ms-overflow-y", |
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
// Log min and max info | |
function minMaxGzip(src) { | |
return src ? require('gzip-js').zip(src, {}) : ''; | |
} | |
exports.minMaxInfo = function(min, max) { | |
var gzipSize = String(minMaxGzip(min).length); | |
grunt.log.writeln('Uncompressed size: ' + String(max.length).green + ' bytes.'); | |
grunt.log.writeln('Compressed size: ' + gzipSize.green + ' bytes gzipped (' + String(min.length).green + ' bytes minified).'); | |
}; |
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 class="listview has-line"> | |
<li>foo</li> | |
<li>bar</li> | |
<li>baz</li> <!-- want to cancell this border --> | |
</ul> |
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
// Usage: @include sprites($map-tabs, common, true); | |
@mixin sprites($map, $map-item, $isCommon:false) { | |
@if $isCommon { | |
background-image: sprite-url($map); | |
background-size: round(image-width(sprite-path($map)) / 2) round(image-height(sprite-path($map)) / 2); | |
background-repeat: no-repeat; | |
} @else { | |
$pos-y: round(nth(sprite-position($map, $map-item), 2) / 2); | |
width: round(image-width(sprite-file($map, $map-item)) / 2); | |
height: round(image-height(sprite-file($map, $map-item)) / 2); |
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リクエストを減らす | |
ExpiresまたはCache-Controlヘッダーを追加する | |
DNSルックアップを減らす | |
リダイレクトを避ける | |
重複スクリプトを取り除く | |
Ajaxをキャッシュ可能にする | |
AjaxリクスとはGETを使用する | |
コンポーネントの後読みする | |
コンポーネントの先読みする |
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
@charset "UTF-8"; | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, |
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
//set | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-xxxxxxx-x']); | |
//async | |
(function () { | |
var ga = document.createElement('script'); | |
ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; |
NewerOlder