JSFiddle - React, Tailwind, and code Playground
HTML
<table class="views-table views-view-table cols-7 responsive-enabled">
<thead>
<tr>
<th class="select-all views-field views-field-user-bulk-form" scope="col"><input class="form-checkbox" title="Select all rows in this table" type="checkbox"></th>
<th id="view-name-table-column" class="views-field views-field-name" scope="col"><a href="?user=&status=All&role=All&permission=All&order=name&sort=asc" title="sort by Username">Username</a></th>
<th class="priority-low views-field views-field-status" id="view-status-table-column" scope="col"><a href="?user=&status=All&role=All&permission=All&order=status&sort=asc" title="sort by Status">Status</a></th>
<th id="view-roles-target-id-table-column" class="views-field views-field-roles-target-id" scope="col">Roles</th>
<th class="priority-low views-field views-field-created is-active" id="view-created-table-column" scope="col"><a href="?user=&status=All&role=All&permission=All&order=created&sort=asc" title="sort by Member for">Member for<span class="tablesort tablesort--asc">
<span class="visually-hidden">
Sort ascending
</span>
</span>
</a></th>
<th class="priority-low views-field views-field-access" id="view-access-table-column" scope="col"><a href="?user=&status=All&role=All&permission=All&order=access&sort=desc" title="sort by Last access">Last access</a></th>
<th id="view-operations-table-column" class="views-field views-field-operations" scope="col">Operations</th>
</tr>
</thead>
<tbody>
<tr>
...
CSS
body {
color: #333;
font: normal 81.3%/1.538em "Lucida Grande", "Lucida Sans Unicode", "DejaVu Sans", "Lucida Sans", sans-serif;
}
/* CSS provided by normalize */
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
/* CSS provided by Seven */
/**
* @file
* Seven styles for Tables.
*/
table {
width: 100%;
margin: 0 0 10px;
}
caption {
text-align: left; /* LTR */
}
[dir="rtl"] caption {
text-align: right;
}
th {
text-align: left; /* LTR */
padding: 10px 12px;
}
[dir="rtl"] th {
text-align: right;
}
thead th {
background: #f5f5f2;
border: solid #bfbfba;
border-width: 1px 0;
color: #333;
text-transform: uppercase;
}
tr {
border-bottom: 1px solid #e6e4df;
padding: 0.1em 0.6em;
}
thead > tr {
border-bottom: 1px solid #000;
}
tbody tr:hover,
tbody tr:focus {
background: #f7fcff;
}
/* See colors.css */
tbody tr.color-warning:hover,
tbody tr.color-warning:focus {
background: #fdf8ed;
}
tbody tr.color-error:hover,
tbody tr.color-error:focus {
background: #fcf4f2;
}
table.no-highlight tr.selected td {
background: transparent;
}
td,
th {
vertical-align: middle;
}
td {
padding: 10px 12px;
text-align: left; /* LTR */
}
[dir="rtl"] td {
text-align: right;
}
th > a {
position: relative;
display: block;
}
/* 1. Must match negative bottom padding of the parent <th> */
th > a:after {
content: '';
display: block;
position: absolute;
top: 0;
bottom: -10px; /* 1. */
left: 0;
right: 0;
border-bottom: 2px solid transparent;
-webkit-transition: all 0.1s;
transition: all 0.1s;
}
th.is-active > a {
color: #004875;
}
th.is-active img {
position: absolute;
right: 0; /* LTR */
top: 50%;
}
[dir="rtl"] th.is-active img {
right: auto;
left: 0;
}
th.is-active > a:after {
border-bottom-color: #004875;
}
th > a:hover,
th > a:focus,
th.is-active > a:hover,
th.is-active > a:focus {
color: #008ee6;
text-decoration: none;
}
th > a:hover:after,
th >...