123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- .table {
- color: $font-color;
- margin-bottom: 0;
- }
- .table-middle {
- td {
- vertical-align: middle;
- }
- }
- .table-text-center {
- th {
- text-align: center;
- }
- td {
- text-align: center;
- }
- }
- table.data-table thead tr {
- background: transparent;
- }
- .table thead th {
- padding: .65rem;
- font-weight: 600;
- text-transform: capitalize;
- font-size: .95rem!important;
- border-bottom: 1px solid $table-border-color;
- //background: #f4f7fa;
- //border-top: 1px solid $table-border-color!important;
- }
- table.data-table thead th, table.data-table thead td, table.data-table tfoot th, table.data-table tfoot td {
- font-size: .9rem!important;
- }
- table.data-table:not(.table-bordered) thead tr th {
- text-transform: capitalize;
- }
- table.data-table {
- border: 0;
- }
- .table td {
- padding: .55rem;
- height: 55px;
- line-height: 1.42857;
- border-color: $table-border-color;
- }
- .table tr td:first-child, .table tr th:first-child {
- padding-left: 2rem;
- }
- .quick-search-clear {
- margin-left:-1.45rem;
- position: relative;
- color: $white;
- }
- // 解决 rwd-table 下拉选框显示bug
- .table-responsive {
- border: 0!important;
- margin-bottom: 0!important;
- overflow-x: inherit;
- }
- .table-responsive[data-pattern=priority-columns] {
- overflow-y: auto!important;
- }
- .custom-data-table-header .table-responsive {
- overflow: visible!important;
- padding-bottom: 0!important;
- }
- .sticky-table-header {
- z-index: 45!important;
- }
- // 解决 rwd-table 下拉选框显示bug
- table.table-bordered.data-table:not(.complex-headers) tbody th, table.table-bordered.data-table tbody td {
- border-bottom-width: 1px
- }
- table.table-bordered.data-table th:not(.complex-headers), table.table-bordered.data-table td {
- border-left-width: 1px;
- }
- table.table-bordered.data-table th:last-child, table.table-bordered.data-table th:last-child, table.table-bordered.data-table td:last-child, table.table-bordered.data-table td:last-child {
- border-right-width: 1px;
- }
- table.data-table.complex-headers {
- border: 1px solid $table-border-color-darker;
- }
- table.data-table.complex-headers thead th, table.data-table.complex-headers thead td, table.data-table.complex-headers tfoot th, table.data-table.complex-headers tfoot td {
- border-bottom: 1px solid $table-border-color-darker;
- border-right: 1px solid $table-border-color-darker;
- }
- .data-table.table-bordered:not(.complex-headers) thead th {
- border-right: 1px solid darken($border-color, 3%);
- border-bottom: 1px solid darken($border-color, 3%);
- }
- .data-table.table-bordered:not(.complex-headers) tr:first-child th {
- border-top: 1px solid darken($border-color, 3%);
- }
- .data-table.table-bordered:not(.complex-headers) thead tr th:first-child {
- border-left: 1px solid darken($border-color, 3%);
- }
- /* ------------------- 多表头 --------------------- */
- table.table-bordered.data-table.complex-headers {
- border-spacing: 0;
- margin-top: 12px!important;
- box-shadow: $shadow;
- thead th {
- vertical-align: middle;
- font-size: 1rem!important;
- }
- tbody tr {
- box-shadow: none;
- border-radius: 0;
- td {
- border-bottom: 1px solid lighten($table-border-color-darker, 4%);
- border-right: 1px solid lighten($table-border-color-darker, 4%);
- }
- td:first-child {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- }
- td:last-child {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- border-right: 0;
- }
- }
- tbody tr:last-child td {
- border-bottom: 0;
- }
- }
- .table-hover tbody tr:hover {
- color: $font-color;
- background-color: lighten($dark30, 1%);
- }
- /*--------------------------------------------------- */
- .table.default-table {
- tr {
- box-shadow: none!important;
- }
- td {
- border-top: 1px solid #f0f4f8!important;
- border-radius: 0!important;
- }
- thead th {
- border-bottom: 2px solid #f0f4f8!important;
- }
- }
- .table.default-table.table-bordered th, .table.default-table.table-bordered td {
- border: 1px solid #f0f4f8!important;
- }
- $table-border-color: #eff3f8;
- $table-bg: darken(#f7f7f9, 3.8%);
- //$table-bg: #f7f7f9;
- .table-collapse {
- //table.data-table thead th {
- // font-weight: 500;
- //}
- .custom-data-table.data-table tbody tr td:first-child {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- }
- .custom-data-table.data-table tbody tr td:last-child{
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- }
- .custom-data-table.data-table tbody tr:first-child td:first-child {
- border-top-left-radius: $card-border-radius;
- }
- .custom-data-table.data-table tbody tr:first-child td:last-child{
- border-top-right-radius: $card-border-radius;
- }
- .custom-data-table.data-table tbody tr:last-child td:first-child {
- border-bottom-left-radius: $card-border-radius;
- }
- .custom-data-table.data-table tbody tr:last-child td:last-child{
- border-bottom-right-radius: $card-border-radius;
- }
- .table.custom-data-table {
- padding: 3px 5px 5px;
- }
- .table-fixed-left .table.custom-data-table {
- padding: 3px 0 0 5px;
- }
- .table-fixed-right .table.custom-data-table {
- padding: 3px 5px 0 0;
- }
- .table-fixed th {
- background: $table-bg;
- }
- }
- body:not(.dark-mode) {
- .table-collapse {
- box-shadow: $shadow;
- background: $table-bg;
- margin-top: 1rem;
- .custom-data-table {
- border-spacing: 0;
- margin-top: 0!important;
- background-color: $table-bg;
- }
- table.custom-data-table thead th {
- height: 38px;
- vertical-align: middle;
- }
- .custom-data-table tbody td {
- border-top: 1px solid $table-border-color;
- height: $table-td-height;
- }
- .custom-data-table tbody tr:first-child td {
- border-top: 0
- }
- table.custom-data-table tbody tr {
- box-shadow: none;
- }
- .quick-create td {
- background: #f7f7f9 !important;
- border-radius: 0;
- }
- .table-wrap {
- table.custom-data-table thead th {
- height: 19px;
- }
- }
- }
- }
- body.dark-mode {
- .table-collapse {
- table {
- border-spacing: 0 0.24rem;
- }
- table.custom-data-table.data-table tbody td {
- height: 56px;
- }
- .table.custom-data-table {
- padding: 3px 10px 10px;
- }
- .table-fixed-left .table.custom-data-table {
- padding: 3px 0 0 10px;
- }
- .table-fixed-right .table.custom-data-table {
- padding: 3px 10px 0 0;
- }
- }
- //.table-fixed-left .table.custom-data-table {
- // padding: 5px 0 0 10px;
- //}
- //.table-fixed-right .table.custom-data-table {
- // padding: 5px 10px 0 0;
- //}
- }
- .column-selector {
- margin: 0 5px;
-
- .dropdown-menu {
- z-index: 100;
- }
- .selectors {
- padding: 0 1rem;
- height: auto;
- max-height: 500px;
- overflow-x: hidden;
- }
- }
- @include scrollbar('.column-selector .selectors')
|