mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 21:37:41 +00:00
Closes HDX-2866 This PR updates references to background colors (color-success and color-danger no longer exist). The background colors now render: <img width="211" height="281" alt="Screenshot 2025-11-19 at 1 56 03 PM" src="https://github.com/user-attachments/assets/04102b3a-e03a-40b5-bd20-4bb2dc11edbe" /> <img width="210" height="128" alt="Screenshot 2025-11-19 at 1 56 49 PM" src="https://github.com/user-attachments/assets/4ca09e95-f078-4bad-9790-f6f76afccd55" />
219 lines
3.6 KiB
SCSS
219 lines
3.6 KiB
SCSS
$button-height: 18px;
|
|
|
|
.table {
|
|
table-layout: fixed;
|
|
border-spacing: 0;
|
|
border-collapse: separate;
|
|
background: var(--color-bg-body);
|
|
}
|
|
|
|
.tableHead {
|
|
background: var(--color-bg-body);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
height: 24px;
|
|
}
|
|
|
|
.tableRow {
|
|
position: relative;
|
|
|
|
&__selected {
|
|
background-color: var(--color-bg-muted);
|
|
font-weight: bold;
|
|
}
|
|
|
|
&:hover .rowButtons {
|
|
opacity: 1;
|
|
}
|
|
|
|
&:hover .rowContentButton {
|
|
background-color: var(--color-bg-muted);
|
|
}
|
|
|
|
&:has(.expandButton:hover) .rowButtons {
|
|
opacity: 0 !important;
|
|
}
|
|
|
|
&:has(.expandButton:hover) .rowContentButton {
|
|
background-color: transparent !important;
|
|
}
|
|
}
|
|
|
|
.expandedRowContent {
|
|
max-height: 400px;
|
|
overflow: auto;
|
|
background-color: var(--color-bg-muted);
|
|
}
|
|
|
|
.expandButton {
|
|
background: transparent;
|
|
border: none;
|
|
padding: 0 2px;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color 0.15s ease-in-out;
|
|
border-radius: 4px;
|
|
min-height: $button-height;
|
|
|
|
&:hover {
|
|
background-color: var(--color-bg-muted);
|
|
}
|
|
|
|
&:focus,
|
|
&:focus-visible {
|
|
background-color: var(--color-bg-muted);
|
|
outline: none;
|
|
}
|
|
|
|
&:active {
|
|
outline: none;
|
|
box-shadow: none;
|
|
background-color: var(--color-bg-muted);
|
|
}
|
|
|
|
svg {
|
|
transition: transform 0.2s ease-in-out;
|
|
transform-origin: center;
|
|
}
|
|
|
|
&.expanded svg {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
|
|
.expandButtonSeparator {
|
|
width: 1px;
|
|
height: calc($button-height - 8px);
|
|
border-right: 1px solid var(--color-border);
|
|
margin-left: 2px;
|
|
margin-right: 2px;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.rowContentButton {
|
|
background: transparent;
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
width: 100%;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
color: inherit;
|
|
transition: background-color 0.15s ease-in-out;
|
|
border-radius: 4px;
|
|
min-height: $button-height;
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
|
|
&:hover .rowButtons {
|
|
opacity: 1;
|
|
}
|
|
|
|
&:focus,
|
|
&:focus-visible {
|
|
background-color: var(--color-bg-muted);
|
|
outline: none;
|
|
}
|
|
|
|
&:active {
|
|
outline: none;
|
|
box-shadow: none;
|
|
background-color: var(--color-bg-muted);
|
|
}
|
|
|
|
&.isWrapped {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
&.isTruncated {
|
|
align-items: flex-start;
|
|
}
|
|
}
|
|
|
|
.rowButtons {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 0;
|
|
padding-left: 10px;
|
|
padding-right: 4px;
|
|
display: flex;
|
|
gap: 4px;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease-in-out;
|
|
z-index: 0;
|
|
align-items: flex-start;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.iconActionButton {
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
background-color: var(--color-bg-surface);
|
|
border: 1px solid var(--color-border);
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: transform 0.2s ease-in-out;
|
|
pointer-events: auto;
|
|
|
|
&:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
&.copied {
|
|
color: var(--color-bg-success);
|
|
}
|
|
}
|
|
|
|
.fieldTextContainer {
|
|
position: relative;
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.fieldText {
|
|
overflow: hidden;
|
|
padding: 2px 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease-in-out;
|
|
|
|
> span:hover {
|
|
border-radius: 4px;
|
|
background-color: var(--color-bg-highlighted);
|
|
}
|
|
|
|
&.chart {
|
|
overflow: visible;
|
|
min-height: 50px;
|
|
}
|
|
}
|
|
|
|
.fieldText.truncated {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-height: $button-height;
|
|
}
|
|
|
|
.fieldText.wrapped {
|
|
word-break: break-word;
|
|
white-space: normal;
|
|
display: flex;
|
|
}
|
|
|
|
.fieldTextPopover {
|
|
background-color: transparent;
|
|
border: none;
|
|
box-shadow: none;
|
|
padding: 0;
|
|
}
|