Move move css to accordion file so it is more generalized
This commit is contained in:
parent
1165b60fce
commit
0166e2fbc7
@ -1,5 +1,8 @@
|
||||
.accordion {
|
||||
@include shadow-panel;
|
||||
margin-top: $gap;
|
||||
margin-bottom: $gap;
|
||||
max-width: $max-panel-width;
|
||||
|
||||
&__header {
|
||||
margin: 0;
|
||||
@ -7,5 +10,28 @@
|
||||
|
||||
&__content {
|
||||
padding: 0 ($gap * 3) $gap;
|
||||
|
||||
&--list-item {
|
||||
border-bottom: 1px solid $color-gray-lightest;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
padding-bottom: $gap;
|
||||
}
|
||||
|
||||
.col {
|
||||
padding-right: $gap * 2;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: $gap * 2 0 $gap;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1rem;
|
||||
color: $color-gray;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -185,32 +185,3 @@
|
||||
padding-bottom: $gap * 2.5;
|
||||
}
|
||||
}
|
||||
|
||||
.task-order__list {
|
||||
margin-top: $gap;
|
||||
margin-bottom: $gap;
|
||||
max-width: $max-panel-width;
|
||||
|
||||
&--item {
|
||||
border-bottom: 1px solid $color-gray-lightest;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
padding-bottom: $gap;
|
||||
}
|
||||
|
||||
.col {
|
||||
padding-right: $gap * 2;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: $gap * 2 0 $gap;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1rem;
|
||||
color: $color-gray;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,10 +14,9 @@
|
||||
|
||||
{% macro TaskOrderList(task_orders, status) %}
|
||||
{% set status = "All Task Orders" %}
|
||||
<section class="task-order__list">
|
||||
{% call Accordion(title=status, id=status, heading_tag="h4") %}
|
||||
{% for task_order in task_orders %}
|
||||
<div class="task-order__list--item">
|
||||
<div class="accordion__content--list-item">
|
||||
<h4><a href="{{ url_for('task_orders.review_task_order', task_order_id=task_order.id) }}">Task Order #{{ task_order.number }} {{ Icon("caret_right", classes="icon--tiny icon--blue" ) }}</a></h4>
|
||||
<div class="row">
|
||||
<div class="col col--grow">
|
||||
@ -46,7 +45,6 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endcall %}
|
||||
</section>
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user