fleet/frontend/pages/hosts/ManageHostsPage/_styles.scss
gillespi314 8c6ca606c3
Add new UI feature: Filter hosts by software version (#2541)
* Add new UI feature: filter hosts by software version
* Move specific CVE information to appear alongside aggregate hosts filtered by software version
rather than on individual host details page
* Relocate users table to below software inventory on host details page
2021-10-18 10:01:01 -05:00

279 lines
4.8 KiB
SCSS

.manage-hosts {
.header-wrap {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: $pad-medium;
.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;
}
.fleeticon-mia {
color: $core-fleet-black;
}
}
&__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;
}
.data-table-container {
.data-table {
&__wrapper {
overflow-x: scroll;
}
}
}
&__modal-buttons {
width: 100%;
display: flex;
justify-content: flex-end;
.button:first-child {
margin-right: $pad-medium;
}
}
.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;
}
}
&__team-dropdown {
border: 0 !important;
position: relative;
:hover {
cursor: pointer !important;
}
&.is-focused {
.Select-control {
border: 0 !important;
height: 32px;
}
}
.Select-menu-outer {
position: absolute;
width: 330px;
min-width: 125px;
left: -12px;
border-radius: 6px;
}
.Select-control {
background-color: #fff;
border: 0 !important;
border-radius: none;
position: none;
width: max-content; // move select arrow
height: 20px;
&:hover {
box-shadow: none;
}
&:hover .Select-value-label {
color: $core-vibrant-blue !important;
}
.Select-arrow-zone {
padding-left: $pad-small;
.Select-arrow {
top: 1px !important;
margin-top: 0 !important;
}
}
.Select-multi-value-wrapper {
width: max-content; // move select arrow
height: 20px;
margin-bottom: $pad-xsmall;
.Select-input {
display: none !important;
}
.Select-value {
position: relative; // move select arrow
display: inline-block; // move select arrow
line-height: 28px;
padding: 0;
border: 0 !important;
background-color: #fff !important;
right: 0;
left: 0;
bottom: 0;
top: 0;
&.is-focused {
border: 0 !important;
}
:hover {
border: 0 !important;
}
.Select-value-label {
font-size: $large !important;
}
}
}
}
}
&__labels-active-filter-wrap {
margin-bottom: $pad-medium;
}
&__policies-filter-block {
display: flex;
align-items: center;
p {
font-size: $xx-small;
font-weight: $bold;
padding-left: $pad-medium;
}
}
&__enroll-hosts {
padding: $pad-small;
margin-right: $pad-small;
}
&__software-filter-block {
.button--small-text-icon {
margin-left: 0;
padding-left: 12px;
}
.software-filter-button {
display: inline-flex;
align-items: center;
}
.software-filter-tooltip {
display: inline-flex;
align-items: center;
}
}
}