- Stylelint: - re-enable `media-feature-range-notation` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions untouched - SCSS: - convert parenthesized `min-` and `max-` media features to context range notation across frontend stylesheets without changing breakpoint values - Validation: - `just ui stylelint`
151 lines
2.8 KiB
SCSS
151 lines
2.8 KiB
SCSS
.preferences-section {
|
|
@media (width >= 768px) {
|
|
padding: 0 1rem;
|
|
}
|
|
}
|
|
|
|
.section-header {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: var(--p-text-color);
|
|
margin: 0 0 0.5rem 0;
|
|
|
|
.pi {
|
|
color: var(--p-primary-color);
|
|
}
|
|
}
|
|
|
|
.section-description {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
color: var(--p-text-muted-color);
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
|
|
.pi {
|
|
color: var(--p-primary-color);
|
|
margin-top: 0.125rem;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
.settings-card {
|
|
border: 1px solid var(--p-content-border-color);
|
|
border-radius: 8px;
|
|
background: var(--p-content-background);
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.setting-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 2rem;
|
|
padding: 0.25rem 0;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
@media (width <= 768px) {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
.setting-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
|
|
.setting-label {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: var(--p-text-color);
|
|
font-size: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
min-width: 220px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.setting-label-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
flex-wrap: wrap;
|
|
|
|
.setting-label {
|
|
margin-bottom: 0;
|
|
min-width: 220px;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
.setting-description {
|
|
color: var(--p-text-muted-color);
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
gap: 0.5rem;
|
|
|
|
.option-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.375rem;
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 0.375rem;
|
|
border: 1.5px solid color-mix(in srgb, var(--text-color) 20%, transparent);
|
|
background: color-mix(in srgb, var(--text-color) 5%, transparent);
|
|
color: var(--text-color);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
min-width: 4.5rem;
|
|
|
|
i {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.option-text {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
|
|
border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
|
|
}
|
|
|
|
&.selected {
|
|
border-color: var(--primary-color);
|
|
background: color-mix(in srgb, var(--primary-color) 10%, transparent);
|
|
color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 15%, transparent);
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
}
|
|
}
|
|
}
|