Update styling for tables across the site

This commit is contained in:
leigh-mil 2019-10-17 17:14:30 -04:00
parent bb160bbffa
commit 0f0d9464d8
4 changed files with 31 additions and 60 deletions

View File

@ -138,11 +138,6 @@
.portfolio-content { .portfolio-content {
margin: (4 * $gap) $gap 0 $gap; margin: (4 * $gap) $gap 0 $gap;
.panel {
@include shadow-panel;
padding-bottom: $gap * 3;
}
a.add-new-button { a.add-new-button {
display: inherit; display: inherit;
margin-left: auto; margin-left: auto;
@ -156,11 +151,6 @@
margin-bottom: 0; margin-bottom: 0;
} }
table {
min-width: 100%;
margin-top: 0;
}
input.usa-button.usa-button-primary { input.usa-button.usa-button-primary {
width: 9rem; width: 9rem;
height: 4rem; height: 4rem;
@ -250,6 +240,20 @@
.panel { .panel {
@include shadow-panel; @include shadow-panel;
padding-bottom: 2rem; padding-bottom: 2rem;
table {
thead,
tbody {
tr {
th,
td {
&:last-child {
border-left: none;
}
}
}
}
}
} }
.application-list-item { .application-list-item {

View File

@ -46,7 +46,6 @@
} }
@mixin shadow-panel { @mixin shadow-panel {
padding: ($gap / 2) 0;
box-shadow: $box-shadow; box-shadow: $box-shadow;
border-top: none; border-top: none;
border-bottom: none; border-bottom: none;
@ -59,8 +58,7 @@
@include shadow-panel; @include shadow-panel;
&__content { &__content {
margin: ($gap * 2) 0; padding: $gap * 2;
padding: 0 ($gap * 2);
} }
&__body { &__body {
@ -110,8 +108,4 @@
&__footer { &__footer {
padding: 3 * $gap; padding: 3 * $gap;
} }
&__actions {
@include panel-actions;
}
} }

View File

@ -6,7 +6,6 @@
table.atat-table { table.atat-table {
@include panel-margin; @include panel-margin;
min-width: 100%; min-width: 100%;
@include ie-only { @include ie-only {
@ -42,42 +41,24 @@ table.atat-table {
} }
} }
tbody,
thead { thead {
tr th {
.sorting-direction {
position: inherit;
margin-right: -16px;
width: 16px;
.icon {
height: 14px;
width: 16px;
margin: 0;
}
}
}
}
tbody {
tr { tr {
th, th,
td { td {
@include block-list-item; background-color: $color-white;
margin: 0;
padding: $gap * 2;
border: 1px solid $color-gray-light;
display: table-cell; display: table-cell;
white-space: nowrap; white-space: nowrap;
border-bottom-style: solid;
border-top: none; &:first-child {
border-left: none;
}
&:last-child { &:last-child {
border-bottom-style: dashed; border-right: none;
}
}
&:last-child {
td,
th {
border-bottom-style: solid;
} }
} }
} }
@ -87,19 +68,12 @@ table.atat-table {
tr { tr {
th, th,
td { td {
@include block-list-header; background-color: $color-gray-lightest;
display: table-cell; padding: 1rem 1.5rem;
white-space: nowrap; border-top: none;
color: black;
} }
} }
} }
@at-root .panel #{&} {
&:last-child {
margin-bottom: 0;
}
}
} }
.responsive-table-wrapper { .responsive-table-wrapper {

View File

@ -30,10 +30,9 @@
<a v-on:click="openModal('{{ modal_id }}')" class='usa-button {{ archive_button_class }}'> <a v-on:click="openModal('{{ modal_id }}')" class='usa-button {{ archive_button_class }}'>
{{ "portfolios.members.archive_button" | translate }} {{ "portfolios.members.archive_button" | translate }}
</a> </a>
{% if not ppoc %}
{{ subform.member_id() }}
{% endif %}
</td> </td>
{% if not ppoc %}
{{ subform.member_id() }}
{% endif %}
</tr> </tr>
{% endfor %} {% endfor %}