Skip to content

@saltcod /gist:3761074
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Intro to less
// global colour variables:
@blue = #3CF;
@red = #DF1F45
#content {
background: #eee;
padding: 25px;
h2 {
color: @blue
border-bottom: 1px solid lighten(@blue, 5%);
&:hover {
color: darken(@blue, 5%);
border-bottom: 1px solid darken(@blue, 10%);
}
}
a {
border-bottom: 1px solid #444;
&:hover {
border-bottom: 1px solid @red;
}
}
}
Instead of:
#content {
background: #eee;
padding: 25px;
}
#content h2 {
color: #3CF;
border-bottom: 1px solid #1F7E91;
}
#content h2:hover {
color: #5CFfee;
border-bottom: 1px solid #4F2E91;
}
#content a {
border-bottom: 1px solid #444;
}
#content a:hover {
border-bottom: 1px solid red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.