mirror of
https://github.com/aljazceru/awesome-nostr.git
synced 2025-12-09 06:48:49 +00:00
more familiar mobile touch XP
This commit is contained in:
32
styles.css
32
styles.css
@@ -51,9 +51,10 @@ body {
|
||||
border-right: 1px solid rgba(110, 84, 148, 0.15);
|
||||
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
|
||||
top: 60px; /* Start below top nav */
|
||||
touch-action: pan-y;
|
||||
touch-action: pan-y pinch-zoom;
|
||||
will-change: transform;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
@@ -161,6 +162,8 @@ body {
|
||||
min-height: 100vh;
|
||||
overflow: auto;
|
||||
margin-top: 0;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
.content-header {
|
||||
@@ -299,6 +302,33 @@ body {
|
||||
max-width: none;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
padding: 0.75rem 1rem; /* Larger touch target */
|
||||
min-height: 44px; /* iOS recommended minimum */
|
||||
}
|
||||
|
||||
.theme-toggle,
|
||||
.menu-toggle {
|
||||
min-width: 44px;
|
||||
min-height: 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Improve search input touch target */
|
||||
.search-box input {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
/* Add active state styles for touch feedback */
|
||||
.nav-links a:active,
|
||||
.theme-toggle:active,
|
||||
.menu-toggle:active {
|
||||
opacity: 0.7;
|
||||
transition: opacity 0.1s;
|
||||
}
|
||||
}
|
||||
|
||||
.markdown-content {
|
||||
|
||||
Reference in New Issue
Block a user