chore(ui): normalise text size and spacing (#1656)
This commit is contained in:
+36
-36
@@ -21,8 +21,8 @@
|
||||
.shelves-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
padding: 1rem 2rem;
|
||||
gap: 0.875rem;
|
||||
padding: 0.875rem 1.75rem;
|
||||
background: var(--card-background);
|
||||
border: 1px solid var(--border-color);
|
||||
box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
|
||||
@@ -31,7 +31,7 @@
|
||||
overflow: hidden;
|
||||
|
||||
@media (width <= 480px) {
|
||||
padding: 1rem;
|
||||
padding: 0.875rem;
|
||||
min-height: 300px;
|
||||
max-height: 400px;
|
||||
}
|
||||
@@ -40,7 +40,7 @@
|
||||
.shelves-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
gap: 0.6563rem;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -49,16 +49,16 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0.625rem 0.875rem;
|
||||
padding: 0.5469rem 0.7656rem;
|
||||
background: var(--overlay-background);
|
||||
border-radius: 6px;
|
||||
gap: 0.5rem;
|
||||
gap: 0.4375rem;
|
||||
|
||||
.shelf-count {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
font-size: 0.9rem;
|
||||
gap: 0.3281rem;
|
||||
font-size: 0.7875rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-color);
|
||||
white-space: nowrap;
|
||||
@@ -75,18 +75,18 @@
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
font-size: 0.85rem;
|
||||
padding: 0.375rem 2rem;
|
||||
font-size: 0.7438rem;
|
||||
padding: 0.3281rem 1.75rem;
|
||||
}
|
||||
|
||||
.clear-icon {
|
||||
position: absolute;
|
||||
right: 0.5rem;
|
||||
right: 0.4375rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
cursor: pointer;
|
||||
color: var(--text-secondary-color);
|
||||
font-size: 0.75rem;
|
||||
font-size: var(--app-text-xs);
|
||||
z-index: 1;
|
||||
|
||||
&:hover {
|
||||
@@ -96,11 +96,11 @@
|
||||
}
|
||||
|
||||
@media (width <= 480px) {
|
||||
padding: 0.5rem 0.625rem;
|
||||
padding: 0.4375rem 0.5469rem;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.shelf-count {
|
||||
font-size: 0.85rem;
|
||||
font-size: 0.7438rem;
|
||||
}
|
||||
|
||||
.shelf-search {
|
||||
@@ -113,18 +113,18 @@
|
||||
.shelves-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
gap: 0.6563rem;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
padding-right: 0.25rem;
|
||||
padding-right: 0.2188rem;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.shelf-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem 1rem;
|
||||
gap: 0.6563rem;
|
||||
padding: 0.4375rem 0.875rem;
|
||||
background: var(--ground-background);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
@@ -163,7 +163,7 @@
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
gap: 0.6563rem;
|
||||
cursor: pointer;
|
||||
min-width: 0;
|
||||
|
||||
@@ -181,14 +181,14 @@
|
||||
flex-shrink: 0;
|
||||
|
||||
.shelf-icon {
|
||||
font-size: 1.125rem;
|
||||
font-size: var(--app-text-lg);
|
||||
color: var(--text-secondary-color);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
}
|
||||
|
||||
.shelf-name {
|
||||
font-size: 0.9375rem;
|
||||
font-size: 0.8203rem;
|
||||
color: var(--text-color);
|
||||
font-weight: 500;
|
||||
overflow: hidden;
|
||||
@@ -198,23 +198,23 @@
|
||||
}
|
||||
|
||||
@media (width <= 480px) {
|
||||
padding: 0.625rem;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5469rem;
|
||||
gap: 0.4375rem;
|
||||
|
||||
.shelf-label {
|
||||
gap: 0.5rem;
|
||||
gap: 0.4375rem;
|
||||
|
||||
.shelf-icon-wrapper, .shelf-icon-wrapper-empty {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
|
||||
.shelf-icon {
|
||||
font-size: 1rem;
|
||||
font-size: var(--app-text-base);
|
||||
}
|
||||
}
|
||||
|
||||
.shelf-name {
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--app-text-sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -226,7 +226,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
padding: 2rem 1rem;
|
||||
padding: 1.75rem 0.875rem;
|
||||
flex: 1;
|
||||
|
||||
.empty-icon-wrapper {
|
||||
@@ -237,48 +237,48 @@
|
||||
height: 80px;
|
||||
background: var(--overlay-background);
|
||||
border-radius: 50%;
|
||||
margin-bottom: 1rem;
|
||||
margin-bottom: 0.875rem;
|
||||
|
||||
.empty-icon {
|
||||
font-size: 2.5rem;
|
||||
font-size: 2.1875rem;
|
||||
color: var(--text-secondary-color);
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-title {
|
||||
margin: 0 0 0.5rem;
|
||||
font-size: 1.125rem;
|
||||
margin: 0 0 0.4375rem;
|
||||
font-size: var(--app-text-lg);
|
||||
font-weight: 600;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.empty-description {
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--app-text-sm);
|
||||
color: var(--text-secondary-color);
|
||||
max-width: 350px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@media (width <= 480px) {
|
||||
padding: 1.5rem 0.75rem;
|
||||
padding: 1.3125rem 0.6563rem;
|
||||
|
||||
.empty-icon-wrapper {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
|
||||
.empty-icon {
|
||||
font-size: 2rem;
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-title {
|
||||
font-size: 1rem;
|
||||
font-size: var(--app-text-base);
|
||||
}
|
||||
|
||||
.empty-description {
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.7rem;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user