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
@@ -1,24 +1,24 @@
.bulk-edit-container {
display: flex;
flex-direction: column;
gap: 1rem;
padding: 0 1rem;
gap: 0.875rem;
padding: 0 0.875rem;
@media (width <= 768px) {
padding: 0;
}
.helper-text {
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--text-color-secondary);
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.4375rem;
margin: 0;
padding: 0.5rem 0;
padding: 0.4375rem 0;
i {
font-size: 1rem;
font-size: var(--app-text-base);
}
}
}
@@ -26,15 +26,15 @@
.info-banner {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
gap: 0.6563rem;
padding: 0.6563rem 0.875rem;
background: rgb(59 130 246 / 8%);
border: 1px solid var(--p-primary-color);
border-radius: 6px;
color: var(--p-text-color);
i {
font-size: 1.25rem;
font-size: 1.0938rem;
color: var(--p-primary-color);
}
}
@@ -42,11 +42,11 @@
.fields-section {
display: flex;
flex-direction: column;
gap: 0.75rem;
gap: 0.6563rem;
h4 {
margin: 0;
font-size: 0.9rem;
font-size: 0.7875rem;
font-weight: 600;
color: var(--p-text-secondary-color);
}
@@ -61,10 +61,10 @@
.merge-toggle {
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.4375rem;
.merge-label {
font-size: 0.85rem;
font-size: 0.7438rem;
color: var(--p-text-secondary-color);
}
}
@@ -72,18 +72,18 @@
.field-grid {
display: flex;
flex-direction: column;
gap: 0.5rem;
gap: 0.4375rem;
}
.field-row {
display: grid;
grid-template-columns: auto 6rem 1fr;
gap: 0.75rem;
grid-template-columns: auto 5.25rem 1fr;
gap: 0.6563rem;
align-items: center;
}
.field-label {
font-size: 0.9rem;
font-size: 0.7875rem;
font-weight: 500;
color: var(--p-text-color);
}
@@ -99,6 +99,6 @@
.dialog-footer {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
padding-top: 0.5rem;
gap: 0.6563rem;
padding-top: 0.4375rem;
}
@@ -1,14 +1,14 @@
.thumbnail {
border: 1px solid var(--border-color);
border-radius: 0.5rem;
border-radius: 0.4375rem;
box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
margin: 0 auto 1rem;
margin: 0 auto 0.875rem;
}
::ng-deep .metapicker .thumbnail {
img {
border-radius: 0.5rem;
max-height: 14rem;
border-radius: 0.4375rem;
max-height: 12.25rem;
max-width: 10em;
}
@@ -20,9 +20,9 @@
.metapicker div.thumbnail {
background-color: var(--p-inputtext-disabled-background);
color: var(--p-inputtext-disabled-color);
width: 9rem;
height: 14rem;
padding: 1rem;
width: 7.875rem;
height: 12.25rem;
padding: 0.875rem;
display: flex;
flex-direction: column;
align-items: center;
@@ -31,7 +31,7 @@
}
::ng-deep .metaeditor img.thumbnail {
border-radius: 0.5rem;
border-radius: 0.4375rem;
max-width: 100%;
max-height: 100%;
height: auto;
@@ -63,7 +63,7 @@ textarea.changed,
}
::ng-deep .p-autocomplete-input-chip {
width: 2rem;
width: 1.75rem;
}
.metapicker, .metaeditor {
@@ -82,27 +82,27 @@ textarea.changed,
}
.field-label {
font-size: 0.875rem;
font-size: var(--app-text-sm);
@media (width >= 768px) {
width: 8rem;
width: 7rem;
}
}
.field-label-fixed {
width: 8rem;
width: 7rem;
}
.column-headers {
display: flex;
align-items: center;
padding: 1rem;
padding: 0.875rem;
border-bottom: 1px dotted var(--border-color);
@media (width >= 768px) {
&::before {
content: '';
min-width: 8rem;
min-width: 7rem;
flex-shrink: 0;
}
}
@@ -112,16 +112,16 @@ textarea.changed,
align-items: center;
flex: 1;
color: var(--text-color-secondary);
font-size: 0.875rem;
font-size: var(--app-text-sm);
&.current {
justify-content: flex-end;
padding-right: 1rem;
padding-right: 0.875rem;
}
&.fetched {
justify-content: flex-start;
padding-left: 1rem;
padding-left: 0.875rem;
}
}
@@ -129,7 +129,7 @@ textarea.changed,
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
gap: 0.4375rem;
flex-shrink: 0;
}
}
@@ -147,7 +147,7 @@ textarea.changed,
}
.no-cover-text {
font-size: 0.875rem;
font-size: var(--app-text-sm);
}
.full-width {
@@ -157,7 +157,7 @@ textarea.changed,
.metabody {
display: flex;
flex-direction: column;
padding: 1rem;
padding: 0.875rem;
@media (width >= 768px) {
flex-direction: row;
@@ -211,11 +211,11 @@ textarea.changed,
::ng-deep .metapicker {
.dest, .src {
width: calc(50% - 2rem);
width: calc(50% - 1.75rem);
}
.arrow-button {
margin: auto 1rem;
margin: auto 0.875rem;
}
@media (width >= 768px) {
@@ -249,16 +249,16 @@ textarea.changed,
display: flex;
align-items: center;
border-bottom: 1px dotted var(--border-color);
padding: 1rem;
padding: 0.875rem;
justify-content: space-between;
}
.metacontent {
padding: 1rem;
padding: 0.875rem;
}
.metaeditor .metacontent {
padding: 0 0 0 1rem;
padding: 0 0 0 0.875rem;
@media (width <= 768px) {
padding: 0;
@@ -311,7 +311,7 @@ textarea.changed,
@media (width >= 768px) {
.metapicker .metacontent,
.metaeditor .metabody {
padding-left: 3.25rem;
padding-left: 2.8438rem;
}
}
@@ -415,22 +415,22 @@ textarea.changed,
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.375rem;
padding: 0.375rem;
min-height: 2.25rem;
gap: 0.3281rem;
padding: 0.3281rem;
min-height: 1.9688rem;
border: 1px solid var(--p-inputtext-border-color);
border-radius: 6px;
background: var(--p-inputtext-background);
}
.author-add-input {
flex: 1 1 6rem;
min-width: 6rem;
flex: 1 1 5.25rem;
min-width: 5.25rem;
::ng-deep input {
border: none !important;
background: transparent !important;
padding: 0.25rem;
padding: 0.2188rem;
box-shadow: none !important;
outline: none !important;
}
@@ -439,12 +439,12 @@ textarea.changed,
.author-chip {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.5rem;
border-radius: 1rem;
gap: 0.2188rem;
padding: 0.2188rem 0.4375rem;
border-radius: 0.875rem;
background: var(--p-chip-background);
color: var(--p-chip-color);
font-size: 0.875rem;
font-size: var(--app-text-sm);
cursor: grab;
user-select: none;
}
@@ -453,27 +453,27 @@ textarea.changed,
display: inline-flex;
align-items: center;
justify-content: center;
width: 1rem;
height: 1rem;
width: 0.875rem;
height: 0.875rem;
border-radius: 50%;
background: var(--p-primary-color);
color: var(--p-primary-contrast-color);
font-size: 0.6rem;
font-size: 0.525rem;
font-weight: 700;
flex-shrink: 0;
}
.author-chip-remove {
font-size: 0.65rem;
font-size: 0.5687rem;
cursor: pointer;
opacity: 0.6;
padding: 0.15rem;
padding: 0.1313rem;
&:hover { opacity: 1; }
}
.cdk-drag-preview {
box-sizing: border-box;
border-radius: 1rem;
border-radius: 0.875rem;
box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}
@@ -14,31 +14,31 @@
}
.header {
padding: 1.5rem;
padding: 1.3125rem;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--p-content-border-color);
gap: 1rem;
gap: 0.875rem;
@media #{variables.$mobile-shell-media-query} {
padding: 1rem;
padding: 0.875rem;
}
}
.header-content {
h2 {
font-size: 1.25rem;
font-size: 1.0938rem;
font-weight: 600;
padding-bottom: 0.25rem;
padding-bottom: 0.2188rem;
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.4375rem;
}
p {
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--color-text-secondary);
strong {
@@ -64,7 +64,7 @@
.external-link-icon {
color: rgb(2 132 199);
cursor: pointer;
font-size: 0.9rem;
font-size: 0.7875rem;
}
.card-body {
@@ -89,7 +89,7 @@
align-items: center;
> * + * {
margin-top: 0.75rem;
margin-top: 0.6563rem;
}
span {
@@ -97,13 +97,13 @@
}
p-progressspinner {
width: 2rem;
height: 2rem;
width: 1.75rem;
height: 1.75rem;
}
}
.controls-section {
padding: 1rem;
padding: 0.875rem;
margin: 0;
border-bottom: 1px solid var(--p-content-border-color);
}
@@ -119,22 +119,22 @@
z-index: 50;
> * + * {
margin-top: 0.75rem;
margin-top: 0.6563rem;
}
p-progressspinner {
width: 2rem;
height: 2rem;
width: 1.75rem;
height: 1.75rem;
}
}
.saving-message {
background: var(--color-card);
padding: 0.5rem 1rem;
border-radius: 0.375rem;
padding: 0.4375rem 0.875rem;
border-radius: 0.3281rem;
span {
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--color-text);
text-align: center;
}
@@ -144,11 +144,11 @@
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
gap: 0.875rem;
flex-wrap: wrap;
label {
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--color-text-secondary);
font-weight: 500;
}
@@ -157,12 +157,12 @@
.default-controls {
display: flex;
flex-grow: 1;
gap: 1rem;
gap: 0.875rem;
align-items: center;
justify-content: flex-end;
p-select {
width: 8rem;
width: 7rem;
}
@media #{variables.$mobile-shell-media-query} {
@@ -212,7 +212,7 @@ p-inputgroup.disabled {
.action-buttons {
display: flex;
gap: 1rem;
gap: 0.875rem;
align-items: center;
@media (width <= 640px) {
@@ -232,7 +232,7 @@ p-inputgroup.disabled {
}
p-button.bulkedit, p-button.extractpattern {
width: calc(50% - 0.5rem);
width: calc(50% - 0.4375rem);
::ng-deep button {
width: 100%;
@@ -254,7 +254,7 @@ p-inputgroup.disabled {
justify-content: center;
color: var(--color-text-secondary);
font-style: italic;
padding: 2rem 0;
padding: 1.75rem 0;
}
.file-item {
@@ -265,9 +265,9 @@ p-inputgroup.disabled {
.file-row {
display: flex;
align-items: center;
gap: 1rem;
gap: 0.875rem;
border-bottom: 1px solid var(--color-border);
padding: 1rem;
padding: 0.875rem;
flex-wrap: wrap;
}
@@ -276,13 +276,13 @@ p-inputgroup.disabled {
}
.status-indicator {
font-size: 0.75rem;
font-size: var(--app-text-xs);
}
.cover-image {
width: 1.5rem;
height: 2rem;
border-radius: 0.125rem;
width: 1.3125rem;
height: 1.75rem;
border-radius: 0.1094rem;
object-fit: cover;
cursor: pointer;
transition: transform 0.2s;
@@ -301,13 +301,13 @@ div.cover-image {
display: block;
background-color: rgb(255 255 255 / 10%);
text-align: center;
line-height: 2rem;
line-height: 1.75rem;
}
.file-name {
flex: 1;
font-weight: 500;
font-size: 0.875rem;
font-size: var(--app-text-sm);
overflow: hidden;
text-overflow: ellipsis;
white-space: wrap;
@@ -333,7 +333,7 @@ div.cover-image {
.file-library {
display: flex;
gap: 1rem;
gap: 0.875rem;
justify-content: flex-end;
align-items: center;
@@ -344,7 +344,7 @@ div.cover-image {
.library-select,
.path-select {
width: 8rem;
width: 7rem;
@media #{variables.$mobile-shell-media-query} {
flex-basis: 50%;
@@ -356,11 +356,11 @@ div.cover-image {
}
.footer, .footer-mobile {
padding: 1rem;
padding: 0.875rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
gap: 0.875rem;
}
.footer {
@@ -382,7 +382,7 @@ div.cover-image {
.footer-left,
.footer-right {
display: flex;
gap: 1rem;
gap: 0.875rem;
align-items: center;
}
@@ -428,17 +428,17 @@ div.cover-image {
}
.spacer {
min-width: 10rem;
min-width: 8.75rem;
}
.icon-padding-left {
padding-left: 0.5rem;
padding-left: 0.4375rem;
}
.cover-placeholder {
font-size: 0.875rem;
font-size: var(--app-text-sm);
}
.selected-count-label {
font-size: 0.875rem;
font-size: var(--app-text-sm);
}
@@ -1,8 +1,8 @@
.staging-border {
background: var(--color-card);
border: 1px solid var(--color-primary);
border-radius: 0.5rem;
padding: 1rem;
border-radius: 0.4375rem;
padding: 0.875rem;
}
.widget-row {
@@ -23,15 +23,15 @@
}
.widget-count {
font-size: 1.125rem;
font-size: var(--app-text-lg);
font-weight: 700;
color: var(--color-primary);
}
.widget-date {
font-size: 0.75rem;
font-size: var(--app-text-xs);
color: var(--color-text-secondary);
margin-top: 0.25rem;
margin-top: 0.2188rem;
}
.widget-actions {
@@ -12,7 +12,7 @@
}
.dialog-content {
padding: 1.5rem;
padding: 1.3125rem;
background: var(--card-background);
border: 1px solid var(--border-color);
border-top: none;
@@ -23,8 +23,8 @@
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
margin-bottom: 1.5rem;
gap: 0.875rem;
margin-bottom: 1.3125rem;
@media (width <= 480px) {
grid-template-columns: 1fr;
@@ -33,14 +33,14 @@
.stat-card {
text-align: center;
padding: 1rem;
padding: 0.875rem;
background: var(--overlay-background);
border-radius: 8px;
.stat-value {
font-size: 1.875rem;
font-size: 1.6406rem;
font-weight: 700;
margin-bottom: 0.25rem;
margin-bottom: 0.2188rem;
&.total {
color: var(--primary-color);
@@ -56,7 +56,7 @@
}
.stat-label {
font-size: 0.875rem;
font-size: var(--app-text-sm);
font-weight: 500;
color: var(--text-secondary-color);
}
@@ -64,18 +64,18 @@
.processed-info {
text-align: center;
padding: 1rem;
padding: 0.875rem;
border-top: 1px solid var(--border-color);
margin-bottom: 1rem;
margin-bottom: 0.875rem;
.processed-label {
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--text-secondary-color);
margin-bottom: 0.25rem;
margin-bottom: 0.2188rem;
}
.processed-time {
font-size: 1rem;
font-size: var(--app-text-base);
font-family: monospace;
color: var(--text-color);
}
@@ -92,14 +92,14 @@
padding: 0;
display: flex;
flex-direction: column;
gap: 0.75rem;
gap: 0.6563rem;
}
.file-item {
display: flex;
align-items: flex-start;
gap: 0.75rem;
padding: 0.75rem;
gap: 0.6563rem;
padding: 0.6563rem;
border-radius: 8px;
border: 1px solid;
transition: all 0.2s ease;
@@ -123,8 +123,8 @@
}
.status-icon {
font-size: 1.25rem;
margin-top: 0.125rem;
font-size: 1.0938rem;
margin-top: 0.1094rem;
flex-shrink: 0;
}
@@ -134,12 +134,12 @@
.file-name {
font-weight: 500;
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--text-color);
}
.file-message {
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--text-secondary-color);
}
}
@@ -1,8 +1,8 @@
.pattern-extract-container {
display: flex;
flex-direction: column;
gap: 1rem;
padding: 0 1rem;
gap: 0.875rem;
padding: 0 0.875rem;
max-height: 70vh;
@media (width <= 768px) {
@@ -14,22 +14,22 @@
.info-banner {
display: flex;
align-items: flex-start;
gap: 0.75rem;
padding: 0.75rem 1rem;
gap: 0.6563rem;
padding: 0.6563rem 0.875rem;
background: rgb(59 130 246 / 8%);
border: 1px solid var(--p-primary-color);
border-radius: 6px;
color: var(--p-text-color);
i {
font-size: 1.25rem;
font-size: 1.0938rem;
color: var(--p-primary-color);
margin-top: 2px;
}
code {
background: rgb(255 255 255 / 10%);
padding: 0.1rem 0.3rem;
padding: 0.0875rem 0.2625rem;
border-radius: 4px;
font-family: monospace;
}
@@ -41,11 +41,11 @@
.preview-section {
display: flex;
flex-direction: column;
gap: 0.5rem;
gap: 0.4375rem;
h4 {
margin: 0;
font-size: 0.9rem;
font-size: 0.7875rem;
font-weight: 600;
color: var(--p-text-secondary-color);
}
@@ -53,7 +53,7 @@
.pattern-input-row {
display: flex;
gap: 0.5rem;
gap: 0.4375rem;
align-items: center;
}
@@ -65,13 +65,13 @@
.placeholder-chips {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
gap: 0.4375rem;
}
:host ::ng-deep .placeholder-chip {
cursor: pointer;
font-family: monospace;
font-size: 0.85rem;
font-size: 0.7438rem;
&:hover {
background-color: var(--p-primary-color);
@@ -82,19 +82,19 @@
.common-pattern-buttons {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
gap: 0.4375rem;
}
.preview-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
gap: 0.4375rem;
max-height: 200px;
overflow-y: auto;
}
.preview-item {
padding: 0.75rem;
padding: 0.6563rem;
border-radius: 6px;
border: 1px solid var(--color-border);
@@ -112,12 +112,12 @@
.preview-filename {
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.4375rem;
font-weight: 500;
margin-bottom: 0.5rem;
margin-bottom: 0.4375rem;
i {
font-size: 1rem;
font-size: var(--app-text-base);
}
.pi-check-circle {
@@ -132,14 +132,14 @@
.preview-extracted {
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1rem;
padding-left: 1.5rem;
gap: 0.4375rem 0.875rem;
padding-left: 1.3125rem;
}
.extracted-field {
display: flex;
gap: 0.25rem;
font-size: 0.85rem;
gap: 0.2188rem;
font-size: 0.7438rem;
.field-name {
color: var(--p-text-secondary-color);
@@ -152,8 +152,8 @@
}
.preview-error {
padding-left: 1.5rem;
font-size: 0.85rem;
padding-left: 1.3125rem;
font-size: 0.7438rem;
color: var(--p-text-secondary-color);
font-style: italic;
}
@@ -162,14 +162,14 @@
display: flex;
justify-content: flex-end;
align-items: center;
gap: 0.75rem;
padding-top: 0.5rem;
gap: 0.6563rem;
padding-top: 0.4375rem;
}
.extracting-indicator {
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.4375rem;
margin-right: auto;
color: var(--p-text-secondary-color);
}