...
 
Commits (2)
# -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-28 18:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0004_auto_20180629_1509'),
]
operations = [
migrations.AddField(
model_name='websiteoptions',
name='highlight_font_name',
field=models.CharField(blank='', default='', max_length=255, verbose_name='Nome da fonte de destaque'),
),
migrations.AddField(
model_name='websiteoptions',
name='highlight_font_url',
field=models.CharField(blank='', default='', max_length=255, verbose_name='URL da fonte de destaque'),
),
]
......@@ -56,6 +56,9 @@ class WebsiteOptions(models.Model):
header_background_color = models.CharField('Cor de fundo da barra intermediária (título do site)', max_length=255, default='#5f63bc')
header_background_color_light = models.CharField('Cor de funto da barra inferior (link para agenda)', max_length=255, default='#a1c7f6')
highlight_font_url = models.CharField('URL da fonte de destaque', max_length=255, default='', blank='')
highlight_font_name = models.CharField('Nome da fonte de destaque', max_length=255, default='', blank='')
modified_date = models.DateTimeField('Última modificação', auto_now=True)
class Meta:
......
......@@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ short_title }}{% block titulo_extra %}{% endblock %}</title>
{% if custom_favicon %}<link rel="shortcut icon" type="image/png" href="{{ custom_favicon }}">{% endif %}
{% if highlight_font_url %}<link href="{{ highlight_font_url }}" rel="stylesheet">{% endif %}
<link rel="stylesheet" href="{% static 'styles/radar.css' %}">
<link rel="stylesheet" href="{% url 'website:custom-css' %}">
{% block extra_head %}{% endblock %}
......
{% if highlight_font_name %}
.pagina-sobre .creditos p { font-family: "{{ highlight_font_name }}" }
.pagina-pl .cabecalho-pl h1 { font-family: "{{ highlight_font_name }}" }
.pagina-pl .tramitacoes .row .data { font-family: "{{ highlight_font_name }}" }
.pagina-pl .pl-acao h3 { font-family: "{{ highlight_font_name }}" }
.pagina-agenda .datas-agenda .agenda-data-semana { font-family: "{{ highlight_font_name }}" }
.pagina-agenda .datas-agenda .agenda-data-mes { font-family: "{{ highlight_font_name }}" }
.pagina-novos-pls .datas-novos-pls .novos-pls-data-semana { font-family: "{{ highlight_font_name }}" }
.pagina-novos-pls .datas-novos-pls .novos-pls-data-mes { font-family: "{{ highlight_font_name }}" }
#main_navbar a.navbar-brand { font-family: "{{ highlight_font_name }}" }
.main-page-header h1 { font-family: "{{ highlight_font_name }}" }
.rodape .navegacao p > a { font-family: "{{ highlight_font_name }}" }
.pls-item .pls-data { font-family: "{{ highlight_font_name }}" }
h4 { font-family: "{{ highlight_font_name }}" }
{% endif %}
.rodape .navegacao h6 { font-family: "Avenir Book" }
.pagina-pl .pl-acao h2 { font-family: "Avenir Book" }
#main_navbar {
background-color: {{ header_background_color_dark }}
}
......