fleet/frontend/pages/queries/ManageQueriesPage/_styles.scss
noahtalerman 4b5891edbc
Add minimum width for Fleet UI and "Pack" tables on "Host details" page and "Queries" table (#1701)
- Add `$min-app-width: 1200px` to define the minimum width of the Fleet UI. 
- Remove sort form the "Query name" column in the "Pack" tables on the **Host details** page
- Set static widths all column in the "Pack" tables on the **Host details** page except the "Query name" column to support the new minimum width
- Set static widths for all columns in the "Queries" table except the "Name" and "Author" columns to support the new minimum width
2021-08-18 09:17:16 -04:00

113 lines
2.0 KiB
SCSS

.manage-queries-page {
&__header-wrap {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: $pad-xxlarge;
}
&__header {
display: flex;
align-items: center;
}
&__text {
margin-right: $pad-large;
}
&__title {
font-size: $large;
.fleeticon {
color: $core-fleet-blue;
margin-right: 15px;
}
.fleeticon-success-check {
color: $ui-success;
}
.fleeticon-offline {
color: $ui-error;
}
.fleeticon-mia {
color: $core-fleet-black;
}
}
&__description {
margin: 0 0 $pad-medium;
padding-top: $pad-xsmall;
h2 {
text-transform: uppercase;
color: $core-fleet-black;
font-weight: $regular;
font-size: $small;
}
p {
color: $core-dark-blue-grey;
margin: 0;
font-size: $x-small;
font-style: italic;
}
}
&__action-button-container {
display: flex;
align-items: flex-start;
}
.button {
font-size: $x-small;
img {
transform: scale(0.5);
}
}
&__modal-buttons {
width: 100%;
display: flex;
justify-content: flex-end;
.button:first-child {
margin-right: $pad-medium;
}
}
.queries-list-wrapper {
.data-table__table {
table-layout: fixed;
thead {
// Width for all columns except checkbox and "Name" columns
// For observers all columns except "Name" and "Author" columns
// Width calculation adjusts for each row's horizontal padding
th:not(:nth-child(1)):not(:nth-child(2)) {
width: calc(180px - (27px * 2));
}
}
tbody {
td {
overflow: hidden;
text-overflow: ellipsis;
}
// Width and overflow behavior for the link in the "Name" column
td {
.button {
display: block;
text-align: start;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
}
}