Browse Source

Fix alignment of "segmented" subgroup header links

merge-requests/110/head
Deimos 5 years ago
parent
commit
2c6967b3da
  1. 1
      tildes/scss/modules/_site-header.scss
  2. 8
      tildes/scss/themes/_theme_base.scss
  3. 2
      tildes/tildes/templates/base.jinja2
  4. 2
      tildes/tildes/templates/group_wiki.jinja2
  5. 2
      tildes/tildes/templates/group_wiki_edit_page.jinja2
  6. 2
      tildes/tildes/templates/group_wiki_new_page.jinja2
  7. 2
      tildes/tildes/templates/group_wiki_page.jinja2
  8. 5
      tildes/tildes/templates/macros/groups.jinja2
  9. 2
      tildes/tildes/templates/new_message.jinja2
  10. 2
      tildes/tildes/templates/new_topic.jinja2
  11. 14
      tildes/tildes/templates/search.jinja2
  12. 2
      tildes/tildes/templates/topic.jinja2
  13. 2
      tildes/tildes/templates/topic_listing.jinja2
  14. 2
      tildes/tildes/templates/user.jinja2

1
tildes/scss/modules/_site-header.scss

@ -28,6 +28,7 @@
}
.site-header-context {
display: inline-block;
vertical-align: text-bottom;
white-space: nowrap;
overflow: hidden;

8
tildes/scss/themes/_theme_base.scss

@ -458,9 +458,11 @@
color: map-get($theme, "link");
}
.site-header-context,
.site-header-context:visited {
color: map-get($theme, "foreground-primary");
.site-header-context {
a,
a:visited {
color: map-get($theme, "foreground-primary");
}
}
.site-header-logo,

2
tildes/tildes/templates/base.jinja2

@ -80,7 +80,7 @@
{% endif %}
>Sidebar</button>
{% block header_context_link %}{% endblock %}
<div class="site-header-context">{% block header_context_link %}{% endblock %}</div>
{{ logged_in_user_info() }}
</header>

2
tildes/tildes/templates/group_wiki.jinja2

@ -8,7 +8,7 @@
{% block title %}~{{ group.path }} wiki{% endblock %}
{% block header_context_link %}
<a class="site-header-context" href="/~{{ group.path }}">~{{ group.path }}</a>
<a href="/~{{ group.path }}">~{{ group.path }}</a>
{% endblock %}
{% block main_heading %}~{{ group.path }} wiki pages{% endblock %}

2
tildes/tildes/templates/group_wiki_edit_page.jinja2

@ -8,7 +8,7 @@
{% block title %}Edit wiki page{% endblock %}
{% block header_context_link %}
<a class="site-header-context" href="/~{{ page.group.path }}">~{{ page.group.path }}</a>
<a href="/~{{ page.group.path }}">~{{ page.group.path }}</a>
{% endblock %}
{% block main_heading %}Editing page "{{ page.page_name }}" in ~{{ page.group.path }}{% endblock %}

2
tildes/tildes/templates/group_wiki_new_page.jinja2

@ -8,7 +8,7 @@
{% block title %}New wiki page{% endblock %}
{% block header_context_link %}
<a class="site-header-context" href="/~{{ group.path }}">~{{ group.path }}</a>
<a href="/~{{ group.path }}">~{{ group.path }}</a>
{% endblock %}
{% block main_heading %}Create a new wiki page in ~{{ group.path }}{% endblock %}

2
tildes/tildes/templates/group_wiki_page.jinja2

@ -8,7 +8,7 @@
{% block title %}{{ page.page_name }} - ~{{ page.group.path }} wiki{% endblock %}
{% block header_context_link %}
<a class="site-header-context" href="/~{{ page.group.path }}">~{{ page.group.path }}</a>
<a href="/~{{ page.group.path }}">~{{ page.group.path }}</a>
{% endblock %}
{% block main_classes %}text-formatted text-wiki{% endblock %}

5
tildes/tildes/templates/macros/groups.jinja2

@ -36,9 +36,8 @@
<a href="/~{{ group.path[0:1] }}"
{% if class %}class="{{ class }}"{% endif %}
>~{{ group.path[0:1] }}</a>
{% for i in range(1, group.path|length) %}
.
<a href="/~{{ group.path[0:i+1] }}"
{%- for i in range(1, group.path|length) -%}
.<a href="/~{{ group.path[0:i+1] }}"
{% if class %}class="{{ class }}"{% endif %}
>{{ group.path[i:i+1] }}</a>
{% endfor %}

2
tildes/tildes/templates/new_message.jinja2

@ -8,7 +8,7 @@
{% block title %}New private message conversation{% endblock %}
{% block header_context_link %}
<a class="site-header-context" href="/user/{{ user.username }}">{{ user.username }}</a>
<a href="/user/{{ user.username }}">{{ user.username }}</a>
{% endblock %}
{% block main_heading %}

2
tildes/tildes/templates/new_topic.jinja2

@ -6,7 +6,7 @@
{% block title %}New topic{% endblock %}
{% block header_context_link %}
<a class="site-header-context" href="/~{{ group.path }}">~{{ group.path }}</a>
<a href="/~{{ group.path }}">~{{ group.path }}</a>
{% endblock %}
{% block main_heading %}Post a new topic in ~{{ group.path }}{% endblock %}

14
tildes/tildes/templates/search.jinja2

@ -9,14 +9,12 @@
{% block title %}Search results: {{ search }}{% endblock %}
{% block header_context_link %}
<span class="site-header-context">
{% if group %}
Search in ~{{ group.path }}:
{% else %}
Search:
{% endif %}
{{ search }}
</span>
{% if group %}
Search in ~{{ group.path }}:
{% else %}
Search:
{% endif %}
{{ search }}
{% endblock %}
{% block filter_info %}

2
tildes/tildes/templates/topic.jinja2

@ -27,7 +27,7 @@
{% endblock %}
{% block header_context_link %}
{{ group_segmented_link(topic.group, class="site-header-context") }}
{{ group_segmented_link(topic.group) }}
{% endblock %}
{% block content %}

2
tildes/tildes/templates/topic_listing.jinja2

@ -11,7 +11,7 @@
{% block title %}Topics in ~{{ group.path }}{% endblock %}
{% block header_context_link %}
{{ group_segmented_link(group, class="site-header-context") }}
{{ group_segmented_link(group) }}
{% endblock %}
{% block content %}

2
tildes/tildes/templates/user.jinja2

@ -17,7 +17,7 @@
{% endblock %}
{% block header_context_link %}
<a class="site-header-context" href="/user/{{ user.username }}">{{ user.username }}</a>
<a href="/user/{{ user.username }}">{{ user.username }}</a>
{% endblock %}
{# Only show the heading if they can't see the type tabs and the user isn't deleted/banned #}

Loading…
Cancel
Save