|
31 | 31 | .hero-title { font-size: 3.5rem; font-weight: 900; margin: 0; letter-spacing: -2px; color: #fff; } |
32 | 32 | .hero-title span { color: var(--accent-blue); } |
33 | 33 |
|
34 | | - .dashboard { width: 100%; max-width: 1200px; padding: 0 40px 0 140px; margin: 0 auto 40px auto; box-sizing: border-box; } |
35 | | - .grid-container { display: grid; grid-template-columns: 240px 1px 1fr; gap: 50px; align-items: start; margin-left: -120px; } |
| 34 | + .dashboard { width: 100%; max-width: 1260px; padding: 0 40px 0 140px; margin: 0 auto 40px auto; box-sizing: border-box; } |
| 35 | + .grid-container { display: grid; grid-template-columns: 240px 1px 1fr; gap: 80px; align-items: start; margin-left: -180px; } |
36 | 36 | .vertical-divider { background: var(--border-color); width: 1px; min-height: 400px; } |
37 | 37 |
|
38 | 38 | .left-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; width: 240px; } |
|
43 | 43 | .do-badge { display: block; margin-top: 10px; } |
44 | 44 | .do-badge img { width: 100%; border-radius: 8px; } |
45 | 45 |
|
| 46 | + /* == POPRAWKI DLA TELEFONÓW (Poniżej 1024px) == */ |
46 | 47 | @media (max-width: 1024px) { |
47 | | - .grid-container { grid-template-columns: 1fr; margin-left: 0; } |
| 48 | + /* 1. Naprawa głównego kontenera i odwrócenie kolejności */ |
| 49 | + .grid-container { |
| 50 | + display: flex; |
| 51 | + flex-direction: column; |
| 52 | + margin-left: 0; |
| 53 | + gap: 40px; |
| 54 | + } |
| 55 | + .main-content { |
| 56 | + order: 1; /* Główny tekst z pliku index.html idzie na samą górę! */ |
| 57 | + width: 100%; |
| 58 | + } |
| 59 | + .left-sidebar { |
| 60 | + order: 2; /* Panele boczne spadają na sam dół! */ |
| 61 | + width: 100%; |
| 62 | + position: relative; /* Wyłącza przyklejanie (sticky) na telefonie */ |
| 63 | + top: 0; |
| 64 | + display: grid; |
| 65 | + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Układa karty obok siebie na tabletach */ |
| 66 | + } |
48 | 67 | .vertical-divider { display: none; } |
49 | | - .dashboard { padding: 0 40px; } |
| 68 | + .dashboard { padding: 0 20px; } |
| 69 | + |
| 70 | + /* 2. Naprawa nawigacji (Navbar) */ |
| 71 | + .navbar { |
| 72 | + display: flex; |
| 73 | + flex-direction: column; /* Układa elementy jeden pod drugim */ |
| 74 | + padding: 15px 20px; |
| 75 | + gap: 15px; |
| 76 | + } |
| 77 | + .nav-brand { |
| 78 | + font-size: 1.3rem; /* Nieco mniejsze logo, by zaoszczędzić miejsce */ |
| 79 | + } |
| 80 | + .nav-center { |
| 81 | + flex-wrap: wrap; /* Kluczowe! Pozwala linkom "Blog", "HomeLab" przeskoczyć do nowej linii, gdy brakuje miejsca */ |
| 82 | + gap: 12px; |
| 83 | + } |
| 84 | + .hero-title { |
| 85 | + font-size: 2.2rem; /* Trochę mniejszy tytuł środowiska dla wąskich ekranów */ |
| 86 | + } |
50 | 87 | } |
51 | 88 | </style> |
52 | 89 | </head> |
|
0 commit comments