diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-22 02:12:41 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 01:12:41 +0300 |
| commit | 04dfe7e557389e1dc7c9f913074b3400d71dc097 (patch) | |
| tree | 3c112fef80473bad01fb387f0326ba8f89bd2c6b /frontend/src/css/Profile.css | |
| parent | feat/frontend: add general mobile support (#275) (diff) | |
| download | lphub-04dfe7e557389e1dc7c9f913074b3400d71dc097.tar.gz lphub-04dfe7e557389e1dc7c9f913074b3400d71dc097.tar.bz2 lphub-04dfe7e557389e1dc7c9f913074b3400d71dc097.zip | |
fix/frontend: mobile scrolling, maps and profile clipping (#276)
Diffstat (limited to 'frontend/src/css/Profile.css')
| -rw-r--r-- | frontend/src/css/Profile.css | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/frontend/src/css/Profile.css b/frontend/src/css/Profile.css index 9b5b4ef..2522602 100644 --- a/frontend/src/css/Profile.css +++ b/frontend/src/css/Profile.css | |||
| @@ -289,12 +289,19 @@ span.titles { | |||
| 289 | } | 289 | } |
| 290 | 290 | ||
| 291 | @media screen and (max-width: 768px) { | 291 | @media screen and (max-width: 768px) { |
| 292 | * { | ||
| 293 | box-sizing: border-box; | ||
| 294 | } | ||
| 295 | |||
| 292 | #section1.profile { | 296 | #section1.profile { |
| 293 | margin: 20px; | 297 | margin: 20px; |
| 294 | grid-template-columns: 1fr; | 298 | grid-template-columns: 1fr; |
| 295 | height: auto; | 299 | height: auto; |
| 296 | min-height: 300px; | 300 | min-height: 300px; |
| 297 | background: linear-gradient(0deg, #202232 60%, #2b2e46 40%); | 301 | background: linear-gradient(0deg, #202232 60%, #2b2e46 40%); |
| 302 | width: calc(100% - 40px); | ||
| 303 | max-width: 100%; | ||
| 304 | box-sizing: border-box; | ||
| 298 | } | 305 | } |
| 299 | 306 | ||
| 300 | #section1.profile>div:first-child { | 307 | #section1.profile>div:first-child { |
| @@ -306,16 +313,22 @@ span.titles { | |||
| 306 | grid-template-columns: 1fr; | 313 | grid-template-columns: 1fr; |
| 307 | height: auto; | 314 | height: auto; |
| 308 | text-align: center; | 315 | text-align: center; |
| 316 | width: 100%; | ||
| 317 | box-sizing: border-box; | ||
| 309 | } | 318 | } |
| 310 | 319 | ||
| 311 | #profile-top>div:nth-child(1) { | 320 | #profile-top>div:nth-child(1) { |
| 312 | justify-content: center; | 321 | justify-content: center; |
| 313 | font-size: 32px; | 322 | font-size: 32px; |
| 323 | word-wrap: break-word; | ||
| 324 | overflow-wrap: break-word; | ||
| 325 | flex-wrap: wrap; | ||
| 314 | } | 326 | } |
| 315 | 327 | ||
| 316 | #profile-top>div:nth-child(1)>div { | 328 | #profile-top>div:nth-child(1)>div { |
| 317 | flex-direction: column; | 329 | flex-direction: column; |
| 318 | height: auto; | 330 | height: auto; |
| 331 | max-width: 100%; | ||
| 319 | } | 332 | } |
| 320 | 333 | ||
| 321 | #profile-top>div:nth-child(2) { | 334 | #profile-top>div:nth-child(2) { |
| @@ -326,15 +339,20 @@ span.titles { | |||
| 326 | #profile-bottom { | 339 | #profile-bottom { |
| 327 | grid-template-columns: 1fr; | 340 | grid-template-columns: 1fr; |
| 328 | height: auto; | 341 | height: auto; |
| 342 | width: 100%; | ||
| 329 | } | 343 | } |
| 330 | 344 | ||
| 331 | #profile-bottom>div { | 345 | #profile-bottom>div { |
| 332 | margin: 8px 12px; | 346 | margin: 8px 12px; |
| 347 | box-sizing: border-box; | ||
| 333 | } | 348 | } |
| 334 | 349 | ||
| 335 | #section2.profile { | 350 | #section2.profile { |
| 336 | margin: 20px; | 351 | margin: 20px; |
| 337 | height: 50px; | 352 | height: 50px; |
| 353 | width: calc(100% - 40px); | ||
| 354 | max-width: 100%; | ||
| 355 | box-sizing: border-box; | ||
| 338 | } | 356 | } |
| 339 | 357 | ||
| 340 | #section2.profile>button { | 358 | #section2.profile>button { |
| @@ -343,28 +361,41 @@ span.titles { | |||
| 343 | 361 | ||
| 344 | #section3.profile1 { | 362 | #section3.profile1 { |
| 345 | margin: 20px; | 363 | margin: 20px; |
| 364 | width: calc(100% - 40px); | ||
| 365 | max-width: 100%; | ||
| 366 | box-sizing: border-box; | ||
| 367 | overflow-x: auto; | ||
| 346 | } | 368 | } |
| 347 | 369 | ||
| 348 | #profileboard-nav { | 370 | #profileboard-nav { |
| 349 | grid-template-columns: 1fr; | 371 | grid-template-columns: 1fr; |
| 372 | width: 100%; | ||
| 350 | } | 373 | } |
| 351 | 374 | ||
| 352 | #profileboard-nav>select { | 375 | #profileboard-nav>select { |
| 353 | margin: 20px; | 376 | margin: 20px; |
| 354 | height: 45px; | 377 | height: 45px; |
| 355 | font-size: 18px; | 378 | font-size: 18px; |
| 379 | width: calc(100% - 40px); | ||
| 380 | box-sizing: border-box; | ||
| 356 | } | 381 | } |
| 357 | 382 | ||
| 358 | #profileboard-top { | 383 | #profileboard-top { |
| 359 | font-size: 14px; | 384 | font-size: 12px; |
| 360 | padding-left: 20px; | 385 | padding-left: 10px; |
| 361 | grid-template-columns: 18% 18% 8% 15% 8% 10% 10% 13%; | 386 | padding-right: 10px; |
| 387 | margin: 0 10px; | ||
| 388 | min-width: max-content; | ||
| 362 | } | 389 | } |
| 363 | 390 | ||
| 364 | .profileboard-record { | 391 | .profileboard-record { |
| 365 | font-size: 14px; | 392 | font-size: 12px; |
| 366 | padding-left: 20px; | 393 | padding-left: 10px; |
| 367 | grid-template-columns: 18% 18% 8% 15% 8% 10% 10% 13%; | 394 | padding-right: 10px; |
| 395 | margin: 10px; | ||
| 396 | width: calc(100% - 20px); | ||
| 397 | min-width: max-content; | ||
| 398 | box-sizing: border-box; | ||
| 368 | } | 399 | } |
| 369 | 400 | ||
| 370 | span.titles { | 401 | span.titles { |