chore(ui): normalise text size and spacing (#1656)
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@
|
||||
<i class="pi pi-globe label-icon"></i>
|
||||
{{ t('visibilityLabel') }}
|
||||
</span>
|
||||
<div class="input-wrapper" style="display: flex; align-items: center; gap: 0.5rem;">
|
||||
<div class="input-wrapper" style="display: flex; align-items: center; gap: 0.4375rem;">
|
||||
<p-checkbox [(ngModel)]="isPublic" [binary]="true" inputId="publicShelf"></p-checkbox>
|
||||
<label for="publicShelf" style="cursor: pointer">{{ t('makePublicLabel') }}</label>
|
||||
</div>
|
||||
|
||||
+36
-36
@@ -18,33 +18,33 @@
|
||||
.form-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
padding: 1.5rem;
|
||||
gap: 1.3125rem;
|
||||
padding: 1.3125rem;
|
||||
background: var(--color-page);
|
||||
border: 1px solid var(--color-border);
|
||||
border-top: none;
|
||||
box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
|
||||
|
||||
@media (width <= 480px) {
|
||||
padding: 1rem;
|
||||
gap: 1rem;
|
||||
padding: 0.875rem;
|
||||
gap: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
.form-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
gap: 0.4375rem;
|
||||
|
||||
&.highlight-group {
|
||||
padding: 0.875rem;
|
||||
padding: 0.7656rem;
|
||||
}
|
||||
|
||||
@media (width <= 480px) {
|
||||
gap: 0.375rem;
|
||||
gap: 0.3281rem;
|
||||
|
||||
&.highlight-group {
|
||||
padding: 0.625rem;
|
||||
padding: 0.5469rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -52,8 +52,8 @@
|
||||
.form-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
font-size: 0.95rem;
|
||||
gap: 0.3281rem;
|
||||
font-size: 0.8313rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-text);
|
||||
|
||||
@@ -63,11 +63,11 @@
|
||||
|
||||
.required-indicator {
|
||||
color: var(--p-red-500);
|
||||
margin-left: 0.125rem;
|
||||
margin-left: 0.1094rem;
|
||||
}
|
||||
|
||||
@media (width <= 480px) {
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--app-text-sm);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,16 +76,16 @@
|
||||
|
||||
.input-full {
|
||||
width: 100%;
|
||||
padding-right: 2.5rem;
|
||||
padding-right: 2.1875rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.input-icon {
|
||||
position: absolute;
|
||||
right: 0.75rem;
|
||||
right: 0.6563rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 1rem;
|
||||
font-size: var(--app-text-base);
|
||||
pointer-events: none;
|
||||
|
||||
&.success {
|
||||
@@ -98,14 +98,14 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.75rem;
|
||||
gap: 0.6563rem;
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
padding: 0.875rem;
|
||||
background: var(--color-page);
|
||||
border: 1px dashed var(--color-border);
|
||||
border-radius: 8px;
|
||||
color: var(--color-text);
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--app-text-sm);
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
@@ -119,41 +119,41 @@
|
||||
}
|
||||
|
||||
i {
|
||||
font-size: 1.25rem;
|
||||
font-size: 1.0938rem;
|
||||
}
|
||||
|
||||
.btn-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.125rem;
|
||||
gap: 0.1094rem;
|
||||
|
||||
.btn-title {
|
||||
font-size: 0.9375rem;
|
||||
font-size: 0.8203rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.btn-subtitle {
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.7rem;
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
|
||||
@media (width <= 480px) {
|
||||
padding: 0.75rem;
|
||||
gap: 0.5rem;
|
||||
padding: 0.6563rem;
|
||||
gap: 0.4375rem;
|
||||
|
||||
i {
|
||||
font-size: 1.125rem;
|
||||
font-size: var(--app-text-lg);
|
||||
}
|
||||
|
||||
.btn-content {
|
||||
.btn-title {
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--app-text-sm);
|
||||
}
|
||||
|
||||
.btn-subtitle {
|
||||
font-size: 0.75rem;
|
||||
font-size: var(--app-text-xs);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -162,8 +162,8 @@
|
||||
.selected-icon-display {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.875rem;
|
||||
gap: 0.6563rem;
|
||||
padding: 0.7656rem;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 8px;
|
||||
background: var(--color-page);
|
||||
@@ -185,15 +185,15 @@
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.125rem;
|
||||
gap: 0.1094rem;
|
||||
|
||||
.icon-label {
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.7rem;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.icon-name {
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--app-text-sm);
|
||||
font-weight: 500;
|
||||
color: var(--color-text);
|
||||
font-family: monospace;
|
||||
@@ -201,8 +201,8 @@
|
||||
}
|
||||
|
||||
@media (width <= 480px) {
|
||||
padding: 0.625rem;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5469rem;
|
||||
gap: 0.4375rem;
|
||||
|
||||
.icon-preview {
|
||||
width: 36px;
|
||||
@@ -211,11 +211,11 @@
|
||||
|
||||
.icon-info {
|
||||
.icon-label {
|
||||
font-size: 0.75rem;
|
||||
font-size: var(--app-text-xs);
|
||||
}
|
||||
|
||||
.icon-name {
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user