mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
* Fullscreen mode always an option * Export Results button iff results && no errors * Export Errors button added Suggestion added by: @noahtalerman <noah@fleetdm.com>
183 lines
3 KiB
SCSS
183 lines
3 KiB
SCSS
.query-results-table {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: $white;
|
|
width: 100%;
|
|
min-height: calc(500px + (#{$pad-base} * 2));
|
|
box-sizing: border-box;
|
|
|
|
&__table-title {
|
|
font-size: $x-small;
|
|
font-weight: $bold;
|
|
}
|
|
|
|
&__button-wrap {
|
|
@include clearfix;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
&__export-btn {
|
|
float: right;
|
|
}
|
|
|
|
&__filter-icon {
|
|
color: $ui-dark-grey;
|
|
|
|
&--is-active {
|
|
color: $core-blue;
|
|
}
|
|
}
|
|
|
|
&__progress-details {
|
|
display: inline-block;
|
|
width: 378px;
|
|
}
|
|
|
|
&__results-table-wrapper {
|
|
display: flex;
|
|
border: solid 1px $ui-borders;
|
|
border-radius: 3px;
|
|
overflow: scroll;
|
|
margin-top: 4px;
|
|
min-height: 200px;
|
|
max-height: 400px;
|
|
width: 100%;
|
|
|
|
.kolide-spinner {
|
|
align-self: center;
|
|
}
|
|
|
|
.no-results-message {
|
|
flex-grow: 1;
|
|
align-self: center;
|
|
text-align: center;
|
|
font-size: $x-small;
|
|
}
|
|
}
|
|
|
|
&__error-table-container {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
&__error-table-wrapper {
|
|
display: flex;
|
|
border: solid 1px $ui-borders;
|
|
border-radius: 3px;
|
|
overflow: scroll;
|
|
margin-bottom: 40px;
|
|
margin-top: 4px;
|
|
max-height: 200px;
|
|
width: 100%;
|
|
}
|
|
|
|
&__table {
|
|
border-collapse: collapse;
|
|
color: $core-dark-blue-grey;
|
|
font-size: $x-small;
|
|
width: 100%;
|
|
}
|
|
|
|
thead {
|
|
background-color: $core-light-blue-grey;
|
|
color: $core-black;
|
|
text-align: left;
|
|
border-bottom: 1px solid $ui-borders;
|
|
|
|
th {
|
|
padding: 12px 24px;
|
|
min-width: 125px;
|
|
|
|
.form-field {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
span {
|
|
white-space: nowrap;
|
|
|
|
.kolidecon {
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.input-field {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
tbody {
|
|
background-color: $white;
|
|
|
|
td {
|
|
padding: 12px 24px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
tr {
|
|
border-bottom: 1px solid $ui-borders;
|
|
|
|
&:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&--full-screen {
|
|
animation: growFullScreen 500ms;
|
|
animation-fill-mode: forwards;
|
|
border-radius: 3px;
|
|
box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
|
|
border: solid 1px $ui-borders;
|
|
z-index: 99;
|
|
padding: 20px;
|
|
|
|
.query-progress-details__run-btn {
|
|
display: none;
|
|
}
|
|
|
|
.query-progress-details__stop-btn {
|
|
display: none;
|
|
}
|
|
|
|
.query-results-table__results-table-wrapper {
|
|
max-height: none;
|
|
}
|
|
|
|
.query-results-table__error-table-container {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&--shrinking {
|
|
animation: shrinkFullScreen 500ms;
|
|
animation-fill-mode: forwards;
|
|
z-index: 99;
|
|
}
|
|
|
|
&__fullscreen-btn {
|
|
float: right;
|
|
margin-left: 15px;
|
|
}
|
|
}
|
|
|
|
@keyframes growFullScreen {
|
|
100% {
|
|
top: 60px;
|
|
right: $pad-half;
|
|
bottom: $pad-half;
|
|
left: $pad-half;
|
|
max-width: calc(100vw - #{$pad-half} - #{$pad-half});
|
|
max-height: 100vh;
|
|
}
|
|
}
|
|
|
|
@keyframes shrinkFullScreen {
|
|
0% {
|
|
top: $pad-half;
|
|
right: auto;
|
|
bottom: auto;
|
|
left: $pad-half;
|
|
max-width: 100vw;
|
|
max-height: 100vh;
|
|
}
|
|
}
|