Skip to content

Instantly share code, notes, and snippets.

View kejun's full-sized avatar
💭
I may be slow to respond.

kejun kejun

💭
I may be slow to respond.
View GitHub Profile
@kejun
kejun / dabblet.css
Created December 21, 2012 10:45
Untitled
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating label {
display: inline-block;
width: 24px;
function deferred() {
var callbacks = {
done: [],
fail: []
};
var promise = {
done: function(callback) {
callbacks.done.push(callback);
return promise;
@kejun
kejun / gist:5045209
Created February 27, 2013 04:57
定制zencoding
let g:user_zen_settings = {
\ 'lang': 'zh-CN',
\ 'html': {
\ 'snippets': {
\ 'html:mobile': "<!DOCTYPE html>\n"
\ ."<html lang=\"${lang}\">\n"
\ ."<head>\n"
\ ."\t<meta charset=\"${charset}\">\n"
\ ."\t<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no\">\n"
\ ."\t<meta name=\"format-detection\" content=\"telephone=no\"/>\n"
body {
width: 600px;
font:normal 14px/1.62 arial, sans-serif;
}
.mod {
margin-bottom:100px;
background-color:#efc;
}
.pic {
margin-right: 20px;
ul, li, p {
margin:0;
padding:0;
list-style: none;
}
html {
height:100%;
}
@kejun
kejun / dabblet.css
Created May 3, 2013 14:03
Untitled
p:nth-child(1) {
font-size: 12px;
margin: 20px;
width: 200px;
height: 150px;
-webkit-hyphens: auto;
-webkit-shape-inside: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
overflow: hidden;
}
@kejun
kejun / dabblet.css
Created May 12, 2013 15:10 — forked from anonymous/dabblet.css
方法1:
html,body { height:100%; }
.list { padding:10px; border:3px solid #ccc; }
/*
方法1:
html,body { height:100%; }
@kejun
kejun / dabblet.css
Created May 13, 2013 07:14
一个普通英文半角空格的宽度
body {
margin: 0;
padding: 0 24px;
font-family: arial, sans-serif;
background-color: #0ff;
background-image: linear-gradient(90deg, transparent 1px, rgba(255,255,255,.9) 1px);
background-size: 5px 5px;
}
hr {
@kejun
kejun / dabblet.css
Created July 11, 2013 06:15
Untitled
body {
padding: 5em 10em;
}
.wating:after {
content: '';
display: inline-block;
width: .5em;
height: 2em;
overflow: hidden;
@kejun
kejun / dabblet.css
Created July 28, 2013 08:47
Untitled
.progress {
position: relative;
height: 20px;
border:1px solid #333;
}
.progress i {
position: absolute;
width: 50%;
height: 20px;