Files
dashboard/frontend/src/app/components/item-form/item-form.scss

124 lines
2.2 KiB
SCSS

.container {
padding: 20px;
max-width: 500px;
margin: auto;
}
mat-card {
width: 100%;
}
::ng-deep .mat-mdc-card-title {
display: block !important;
margin-bottom: 24px !important;
padding: 16px 0 !important;
border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
font-size: 24px !important;
font-weight: 500 !important;
text-align: center !important;
}
:host-context(.dark-theme) ::ng-deep .mat-mdc-card-title {
border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
mat-form-field {
width: 100%;
margin-bottom: 10px;
}
.actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 20px;
}
:host-context(.dark-theme) .actions button[mat-stroked-button] {
border-color: rgba(255, 255, 255, 0.3) !important;
color: #ffffff !important;
&:hover {
background-color: rgba(255, 255, 255, 0.08) !important;
border-color: rgba(255, 255, 255, 0.5) !important;
}
}
::ng-deep .dark-theme .mat-mdc-stroked-button {
border-color: rgba(255, 255, 255, 0.3) !important;
color: #ffffff !important;
&:hover {
background-color: rgba(255, 255, 255, 0.08) !important;
border-color: rgba(255, 255, 255, 0.5) !important;
}
}
.icon-mode-toggle {
margin: 16px 0;
}
.icon-picker-section {
.icon-browse-link {
margin-bottom: 16px;
a {
display: inline-flex;
align-items: center;
gap: 8px;
color: #1976d2;
text-decoration: none;
font-size: 14px;
transition: color 0.2s;
&:hover {
color: #1565c0;
text-decoration: underline;
}
mat-icon {
font-size: 18px;
width: 18px;
height: 18px;
}
}
}
.icon-preview {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
background-color: #f5f5f5;
border-radius: 4px;
margin-bottom: 16px;
.preview-label {
font-weight: 500;
color: #666;
}
.preview-icon {
font-size: 48px;
width: 48px;
height: 48px;
color: #1976d2;
}
}
}
::ng-deep {
.mat-mdc-option {
.icon-option-text {
margin-left: 12px;
margin-right: auto;
}
.icon-category {
font-size: 12px;
color: #666;
margin-left: 8px;
}
}
}