|
177 | 177 | border-bottom: 2px solid #00408f; |
178 | 178 | padding-bottom: 10px; |
179 | 179 | } |
180 | | - |
181 | | - |
182 | | - /* Small devices (phones, 600px and down) */ |
183 | 180 | @media only screen and (max-width: 600px) { |
184 | | - /* ... other mobile styles ... */ |
185 | | - .content-access-button { |
186 | | - padding: 6px 10px; |
187 | | - font-size: 0.8em; |
188 | | - } |
189 | | - /* REDUCE SIZE OF NAVIGATION BUTTONS FOR MOBILE VIEW */ |
190 | | - .nav-button { |
191 | | - padding: 6px 8px; /* Smaller padding */ |
192 | | - font-size: 0.75em; /* Smaller font size */ |
193 | | - margin: 2px; /* Reduce margin between buttons */ |
194 | | - } |
195 | | - .button-container { |
196 | | - padding: 10px; /* Adjust padding for the button container */ |
197 | | - text-align: center; /* Center buttons if they wrap */ |
198 | | - } |
199 | | - } |
| 181 | + /* Adjustments for the main navigation buttons (Home, Weekly Content, etc.) */ |
| 182 | + .nav-button { |
| 183 | + padding: 6px 8px; /* Smaller padding */ |
| 184 | + font-size: 0.75em; /* Smaller font size */ |
| 185 | + margin: 2px; /* Reduce margin between buttons */ |
| 186 | + } |
| 187 | + .button-container { |
| 188 | + padding: 10px; /* Adjust padding for the button container */ |
| 189 | + text-align: center; /* Center buttons if they wrap */ |
| 190 | + } |
| 191 | + |
| 192 | + /* --- Key changes for the Week/Quiz tab buttons (Brain Cache & Mindmash) --- */ |
| 193 | + .tab-nav { |
| 194 | + flex-wrap: wrap; /* Allow buttons to wrap to the next line */ |
| 195 | + justify-content: center; /* Center the wrapped buttons */ |
| 196 | + padding: 5px 0; /* Adjust padding if needed, make sure it doesn't push content out */ |
| 197 | + } |
| 198 | + |
| 199 | + .tab-button { |
| 200 | + flex: 0 0 48%; /* Each button takes up slightly less than half the width, allowing two per row */ |
| 201 | + max-width: 48%; /* Ensure it doesn't grow beyond this */ |
| 202 | + box-sizing: border-box; /* Include padding and border in the width calculation */ |
| 203 | + margin: 4px 1%; /* Small margin between and around buttons for spacing */ |
| 204 | + padding: 8px 5px; /* Slightly reduce internal padding */ |
| 205 | + font-size: 0.85em; /* Slightly smaller font for readability */ |
| 206 | + } |
| 207 | + |
| 208 | + /* Override the first/last child border-radius if they conflict with wrapping */ |
| 209 | + .tab-button:first-child, |
| 210 | + .tab-button:last-child { |
| 211 | + border-radius: 6px; /* Apply consistent border-radius when wrapping */ |
| 212 | + } |
| 213 | + |
| 214 | + /* General mini-window adjustments for small screens */ |
| 215 | + .mini-window { |
| 216 | + width: 95%; /* Give it a bit more width on small screens */ |
| 217 | + margin: 10px auto 30px auto; /* Adjust vertical margins */ |
| 218 | + padding: 10px; /* Reduce overall padding */ |
| 219 | + } |
| 220 | + |
| 221 | + /* Table cell adjustments for readability on small screens */ |
| 222 | + th, td { |
| 223 | + padding: 8px 5px; /* Reduce padding inside table cells */ |
| 224 | + font-size: 0.9em; /* Slightly smaller text in tables */ |
| 225 | + } |
| 226 | + table { |
| 227 | + min-width: 300px; /* Ensure table doesn't get too squished */ |
| 228 | + } |
| 229 | +} |
200 | 230 | /* Media Queries for Leaderboard specific elements */ |
201 | 231 | @media (max-width: 768px) { |
202 | 232 | .mini-window { |
|
0 commit comments