Skip to content

Instantly share code, notes, and snippets.

@fenbox
fenbox / gulpfile.js
Created December 29, 2013 11:48
sample gulp config: gulpfile.js
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var sass = require('gulp-sass');
var lr = require('tiny-lr'),
refresh = require('gulp-livereload'),
server = lr();
@fenbox
fenbox / gist:3207154
Created July 30, 2012 14:10
multiple box shadows in Sass
@mixin box-shadow ($string) {
-webkit-box-shadow: $string;
-moz-box-shadow: $string;
box-shadow: $string;
}
.stack {
@include box-shadow((
1px 1px 0 rgba(0, 0, 0, 0.100),
3px 3px 0 rgba(255, 255, 255, 1.0),
@fenbox
fenbox / post-layout.css
Created October 28, 2011 01:18
图文混排,文字与图片右边缘左对齐
/*
<div class="item">
<div class="pic">...</div>
<div class="content">...</div>
</div>
================================
######## -----------------
######## -----------------