Fix mobile toolbar elements overlapping on small screens (#2856)
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: booklore
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
ko_fi: bookloredev
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
|
||||
+18
-5
@@ -17,8 +17,8 @@
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem 0.5rem;
|
||||
gap: 0.25rem;
|
||||
padding: 0.35rem 0.35rem;
|
||||
border-radius: 0.75rem 0.75rem 0 0;
|
||||
margin-bottom: 0.5rem;
|
||||
background-color: var(--card-background);
|
||||
@@ -60,6 +60,7 @@
|
||||
margin: 0;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
font-size: 1rem;
|
||||
padding-left: 0.25rem;
|
||||
}
|
||||
}
|
||||
@@ -87,7 +88,7 @@
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
gap: 0.25rem;
|
||||
flex-shrink: 0;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
@@ -99,7 +100,7 @@
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
gap: 0.25rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
gap: 1.5rem;
|
||||
@@ -392,7 +393,6 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
font-size: 5rem;
|
||||
border: 1px solid var(--border-color);
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
@@ -404,6 +404,11 @@
|
||||
background-color: var(--card-background);
|
||||
cursor: pointer;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
@@ -412,6 +417,10 @@
|
||||
color: var(--primary-color);
|
||||
font-size: 1.25rem;
|
||||
font-weight: 100;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -433,6 +442,10 @@
|
||||
line-height: 2.5rem;
|
||||
font-size: 1rem;
|
||||
box-sizing: border-box;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Filter overlay (mobile sidebar)
|
||||
|
||||
+1
@@ -2,6 +2,7 @@
|
||||
margin-left: 0.5rem;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
margin-left: 1.25rem;
|
||||
|
||||
@@ -28,19 +28,17 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
gap: 1rem;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.topbar-search {
|
||||
flex-grow: 1;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
display: block;
|
||||
}
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.topbar-desktop-items {
|
||||
|
||||
Reference in New Issue
Block a user