Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 9 additions & 21 deletions app/assets/stylesheets/kenui/email_notifications.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,33 +204,20 @@ label.capitalize {
text-decoration: none !important;
}

.email-notifications-index table thead tr th::after,
.email-notifications-index table thead tr th::before {
content: "" !important;
display: inline-block !important;
width: 0.75rem !important;
height: 0.75rem !important;
background-repeat: no-repeat !important;
background-position: center !important;
background-size: 0.75rem 0.75rem !important;
position: absolute !important;
right: 0.5rem !important;
.email-notifications-index #accounts-table_filter {
margin-top: -2.75rem !important;
}

.email-notifications-index table thead tr th::after {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5.5L6 2.5L9 5.5' stroke='%23A4A7AE' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
top: 45% !important;
transform: translateY(-50%) !important;
#accounts-table_length {
display: none;
}

.email-notifications-index table thead tr th::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 6.5L6 9.5L9 6.5' stroke='%23A4A7AE' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
bottom: 45% !important;
transform: translateY(50%) !important;
.email-notifications-index #accounts-table th:first-of-type {
padding-left: 0.75rem !important;
}

.email-notifications-index #accounts-table_filter {
margin-top: -2.75rem !important;
.email-notifications-index #accounts-table td a {
padding: 0 !important;
}

.email-notifications-index #accounts-table_filter input {
Expand All @@ -251,3 +238,4 @@ label.capitalize {
outline: none;
box-shadow: 0;
}

4 changes: 4 additions & 0 deletions app/views/kenui/email_notifications/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

<%= javascript_tag do %>
$(document).ready(function() {
$('#accounts-table_length').hide();
var table = $('#accounts-table').DataTable({
"pagingType": "simple",
"language": {
Expand All @@ -56,5 +57,8 @@
]
});

table.one('draw', function() {
$('#accounts-table_length').show();
});
});
<% end %>
Loading