Created
March 16, 2012 10:27
-
-
Save seb-thomas/2049465 to your computer and use it in GitHub Desktop.
Heavily edited version of less style sheet used in a project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*style sheet for global styles and layout blocks*/ | |
//Vars | |
//Colours | |
@text-gray: #808080; | |
@border-red: #ec1b34; | |
@border-gray: #dedede; | |
//Mixins | |
.rounded-corners (@radius: 5px) { | |
border-radius: @radius; | |
-webkit-border-radius: @radius; | |
-moz-border-radius: @radius; | |
} | |
.box-shadow (@x: 0, @y: 0, @blur: 1px, @spread: 0px, @color: #000) { | |
box-shadow: @arguments; | |
-moz-box-shadow: @arguments; | |
-webkit-box-shadow: @arguments; | |
} | |
.opacity(@op:100){ | |
filter:alpha(opacity=@op); | |
-moz-opacity:@op/100; | |
-khtml-opacity:@op/100; | |
opacity:@op/100; | |
} | |
/*Lift box shadow style here!*/ | |
.testbox { | |
#shadow > .lifted(); | |
background-color: red; | |
} | |
//Footer style | |
#footer { | |
background: #fff; | |
.box-shadow(0px, 0px, 15px, 0px, #909798); | |
.central_content { | |
height: 41px; | |
} | |
} | |
@import "about"; | |
@import "statistics"; | |
@import "widgets"; | |
@import "shadows"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment