Mobile desighn Adjustments
This commit is contained in:
@@ -588,10 +588,11 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile responsive styles */
|
||||
/* Mobile First Responsive Design */
|
||||
@media (max-width: 1024px) {
|
||||
.dashboard-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
@@ -600,57 +601,56 @@ body {
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.main-container {
|
||||
padding: 1rem;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.main-title {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.rank-entry {
|
||||
grid-template-columns: 60px 1fr auto;
|
||||
padding: 1rem;
|
||||
gap: 0.5rem;
|
||||
.tagline {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.trophy-icon {
|
||||
display: none;
|
||||
.header-section {
|
||||
margin-bottom: 2rem;
|
||||
margin-top: 5rem; /* Account for fixed buttons */
|
||||
}
|
||||
|
||||
.time-result {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
.dashboard-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.player-meta {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.5rem;
|
||||
.control-panel {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.admin-login-btn, .dashboard-btn, .logout-btn {
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
padding: 0.5rem 1rem;
|
||||
font-size: 0.8rem;
|
||||
.control-group {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.logout-btn {
|
||||
right: 8rem;
|
||||
.custom-select {
|
||||
padding: 1rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.location-control {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.location-btn {
|
||||
width: 100%;
|
||||
min-width: auto;
|
||||
padding: 1rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Mobile responsive tabs */
|
||||
.time-tabs {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
@@ -661,26 +661,220 @@ body {
|
||||
padding: 1rem;
|
||||
justify-content: flex-start;
|
||||
border-radius: 0.75rem;
|
||||
min-height: 44px;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.tab-text {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.refresh-btn {
|
||||
padding: 1rem;
|
||||
font-size: 1rem;
|
||||
min-height: 44px;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.stats-panel {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.leaderboard-container {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.leaderboard-header {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.active-filters {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.last-sync {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.rankings-list {
|
||||
max-height: 500px;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.rank-entry {
|
||||
grid-template-columns: 50px 1fr auto;
|
||||
padding: 1rem;
|
||||
gap: 0.75rem;
|
||||
min-height: 60px;
|
||||
}
|
||||
|
||||
.position {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.player-data {
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
|
||||
.player-name {
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.player-meta {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.location-tag {
|
||||
font-size: 0.75rem;
|
||||
padding: 0.2rem 0.4rem;
|
||||
}
|
||||
|
||||
.time-result {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.trophy-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin-login-btn, .dashboard-btn, .logout-btn {
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 0.8rem;
|
||||
min-height: 44px;
|
||||
touch-action: manipulation;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.logout-btn {
|
||||
right: 8rem;
|
||||
}
|
||||
|
||||
/* Mobile button container for better positioning */
|
||||
.mobile-nav-buttons {
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.mobile-nav-buttons .admin-login-btn,
|
||||
.mobile-nav-buttons .dashboard-btn,
|
||||
.mobile-nav-buttons .logout-btn {
|
||||
position: static;
|
||||
right: auto;
|
||||
width: 120px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.75rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.notification-bubble {
|
||||
top: 1rem;
|
||||
left: 1rem;
|
||||
right: 1rem;
|
||||
transform: none;
|
||||
max-width: none;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.notification-bubble.show {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.notification-bubble.hide {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Extra small devices (phones in portrait) */
|
||||
@media (max-width: 480px) {
|
||||
.main-container {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.main-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.tagline {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.control-panel {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.stats-panel {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.leaderboard-header {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.active-filters {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.rank-entry {
|
||||
grid-template-columns: 40px 1fr auto;
|
||||
padding: 0.75rem;
|
||||
gap: 0.5rem;
|
||||
min-height: 50px;
|
||||
}
|
||||
|
||||
.position {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.player-name {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.time-result {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.time-tabs {
|
||||
flex-direction: row;
|
||||
overflow-x: auto;
|
||||
padding: 0.25rem;
|
||||
gap: 0.25rem;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.time-tab {
|
||||
min-width: 80px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
padding: 0.75rem 0.5rem;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tab-icon {
|
||||
@@ -690,6 +884,114 @@ body {
|
||||
.tab-text {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.mobile-nav-buttons {
|
||||
top: 0.5rem;
|
||||
right: 0.5rem;
|
||||
}
|
||||
|
||||
.mobile-nav-buttons .admin-login-btn,
|
||||
.mobile-nav-buttons .dashboard-btn,
|
||||
.mobile-nav-buttons .logout-btn {
|
||||
width: 100px;
|
||||
padding: 0.4rem 0.5rem;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Landscape orientation on mobile */
|
||||
@media (max-width: 768px) and (orientation: landscape) {
|
||||
.header-section {
|
||||
margin-top: 4rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.main-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.mobile-nav-buttons {
|
||||
flex-direction: row;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.mobile-nav-buttons .admin-login-btn,
|
||||
.mobile-nav-buttons .dashboard-btn,
|
||||
.mobile-nav-buttons .logout-btn {
|
||||
width: auto;
|
||||
min-width: 80px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.time-tabs {
|
||||
flex-direction: row;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.time-tab {
|
||||
min-width: 100px;
|
||||
padding: 0.75rem 1rem;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.rank-entry {
|
||||
grid-template-columns: 60px 1fr auto;
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
|
||||
.position {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.time-result {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Touch-friendly improvements for mobile */
|
||||
@media (max-width: 768px) {
|
||||
.time-tab {
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.location-btn {
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.refresh-btn {
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.rank-entry {
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.custom-select {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
/* Improve scrolling performance */
|
||||
.rankings-list {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* Better spacing for mobile */
|
||||
.control-panel {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.stats-panel {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Footer Styles */
|
||||
|
||||
Reference in New Issue
Block a user