From 6f678162d34673d024af3c2f06fb27168e933467 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Mon, 29 Sep 2014 13:34:43 -0300 Subject: [PATCH] Added colab logo as SVG --- src/colab/custom_settings.py | 5 +++++ src/static/css/screen.css | 4 ++++ src/static/img/logo.png | Bin 1887 -> 0 bytes src/static/img/logo.svg | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/static/img/logo_nav.png | Bin 7551 -> 0 bytes src/static/img/logo_small.png | Bin 3021 -> 0 bytes src/templates/base.html | 2 +- 7 files changed, 74 insertions(+), 1 deletion(-) delete mode 100644 src/static/img/logo.png create mode 100644 src/static/img/logo.svg delete mode 100644 src/static/img/logo_nav.png delete mode 100644 src/static/img/logo_small.png diff --git a/src/colab/custom_settings.py b/src/colab/custom_settings.py index 504ecd1..1560c5a 100644 --- a/src/colab/custom_settings.py +++ b/src/colab/custom_settings.py @@ -1,6 +1,11 @@ from settings import * from django.utils.translation import ugettext_lazy as _ +# Allow Django runserver to serve SVG files +# https://code.djangoproject.com/ticket/20162 +import mimetypes +mimetypes.add_type('image/svg+xml', '.svg') + DEBUG = False TEMPLATE_DEBUG = False diff --git a/src/static/css/screen.css b/src/static/css/screen.css index 627433f..dc9cf89 100644 --- a/src/static/css/screen.css +++ b/src/static/css/screen.css @@ -24,6 +24,10 @@ li hr { margin-left: 10px; } +.navbar-brand img { + height: 40px; +} + #user-menu .wrapper { padding: 3px 10px; white-space: nowrap; diff --git a/src/static/img/logo.png b/src/static/img/logo.png deleted file mode 100644 index a5a49ce..0000000 Binary files a/src/static/img/logo.png and /dev/null differ diff --git a/src/static/img/logo.svg b/src/static/img/logo.svg new file mode 100644 index 0000000..cd22010 --- /dev/null +++ b/src/static/img/logo.svg @@ -0,0 +1,64 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/src/static/img/logo_nav.png b/src/static/img/logo_nav.png deleted file mode 100644 index 31fdc9f..0000000 Binary files a/src/static/img/logo_nav.png and /dev/null differ diff --git a/src/static/img/logo_small.png b/src/static/img/logo_small.png deleted file mode 100644 index 7e657ff..0000000 Binary files a/src/static/img/logo_small.png and /dev/null differ diff --git a/src/templates/base.html b/src/templates/base.html index b62de0b..d6dd051 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -58,7 +58,7 @@ - Colab + Colab