[Compass Core] Make all compass core library mixins use the image_url function where appropriate.
This commit is contained in:
parent
8aee42e5a1
commit
da4c73d676
@ -11,11 +11,11 @@
|
|||||||
// Make a list(ul/ol) have an image bullet
|
// Make a list(ul/ol) have an image bullet
|
||||||
// mixin should be used like this for an icon that is 5x7:
|
// mixin should be used like this for an icon that is 5x7:
|
||||||
// ul.pretty
|
// ul.pretty
|
||||||
// +pretty-bullets("/images/my-icon.png", 5px, 7px)
|
// +pretty-bullets("my-icon.png", 5px, 7px)
|
||||||
=pretty-bullets(!bullet_icon, !width, !height, !line_height = 18px, !padding = 14px)
|
=pretty-bullets(!bullet_icon, !width, !height, !line_height = 18px, !padding = 14px)
|
||||||
:margin-left 0
|
:margin-left 0
|
||||||
li
|
li
|
||||||
:padding-left= !padding
|
:padding-left= !padding
|
||||||
:background= url(!bullet_icon) "no-repeat" ((!padding - !width) / 2) ((!line_height - !height) / 2)
|
:background= image_url(!bullet_icon) "no-repeat" ((!padding - !width) / 2) ((!line_height - !height) / 2)
|
||||||
:list-style-type none
|
:list-style-type none
|
||||||
|
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
:text-indent -9999em
|
:text-indent -9999em
|
||||||
:overflow hidden
|
:overflow hidden
|
||||||
:background
|
:background
|
||||||
:image= url(!img)
|
:image= image_url(!img)
|
||||||
:repeat no-repeat
|
:repeat no-repeat
|
||||||
:position= !x !y
|
:position= !x !y
|
||||||
|
Loading…
Reference in New Issue
Block a user