Of course, you can customize the CSS for your table by following the code snippet below:
.my-ng-table th {
text-align: center;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none
}
.my-ng-table th.sortable {
cursor: pointer
}
.my-ng-table th.sortable .sort-indicator {
padding-right: 18px;
position: relative
}
.my-ng-table th.sortable .sort-indicator:after,
.my-ng-table th.sortable .sort-indicator:before {
content: "";
border-width: 0 4px 4px;
border-style: solid;
border-color: #000 transparent;
visibility: visible;
right: 5px;
top: 50%;
position: absolute;
opacity: .3;
margin-top: -4px
}
.my-ng-table th.sortable .sort-indicator:before {
margin-top: 2px;
border-bottom: none;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #000
}
.my-ng-table th.sortable .sort-indicator:hover:after,
.my-ng-table th.sortable .sort-indicator:hover:before {
opacity: 1;
visibility: visible
}
.my-ng-table th.sortable.sort-asc,
.my-ng-table th.sortable.sort-desc {
background-color: rgba(141, 192, 219, .25);
text-shadow: 0 1px 1px hsla(0, 0%, 100%, .75)
}
.my-ng-table th.sortable.sort-asc .sort-indicator:after,
.my-ng-table th.sortable.sort-desc .sort-indicator:after {
margin-top: -2px
}
... (remaining CSS code adjusted to use custom class 'my-ng-table')
.my-ng-table .s1 {
width: 8.333333333333332%
}
@media all and (max-width: 468px) {
.s1,
.s2,
.s3,
.s4,
.s5,
.s6,
.s7,
.s8,
.s9,
.s10,
.s11,
.s12 {
width: 100%
}
.filter>.filter-cell {
padding: 0
}
}
Make sure to add a custom class like my-ng-table
when including your HTML table code. Then replace .ng-table
with my-ng-table
in the CSS provided above. Also, modify classes like .s1
, .s2
, etc., to be my-ng-table .s1
, my-ng-table .s2
, and so on to ensure these styles only apply to your table.
This customization should work specifically for your tables without any conflicts. Feel free to reach out if you need further assistance!
Hope this solution helps!