Skip to content

Commit bc32bed

Browse files
committed
added doc/_static/custom.css
1 parent 4ed9cec commit bc32bed

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

doc/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
/_build/
2-
/_static/
32
/_templates/
43
/ascii-scaffold-and-staples-two-bases-per-character.txt

doc/_static/custom.css

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/* Remove page margins and use full width */
2+
div.document {
3+
width: 100% !important;
4+
margin: 0 !important;
5+
padding: 0 !important;
6+
}
7+
8+
/* Fix for the whitespace at the top of the page */
9+
body {
10+
margin: 0 !important;
11+
padding: 0 !important;
12+
}
13+
14+
div.documentwrapper {
15+
margin: 0 !important;
16+
padding: 0 !important;
17+
}
18+
19+
div.body {
20+
margin: 0 !important;
21+
padding: 20px !important;
22+
max-width: none !important;
23+
min-width: auto !important;
24+
}
25+
26+
/* Configure sidebar to be fixed with its own scrollbar */
27+
div.sphinxsidebar {
28+
max-height: 100vh; /* Use viewport height */
29+
position: fixed; /* Make it stick when scrolling */
30+
top: 0; /* Stick to top */
31+
overflow-y: auto; /* Enable vertical scrolling */
32+
width: 300px !important; /* Set sidebar width */
33+
box-sizing: border-box; /* Include padding in width calculation */
34+
padding: 20px 10px; /* Add padding */
35+
margin: 0 !important; /* Remove margin */
36+
}
37+
38+
/* Make sure content properly adjusts to sidebar */
39+
div.bodywrapper {
40+
margin-left: 300px !important; /* Should match sidebar width */
41+
padding: 0 !important;
42+
}
43+
44+
/* Add proper mobile responsiveness */
45+
@media screen and (max-width: 768px) {
46+
div.sphinxsidebar {
47+
position: relative;
48+
width: 100% !important;
49+
max-height: none;
50+
}
51+
52+
div.bodywrapper {
53+
margin-left: 0 !important;
54+
}
55+
}

0 commit comments

Comments
 (0)