File tree Expand file tree Collapse file tree 1 file changed +27
-20
lines changed
Expand file tree Collapse file tree 1 file changed +27
-20
lines changed Original file line number Diff line number Diff line change 103103 }
104104}
105105
106- /* Fix for desktop layout overlap */
106+ /* Fix for desktop layout overlap - make sidebar wider */
107107@media screen and (min-width : 769px ) {
108- /* Add left margin to the main wrapper to prevent overlap with sidebar */
108+ /* Increase sidebar width to accommodate content */
109+ header {
110+ position : fixed;
111+ left : 0 ;
112+ top : 0 ;
113+ width : 320px ; /* Increased from 270px to fit the buttons */
114+ padding : 50px 30px 50px 30px ; /* Add more horizontal padding */
115+ }
116+
117+ /* Add left margin to main content to match new sidebar width */
109118 .wrapper {
110119 width : auto;
111- margin-left : 350 px ; /* Increased to give proper clearance */
120+ margin-left : 380 px ; /* Sidebar width (320px) + spacing (60px) */
112121 margin-right : 50px ;
113122 padding-right : 20px ;
114123 max-width : none;
115124 }
116-
117- /* Ensure the header section stays fixed */
118- header {
119- position : fixed;
120- left : 0 ;
121- top : 0 ;
122- width : 270px ;
123- }
124125}
125126
126- /* For medium-width screens (like your current window), still need good spacing */
127+ /* For medium-width screens */
127128@media screen and (min-width : 769px ) and (max-width : 1100px ) {
129+ header {
130+ width : 300px ;
131+ padding : 50px 25px 50px 25px ;
132+ }
133+
128134 .wrapper {
129- margin-left : 340 px ; /* Still plenty of space */
135+ margin-left : 350 px ;
130136 margin-right : 30px ;
131137 }
132138}
133139
134- /* For very wide screens, can add more right margin for better reading width */
140+ /* For very wide screens */
135141@media screen and (min-width : 1400px ) {
136142 .wrapper {
137- margin-left : 350 px ;
143+ margin-left : 380 px ;
138144 margin-right : 100px ;
139145 }
140146}
141147
142148/* Ensure mobile layout is unaffected */
143149@media screen and (max-width : 768px ) {
150+ header {
151+ position : relative;
152+ width : 100% ;
153+ padding : 20px ;
154+ }
155+
144156 .wrapper {
145157 width : auto;
146158 margin : 0 ;
147159 padding : 0 20px ;
148160 max-width : 100% ;
149161 }
150-
151- header {
152- position : relative;
153- width : 100% ;
154- }
155162}
156163
157164/* Fancy highlighter hyperlinks */
You can’t perform that action at this time.
0 commit comments