2021-04-04 12:45:24 +00:00
|
|
|
.table-container {
|
2025-09-29 17:10:41 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: $gap-table-elements;
|
|
|
|
|
|
2024-08-20 13:41:49 +00:00
|
|
|
// Container is responsive design used when customFilters is rendered
|
|
|
|
|
.container {
|
|
|
|
|
display: grid;
|
2025-01-10 15:37:55 +00:00
|
|
|
grid-template-columns: 1fr auto; /* First column takes all remaining space */
|
|
|
|
|
grid-template-rows: auto auto; /* Two rows for smaller screens*/
|
2024-08-20 13:41:49 +00:00
|
|
|
width: 100%;
|
|
|
|
|
height: max-content;
|
2025-09-29 17:10:41 +00:00
|
|
|
gap: $gap-table-elements;
|
2024-08-20 13:41:49 +00:00
|
|
|
}
|
|
|
|
|
|
2025-01-10 15:37:55 +00:00
|
|
|
.stackable-header {
|
2024-08-20 13:41:49 +00:00
|
|
|
min-width: max-content;
|
|
|
|
|
align-content: center;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
2025-09-29 17:10:41 +00:00
|
|
|
gap: $gap-table-elements;
|
2024-08-20 13:41:49 +00:00
|
|
|
|
|
|
|
|
> div {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
}
|
2025-01-10 15:37:55 +00:00
|
|
|
|
|
|
|
|
// only if in stackable header
|
|
|
|
|
.table-container__search {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
2024-08-20 13:41:49 +00:00
|
|
|
}
|
|
|
|
|
|
2025-01-10 15:37:55 +00:00
|
|
|
.top-shift-header {
|
2024-08-20 13:41:49 +00:00
|
|
|
grid-column: 1 / -1; /* Span across all columns */
|
|
|
|
|
grid-row: 1; /* Place in the first row */
|
|
|
|
|
|
2025-01-10 15:37:55 +00:00
|
|
|
.Select-multi-value-wrapper {
|
|
|
|
|
height: 36px; // Fixes height issues
|
|
|
|
|
width: 236px;
|
|
|
|
|
}
|
2024-08-20 13:41:49 +00:00
|
|
|
}
|
|
|
|
|
|
2025-01-10 15:37:55 +00:00
|
|
|
.stackable-header:nth-child(1) {
|
|
|
|
|
grid-column: 1 / span 2; /* Make Header 1 expand across two columns */
|
2024-08-20 13:41:49 +00:00
|
|
|
grid-row: 2;
|
|
|
|
|
|
2025-01-10 15:37:55 +00:00
|
|
|
.form-field--dropdown {
|
|
|
|
|
width: 235px;
|
|
|
|
|
}
|
2024-08-20 13:41:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Media query for larger screens */
|
2025-01-10 15:37:55 +00:00
|
|
|
@media (min-width: $break-md) {
|
2024-08-20 13:41:49 +00:00
|
|
|
.container {
|
2025-01-10 15:37:55 +00:00
|
|
|
grid-template-columns: 1fr auto; /* First column takes all remaining space */
|
2024-08-20 13:41:49 +00:00
|
|
|
grid-template-rows: auto; /* Single row */
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-10 15:37:55 +00:00
|
|
|
.top-shift-header {
|
|
|
|
|
grid-column: 2; /* Single row */
|
2024-08-20 13:41:49 +00:00
|
|
|
}
|
|
|
|
|
|
2025-01-10 15:37:55 +00:00
|
|
|
.stackable-header:nth-child(1) {
|
|
|
|
|
grid-column: 1; /* Ensure Header 1 stays in the first column */
|
|
|
|
|
grid-row: 1; /* Single row */
|
2024-08-20 13:41:49 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-09 22:43:34 +00:00
|
|
|
// TODO: Fix hacky solution to clientside search being 0 no longer accessing rows.length
|
|
|
|
|
.client-result-count-0 {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-04 12:45:24 +00:00
|
|
|
&__header {
|
|
|
|
|
display: flex;
|
2022-04-07 19:12:38 +00:00
|
|
|
width: 100%;
|
|
|
|
|
justify-content: space-between;
|
2021-04-04 12:45:24 +00:00
|
|
|
align-items: center;
|
2025-09-29 17:10:41 +00:00
|
|
|
gap: $gap-table-elements;
|
2025-01-14 17:08:46 +00:00
|
|
|
|
2022-04-07 19:12:38 +00:00
|
|
|
&.stack-table-controls {
|
|
|
|
|
align-items: start;
|
|
|
|
|
|
2023-07-12 22:45:49 +00:00
|
|
|
@media (min-width: $break-xs) {
|
2022-04-07 19:12:38 +00:00
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: end;
|
|
|
|
|
justify-content: space-between;
|
2024-08-20 13:41:49 +00:00
|
|
|
|
|
|
|
|
.table-container__search {
|
|
|
|
|
order: -2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-container__results-count {
|
|
|
|
|
order: -1;
|
|
|
|
|
}
|
2022-04-07 19:12:38 +00:00
|
|
|
}
|
2024-08-20 13:41:49 +00:00
|
|
|
|
2023-07-12 22:45:49 +00:00
|
|
|
@media (min-width: $break-md) {
|
2022-04-07 19:12:38 +00:00
|
|
|
align-items: center;
|
2024-08-20 13:41:49 +00:00
|
|
|
|
|
|
|
|
.table-container__search {
|
|
|
|
|
order: initial;
|
|
|
|
|
}
|
2022-04-07 19:12:38 +00:00
|
|
|
}
|
|
|
|
|
}
|
2023-08-09 17:35:28 +00:00
|
|
|
|
|
|
|
|
// filter and search bar height
|
|
|
|
|
.dropdown__select,
|
|
|
|
|
.input-with-icon {
|
2025-09-29 17:10:41 +00:00
|
|
|
height: 36px;
|
2023-08-09 17:35:28 +00:00
|
|
|
}
|
2022-04-07 19:12:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__header-left {
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 100%;
|
2021-04-04 12:45:24 +00:00
|
|
|
justify-content: space-between;
|
2024-08-20 13:41:49 +00:00
|
|
|
flex-direction: row;
|
2022-04-07 19:12:38 +00:00
|
|
|
align-items: center;
|
2025-10-02 13:34:25 +00:00
|
|
|
gap: $gap-table-elements; // space between filters and host count on low screen widths
|
2022-04-07 19:12:38 +00:00
|
|
|
|
|
|
|
|
&.stack-table-controls {
|
2024-08-20 13:41:49 +00:00
|
|
|
flex-direction: column;
|
2022-04-07 19:12:38 +00:00
|
|
|
align-items: start;
|
|
|
|
|
|
2023-07-12 22:45:49 +00:00
|
|
|
@media (min-width: $break-md) {
|
2022-04-07 19:12:38 +00:00
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-09 17:35:28 +00:00
|
|
|
}
|
2021-04-04 12:45:24 +00:00
|
|
|
|
|
|
|
|
&__results-count {
|
2022-07-27 12:51:45 +00:00
|
|
|
display: flex;
|
2025-01-09 20:01:09 +00:00
|
|
|
align-items: baseline;
|
2021-04-04 12:45:24 +00:00
|
|
|
font-size: $x-small;
|
|
|
|
|
font-weight: $bold;
|
2021-04-09 19:04:11 +00:00
|
|
|
color: $core-fleet-black;
|
2021-04-04 12:45:24 +00:00
|
|
|
margin: 0;
|
2025-09-29 17:10:41 +00:00
|
|
|
height: 36px;
|
|
|
|
|
gap: $gap-table-elements;
|
2021-04-04 12:45:24 +00:00
|
|
|
|
2025-01-09 20:01:09 +00:00
|
|
|
> span {
|
2025-09-29 17:10:41 +00:00
|
|
|
line-height: 36px; // Match other header components' height but still align text baseline
|
2025-01-14 17:08:46 +00:00
|
|
|
min-width: fit-content;
|
2025-01-09 20:01:09 +00:00
|
|
|
}
|
|
|
|
|
|
2022-07-27 12:51:45 +00:00
|
|
|
.count-error {
|
|
|
|
|
color: $ui-error;
|
|
|
|
|
}
|
|
|
|
|
.count-loading {
|
|
|
|
|
color: $ui-fleet-black-50;
|
|
|
|
|
}
|
2021-04-04 12:45:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__edit-columns-button:hover {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
text-decoration: underline;
|
2021-04-09 19:04:11 +00:00
|
|
|
color: $core-vibrant-blue-over;
|
2021-04-04 12:45:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__search-input {
|
|
|
|
|
position: relative;
|
2021-04-09 19:04:11 +00:00
|
|
|
color: $core-fleet-blue;
|
2022-04-07 19:12:38 +00:00
|
|
|
width: 100%;
|
|
|
|
|
|
2023-08-09 17:35:28 +00:00
|
|
|
.input-with-icon {
|
|
|
|
|
width: 100%;
|
|
|
|
|
min-width: 250px;
|
2022-04-07 19:12:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.stack-table-controls {
|
|
|
|
|
padding-bottom: $pad-large;
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
2023-07-12 22:45:49 +00:00
|
|
|
@media (min-width: $break-xs) {
|
2022-04-07 19:12:38 +00:00
|
|
|
padding-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-04-04 12:45:24 +00:00
|
|
|
|
|
|
|
|
.input-field {
|
|
|
|
|
padding-left: 42px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-07 01:56:30 +00:00
|
|
|
.fleeticon {
|
2021-04-04 12:45:24 +00:00
|
|
|
position: absolute;
|
|
|
|
|
top: 10px;
|
|
|
|
|
left: 12px;
|
2021-04-10 00:30:42 +00:00
|
|
|
font-size: $medium;
|
|
|
|
|
color: $core-fleet-black;
|
2021-04-04 12:45:24 +00:00
|
|
|
}
|
|
|
|
|
}
|
2021-07-15 17:01:52 +00:00
|
|
|
|
2022-04-07 19:12:38 +00:00
|
|
|
.table-container__search-input.wide-search {
|
2021-07-15 17:01:52 +00:00
|
|
|
margin-left: 0;
|
2023-08-09 17:35:28 +00:00
|
|
|
margin-bottom: $pad-small;
|
2022-04-07 19:12:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#search-tooltip {
|
2022-10-14 19:26:15 +00:00
|
|
|
width: 190px;
|
2022-04-07 19:12:38 +00:00
|
|
|
text-align: center;
|
2021-07-15 17:01:52 +00:00
|
|
|
}
|
2021-08-11 21:37:36 +00:00
|
|
|
|
|
|
|
|
&__empty-page {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-20 16:40:43 +00:00
|
|
|
// Hides the next button on this UI
|
|
|
|
|
&__previous-button {
|
|
|
|
|
button:last-child {
|
|
|
|
|
display: none;
|
2021-08-11 21:37:36 +00:00
|
|
|
}
|
|
|
|
|
}
|
2022-04-27 16:05:08 +00:00
|
|
|
|
|
|
|
|
.fleet-checkbox__tick {
|
|
|
|
|
top: 1px;
|
|
|
|
|
}
|
2023-01-25 16:10:15 +00:00
|
|
|
|
2023-01-27 19:16:03 +00:00
|
|
|
// Truncates clickable button cells (not compatible with buttons with icons)
|
|
|
|
|
tbody {
|
|
|
|
|
.children-wrapper {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
2025-09-29 17:10:41 +00:00
|
|
|
display: flex;
|
2023-01-27 19:16:03 +00:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
2023-06-02 13:48:17 +00:00
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
vertical-align: sub;
|
|
|
|
|
}
|
2023-01-25 16:10:15 +00:00
|
|
|
}
|
2024-02-08 13:54:00 +00:00
|
|
|
.linkToFilteredHosts__header {
|
|
|
|
|
width: 120px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-29 17:10:41 +00:00
|
|
|
// This hides View all host button unless the row is hovered
|
2024-02-08 13:54:00 +00:00
|
|
|
tr {
|
2025-09-29 17:10:41 +00:00
|
|
|
.row-hover-button {
|
2024-02-08 13:54:00 +00:00
|
|
|
opacity: 0;
|
|
|
|
|
transition: 250ms;
|
|
|
|
|
text-overflow: none;
|
2025-10-01 02:59:45 +00:00
|
|
|
|
|
|
|
|
// React-select's dropdown opacity must be controlled at input level for keyboard nav
|
|
|
|
|
// So must be controlled at input level here as well
|
|
|
|
|
&.actions-dropdown {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
.actions-dropdown-select__control {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
|
&--is-focused {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-02-08 13:54:00 +00:00
|
|
|
}
|
2024-12-26 22:51:28 +00:00
|
|
|
&:hover,
|
|
|
|
|
&:focus-visible {
|
2025-09-29 17:10:41 +00:00
|
|
|
.row-hover-button {
|
2024-02-08 13:54:00 +00:00
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2025-10-01 02:59:45 +00:00
|
|
|
.row-hover-button.actions-dropdown {
|
|
|
|
|
.actions-dropdown-select__control {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-02-08 13:54:00 +00:00
|
|
|
}
|
|
|
|
|
}
|
2021-04-04 12:45:24 +00:00
|
|
|
}
|