chore(ui): normalise text size and spacing (#1656)

This commit is contained in:
Alex
2026-06-07 08:46:25 +01:00
committed by GitHub
parent 2675c4a04a
commit 349f046062
180 changed files with 4555 additions and 4466 deletions
@@ -9,7 +9,7 @@
.settings-title {
@include settings.settings-page-title;
margin-bottom: 0.75rem;
margin-bottom: 0.6563rem;
}
.settings-description {
@@ -19,19 +19,19 @@
.settings-content {
display: flex;
flex-direction: column;
gap: 2rem;
gap: 1.75rem;
}
.preferences-section {
@media (width >= 768px) {
padding: 0 1rem;
padding: 0 0.875rem;
}
}
.section-header {
@include settings.settings-section-header;
margin-bottom: 1rem;
margin-bottom: 0.875rem;
}
.section-title {
@@ -47,7 +47,7 @@
.setting-item {
display: flex;
align-items: flex-start;
gap: 2rem;
gap: 1.75rem;
&:last-child {
border-bottom: none;
@@ -56,7 +56,7 @@
@media (width <= 768px) {
flex-direction: column;
gap: 1rem;
gap: 0.875rem;
}
}
@@ -68,15 +68,15 @@
display: block;
font-weight: settings.$settings-section-title-weight;
color: var(--p-text-color);
font-size: 1rem;
margin-bottom: 0.5rem;
font-size: var(--app-text-base);
margin-bottom: 0.4375rem;
}
.setting-label-row {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 0.5rem;
gap: 0.875rem;
margin-bottom: 0.4375rem;
flex-wrap: wrap;
.setting-label {
@@ -88,12 +88,12 @@
.input-group {
display: flex;
align-items: center;
gap: 0.75rem;
gap: 0.6563rem;
@media (width <= 768px) {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
gap: 0.4375rem;
}
}
}
@@ -101,7 +101,7 @@
.setting-description {
display: flex;
align-items: flex-start;
gap: 0.5rem;
gap: 0.4375rem;
color: var(--p-text-muted-color);
font-size: settings.$settings-section-description-size;
line-height: 1.5;
@@ -109,7 +109,7 @@
.pi {
color: var(--p-primary-color);
margin-top: 0.125rem;
margin-top: 0.1094rem;
flex-shrink: 0;
}
}
@@ -119,7 +119,7 @@
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 0.75rem;
gap: 0.6563rem;
align-items: flex-end;
@media (width <= 768px) {
@@ -131,12 +131,12 @@
.input-group {
display: flex;
align-items: center;
gap: 0.75rem;
gap: 0.6563rem;
@media (width <= 768px) {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
gap: 0.4375rem;
}
}
@@ -146,13 +146,13 @@
align-items: center;
input {
padding-right: 2.5rem;
padding-right: 2.1875rem;
width: 120px;
}
.unit {
position: absolute;
right: 0.75rem;
right: 0.6563rem;
color: var(--p-text-muted-color);
font-size: settings.$settings-section-description-size;
pointer-events: none;
@@ -162,10 +162,10 @@
.warning-message {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
gap: 0.4375rem;
font-size: var(--app-text-sm);
color: var(--p-text-muted-color);
margin-top: 0.5rem;
margin-top: 0.4375rem;
.pi {
color: var(--p-orange-500);
@@ -173,7 +173,7 @@
}
@media (width <= 768px) {
margin-top: 0.5rem;
margin-top: 0.4375rem;
}
}
@@ -1,39 +1,39 @@
.settings-card {
display: flex;
flex-direction: column;
gap: 1.25rem;
gap: 1.0938rem;
background: var(--color-card);
border: 1px solid var(--p-content-border-color);
border-radius: 8px;
padding: 1.5rem;
padding: 1.3125rem;
@media (width <= 768px) {
padding: 1rem;
gap: 1rem;
padding: 0.875rem;
gap: 0.875rem;
}
}
.section-header {
margin-bottom: 0.25rem;
margin-bottom: 0.2188rem;
}
.section-title {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.25rem;
gap: 0.4375rem;
font-size: 1.0938rem;
font-weight: 600;
color: var(--color-text);
margin: 0 0 0.5rem;
margin: 0 0 0.4375rem;
.pi {
color: var(--color-primary);
font-size: 1.125rem;
font-size: var(--app-text-lg);
}
}
.section-description {
font-size: 0.875rem;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--p-text-muted-color);
margin: 0;
@@ -42,22 +42,22 @@
.section-body {
display: flex;
flex-direction: column;
gap: 2rem;
padding-left: 1rem;
gap: 1.75rem;
padding-left: 0.875rem;
@media (width <= 768px) {
padding-left: 0.5rem;
padding-left: 0.4375rem;
}
}
.setting-item {
padding: 0.875rem 1rem;
padding: 0.7656rem 0.875rem;
border-radius: 6px;
border-left: 3px solid var(--color-primary);
background: var(--color-card);
@media (width <= 768px) {
padding: 0.75rem;
padding: 0.6563rem;
}
}
@@ -65,29 +65,29 @@
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
gap: 0.875rem;
@media (width <= 768px) {
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
gap: 0.6563rem;
}
}
.action-info {
display: flex;
flex-direction: column;
gap: 0.125rem;
gap: 0.1094rem;
}
.action-label {
font-size: 0.9375rem;
font-size: 0.8203rem;
font-weight: 500;
color: var(--color-text);
}
.action-description {
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--p-text-muted-color);
line-height: 1.4;
}
@@ -95,18 +95,18 @@
.weights-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
gap: 0.4375rem;
margin-bottom: 0.6563rem;
}
.weights-icon {
color: var(--color-primary);
font-size: 0.875rem;
font-size: var(--app-text-sm);
flex-shrink: 0;
}
.weights-label {
font-size: 0.9375rem;
font-size: 0.8203rem;
font-weight: 500;
color: var(--color-text);
margin: 0;
@@ -115,19 +115,19 @@
.weights-form {
display: flex;
flex-direction: column;
gap: 0.75rem;
gap: 0.6563rem;
}
.weights-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 0.625rem;
padding-top: 0.5rem;
gap: 0.5469rem;
padding-top: 0.4375rem;
border-top: 1px dashed var(--p-content-border-color);
@media (width <= 768px) {
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
gap: 0.4375rem;
}
@media (width <= 400px) {
@@ -139,28 +139,28 @@
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.5rem 0.625rem;
gap: 0.4375rem;
padding: 0.4375rem 0.5469rem;
background: var(--color-card);
border: 1px solid var(--p-content-border-color);
border-radius: 4px;
.field-label {
font-size: 0.875rem;
font-size: var(--app-text-sm);
font-weight: 500;
color: var(--color-text);
text-transform: capitalize;
}
::ng-deep p-inputnumber {
width: 6rem;
width: 5.25rem;
}
}
.form-actions {
display: flex;
justify-content: flex-end;
padding-top: 0.75rem;
padding-top: 0.6563rem;
border-top: 1px dashed var(--p-content-border-color);
@media (width <= 768px) {
@@ -3,7 +3,7 @@
.metadata-settings {
display: flex;
flex-direction: column;
gap: 1.5rem;
gap: 1.3125rem;
}
.settings-card {
@@ -25,25 +25,25 @@
.section-body {
@include settings.settings-section-body;
gap: 2rem;
gap: 1.75rem;
}
.configurable-providers-section {
display: flex;
flex-direction: column;
gap: 0.5rem;
gap: 0.4375rem;
}
.configurable-providers-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
gap: 0.6563rem;
}
.simple-providers-section {
display: flex;
flex-direction: column;
gap: 0.5rem;
gap: 0.4375rem;
}
.provider-group-title {
@@ -52,7 +52,7 @@
color: var(--p-text-muted-color);
text-transform: uppercase;
letter-spacing: 0.025em;
margin: 0 0 0.25rem;
margin: 0 0 0.2188rem;
}
.setting-item {
@@ -72,13 +72,13 @@
display: flex;
flex-direction: column;
gap: 1rem;
gap: 0.875rem;
}
.config-field {
display: flex;
flex-direction: column;
gap: 0.375rem;
gap: 0.3281rem;
}
.config-label {
@@ -90,7 +90,7 @@
.config-label-row {
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.4375rem;
}
.config-description {
@@ -102,13 +102,13 @@
::ng-deep .config-select {
width: 100%;
max-width: 20rem;
max-width: 17.5rem;
}
.config-input {
width: 100%;
max-width: 40rem;
padding: 0.375rem 0.625rem;
max-width: 35rem;
padding: 0.3281rem 0.5469rem;
border: 1px solid var(--p-content-border-color);
border-radius: 4px;
background: var(--ground-background);
@@ -133,11 +133,11 @@
.simple-providers-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 0.75rem;
gap: 0.6563rem;
@media (width <= 768px) {
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
gap: 0.4375rem;
}
@media (width <= 480px) {
@@ -146,16 +146,16 @@
}
.simple-provider {
padding: 0.625rem 0.875rem;
padding: 0.5469rem 0.7656rem;
@media (width <= 768px) {
padding: 0.5rem 0.75rem;
padding: 0.4375rem 0.6563rem;
}
}
.setting-actions {
display: flex;
justify-content: flex-end;
padding-top: 0.5rem;
padding-top: 0.4375rem;
border-top: 1px solid var(--p-content-border-color);
}