fleet/frontend/pages/hosts/ManageHostsPage/_styles.scss
Gabriel Hernandez df014bd508
fix responsiveness on manage host page table controls and update filter icon (#7636)
* fix responsiveness on manage host page table

* update filter icon on label filter to larger image
2022-09-08 13:59:24 +00:00

300 lines
5.4 KiB
SCSS

.manage-hosts {
.header-wrap {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: $pad-medium;
height: 38px;
.button-wrap {
display: flex;
justify-content: flex-end;
min-width: 266px;
}
}
.ace-fleet {
margin-bottom: $pad-medium;
}
&__header {
display: flex;
align-items: center;
min-width: 125px;
.form-field {
margin-bottom: 0;
}
}
&__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;
}
}
&__label-actions {
button {
&:first-child {
margin-right: $pad-medium;
}
}
}
&__label-block {
.title {
display: flex;
align-items: center;
span {
font-size: $x-small;
font-weight: $bold;
}
button {
margin-left: $pad-small;
padding: 0;
height: auto;
img {
margin: 0;
}
}
}
.description {
span {
vertical-align: text-top;
font-size: $x-small;
opacity: 0.5;
}
}
}
&__toggle-view {
.fleeticon {
width: 24px;
height: 24px;
margin-left: 12px;
fill: $ui-gray;
}
&--active {
.fleeticon {
fill: $core-fleet-purple;
}
}
}
.table-container {
padding-top: $pad-small;
&__header-left {
.controls {
display: flex;
align-items: center;
.manage-hosts__filter-dropdowns {
display: flex;
}
}
}
// table header content responsive styles
// NOTE: 1100px is a custom breakpoint to deal with responsiveness of the
// table controls. 990px doesnt work for us in this case.
@media (max-width: 1100px) {
&__header {
flex-direction: column;
}
.table-container__search {
order: 1;
width: 100%;
margin-bottom: $pad-small;
.table-container__search-input {
margin-left: 0;
& .search-field__input-wrapper {
width: auto;
}
}
}
.table-container__header-left {
order: 2;
display: flex;
flex-direction: column;
align-items: stretch;
.results-count {
order: 2;
}
.controls {
order: 1;
margin-bottom: $pad-large;
.manage-hosts__filter-dropdowns {
flex: 1;
.form-field--dropdown,
.manage-hosts__label-filter-dropdown {
flex: 1
}
.manage-hosts__status_dropdown {
width: auto;
}
}
}
}
}
.table-container__data-table-block {
.data-table-block {
.data-table {
&__wrapper {
overflow-x: scroll;
}
&__table {
tbody {
.issues__cell {
display: flex;
align-items: center;
.host-issue {
img {
width: 16px;
height: 16px;
vertical-align: sub;
}
}
}
.device_mapping__cell {
.text-cell {
display: inline;
}
.text-muted {
color: $ui-fleet-black-50;
}
}
}
}
}
}
}
}
.form-field--dropdown {
margin: 0;
}
&__status_dropdown {
width: 159px;
.Select-menu-outer {
width: 364px;
max-height: 310px;
.Select-menu {
max-height: none;
}
}
.Select-value {
padding-left: $pad-medium;
padding-right: $pad-medium;
&::before {
display: inline-block;
position: absolute;
padding: 5px 0 0 0; // centers spin
content: url(../assets/images/icon-filter-black-16x16@2x.png);
transform: scale(0.5);
height: 26px;
left: 2px;
}
}
.Select-value-label {
padding-left: $pad-large;
font-size: $small !important;
}
}
&__label-filter-dropdown {
margin-left: $pad-small;
}
&__labels-active-filter-wrap {
display: flex;
align-items: center;
margin-bottom: $pad-medium;
}
&__policies-filter-pill {
margin-left: $pad-medium;
}
&__enroll-hosts {
padding: $pad-small;
margin-right: $pad-small;
}
&__info-banners {
padding-top: $pad-xxlarge;
padding-bottom: $pad-large;
}
&__no-enroll-secret-banner {
display: flex;
justify-content: space-between;
align-items: center;
font-size: $x-small;
background-color: $ui-off-white;
padding: $pad-large;
border-radius: 10px;
border: 1px solid $ui-fleet-black-50;
.dismiss-banner-button {
display: flex;
align-items: center;
img {
height: 16px;
width: auto;
}
}
&:not(:only-child) {
margin-bottom: $pad-medium;
}
}
.total-issues-count {
margin-left: $pad-small;
}
&__export-btn {
padding-left: $pad-medium;
img {
width: 13px;
height: 13px;
margin-left: 8px;
position: relative;
top: -2px;
}
}
}