|
| 1 | +/* |
| 2 | + * Fix responsive design issues in the Settings section |
| 3 | + * Ensures proper transitions between desktop and mobile layouts |
| 4 | + */ |
| 5 | + |
| 6 | +/* Improve header consistency across viewport sizes */ |
| 7 | +.section-header { |
| 8 | + display: flex !important; |
| 9 | + justify-content: space-between !important; |
| 10 | + align-items: center !important; |
| 11 | + flex-wrap: wrap !important; |
| 12 | + background-color: #252a34 !important; |
| 13 | + border-radius: 8px !important; |
| 14 | + padding: 15px 20px !important; |
| 15 | + margin-bottom: 20px !important; |
| 16 | + min-height: 60px !important; |
| 17 | + max-height: 60px !important; |
| 18 | + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important; |
| 19 | + border-bottom: none !important; |
| 20 | +} |
| 21 | + |
| 22 | +/* Better handling of the Save button in the settings header */ |
| 23 | +.settings-actions { |
| 24 | + margin-left: auto; |
| 25 | +} |
| 26 | + |
| 27 | +/* Additional breakpoint for medium-sized screens */ |
| 28 | +@media (max-width: 992px) { |
| 29 | + /* Force mobile mode at this breakpoint for consistency */ |
| 30 | + .sidebar { |
| 31 | + width: 60px !important; |
| 32 | + min-width: 60px !important; |
| 33 | + max-width: 60px !important; |
| 34 | + } |
| 35 | + |
| 36 | + .main-content { |
| 37 | + margin-left: 0 !important; |
| 38 | + width: calc(100% - 60px) !important; |
| 39 | + } |
| 40 | + |
| 41 | + /* Navbar item adjustments */ |
| 42 | + .nav-item { |
| 43 | + padding: 10px 0; |
| 44 | + justify-content: center; |
| 45 | + } |
| 46 | + |
| 47 | + .nav-item span { |
| 48 | + display: none !important; |
| 49 | + } |
| 50 | + |
| 51 | + .nav-icon-wrapper { |
| 52 | + margin-right: 0 !important; |
| 53 | + } |
| 54 | + |
| 55 | + /* Ensure General Settings header is responsive */ |
| 56 | + #settingsSection .section-header { |
| 57 | + flex-wrap: wrap !important; |
| 58 | + } |
| 59 | + |
| 60 | + /* Move Save button to its own row when space is limited */ |
| 61 | + #settingsSection .settings-actions { |
| 62 | + margin-top: 10px; |
| 63 | + width: 100%; |
| 64 | + display: flex; |
| 65 | + justify-content: flex-end; |
| 66 | + } |
| 67 | + |
| 68 | + /* Fix the positioning of the Save button on narrow screens */ |
| 69 | + #saveSettingsButton { |
| 70 | + position: relative !important; |
| 71 | + top: auto !important; |
| 72 | + right: auto !important; |
| 73 | + } |
| 74 | +} |
| 75 | + |
| 76 | +/* Mobile-specific settings adjustments */ |
| 77 | +@media (max-width: 768px) { |
| 78 | + /* Fix General Settings section header on mobile */ |
| 79 | + #settingsSection .section-header { |
| 80 | + padding: 10px 15px !important; |
| 81 | + min-height: 0 !important; |
| 82 | + max-height: none !important; |
| 83 | + flex-direction: column; |
| 84 | + align-items: flex-start !important; |
| 85 | + } |
| 86 | + |
| 87 | + #settingsSection .section-header h2 { |
| 88 | + margin-bottom: 10px; |
| 89 | + } |
| 90 | + |
| 91 | + /* Save button positioning for mobile */ |
| 92 | + #settingsSection .settings-actions { |
| 93 | + margin-top: 10px; |
| 94 | + width: 100%; |
| 95 | + } |
| 96 | + |
| 97 | + #saveSettingsButton { |
| 98 | + width: 100%; |
| 99 | + text-align: center; |
| 100 | + justify-content: center; |
| 101 | + } |
| 102 | +} |
0 commit comments