Skip to content

Instantly share code, notes, and snippets.

View chestozo's full-sized avatar

chestozo

  • Portugal
  • 09:50 (UTC +01:00)
View GitHub Profile
@chestozo
chestozo / dabblet.css
Created September 3, 2013 13:41
Untitled
.c {
background: red;
display: inline-block;
height: 2em;
width: 300px;
}
.b {
float: right;
background: green;
@chestozo
chestozo / dabblet.css
Last active December 20, 2015 22:38
css only tabs: based on http://kizu.ru/fun/popups/
.nav {
margin: 0;
padding: 0;
height: 2em;
}
.nav li {
list-style: none;
float: left;
background: #EEE;
padding: 0.1em 0.2em;
.c {
background: rgba(244,244,0,0.8);
position: relative;
padding-left: 20px;
}
.c img {
position: absolute;
left: 0;
top: 50%;
// Run: node server.js
var app = connect()
.use(connect.bodyParser()) // handle post requests
.use(connect.static('http')) // serve files from http dir: ./http/file.html seen at http://host/file.html
.use(callback) // handle custom urls in standart function(req, res) { ... } callback
.listen(config.port || 3000);
@chestozo
chestozo / dabblet.css
Created November 17, 2012 19:53
Untitled
.container {
}
.photo {}
.back {}
@chestozo
chestozo / dabblet.css
Created November 17, 2012 19:48
Untitled
.me {
position: absolute;
width: 20px;
height: 20px;
background: #55F;
border-radius: 15px;
border: 3px solid #FFF;
box-shadow: 0px 0px 10px #AAA, inset 0px 0px 10px #33C;
left: 200px;
@chestozo
chestozo / dabblet.css
Created November 17, 2012 13:38
Untitled
.container{
font: 10pt arial;
width: 100%;
height: 2em;
-webkit-perspective: 600px;
-webkit-perspective-origin: 50% 50%;
position: relative;
}
.bl {
@chestozo
chestozo / dabblet.css
Created November 17, 2012 13:35
Untitled
.container{
perspective: 250px;
perspective-origin: 50% 50%;
width: 100px;
height: 30px;
}
.bl {
position: absolute;
width: 100px;
@chestozo
chestozo / dabblet.css
Created November 3, 2012 12:33
Untitled
* {
font: 10pt arial;
}
.parent {
width: 100px;
overflow: hidden;
position: relative;
}
var model = models[i];
if (model.done()) {
// do nothing
} else if (model.isLoading()) {
loading.push(model);
} else if (model.canRetry()) {
model.willRetry(); // может как-то по-другому назвать
requesting.push(model);
} else {