Created
February 12, 2009 00:52
-
-
Save mattman/62407 to your computer and use it in GitHub Desktop.
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
#header h2#logo a { | |
display: block; | |
width: 159px; | |
height: 38px; | |
background-image: url('/images/logo.png'); | |
background-image: url('http://images.foobar.com/images/logo.png'); | |
background-repeat: no-repeat; } |
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
=bgimg_tag(!image) | |
- if RAILS_ENV == development | |
:background-image url('/#{!image}') | |
- else | |
:background-image url('http://images.foobar.com/#{!image}') | |
h2#logo a | |
:display block | |
:width 159px | |
:height 38px | |
+bgimg_tag(images/logo.png) | |
:background-repeat no-repeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment