- Stylelint: - re-enable `shorthand-property-no-redundant-values` in the frontend Stylelint config while leaving the agreed Angular and legacy Sass exceptions intact - SCSS: - collapse redundant shorthand values across frontend stylesheets without changing computed spacing or sizing - Validation: - `just ui stylelint`
160 lines
2.8 KiB
SCSS
160 lines
2.8 KiB
SCSS
@use '../../../../shared/styles/settings-shared' as settings;
|
|
|
|
.metadata-settings {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.settings-card {
|
|
@include settings.settings-card;
|
|
}
|
|
|
|
.section-header {
|
|
@include settings.settings-section-header;
|
|
}
|
|
|
|
.section-title {
|
|
@include settings.settings-section-title;
|
|
}
|
|
|
|
.section-description {
|
|
@include settings.settings-section-description;
|
|
}
|
|
|
|
.section-body {
|
|
@include settings.settings-section-body;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.configurable-providers-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.configurable-providers-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.simple-providers-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.provider-group-title {
|
|
font-size: settings.$settings-section-description-size;
|
|
font-weight: settings.$settings-section-title-weight;
|
|
color: var(--p-text-muted-color);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.025em;
|
|
margin: 0 0 0.25rem;
|
|
}
|
|
|
|
.setting-item {
|
|
@include settings.settings-item;
|
|
}
|
|
|
|
.setting-header {
|
|
@include settings.settings-item-header;
|
|
}
|
|
|
|
.setting-label {
|
|
@include settings.settings-label;
|
|
}
|
|
|
|
.setting-options {
|
|
@include settings.settings-options;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.config-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.config-label {
|
|
font-weight: settings.$settings-label-weight;
|
|
color: var(--text-color);
|
|
font-size: settings.$settings-description-size;
|
|
}
|
|
|
|
.config-label-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.config-description {
|
|
color: var(--p-text-muted-color);
|
|
font-size: settings.$settings-description-size;
|
|
line-height: 1.4;
|
|
margin: 0;
|
|
}
|
|
|
|
::ng-deep .config-select {
|
|
width: 100%;
|
|
max-width: 20rem;
|
|
}
|
|
|
|
.config-input {
|
|
width: 100%;
|
|
max-width: 40rem;
|
|
padding: 0.375rem 0.625rem;
|
|
border: 1px solid var(--p-content-border-color);
|
|
border-radius: 4px;
|
|
background: var(--ground-background);
|
|
color: var(--text-color);
|
|
font-size: settings.$settings-section-description-size;
|
|
transition: border-color 0.2s ease;
|
|
|
|
&:hover {
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
&::placeholder {
|
|
color: var(--p-text-muted-color);
|
|
}
|
|
}
|
|
|
|
.simple-providers-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 0.75rem;
|
|
|
|
@media (width <= 768px) {
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
@media (width <= 480px) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.simple-provider {
|
|
padding: 0.625rem 0.875rem;
|
|
|
|
@media (width <= 768px) {
|
|
padding: 0.5rem 0.75rem;
|
|
}
|
|
}
|
|
|
|
.setting-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px solid var(--p-content-border-color);
|
|
}
|