Skip to content

Instantly share code, notes, and snippets.

@sadaco
sadaco / gist:1601914
Created January 12, 2012 17:31
Google Code LESS.js
<script src="http://lesscss.googlecode.com/files/less-1.2.0.min.js"></script>
@sadaco
sadaco / gist:1620813
Created January 16, 2012 13:16
Include less.js with your styles:
<link rel="stylesheet/less" type="text/css" href="style.less">
<script src="less-1.2.0.min.js" type="text/javascript"></script>
@sadaco
sadaco / gist:1621013
Created January 16, 2012 14:03
Python HTTP Server
python -m SimpleHTTPServer
@sadaco
sadaco / gist:1623726
Created January 17, 2012 00:05
border radius
/* Mixin */
.border-radius (@radius: 5px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
}
/* Implementation */
#main {
.border-radius(3px);
@sadaco
sadaco / gist:1623732
Created January 17, 2012 00:07
border radius css
#main {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
#sec{
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
@sadaco
sadaco / gist:1623742
Created January 17, 2012 00:10
Custom border radius
.border-radius-custom (@topleft: 3px, @topright: 3px, @bottomleft: 3px, @bottomright: 3px) {
-webkit-border-radius: @topleft @topright @bottomright @bottomleft;
-moz-border-radius: @topleft @topright @bottomright @bottomleft;
border-radius: @topleft @topright @bottomright @bottomleft;
}
#menubg {
.border-radius-custom(3px, 0, 3px, 0);
}
@sadaco
sadaco / gist:1623749
Created January 17, 2012 00:12
Custom border radius CSS
#menubg {
-webkit-border-radius: 3px 0 3px 0;
-moz-border-radius: 3px 0 3px 0;
border-radius: 3px 0 3px 0;
}
@sadaco
sadaco / gist:2769488
Created May 22, 2012 14:41
Variables - Simple CSS
#main {
width: 200px;
height: 200px;
background: #e1e1e1;
}
.textarea{
background: #2789b1;
width:150px;
height:80px;
@sadaco
sadaco / gist:2769527
Created May 22, 2012 14:49
Variables
@lightgray:#e1e1e1;
@globalblue:#2789b1;
#main {
width: 200px;
height: 200px;
background: @lightgray;
}
.textarea{
@sadaco
sadaco / gist:2842179
Created May 31, 2012 09:16
Mixins CSS
#main {
width: 200px;
height: 200px;
background: @lightgray;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.textarea{
background: @globalblue;