Refactor CSS to better use inherited naming

This commit is contained in:
Chris Hill-Scott
2018-11-09 15:37:37 +00:00
parent 8dc7e6e5f8
commit fb339a08a8
2 changed files with 15 additions and 10 deletions

View File

@@ -24,17 +24,22 @@
margin-top: $gutter; margin-top: $gutter;
} }
.template-list-item, .template-list {
.template-list-item-with-checkbox {
position: relative;
}
.template-list-item-with-checkbox { &-item {
padding-left: $gutter * 2; &-with-checkbox {
position: relative;
padding-left: $gutter * 2;
.multiple-choice {
position: absolute;
left: 0;
}
}
.multiple-choice {
position: absolute;
left: 0;
} }
} }

View File

@@ -10,7 +10,7 @@
value=template_folder.id, value=template_folder.id,
) }} ) }}
{% endif %} {% endif %}
<h2 class="message-name"> <h2 class="message-name template-list-folder">
<a href="{{ url_for('.choose_template', service_id=current_service.id, template_type=template_type, template_folder_id=template_folder.id) }}"> <a href="{{ url_for('.choose_template', service_id=current_service.id, template_type=template_type, template_folder_id=template_folder.id) }}">
{{ template_folder.name }} {{ template_folder.name }}
</a> </a>