MDM/mdm-front/src/pages/EmployeesPage/EmployeesPage.scss

181 lines
2.6 KiB
SCSS

@use '../../shared/styles/variables' as *;
.employees-page {
display: flex;
flex-direction: column;
gap: 10px;
flex: 1;
min-height: 0;
height: 100%;
overflow: hidden;
}
.employees-table-container {
display: flex;
flex: 1;
min-width: 0;
min-height: 0;
flex-direction: column;
overflow: hidden;
}
.employees-table-card {
flex: 1;
min-height: 0;
overflow: auto;
border-radius: 20px;
background: #ffffff;
scrollbar-width: thin;
scrollbar-color: $gray50 transparent;
&::-webkit-scrollbar {
width: 6px;
height: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: $gray50;
border-radius: 999px;
}
&::-webkit-scrollbar-thumb:hover {
background: $gray50;
}
}
.employees-table {
width: 100%;
min-width: 700px;
border-collapse: collapse;
table-layout: fixed;
thead {
position: sticky;
top: 0;
z-index: 2;
background: #ffffff;
}
th {
padding: 14px 20px;
line-height: 1;
border-bottom: 1px solid #e3e8f0;
color: $gray50;
font-size: 16px;
font-weight: 450;
text-align: left;
background: #ffffff;
}
td {
height: 68px;
padding: 14px 20px;
border-bottom: 1px solid $gray20;
vertical-align: middle;
text-align: left;
color: #151a24;
font-size: 18px;
font-weight: 400;
}
th:nth-child(1),
td:nth-child(1) {
width: 140px;
}
th:nth-child(2),
td:nth-child(2) {
width: auto;
}
}
.employees-table__row {
transition: 0.2s ease;
&:hover {
background-color: $gray20;
}
}
.employee-role {
display: inline-flex;
align-items: center;
min-height: 32px;
padding: 0 12px;
border-radius: 999px;
background: rgba(3, 29, 154, 0.08);
color: $blue;
font-size: 16px;
font-weight: 500;
}
.employees-pagination {
flex: 0 0 auto;
padding: 12px 14px 0;
display: flex;
align-items: center;
justify-content: space-between;
color: #738098;
font-size: 13px;
}
.employees-pagination__controls {
display: flex;
align-items: center;
gap: 6px;
button {
min-width: 30px;
height: 30px;
padding: 0 12px;
border: none;
border-radius: 10px;
background: #e9edf5;
color: #738098;
font-size: 14px;
cursor: pointer;
&.is-active {
background: #031d9a;
color: #ffffff;
}
&:disabled {
opacity: 0.5;
cursor: default;
}
}
}
.employees-state {
min-height: 220px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: #738098;
font-size: 15px;
font-weight: 500;
}
.employees-state--error {
color: $red;
}