Browse Source

Apply formatting for links/lists to wiki pages

merge-requests/70/head
Deimos 6 years ago
parent
commit
ac88b11a6f
  1. 4
      tildes/scss/modules/_text.scss
  2. 2
      tildes/tildes/templates/base.jinja2
  3. 2
      tildes/tildes/templates/group_wiki_page.jinja2

4
tildes/scss/modules/_text.scss

@ -1,6 +1,10 @@
// Copyright (c) 2018 Tildes contributors <code@tildes.net> // Copyright (c) 2018 Tildes contributors <code@tildes.net>
// SPDX-License-Identifier: AGPL-3.0-or-later // SPDX-License-Identifier: AGPL-3.0-or-later
.text-formatted {
@extend %text-container;
}
.text-small { .text-small {
font-size: 0.6rem; font-size: 0.6rem;
line-height: 0.9rem; line-height: 0.9rem;

2
tildes/tildes/templates/base.jinja2

@ -80,7 +80,7 @@
</header> </header>
<main data-js-hide-sidebar-if-open>
<main class="{% block main_classes %}{% endblock %}" data-js-hide-sidebar-if-open>
{# Only output the <h1> tag if the main_heading block has some content #} {# Only output the <h1> tag if the main_heading block has some content #}
{% set main_heading %}{% block main_heading %}{% endblock %}{% endset %} {% set main_heading %}{% block main_heading %}{% endblock %}{% endset %}

2
tildes/tildes/templates/group_wiki_page.jinja2

@ -11,6 +11,8 @@
<a class="site-header-context" href="/~{{ page.group.path }}">~{{ page.group.path }}</a> <a class="site-header-context" href="/~{{ page.group.path }}">~{{ page.group.path }}</a>
{% endblock %} {% endblock %}
{% block main_classes %}text-formatted{% endblock %}
{% block main_heading %}{{ page.page_name }}{% endblock %} {% block main_heading %}{{ page.page_name }}{% endblock %}
{% block content %} {% block content %}

Loading…
Cancel
Save