Skip to content
Snippets Groups Projects
Commit 6093944fd75c authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Quote background-image url

parent 3f45947ec7ae
No related branches found
No related tags found
No related merge requests found
{% macro background(name) %}
<style>
.background-{{ name }} {
background-image: url({{ url_for('static', filename='images/%s.jpg' % name) }});
background-image: url('{{ url_for('static', filename='images/%s.jpg' % name) }}');
}
@media (max-width: 800px) {
.background-{{ name }} {
......@@ -5,8 +5,8 @@
}
@media (max-width: 800px) {
.background-{{ name }} {
background-image: url({{ url_for('static', filename='images/%s-800px.jpg' % name) }});
background-image: url('{{ url_for('static', filename='images/%s-800px.jpg' % name) }}');
}
}
@media (max-width: 400px) {
.background-{{ name }} {
......@@ -9,8 +9,8 @@
}
}
@media (max-width: 400px) {
.background-{{ name }} {
background-image:url({{ url_for('static', filename='images/%s-400px.jpg' % name) }});
background-image:url('{{ url_for('static', filename='images/%s-400px.jpg' % name) }}');
}
}
</style>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment