Misc. layout fixes
This commit is contained in:
@@ -440,3 +440,294 @@
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
::ng-deep .user-dialog {
|
||||
.p-dialog {
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.p-dialog-header {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 1.5rem;
|
||||
background: var(--p-content-background);
|
||||
border-bottom: 1px solid var(--p-content-border-color);
|
||||
border-radius: 10px 10px 0 0;
|
||||
|
||||
.p-dialog-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: var(--p-text-color);
|
||||
margin: 0;
|
||||
|
||||
&::before {
|
||||
content: '\e923';
|
||||
font-family: 'primeicons';
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: var(--p-primary-color);
|
||||
color: var(--p-primary-contrast-color);
|
||||
border-radius: 8px;
|
||||
font-size: 1.25rem;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
}
|
||||
|
||||
.p-dialog-header-icons {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
|
||||
.p-dialog-header-close {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: 50%;
|
||||
transition: all 0.2s;
|
||||
color: var(--p-text-muted-color);
|
||||
|
||||
&:hover {
|
||||
background: var(--p-surface-100);
|
||||
color: var(--p-text-color);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 2px var(--p-focus-ring-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.p-dialog-content {
|
||||
padding: 1.5rem;
|
||||
background: var(--p-content-background);
|
||||
}
|
||||
|
||||
.p-dialog-footer {
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--p-content-background);
|
||||
border-top: 1px solid var(--p-content-border-color);
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.form-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
|
||||
label {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--p-text-color);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
input,
|
||||
::ng-deep .p-password {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
::ng-deep .p-inputtext,
|
||||
::ng-deep .p-password-input {
|
||||
padding: 0.75rem;
|
||||
font-size: 0.9375rem;
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
border-radius: 6px;
|
||||
background: var(--p-content-background);
|
||||
color: var(--p-text-color);
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--p-primary-color);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: var(--p-primary-color);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-primary-color) 20%, transparent);
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: var(--p-text-muted-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.error-message {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.75rem;
|
||||
padding: 0.875rem 1rem;
|
||||
background: color-mix(in srgb, #ef4444 12%, var(--p-content-background));
|
||||
border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
|
||||
border-left: 3px solid #ef4444;
|
||||
border-radius: 6px;
|
||||
color: #ef4444;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
|
||||
.pi {
|
||||
font-size: 1.125rem;
|
||||
flex-shrink: 0;
|
||||
margin-top: 0.125rem;
|
||||
}
|
||||
|
||||
span {
|
||||
line-height: 1.5;
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 0.75rem;
|
||||
|
||||
::ng-deep .p-button {
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-weight: 600;
|
||||
font-size: 0.9375rem;
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s;
|
||||
min-width: 120px;
|
||||
|
||||
&.p-button-outlined {
|
||||
border-width: 1px;
|
||||
background: transparent;
|
||||
|
||||
&:hover {
|
||||
background: var(--p-surface-100);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--p-primary-color) 20%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.p-button-outlined) {
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--p-primary-color) 20%, transparent),
|
||||
0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.p-button-label {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.p-button-icon {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
::ng-deep .user-dialog {
|
||||
.p-dialog {
|
||||
width: 95vw !important;
|
||||
max-width: 95vw !important;
|
||||
margin: 0.5rem;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.p-dialog-header {
|
||||
padding: 1rem;
|
||||
|
||||
.p-dialog-title {
|
||||
font-size: 1rem;
|
||||
|
||||
&::before {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
}
|
||||
|
||||
.p-dialog-header-icons {
|
||||
top: 0.75rem;
|
||||
right: 0.75rem;
|
||||
|
||||
.p-dialog-header-close {
|
||||
width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.p-dialog-content {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.p-dialog-footer {
|
||||
padding: 0.875rem 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-form {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.form-field {
|
||||
label {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
::ng-deep .p-inputtext,
|
||||
::ng-deep .p-password-input {
|
||||
padding: 0.625rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
.error-message {
|
||||
padding: 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
gap: 0.5rem;
|
||||
|
||||
.pi {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-actions {
|
||||
flex-direction: column-reverse;
|
||||
width: 100%;
|
||||
gap: 0.5rem;
|
||||
|
||||
::ng-deep .p-button {
|
||||
width: 100%;
|
||||
min-width: unset;
|
||||
justify-content: center;
|
||||
padding: 0.625rem 1.25rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user