188 lines
3.3 KiB
SCSS
188 lines
3.3 KiB
SCSS
.add-user {
|
|
margin-top: 30px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
|
|
&__sticky-container {
|
|
position: sticky;
|
|
top: 40px;
|
|
width: 100%;
|
|
background: #fff;
|
|
z-index: 10;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1rem 0.5rem;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
&__button {
|
|
padding: 0.5rem 1rem;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
|
|
&--primary {
|
|
background: #1976d2;
|
|
color: #fff;
|
|
}
|
|
|
|
&--secondary {
|
|
background: #e0e0e0;
|
|
color: #333;
|
|
}
|
|
}
|
|
input,
|
|
&__select {
|
|
flex: 1 1 20%;
|
|
min-width: 150px;
|
|
box-sizing: border-box;
|
|
padding: 8px;
|
|
font-size: 1rem;
|
|
border-radius: 4px;
|
|
border: 1px solid #ccc;
|
|
outline: none;
|
|
transition: border-color 0.3s ease;
|
|
|
|
&:focus {
|
|
border-color: #0070f3;
|
|
}
|
|
}
|
|
|
|
&__button-container {
|
|
flex-basis: 100%;
|
|
width: 100%;
|
|
|
|
button {
|
|
flex-basis: 100%;
|
|
margin-top: 16px;
|
|
padding: 10px 0;
|
|
font-size: 1rem;
|
|
border-radius: 4px;
|
|
width: 100px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:first-child {
|
|
color: var(--button-primary);
|
|
border-color: var(--button-primary);
|
|
}
|
|
|
|
button:last-child {
|
|
color: var(--button-secondary);
|
|
border-color: var(--button-secondary);
|
|
margin-left: 8px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.phone-input-container {
|
|
flex: 1 1 100%;
|
|
min-width: 200px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
|
|
.country-code-select {
|
|
padding: 8px;
|
|
font-size: 0.9rem;
|
|
border-radius: 4px;
|
|
border: 1px solid #ccc;
|
|
outline: none;
|
|
transition: border-color 0.3s ease;
|
|
background: #f8f9fa;
|
|
cursor: pointer;
|
|
|
|
&:focus {
|
|
border-color: #0070f3;
|
|
}
|
|
}
|
|
|
|
input[type="tel"] {
|
|
flex: 1;
|
|
padding: 8px;
|
|
font-size: 1rem;
|
|
border-radius: 4px;
|
|
border: 1px solid #ccc;
|
|
outline: none;
|
|
transition: border-color 0.3s ease;
|
|
|
|
&:focus {
|
|
border-color: #0070f3;
|
|
}
|
|
|
|
&.phone-input-error {
|
|
border-color: #dc3545;
|
|
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
|
|
}
|
|
}
|
|
|
|
.phone-error-message {
|
|
color: #dc3545;
|
|
font-size: 0.875rem;
|
|
margin-top: 2px;
|
|
padding-left: 4px;
|
|
}
|
|
}
|
|
|
|
.array-field-container {
|
|
flex: 1 1 100%;
|
|
min-width: 200px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
|
|
label {
|
|
font-weight: 500;
|
|
color: #333;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.selected-items {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.selected-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: #e3f2fd;
|
|
color: #1976d2;
|
|
padding: 4px 8px;
|
|
border-radius: 16px;
|
|
font-size: 0.875rem;
|
|
border: 1px solid #bbdefb;
|
|
|
|
.remove-item {
|
|
background: none;
|
|
border: none;
|
|
color: #1976d2;
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
line-height: 1;
|
|
padding: 0;
|
|
margin-left: 4px;
|
|
width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: background-color 0.2s ease;
|
|
|
|
&:hover {
|
|
background-color: rgba(25, 118, 210, 0.1);
|
|
}
|
|
}
|
|
}
|
|
}
|