SPHC custom site style
This commit is contained in:
parent
9686e415ad
commit
b108a71ba9
5 changed files with 42 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.13 on 2018-05-16 13:15
|
||||
# Generated by Django 1.11.13 on 2018-05-25 13:20
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
@ -23,7 +23,7 @@ class Migration(migrations.Migration):
|
|||
migrations.AddField(
|
||||
model_name='articleindexpage',
|
||||
name='title_en',
|
||||
field=models.CharField(default='', max_length=255),
|
||||
field=models.CharField(blank=True, default='', max_length=255),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='articlepage',
|
||||
|
@ -38,6 +38,26 @@ class Migration(migrations.Migration):
|
|||
migrations.AddField(
|
||||
model_name='articlepage',
|
||||
name='title_en',
|
||||
field=models.CharField(blank=True, default='', max_length=255),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='contact',
|
||||
name='title_en',
|
||||
field=models.CharField(default='', max_length=255),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='homepage',
|
||||
name='body_en',
|
||||
field=wagtail.wagtailcore.fields.RichTextField(blank=True, default=''),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='homepage',
|
||||
name='infos_en',
|
||||
field=wagtail.wagtailcore.fields.StreamField((('info', wagtail.wagtailcore.blocks.StructBlock((('title', wagtail.wagtailcore.blocks.CharBlock(required=True)), ('photo', wagtail.wagtailimages.blocks.ImageChooserBlock(required=True)), ('summary', wagtail.wagtailcore.blocks.RichTextBlock(required=True)), ('action', wagtail.wagtailcore.blocks.CharBlock(required=False)), ('url', wagtail.wagtailcore.blocks.URLBlock(required=False))))),), blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='homepage',
|
||||
name='intro_en',
|
||||
field=wagtail.wagtailcore.fields.RichTextField(blank=True, default=''),
|
||||
),
|
||||
]
|
|
@ -8,6 +8,9 @@ TEMPLATES[0]['OPTIONS']['debug'] = True
|
|||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = 'CHANGEME!!!'
|
||||
|
||||
# SECURITY WARNING: CAREFUL! your dev site is open to the world
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
INTERNAL_IPS = ('127.0.0.1', '10.0.2.2')
|
||||
|
||||
BASE_URL = 'http://localhost:8000'
|
||||
|
|
12
publichealth/static/css/sphc.css
Normal file
12
publichealth/static/css/sphc.css
Normal file
|
@ -0,0 +1,12 @@
|
|||
#footer { display: none; }
|
||||
|
||||
.navbar-brand span, .navbar-brand img { display:none; }
|
||||
a.navbar-brand {
|
||||
height: 64px;
|
||||
padding-right: 62px;
|
||||
background: url('/static/images/ssph-logo.jpg') center right no-repeat;
|
||||
background-size: auto 75%;
|
||||
}
|
||||
.navbar-brand:after {
|
||||
content: 'Swiss Public Health Conference';
|
||||
}
|
BIN
publichealth/static/images/ssph-logo.jpg
Normal file
BIN
publichealth/static/images/ssph-logo.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 586 KiB |
|
@ -1,4 +1,4 @@
|
|||
{% load wagtailcore_tags navigation information %}
|
||||
{% load static wagtailcore_tags navigation information %}
|
||||
{% get_site_root as site_root %}
|
||||
|
||||
<!-- Footer -->
|
||||
|
@ -32,3 +32,7 @@
|
|||
<div class="copyright">
|
||||
© 2017 Public Health Schweiz
|
||||
</div>
|
||||
|
||||
{% if site_root.slug == "sphc" %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'css/sphc.css' %}">
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue