mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 16:54:03 -04:00
Make spacing below template folder heading even
It was a bit inconsistent depending on whether there was/wasn’t a search box or channel tabs on the page. I found this just too complicated to do in pure CSS, so added a new spacing class which gets toggled on and off.
This commit is contained in:
@@ -79,16 +79,6 @@ a {
|
|||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .grid-row:first-child {
|
|
||||||
|
|
||||||
.heading-large,
|
|
||||||
.heading-medium {
|
|
||||||
margin: $gutter-half 0 $gutter-half 0;
|
|
||||||
word-wrap: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight {
|
.highlight {
|
||||||
|
|||||||
@@ -46,7 +46,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#template-list {
|
#template-list {
|
||||||
|
|
||||||
margin-top: $gutter;
|
margin-top: $gutter;
|
||||||
|
|
||||||
|
&.top-gutter-0 {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.template-list {
|
.template-list {
|
||||||
@@ -151,6 +157,11 @@
|
|||||||
|
|
||||||
.folder-heading {
|
.folder-heading {
|
||||||
|
|
||||||
|
.grid-row & {
|
||||||
|
margin: $gutter-half 0 20px 0;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
&-folder,
|
&-folder,
|
||||||
&-subfolder {
|
&-subfolder {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<nav id=template-list>
|
<nav id="template-list" class="{{ 'top-gutter-0' if (not show_template_nav and not show_search_box) else '' }}">
|
||||||
{% for item in template_list %}
|
{% for item in template_list %}
|
||||||
<div class="template-list-item {% if current_user.has_permissions('manage_templates') %}template-list-item-with-checkbox{% endif %} {% if item.ancestors %}template-list-item-hidden-by-default{% endif %} {% if not item.ancestors %}template-list-item-without-ancestors{% endif %}">
|
<div class="template-list-item {% if current_user.has_permissions('manage_templates') %}template-list-item-with-checkbox{% endif %} {% if item.ancestors %}template-list-item-hidden-by-default{% endif %} {% if not item.ancestors %}template-list-item-without-ancestors{% endif %}">
|
||||||
{% if current_user.has_permissions('manage_templates') %}
|
{% if current_user.has_permissions('manage_templates') %}
|
||||||
|
|||||||
Reference in New Issue
Block a user