Commit eded51c4 authored by Emma's avatar Emma 🦉

Merge branch 'improve-no-entries-style' into 'master'

new styling for 'no entries' stuff

See merge request edgyemma/Postmill!48
parents e4086cda 615c9375
Pipeline #21887873 passed with stage
in 5 minutes and 33 seconds
@import (reference) '../settings';
.dimmed {
color: contrast(@page-color, lighten(@page-color, 50%), darken(@page-color, 50%));
// <small> is the correct
small& {
font-size: unset;
}
}
......@@ -11,6 +11,7 @@
@import 'components/clear-notification-button';
@import 'components/comment';
@import 'components/diff-table';
@import 'components/dimmed';
@import 'components/form';
@import 'components/icon';
@import 'components/markdown-input';
......
......@@ -60,8 +60,8 @@
{{ include('_includes/pagination.html.twig', {pager: bans}, with_context=false) }}
{% else %}
<div class="alert alert--notice">
<p>{{ 'flash.no_entries_to_display'|trans }}</p>
</div>
<p class="no-entries">
<small class="dimmed">{{ 'flash.no_entries_to_display'|trans }}</small>
</p>
{% endif %}
{% endblock %}
......@@ -31,11 +31,9 @@
{{ include('_includes/pagination.html.twig', {pager: logs}, with_context=false) }}
{% else %}
<div class="alert alert--notice">
<p>
{{ 'flash.no_entries_to_display'|trans }}
</p>
</div>
<p class="no-entries">
<small class="dimmed">{{ 'flash.no_entries_to_display'|trans }}</small>
</p>
{% endif %}
{% endblock %}
......@@ -32,10 +32,8 @@
{{ include('_includes/pagination.html.twig', {pager: logs}, with_context=false) }}
{% else %}
<div class="alert alert--notice">
<p>
{{ 'flash.no_entries_to_display'|trans }}
</p>
</div>
<p class="no-entries">
<small class="dimmed">{{ 'flash.no_entries_to_display'|trans }}</small>
</p>
{% endif %}
{% endblock %}
......@@ -49,9 +49,9 @@
</div>
</form>
{% else %}
<div class="alert alert--notice">
<p>{{ 'flash.no_entries_to_display'|trans }}</p>
</div>
<p class="no-entries">
<small class="dimmed">{{ 'flash.no_entries_to_display'|trans }}</small>
</p>
{% endif %}
{% endblock %}
......@@ -39,9 +39,9 @@
</tbody>
</table>
{% else %}
<div class="alert alert--notice">
<p>{{ 'flash.no_messages'|trans }}</p>
</div>
<p class="no-entries">
<small class="dimmed">{{ 'flash.no_messages'|trans }}</small>
</p>
{% endif %}
{{ include('_includes/pagination.html.twig', {pager: messages}, with_context=false) }}
......
......@@ -17,6 +17,10 @@
{% for comment in comments %}
{{ comment(comment, {show_context: true}) }}
{% else %}
<p class="no-entries">
<small class="dimmed">{{ 'flash.no_entries_to_display'|trans }}</small>
</p>
{% endfor %}
{{ include('_includes/pagination.html.twig', {pager: comments}, with_context=false) }}
......
......@@ -59,9 +59,9 @@
</tbody>
</table>
{% else %}
<div class="alert alert--notice">
<p>{{ 'flash.no_entries_to_display'|trans }}</p>
</div>
<p class="no-entries">
<small class="dimmed">{{ 'flash.no_entries_to_display'|trans }}</small>
</p>
{% endif %}
{{ include('_includes/pagination.html.twig', {pager: bans}, with_context=false) }}
......
......@@ -23,7 +23,9 @@
</div>
</form>
{% else %}
<p>{{ 'inbox.empty'|trans }}</p>
<p class="no-entries">
<small class="dimmed">{{ 'inbox.empty'|trans }}</small>
</p>
{% endif %}
{% for notification in notifications %}
......
......@@ -17,6 +17,10 @@
{% for submission in submissions %}
{{ submission(submission) }}
{% else %}
<p class="no-entries">
<small class="dimmed">{{ 'flash.no_entries_to_display'|trans }}</small>
</p>
{% endfor %}
{{ include('_includes/pagination.html.twig', {pager: submissions}, with_context=false) }}
......
......@@ -21,6 +21,10 @@
{% elseif contribution.type == 'comment' %}
{{ comment(contribution.comment, {show_context: true}) }}
{% endif %}
{% else %}
<p class="no-entries">
<small class="dimmed">{{ 'flash.no_entries_to_display'|trans }}</small>
</p>
{% endfor %}
{{ include('_includes/pagination.html.twig', {pager: contributions}, with_context=false) }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment