Skip to content

Commit a2c2b6a

Browse files
authored
Merge pull request #22 from glennsong09/main
Fix sidebar
2 parents 2d4a7b1 + 2ab1797 commit a2c2b6a

1 file changed

Lines changed: 48 additions & 20 deletions

File tree

_sass/custom/custom.scss

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,67 @@
11
// Custom styles for HDF5 Security site
22

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+
410
.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;
1423
}
1524

1625
.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;
2030
}
2131

2232
.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;
2445
}
2546

2647
@media (max-width: 800px) {
48+
body {
49+
flex-direction: column !important;
50+
}
51+
2752
.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;
3259
}
3360

3461
.main {
35-
margin-left: 0;
36-
padding: 1rem;
62+
margin-left: 0 !important;
63+
width: 100% !important;
64+
padding: 1rem !important;
3765
}
3866
}
3967

0 commit comments

Comments
 (0)