|
1 | | -/* 1. Widen sidebar so logo has more horizontal room */ |
| 1 | +/* 1) Give the sidebar more room */ |
2 | 2 | :root { |
3 | | - --pst-sidebar-width: 400px; /* default ~300px, bump up to 360–400px */ |
| 3 | + --pst-sidebar-width: 500px; /* adjust as needed */ |
4 | 4 | } |
5 | 5 |
|
6 | | -/* 2. Sidebar logo – scale up naturally */ |
7 | | -.bd-sidebar .navbar-brand img.logo__image, |
8 | | -.sidebar-logo img, |
9 | | -img[src$="../images/OPENSOURDA_color-flush.png"] { |
10 | | - height: 90% !important; /* preserve aspect ratio */ |
11 | | - max-height: 95% !important; /* ⬅️ increase this for bigger logo */ |
12 | | - width: 95% !important; |
13 | | - max-width: 95% !important; /* fill most of sidebar */ |
14 | | - display: block; |
15 | | - margin-inline: auto; |
16 | | -} |
17 | | - |
18 | | -/* 3. Give logo container breathing room */ |
| 6 | +/* 2) Give the logo area more vertical room */ |
19 | 7 | .bd-sidebar .navbar-brand, |
20 | 8 | .sidebar-logo { |
21 | | - padding: 1rem 0 !important; |
| 9 | + padding-top: 2rem !important; |
| 10 | + padding-bottom: 2rem !important; |
| 11 | + display: flex; |
| 12 | + justify-content: center; |
| 13 | + align-items: center; |
22 | 14 | overflow: visible !important; |
23 | 15 | } |
24 | 16 |
|
25 | | -/* docs/_static/custom.css */ |
| 17 | +/* 3) Scale the logo naturally (no distortion) */ |
| 18 | +.bd-sidebar .navbar-brand img, |
| 19 | +.sidebar-logo img, |
| 20 | +img[src*="_static/output-onlinepngtools.png"], |
| 21 | +img[src*="_static/output-onlinepngtools.png"] { |
| 22 | + height: auto !important; /* keep aspect ratio */ |
| 23 | + width: auto !important; |
| 24 | + max-height: 200px !important; /* ⬅️ increase for bigger logo (e.g., 240px) */ |
| 25 | + max-width: 95% !important; /* stay inside sidebar */ |
| 26 | + display: block; |
| 27 | + margin: 0 auto; |
| 28 | + object-fit: contain; |
| 29 | +} |
| 30 | + |
| 31 | +/* Optional: ensure the sidebar can always fit content */ |
| 32 | +.bd-sidebar { min-height: 100vh; overflow-y: auto; } |
26 | 33 |
|
27 | 34 | /* Footer layout: 3 columns side by side */ |
28 | 35 | /* ==== Footer grid: 4 columns on desktop ==== */ |
|
0 commit comments