MDM/mdm-front/src/pages/DevicesPage/components/DevicesToolbar/DevicesToolbar.scss

189 lines
3.0 KiB
SCSS

@use '../../../../shared/styles/variables' as *;
.devices-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
background-color: white;
border-radius: 100px;
padding: 4px;
}
.devices-search {
width: 250px;
padding: 10px 12px;
border-radius: 20px;
background: $color-bg;
display: flex;
align-items: center;
gap: 8px;
color: $gray50;
svg {
height: 16px;
width: auto;
}
input {
width: 100%;
border: none;
outline: none;
background: transparent;
color: black;
font-size: 16px;
&::placeholder {
color: $gray50;
}
}
}
.devices-toolbar__right {
display: flex;
align-items: center;
gap: 6px;
button {
padding: 12px 20px;
font-size: 16px;
font-weight: 450;
background-color: $color-bg;
border-radius: 20px;
border: none;
}
.add-device {
background-color: $blue;
color: white;
cursor: pointer;
}
}
.devices-sort {
//height: 32px;
padding: 12px 14px 12px 20px !important;
border: none;
border-radius: 20px;
background: #ffffff;
display: inline-flex;
align-items: center;
gap: 8px;
color: $gray50;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: 0.2s ease;
&:hover {
color: $blue;
}
}
.devices-sort__chevron {
transition: transform 0.2s ease;
}
.devices-sort[data-state='open'] {
color: $blue;
.devices-sort__chevron {
transform: rotate(180deg);
}
}
.devices-sort-menu {
z-index: 100;
min-width: 230px;
padding: 6px;
border-radius: 16px;
background: #ffffff;
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
animation: devicesSortMenuShow 0.16s ease;
}
.devices-sort-menu__item {
min-height: 38px;
padding: 0 10px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
color: #30394b;
font-size: 14px;
font-weight: 500;
outline: none;
cursor: pointer;
&[data-highlighted] {
background: #f1f4f8;
color: $blue;
}
}
.devices-sort-menu__check {
width: 7px;
height: 7px;
border-radius: 50%;
background: $blue;
flex: 0 0 7px;
}
@keyframes devicesSortMenuShow {
from {
opacity: 0;
transform: translateY(-4px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.devices-filter {
position: relative;
border: none;
border-radius: 20px;
color: $gray50;
padding: 12px !important;
display: inline-flex;
align-items: center;
justify-content: center;
transition: .2s ease;
cursor: pointer;
&--active{
color: $blue;
}
svg {
height: 19px;
width: auto;
}
}
.devices-filter__alert {
position: absolute;
top: -2px;
right: -1px;
width: 12px;
height: 12px;
border-radius: 50%;
background: $blue;
}