2020-01-14 18:39:15 +08:00
|
|
|
// scss-lint:disable SelectorDepth QualifyingElement NestingDepth
|
|
|
|
// Data table
|
|
|
|
|
2023-06-20 18:52:02 +08:00
|
|
|
.dataTables_scrollBody {
|
|
|
|
.column-grip {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-14 18:39:15 +08:00
|
|
|
.table.dataTable {
|
|
|
|
table-layout: initial;
|
|
|
|
text-overflow: initial;
|
|
|
|
width: 100%;
|
|
|
|
word-break: initial;
|
|
|
|
|
2023-06-20 18:52:02 +08:00
|
|
|
&.table--reorderable-columns {
|
|
|
|
thead tr th:not(:first-child) {
|
|
|
|
padding-left: 24px;
|
|
|
|
|
|
|
|
.column-grip {
|
|
|
|
color: $color-volcano;
|
|
|
|
cursor: grab;
|
|
|
|
display: block;
|
|
|
|
left: 0;
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover .column-grip {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-14 18:39:15 +08:00
|
|
|
thead {
|
|
|
|
tr {
|
|
|
|
th {
|
2020-09-01 22:25:30 +08:00
|
|
|
background-color: $color-concrete;
|
2020-01-15 23:46:01 +08:00
|
|
|
border-bottom: 2px solid $color-white;
|
2020-01-14 18:39:15 +08:00
|
|
|
border-left: 2px solid $color-white;
|
|
|
|
font-weight: bold;
|
2020-01-17 20:55:43 +08:00
|
|
|
overflow: hidden;
|
2020-01-16 18:26:23 +08:00
|
|
|
white-space: nowrap;
|
2023-03-03 23:17:23 +08:00
|
|
|
cursor: pointer;
|
2020-01-16 18:26:23 +08:00
|
|
|
|
|
|
|
.modal-tooltiptext {
|
|
|
|
margin-left: -10px;
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
2020-01-14 18:39:15 +08:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
color: $color-silver-chalice;
|
|
|
|
font-weight: normal;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2023-03-03 23:27:54 +08:00
|
|
|
&.sorting:hover {
|
2023-06-20 18:52:02 +08:00
|
|
|
background-color: $color-alto;
|
2023-03-03 23:27:54 +08:00
|
|
|
}
|
|
|
|
|
2020-01-14 18:39:15 +08:00
|
|
|
&:first-child {
|
|
|
|
border-left: 0;
|
2020-09-02 18:00:52 +08:00
|
|
|
border-top-left-radius: $border-radius-default;
|
2020-09-01 22:25:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
2020-09-02 18:00:52 +08:00
|
|
|
border-top-right-radius: $border-radius-default;
|
2020-01-14 18:39:15 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
2023-03-22 20:47:59 +08:00
|
|
|
padding: 8px 6px;
|
2020-01-14 18:39:15 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody {
|
|
|
|
tr {
|
|
|
|
&.selected,
|
|
|
|
.selected {
|
2023-03-13 18:25:04 +08:00
|
|
|
background-color: $color-concrete;
|
2020-01-14 18:39:15 +08:00
|
|
|
}
|
|
|
|
}
|
2022-04-13 16:12:01 +08:00
|
|
|
|
|
|
|
td {
|
|
|
|
padding-left: 10px;
|
2023-02-14 20:19:24 +08:00
|
|
|
|
|
|
|
.nowrap {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2022-04-13 16:12:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.dt-body-center {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
2020-01-14 18:39:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sorting_desc,
|
|
|
|
.sorting_asc {
|
|
|
|
background-color: $color-alto;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
color: $color-volcano;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-15 20:52:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
.dataTables_paginate {
|
|
|
|
.paginate_button {
|
|
|
|
background-color: transparent;
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 36px;
|
|
|
|
margin-left: 4px;
|
|
|
|
min-width: 36px;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
a {
|
|
|
|
background-color: inherit;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
border-radius: $border-radius-default;
|
|
|
|
color: inherit;
|
2023-03-22 20:47:59 +08:00
|
|
|
min-height: 36px;
|
|
|
|
min-width: 36px;
|
2020-01-15 20:52:17 +08:00
|
|
|
outline: 0;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: inherit;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2023-03-15 18:15:36 +08:00
|
|
|
min-height: 36px;
|
2020-01-15 20:52:17 +08:00
|
|
|
a {
|
2023-03-15 18:15:36 +08:00
|
|
|
min-width: 36px;
|
|
|
|
min-height: 36px;
|
2020-01-15 20:52:17 +08:00
|
|
|
background-color: inherit;
|
|
|
|
border: 1px solid $brand-primary;
|
|
|
|
color: inherit;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: inherit;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.previous {
|
2023-06-16 18:38:09 +08:00
|
|
|
align-items: center;
|
|
|
|
display: inline-flex;
|
|
|
|
|
2020-01-15 20:52:17 +08:00
|
|
|
&::before {
|
2023-06-16 18:38:09 +08:00
|
|
|
@include font-sn-icon;
|
|
|
|
content: $sn-icon-left;
|
2020-01-15 20:52:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2023-06-16 18:38:09 +08:00
|
|
|
min-height: unset;
|
|
|
|
padding-left: .25rem;
|
2020-01-15 20:52:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.next {
|
2023-06-16 18:38:09 +08:00
|
|
|
align-items: center;
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
@include font-sn-icon;
|
|
|
|
content: $sn-icon-right;
|
2020-01-15 20:52:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2023-06-16 18:38:09 +08:00
|
|
|
min-height: unset;
|
|
|
|
padding-right: .25rem;
|
2020-01-15 20:52:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|