// General styles .table { thead th { padding-top: $table-head-spacer-y; padding-bottom: $table-head-spacer-y; font-size: $table-head-font-size; text-transform: $table-head-text-transform; font-weight: $font-weight-bolder; border-top: 0; } th { font-weight: $font-weight-bold; padding:1rem; } td { .progress { height: 3px; width: 120px; margin: 0; } } td, th { font-size: $table-body-font-size; white-space: nowrap; } // User Table &.user-table{ thead th{ border-top:0; } } // Vetical align table content &.align-items-center { td, th { vertical-align: middle; } } // Styles for dark table .thead-dark { th { background-color: $gray-800; color: $white; a { color: $dark; } } } // Styles for light table .thead-light { th { background-color: $gray-100; color: $dark; a { color: $dark; } } } } // Add transition for hover state .table-hover { tr { @include transition($transition-base); } } // Flush tables .table-flush { td, th { border-left: 0; border-right: 0; } tbody { tr { &:first-child { td, th { border-top: 0; } } &:last-child { td, th { border-bottom: 0; } } } } } // Tables inside cards .card { .table { margin-bottom: 0; td, th { padding-left: $card-spacer-x; padding-right: $card-spacer-x; } } } .table { [data-sort] { cursor: pointer; } .custom-toggle { display: block; } .thead-dark { [data-sort] { &::after { content: str-replace(url("data:image/svg+xml;utf8,"), "#", "%23"); margin-left: .25rem; } } } .thead-light { [data-sort] { &::after { content: str-replace(url("data:image/svg+xml;utf8,"), "#", "%23"); margin-left: .25rem; } } } } .dataTables_wrapper { .dataTables_info{ padding-left: 1.5rem; } .dataTables_paginate{ padding-right: 1.5rem; } .dataTables_length { label{ padding-left:1.5rem; } } .dataTables_filter { padding-right: 1.5rem; } } .dataTable-top, .dataTable-bottom { display: flex; width: 100%; justify-content: space-between; @include media-breakpoint-down(md) { flex-direction: column; .dataTable-info { margin-bottom: 1rem; } } } .dataTable-top { padding: 0 0 1rem 0; } .dataTable-bottom { padding: 1.5rem 0 0 0; } .dataTable-pagination { display: flex; @include list-unstyled(); a { padding: $pagination-padding-y $pagination-padding-x; @include font-size(null); } li { @if $pagination-margin-left == (-$pagination-border-width) { &:first-child { a { @include border-start-radius($pagination-border-radius); } } &:last-child { a { @include border-end-radius($pagination-border-radius); } } } @else { //Add border-radius to all pageLinks in case they have left margin a { @include border-radius($pagination-border-radius); } } } > li { &:not(:first-child) a { margin-left: $pagination-margin-left; } &.active a { z-index: 3; color: $pagination-active-color; @include gradient-bg($pagination-active-bg); border-color: $pagination-active-border-color; } &.disabled a { color: $pagination-disabled-color; pointer-events: none; background-color: $pagination-disabled-bg; border-color: $pagination-disabled-border-color; } a { position: relative; display: block; color: $pagination-color; text-decoration: if($link-decoration == none, null, none); background-color: $pagination-bg; border: $pagination-border-width solid $pagination-border-color; &:hover { z-index: 2; color: $pagination-hover-color; text-decoration: if($link-hover-decoration == underline, none, null); background-color: $pagination-hover-bg; border-color: $pagination-hover-border-color; } &:focus { z-index: 3; outline: $pagination-focus-outline; box-shadow: $pagination-focus-box-shadow; } } } } .dataTable-selector { display: inline-block; width: auto; height: $form-select-height; padding: $form-select-padding-y ($form-select-padding-x + $form-select-indicator-padding) $form-select-padding-y $form-select-padding-x; font-family: $form-select-font-family; @include font-size($form-select-font-size); font-weight: $form-select-font-weight; line-height: $form-select-line-height; color: $form-select-color; vertical-align: middle; background-color: $form-select-bg; background-image: escape-svg($form-select-indicator); background-repeat: no-repeat; background-position: $form-select-bg-position; background-size: $form-select-bg-size; border: $form-select-border-width solid $form-select-border-color; @include border-radius($form-select-border-radius, 0); @include box-shadow($form-select-box-shadow); appearance: none; &:focus { border-color: $form-select-focus-border-color; outline: 0; @if $enable-shadows { @include box-shadow($form-select-box-shadow, $form-select-focus-box-shadow); } @else { // Avoid using mixin so we can pass custom focus shadow properly box-shadow: $form-select-focus-box-shadow; } &::-ms-value { // For visual consistency with other platforms/browsers, // suppress the default white text on blue background highlight given to // the selected option text when the (still closed) s in some browsers, due to the limited stylability of `