Skip to content
Browse files

Add Image Path Variable

Added variable for the image path to allow for quick editing if the image path isn't /images
  • Loading branch information...
1 parent 744fad6 commit 9ea3eee60d2968a5189b86cc6253baf8a62fc7da @webbushka committed Mar 1, 2013
Showing with 7 additions and 6 deletions.
  1. +7 −6 chosen/lib/chosen.less
View
13 chosen/lib/chosen.less
@@ -12,6 +12,7 @@
// Update this path depending on your project structure
// @import "../../bootstrap/less/bootstrap.less";
+@ChosenImagePath: "/images";
// Base
// ------------------------------------------
@@ -71,7 +72,7 @@
width: 12px;
height: 13px;
font-size: 1px;
- background: url("/images/chosen-sprite.png") right top no-repeat;
+ background: url("@{ChosenImagePath}/chosen-sprite.png") right top no-repeat;
&:hover {
background-position: right -11px;
}
@@ -84,7 +85,7 @@
height: 100%;
width: 18px;
b {
- background: url("/images/chosen-sprite.png") no-repeat 0 2px;
+ background: url("@{ChosenImagePath}/chosen-sprite.png") no-repeat 0 2px;
display: block;
width: 100%;
height: 100%;
@@ -195,7 +196,7 @@
width: 12px;
height: 13px;
font-size: 1px;
- background: url("/images/chosen-sprite.png") right top no-repeat;
+ background: url("@{ChosenImagePath}/chosen-sprite.png") right top no-repeat;
&:hover {
background-position: right -11px;
}
@@ -281,12 +282,12 @@
.chzn-results-scroll-down {
bottom: 0;
span {
- background: url("/images/chosen-sprite.png") no-repeat -4px -3px;
+ background: url("@{ChosenImagePath}/chosen-sprite.png") no-repeat -4px -3px;
}
}
.chzn-results-scroll-up {
span {
- background: url("/images/chosen-sprite.png") no-repeat -22px -3px;
+ background: url("@{ChosenImagePath}/chosen-sprite.png") no-repeat -22px -3px;
}
}
}
@@ -416,4 +417,4 @@
}
}
}
-}
+}

0 comments on commit 9ea3eee

Please sign in to comment.
Something went wrong with that request. Please try again.