Browse Source

Fix alignment of "segmented" subgroup header links

merge-requests/102/head
Deimos 5 years ago
parent
commit
2c6967b3da
  1. 1
      tildes/scss/modules/_site-header.scss
  2. 6
      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. 2
      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 { .site-header-context {
display: inline-block;
vertical-align: text-bottom; vertical-align: text-bottom;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;

6
tildes/scss/themes/_theme_base.scss

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

2
tildes/tildes/templates/base.jinja2

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

2
tildes/tildes/templates/group_wiki.jinja2

@ -8,7 +8,7 @@
{% block title %}~{{ group.path }} wiki{% endblock %} {% block title %}~{{ group.path }} wiki{% endblock %}
{% block header_context_link %} {% block header_context_link %}
<a class="site-header-context" href="/~{{ group.path }}">~{{ group.path }}</a>
<a href="/~{{ group.path }}">~{{ group.path }}</a>
{% endblock %} {% endblock %}
{% block main_heading %}~{{ group.path }} wiki pages{% 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 title %}Edit wiki page{% endblock %}
{% block header_context_link %} {% 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 %} {% endblock %}
{% block main_heading %}Editing page "{{ page.page_name }}" in ~{{ page.group.path }}{% 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 title %}New wiki page{% endblock %}
{% block header_context_link %} {% block header_context_link %}
<a class="site-header-context" href="/~{{ group.path }}">~{{ group.path }}</a>
<a href="/~{{ group.path }}">~{{ group.path }}</a>
{% endblock %} {% endblock %}
{% block main_heading %}Create a new wiki page in ~{{ group.path }}{% 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 title %}{{ page.page_name }} - ~{{ page.group.path }} wiki{% endblock %}
{% block header_context_link %} {% 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 %} {% endblock %}
{% block main_classes %}text-formatted text-wiki{% 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] }}" <a href="/~{{ group.path[0:1] }}"
{% if class %}class="{{ class }}"{% endif %} {% if class %}class="{{ class }}"{% endif %}
>~{{ group.path[0:1] }}</a> >~{{ 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 %} {% if class %}class="{{ class }}"{% endif %}
>{{ group.path[i:i+1] }}</a> >{{ group.path[i:i+1] }}</a>
{% endfor %} {% endfor %}

2
tildes/tildes/templates/new_message.jinja2

@ -8,7 +8,7 @@
{% block title %}New private message conversation{% endblock %} {% block title %}New private message conversation{% endblock %}
{% block header_context_link %} {% 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 %} {% endblock %}
{% block main_heading %} {% block main_heading %}

2
tildes/tildes/templates/new_topic.jinja2

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

2
tildes/tildes/templates/search.jinja2

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

2
tildes/tildes/templates/topic.jinja2

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

2
tildes/tildes/templates/topic_listing.jinja2

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

2
tildes/tildes/templates/user.jinja2

@ -17,7 +17,7 @@
{% endblock %} {% endblock %}
{% block header_context_link %} {% 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 %} {% endblock %}
{# Only show the heading if they can't see the type tabs and the user isn't deleted/banned #} {# Only show the heading if they can't see the type tabs and the user isn't deleted/banned #}

Loading…
Cancel
Save