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.html
Created September 5, 2013 10:09
Untitled
<!-- content to be placed inside <body>…</body> -->
@kejun
kejun / dabblet.css
Created September 5, 2013 03:06 — forked from anonymous/dabblet.css
thumb截中间区域
/* thumb截中间区域 */
fieldset {
display: inline-block;
border: 1px solid #ddd;
}
.thumb {
position: relative;
@kejun
kejun / dabblet.css
Created August 16, 2013 09:42
Untitled
ul, li {
margin: 0;
padding: 0;
list-style: none;
}
.menu {
position: fixed;
bottom: 0;
left: 50%;
@kejun
kejun / dabblet.css
Created July 30, 2013 16:27
环形进度条第2种实现
/**
* 环形进度条第2种实现
*/
body, html { height:100%;}
body { display:flex;justify-content:center;align-items:center;}
.controls { margin-top: 2em;text-align:center; }
.circle-progress {
position: relative;
width: 10em;
@kejun
kejun / dabblet.css
Created July 30, 2013 03:42
环形进度条,css bt版
/**
* 环形进度条,css bt版
*/
html,body { height:100%; }
body {
display: flex;
justify-content: center;
align-items: center;
}
@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;
@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 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 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 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;
}