8
8
--bad-border : var (--bad-color );
9
9
}
10
10
11
-
12
11
/* Browser elements */
13
12
: root {
14
13
scrollbar-color : # 616161 transparent;
@@ -27,20 +26,46 @@ div.related {
27
26
}
28
27
29
28
/* SIDEBAR */
30
- div .sphinxsidebar , .menu-wrapper {
31
- background-color : # 333 ;
32
- color : inherit;
29
+ div .sidebar , aside .sidebar {
30
+ background-color : # 424242 ;
31
+ border-color : # 616161 ;
32
+ width : 250px ; /* Set the sidebar width */
33
+ transition : width 0.3s ease; /* Smooth transition */
34
+ }
35
+
36
+ /* Make sidebar responsive */
37
+ @media screen and (max-width : 768px ) {
38
+ div .sidebar , aside .sidebar {
39
+ width : 200px ; /* Adjust width on smaller screens */
40
+ }
41
+ }
42
+
43
+ @media screen and (max-width : 480px ) {
44
+ div .sidebar , aside .sidebar {
45
+ display : none; /* Hide sidebar on very small screens */
46
+ }
47
+
48
+ # sidebarbutton {
49
+ display : block; /* Show sidebar toggle button */
50
+ }
33
51
}
34
52
53
+ /* Sidebar button style */
35
54
# sidebarbutton {
36
- /* important to overwrite style attribute */
37
- background-color : # 555 !important ;
38
- color : inherit !important ;
55
+ background-color : # 555 ;
56
+ color : inherit;
57
+ padding : 10px ;
58
+ cursor : pointer;
59
+ display : none;
39
60
}
40
61
62
+ /* Transition and hover effects */
41
63
div .sidebar , aside .sidebar {
42
- background-color : # 424242 ;
43
- border-color : # 616161 ;
64
+ transition : all 0.3s ease-in-out;
65
+ }
66
+
67
+ div .sidebar : hover , aside .sidebar : hover {
68
+ background-color : # 555 ;
44
69
}
45
70
46
71
/* ANCHORS AND HIGHLIGHTS */
@@ -74,8 +99,6 @@ span.highlighted {
74
99
background-color : # 2c3e50 ;
75
100
}
76
101
77
- /* Below for most things in text */
78
-
79
102
dl .field-list > dt {
80
103
background-color : # 434 ;
81
104
}
0 commit comments