content css

This commit is contained in:
bkfox 2020-09-22 03:46:11 +02:00
parent 3313719790
commit c10a114393
7 changed files with 16 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -93,7 +93,7 @@ Usefull context:
{% block main %}
{% block content %}
{% if page and page.content %}
{{ page.content|safe }}
<section class="content">{{ page.content|safe }}</section>
{% endif %}
{% endblock %}

View File

@ -10,7 +10,7 @@ Context:
{% block header_meta %}{{ block.super }}
<span class="column has-text-right">
{% if page.category %}
{{ page.category.title }} //
{{ page.category.title }}
{% endif %}
</span>
{% endblock %}

View File

@ -8,7 +8,8 @@
{% endblock %}
{% block content %}{{ block.super }}
{% block content %}
{{ block.super }}
<br>
{% with has_headline=False %}

View File

@ -107,7 +107,7 @@ class PageListView(BasePageListView):
return super().get_context_data(**kwargs)
class PageDetailView(BaseView, DetailView):
class PageDetailView(BasePageDetailView):
""" Base view class for pages. """
template_name = None
context_object_name = 'page'

View File

@ -132,6 +132,15 @@ a.navbar-item.is-active {
p {
padding: 0.4em 0em;
}
.content {
.h1 { font-size: 2em; font-weight: bolder; }
.h2 { font-size: 1.5em; font-weight: bolder; }
.h3 { font-size: 1.17em; font-weight: bolder; }
.h4 { font-size: 1em; font-weight: bolder; }
.h5 { font-size: 0.83em; font-weight: bolder; }
.h6 { font-size: 0.67em; font-weight: bolder; }
}
}