Skip to content

Instantly share code, notes, and snippets.

@hachibeeDI
Created November 5, 2012 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hachibeeDI/4017504 to your computer and use it in GitHub Desktop.
Save hachibeeDI/4017504 to your computer and use it in GitHub Desktop.
ずるいデザインのやつをPlayで使いたいのでLESSにうつしてる途中のアレ
// depend on twitterbootstrap's mixins.less
@import "mixins.less";
.zurui-line-top(@op1: .1, @op2: 1) {
border-top: 1px solid rgba(0,0,0, @op1);
.box-shadow(0 1px 0 rgba(255,255,255,@op2) inset);
}
.zurui-line-left(@op1: .1, @op2: 1) {
border-left: 1px solid rgba(0,0,0, @op1);
.box-shadow(-1px 0 0 rgba(255,255,255,@op2));
}
.zurui-line-right(@op1: .1, @op2: 1) {
border-right: 1px solid rgba(0,0,0, @op1);
.box-shadow(-1px 0 0 rgba(255,255,255,@op2) inset);
}
.zurui-line-bottom(@op1: .1, @op2: 1) {
border-bottom: 1px solid rgba(0,0,0, @op1);
.box-shadow(0 1px 0 rgba(255,255,255,@op2));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment