|
1 | 1 | // Custom styles for HDF5 Security site |
2 | 2 |
|
3 | | -// Full-width layout - sidebar on left edge |
| 3 | +// Full-width layout - sidebar pinned to left edge |
| 4 | +body { |
| 5 | + display: flex !important; |
| 6 | + flex-direction: row !important; |
| 7 | + min-height: 100vh; |
| 8 | +} |
| 9 | + |
4 | 10 | .side-bar { |
5 | | - position: fixed; |
6 | | - left: 0; |
7 | | - top: 0; |
8 | | - bottom: 0; |
9 | | - width: 264px; |
10 | | - padding: 1rem; |
11 | | - overflow-y: auto; |
12 | | - background-color: #f8fafc; |
13 | | - border-right: 1px solid #e2e8f0; |
| 11 | + position: fixed !important; |
| 12 | + left: 0 !important; |
| 13 | + top: 0 !important; |
| 14 | + bottom: 0 !important; |
| 15 | + width: 264px !important; |
| 16 | + min-width: 264px !important; |
| 17 | + max-width: 264px !important; |
| 18 | + padding: 1rem !important; |
| 19 | + overflow-y: auto !important; |
| 20 | + background-color: #f8fafc !important; |
| 21 | + border-right: 1px solid #e2e8f0 !important; |
| 22 | + z-index: 100; |
14 | 23 | } |
15 | 24 |
|
16 | 25 | .main { |
17 | | - margin-left: 264px; |
18 | | - max-width: none; |
19 | | - padding: 2rem 3rem; |
| 26 | + margin-left: 264px !important; |
| 27 | + max-width: none !important; |
| 28 | + width: calc(100% - 264px) !important; |
| 29 | + padding: 2rem 3rem !important; |
20 | 30 | } |
21 | 31 |
|
22 | 32 | .main-content-wrap { |
23 | | - max-width: 900px; |
| 33 | + max-width: 900px !important; |
| 34 | + margin: 0 !important; |
| 35 | + padding: 0 !important; |
| 36 | +} |
| 37 | + |
| 38 | +// Override any centering wrappers |
| 39 | +.wrapper, |
| 40 | +.container, |
| 41 | +.main-content { |
| 42 | + max-width: none !important; |
| 43 | + margin-left: 0 !important; |
| 44 | + margin-right: auto !important; |
24 | 45 | } |
25 | 46 |
|
26 | 47 | @media (max-width: 800px) { |
| 48 | + body { |
| 49 | + flex-direction: column !important; |
| 50 | + } |
| 51 | + |
27 | 52 | .side-bar { |
28 | | - position: relative; |
29 | | - width: 100%; |
30 | | - border-right: none; |
31 | | - border-bottom: 1px solid #e2e8f0; |
| 53 | + position: relative !important; |
| 54 | + width: 100% !important; |
| 55 | + max-width: 100% !important; |
| 56 | + min-width: 100% !important; |
| 57 | + border-right: none !important; |
| 58 | + border-bottom: 1px solid #e2e8f0 !important; |
32 | 59 | } |
33 | 60 |
|
34 | 61 | .main { |
35 | | - margin-left: 0; |
36 | | - padding: 1rem; |
| 62 | + margin-left: 0 !important; |
| 63 | + width: 100% !important; |
| 64 | + padding: 1rem !important; |
37 | 65 | } |
38 | 66 | } |
39 | 67 |
|
|
0 commit comments