diff --git a/pedro/django-tutorial/mysite/polls/static/polls/images/background.gif b/pedro/django-tutorial/mysite/polls/static/polls/images/background.gif new file mode 100644 index 0000000..60507ba Binary files /dev/null and b/pedro/django-tutorial/mysite/polls/static/polls/images/background.gif differ diff --git a/pedro/django-tutorial/mysite/polls/static/polls/style.css b/pedro/django-tutorial/mysite/polls/static/polls/style.css new file mode 100644 index 0000000..4db5255 --- /dev/null +++ b/pedro/django-tutorial/mysite/polls/static/polls/style.css @@ -0,0 +1,10 @@ +li a { + color: green; +} + +body { + /* thanks: https://stackoverflow.com/questions/12605908/change-background-image-opacity/40366996#40366996 */ + background-image: url("images/background.gif"); + background-color: rgba(255,255,255,0.6); + background-blend-mode: lighten; +} diff --git a/pedro/django-tutorial/mysite/polls/templates/polls/index.html b/pedro/django-tutorial/mysite/polls/templates/polls/index.html index b1b7ea8..9ac8451 100644 --- a/pedro/django-tutorial/mysite/polls/templates/polls/index.html +++ b/pedro/django-tutorial/mysite/polls/templates/polls/index.html @@ -1,3 +1,5 @@ +{% load static %} + {% if latest_question_list %}